]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Add malloc micro benchmark
[thirdparty/glibc.git] / ChangeLog
1 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
2
3 * benchtests/Makefile: Add malloc-simple benchmark.
4 * benchtests/bench-malloc-simple.c: New benchmark.
5
6 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
7
8 * benchtests/bench-memmove.c (do_one_test): Remove unused
9 ORIG_SRC.
10 (do_test): Adjust.
11 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
12 ORIG_SRC.
13 (do_test): Adjust.
14
15 2019-01-13 Jim Wilson <jimw@sifive.com>
16
17 [BZ #24040]
18 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
19 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
20 (func): New.
21 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
22 call func directly.
23 * nptl/Makefile (tests): Add tst-unwind-thread.
24 (CFLAGS-tst-unwind-thread.c): Define.
25 * nptl/tst-unwind-thread.c: New file.
26 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
27 as undefined.
28
29 2019-02-13 Joseph Myers <joseph@codesourcery.com>
30
31 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
32 comment wording.
33 * nis/nis_call.c (__do_niscall3): Likewise.
34
35 * catgets/gencat.c (normalize_line): Use braces around empty
36 'else' body.
37 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
38 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
39 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
40 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
41 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
42 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
43 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
44 definition.
45
46 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
47 execlp returns.
48
49 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
50
51 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
52 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
53 * benchtests/bench-strchr.c (stupid_strchr): Remove.
54 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
55 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
56 * benchtests/bench-strlen.c (builtin_strlen): Remove.
57 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
58 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
59 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
60 * benchtests/bench-strspn.c (stupid_strspn): Remove.
61 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
62 * benchtests/bench-bcopy.c: Delete file.
63 * benchtests/bench-bzero.c: Likewise.
64 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
65 (simple_memccpy): Remove.
66 (generic_memccpy): Add function.
67 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
68 * benchtests/bench-memmove.c (simple_bcopy): Remove.
69 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
70 (generic_mempcpy): Add new function.
71 * benchtests/bench-memset.c (simple_bzero): Remove.
72 (builtin_bzero): Remove.
73 (builtin_memset): Remove.
74 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
75 (generic_rawmemchr): Add new function.
76
77 2019-02-12 Florian Weimer <fweimer@redhat.com>
78
79 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
80
81 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
82
83 [BZ #24122]
84 * elf/Makefile (tests): Add tst-audit13.
85 (modules-names): Add tst-audit13mod1.
86 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
87 rule.
88 * elf/tst-audit13.c: New file.
89 * elf/tst-audit13mod1.c: Likewise.
90
91 2019-02-12 Florian Weimer <fweimer@redhat.com>
92
93 [BZ #24122]
94 * elf/rtld.c (unload_audit_module): New function.
95 (report_audit_module_load_error): Likewise.
96 (load_audit_module): Likewise. Extracted from dl_main. Call
97 _dl_close if the laversion symbol cannot be found. Use early
98 returns for error handling. Add malloc error check. Check for a
99 zero return value from la_version. Remove spurious comment about
100 static TLS initialization. Remove useless casts.
101 (notify_audit_modules_of_loaded_object): New function. Extracted
102 from dl_main.
103 (load_audit_module): Likewise.
104 (dl_main): Call load_audit_modules.
105
106 2019-02-12 Joseph Myers <joseph@codesourcery.com>
107
108 * elf/dl-exception.c (_dl_exception_create_format): Add
109 fall-through comments.
110 * elf/ldconfig.c (parse_conf_include): Likewise.
111 * elf/rtld.c (print_statistics): Likewise.
112 * locale/programs/charmap.c (parse_charmap): Likewise.
113 * misc/mntent_r.c (__getmntent_r): Likewise.
114 * posix/wordexp.c (parse_arith): Likewise.
115 (parse_backtick): Likewise.
116 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
117 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
118 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
119
120 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
121
122 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
123 Use float instead of double.
124
125 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
126
127 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
128
129 2019-02-08 Joseph Myers <joseph@codesourcery.com>
130
131 * sysdeps/powerpc/bits/mathinline.h: Remove.
132
133 2019-02-08 Florian Weimer <fweimer@redhat.com>
134
135 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
136 * math/bits/math-finite.h: Move to ...
137 * bits/math-finite.h: ... here.
138
139 2019-02-08 Florian Weimer <fweimer@redhat.com>
140
141 * sysdeps/generic/bits/unistd_ext.h: Move to ...
142 * bits/unistd_ext.h: here.
143
144 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
145
146 [BZ #21915]
147 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
148 * nss/tst-nss-files-hosts-long.c: New file.
149 * nss/tst-nss-files-hosts-long.root: New directory.
150 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
151 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
152
153 2019-02-08 Florian Weimer <fweimer@redhat.com>
154
155 * include/bits/unistd_ext.h: Remove file.
156 * posix/bits/unistd_ext.h: Move to ...
157 * sysdeps/generic/bits/unistd_ext.h: ... here.
158
159 2019-02-08 Florian Weimer <fweimer@redhat.com>
160
161 * include/bits/unistd_ext.h: New file.
162
163 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
164
165 * time/tst-strftime2.c: Use array_length macros instead of magic
166 numbers.
167
168 2019-02-08 Florian Weimer <fweimer@redhat.com>
169
170 [BZ #24161]
171 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
172 argument.
173 * nptl/register-atfork.c (__run_fork_handlers): Only perform
174 locking if the new do_locking argument is true.
175 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
176 __run_fork_handlers.
177
178 2019-02-08 Florian Weimer <fweimer@redhat.com>
179
180 [BZ #6399]
181 Linux: Add gettid system call wrapper.
182 * posix/Makefile (headers): Add bits/unistd_ext.h.
183 * posix/bits/unistd_ext.h: New file.
184 * posix/unistd.h: Include it.
185 * manual/process.texi (Process Identification): Document gettid.
186 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
187 tst-gettid, tst-gettid-kill.
188 (tst-gettid): Link with $(shared-thread-library).
189 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
190 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
191 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
192 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
193 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
194 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
195 Add gettid.
196 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
197 Likewise.
198 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
199 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
200 Likewise.
201 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
202 Likewise.
203 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
204 Likewise.
205 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
206 Likewise.
207 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
208 Likewise.
209 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
210 Likewise.
211 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
212 Likewise.
213 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
214 (GLIBC_2.30): Likewise.
215 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
216 (GLIBC_2.30): Likewise.
217 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
218 (GLIBC_2.30): Likewise.
219 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
220 (GLIBC_2.30): Likewise.
221 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
222 Likewise.
223 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
224 (GLIBC_2.30): Likewise.
225 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
226 (GLIBC_2.30): Likewise.
227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
228 (GLIBC_2.30): Likewise.
229 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
230 (GLIBC_2.30): Likewise.
231 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
232 Likewise.
233 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
234 Likewise.
235 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
236 Likewise.
237 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
238 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
239 Likewise.
240 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
241 Likewise.
242 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
243 Likewise.
244 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
245 Likewise.
246 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
247
248 2019-02-07 Florian Weimer <fweimer@redhat.com>
249
250 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
251 compatibility symbols.
252
253 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
254
255 [BZ #24180]
256 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
257 Add compiler barriers and comments.
258
259 2019-02-07 Florian Weimer <fweimer@redhat.com>
260
261 * include/array_length.h (array_length): Do not use a statement
262 expression and _Static_assert, so that array_length can be used at
263 file scope and as a constant expression.
264
265 2019-02-07 Florian Weimer <fweimer@redhat.com>
266
267 * support/xdlfcn.h (xdlmopen): Declare.
268 * support/xdlmopen.c: New file.
269 * support/Makefile (libsupport-routines): Add xdlmopen.
270
271 2019-02-06 Joseph Myers <joseph@codesourcery.com>
272
273 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
274 before return type, without separate inline.
275 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
276 * elf/dl-tunables.h (tunable_is_name): Likewise.
277 * malloc/malloc.c (do_set_trim_threshold): Likewise.
278 (do_set_top_pad): Likewise.
279 (do_set_mmap_threshold): Likewise.
280 (do_set_mmaps_max): Likewise.
281 (do_set_mallopt_check): Likewise.
282 (do_set_perturb_byte): Likewise.
283 (do_set_arena_test): Likewise.
284 (do_set_arena_max): Likewise.
285 (do_set_tcache_max): Likewise.
286 (do_set_tcache_count): Likewise.
287 (do_set_tcache_unsorted_limit): Likewise.
288 * nis/nis_subr.c (count_dots): Likewise.
289 * nptl/allocatestack.c (advise_stack_range): Likewise.
290 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
291 (do_sin): Likewise.
292 (reduce_sincos): Likewise.
293 (do_sincos): Likewise.
294 * sysdeps/unix/sysv/linux/x86/elision-conf.c
295 (do_set_elision_enable): Likewise.
296 (TUNABLE_CALLBACK_FNDECL): Likewise.
297
298 2019-02-06 Florian Weimer <fweimer@redhat.com>
299
300 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
301 (xdlsym): Use dlerror to detect a NULL symbol.
302
303 2019-02-06 Florian Weimer <fweimer@redhat.com>
304
305 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
306 <stap-probe.h>.
307 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
308
309 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
310
311 * libio/tst-bz24153.c (wide): Use wide char format specifier.
312
313 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
314
315 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
316 __wmemcmp and weak alias to wmemcmp.
317
318 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
319
320 [BZ #23403]
321 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
322 TLS_TCB_AT_TP tls variant.
323 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
324 Add alignment checks.
325 * support/Makefile (libsupport-routines): Add xposix_memalign and
326 xpthread_setstack.
327 * support/support.h: Add xposix_memalign.
328 * support/xthread.h: Add xpthread_attr_setstack.
329 * support/xposix_memalign.c: New File.
330 * support/xpthread_attr_setstack.c: Likewise.
331
332 2019-02-05 Florian Weimer <fweimer@redhat.com>
333
334 [BZ #24164]
335 arm: Use "nr" constraint for Systemtap probes, to avoid the
336 compiler using memory operands for constants, due to the "o"
337 alternative in the default "nor" constraint.
338 * include/stap-probe.h [USE_STAP_PROBE]: Include
339 <stap-probe-machine.h>
340 * sysdeps/generic/stap-probe-machine.h: New file.
341 * sysdeps/arm/stap-probe-machine.h: Likewise.
342
343 2019-02-04 Joseph Myers <joseph@codesourcery.com>
344
345 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
346 with 0, not tcache->entries[tc_idx].
347
348 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
349 once.
350
351 2019-02-04 Andreas Schwab <schwab@suse.de>
352
353 [BZ #16976]
354 [BZ #17396]
355 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
356 looking up collating elements match against (wide) character
357 sequence instead of name. Correct alignment adjustment.
358 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
359 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
360 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
361 (LOCALES): Add cs_CZ.ISO-8859-2.
362 * posix/tst-fnmatch4.c: New file.
363 * posix/tst-fnmatch5.c: New file.
364 * include/wchar.h (__wmemcmp): Declare.
365 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
366 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
367 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
368 * sysdeps/s390/wmemcmp.c: Likewise.
369
370 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
371
372 [BZ #24155]
373 CVE-2019-7309
374 * NEWS: Updated for CVE-2019-7309.
375 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
376 upper 32 bits of RDX register for x32. Use unsigned Jcc
377 instructions, instead of signed.
378 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
379 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
380
381 2019-02-04 Florian Weimer <fweimer@redhat.com>
382
383 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
384 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
385 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
386 Likewise.
387 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
388 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
389 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
390 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
391 Likewise.
392 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
393 Likewise.
394 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
395 Likewise.
396 (posix_spawn_file_actions_addopen): Likewise.
397 (posix_spawn_file_actions_addclose): Likewise.
398 (posix_spawn_file_actions_adddup2): Likewise.
399 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
400 qualifiers.
401 (posix_spawn_file_actions_addfchdir_np): Likewise.
402
403 2019-02-04 David Newall <glibc@davidnewall.com>
404
405 elf: Implement --preload option for the dynamic linker.
406 * elf/rtld.c (preloadarg): New variable.
407 (handle_preload_list): Pass through “where” argument to
408 do_preload.
409 (dl_main): Handle "--preload" and add second call to
410 handle_preload_list.
411 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
412 (tst-rtld-preload-OBJS): Set variable.
413 (tst-rtld-preload.out): New target.
414 * elf/tst-rtld-preload.sh: New file.
415
416 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
417
418 * Makefile (testrun.sh): Exit in case of incorrect argument.
419
420 2019-02-04 Florian Weimer <fweimer@redhat.com>
421
422 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
423 alignment gaps.
424
425 2019-02-03 Florian Weimer <fweimer@redhat.com>
426
427 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
428 implicit overflow checks.
429
430 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
431
432 * stdlib/isomac.c: Include <unistd.h>.
433
434 2019-02-03 Florian Weimer <fweimer@redhat.com>
435
436 * include/time.h (__tzfile_default): Use int, not long int, for
437 the GMT offsets.
438 * time/tzfile.c (struct ttinfo): Change type of the offset member
439 to int.
440 (__tzfile_read): Remove useless cast.
441 (__tzfile_default): Adjust prototype.
442 * time/tzset.c (tz_rule): Change type of the offset member to int.
443 (parse_offset): Change the type of the sign variable to int.
444
445 2019-02-03 Florian Weimer <fweimer@redhat.com>
446
447 [BZ #24153]
448 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
449 * libio/getchar.c (getchar): Likewise.
450 * libio/getchar_u.c (getchar_unlocked): Likewise.
451 * libio/getwchar.c (getwchar): Likewise.
452 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
453 * libio/iogets.c (_IO_gets): Likewise.
454 * libio/vscanf.c (_IO_vscanf): Likewise.
455 * libio/vwscanf.c (__vwscanf): Likewise.
456 * libio/tst-bz24153.c: New file.
457 * libio/Makefile (tests): Add it.
458
459 2019-02-02 Florian Weimer <fweimer@redhat.com>
460
461 [BZ #14829]
462 * manual/resource.texi (Basic Scheduling Functions): Add
463 portability note. Change process to task throughout the section.
464 Remove incorrect comment about sched_yield as it affects
465 tasks/threads, not entire processes.
466 * sysdeps/unix/sysv/linux/bits/posix_opt.h
467 (_POSIX_PRIORITY_SCHEDULING): Update comment.
468
469 2019-02-01 Joseph Myers <joseph@codesourcery.com>
470
471 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
472 * configure: Regenerated.
473 * manual/install.texi (Tools for Compilation): Update minimum GCC
474 version.
475 * INSTALL: Regenerated.
476
477 2019-02-01 Florian Weimer <fweimer@redhat.com>
478
479 * support/support_test_compare_string.c
480 (support_test_compare_string): Use "string" in error message.
481 * support/tst-test_compare_string.c (do_test): Adjust.
482
483 2019-02-01 Florian Weimer <fweimer@redhat.com>
484
485 * support/support_format_address_family.c
486 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
487
488 2019-02-01 Florian Weimer <fweimer@redhat.com>
489
490 * manual/socket.texi (Internet Address Formats): Clarify the byte
491 order of struct sockaddr_in, struct sockaddr_in6. Document
492 sin6_flowinfo and sin6_scope_id.
493
494 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
495
496 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
497 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
498 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
499 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
500 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
501 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
502
503 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
504
505 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
506 [!MEMCHR](MEMCHR): Set to __memchr.
507 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
508 Add memchr_generic and memchr_nosimd.
509 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
510 (__libc_ifunc_impl_list): Add memchr ifuncs.
511 * sysdeps/aarch64/multiarch/memchr.c: New file.
512 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
513 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
514
515 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
516
517 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
518 Add memset_emag.
519 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
520 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
521 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
522 Add IS_EMAG check for ifunc dispatch.
523 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
524 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
525
526 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
527
528 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
529 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
530 Add emag.
531 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
532 New macro.
533
534 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
535
536 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
537
538 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
539
540 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
541 syscall-template file.
542
543 2019-01-31 Carlos O'Donell <carlos@redhat.com>
544 Torvald Riegel <triegel@redhat.com>
545 Rik Prohaska <prohaska7@gmail.com>
546
547 [BZ# 23844]
548 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
549 tst-rwlock-trywrlock-stall.
550 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
551 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
552 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
553 Set __wrphase_fute to 1 only if we started the write phase.
554 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
555 * nptl/tst-rwlock-trywrlock-stall.c: New file.
556 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
557 * support/xpthread_rwlock_destroy.c: New file.
558 * support/xthread.h: Declare xpthread_rwlock_destroy.
559
560 2019-02-01 Joseph Myers <joseph@codesourcery.com>
561
562 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
563 version to 4.0.2.
564
565 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
566
567 [BZ #24051]
568 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
569 * libio/fileops.c (_IO_new_file_underflow): Likewise
570 * libio/wfileops.c (_IO_wfile_underflow): Likewise
571 * libio/putchar.c (putchar): Likewise.
572 * libio/putchar_u.c (putchar_unlocked): Likewise.
573 * libio/putwchar.c (putchar): Likewise.
574 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
575 * libio/tst-bz24051.c: New test.
576 * libio/Makefile (tests): Add tst-bz24051
577
578 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
579
580 regex: fix read overrun [BZ #24114]
581 Problem found by AddressSanitizer, reported by Hongxu Chen in:
582 https://debbugs.gnu.org/34140
583 * posix/regexec.c (proceed_next_node):
584 Do not read past end of input buffer.
585
586 2019-01-31 Florian Weimer <fweimer@redhat.com>
587
588 [BZ #24059]
589 * nss/nss_files/files-alias.c (get_next_alias): Handle
590 continuation line without newline at the end.
591 * nss/tst-nss-files-alias-truncated.c: New file.
592 * nss/Makefile [$(build-shared)] (tests): Add
593 tst-nss-files-alias-truncated.
594 (tst-nss-files-alias-truncated): Link with libnss_files.so.
595 * support/namespace.h (struct support_chroot_configuration): Add
596 aliases member.
597 (struct support_chroot): Add path_aliases member.
598 * support/support_chroot.c (support_chroot_create): Handle
599 aliases.
600 (support_chroot_free): Free path_aliases.
601
602 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
603
604 * version.h (RELEASE): Set to "development".
605 (VERSION): Set to "2.29.9000".
606 * NEWS: Add section for 2.30.
607
608 * version.h (RELEASE): Set to "stable".
609 (VERSION): Set to "2.29".
610 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
611
612 * NEWS: Add the list of bugs fixed in 2.29.
613 * manual/contrib.texi: Update contributors list with some more
614 names.
615 * manual/install.texi: Update latest versions of packages
616 tested.
617 * INSTALL: Regenerated.
618
619 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
620
621 * po/be.po: Update translations.
622 * po/bg.po: Likewise.
623 * po/ca.po: Likewise.
624 * po/cs.po: Likewise.
625 * po/da.po: Likewise.
626 * po/de.po: Likewise.
627 * po/el.po: Likewise.
628 * po/eo.po: Likewise.
629 * po/es.po: Likewise.
630 * po/fi.po: Likewise.
631 * po/fr.po: Likewise.
632 * po/gl.po: Likewise.
633 * po/hr.po: Likewise.
634 * po/hu.po: Likewise.
635 * po/ia.po: Likewise.
636 * po/id.po: Likewise.
637 * po/it.po: Likewise.
638 * po/ja.po: Likewise.
639 * po/ko.po: Likewise.
640 * po/lt.po: Likewise.
641 * po/nb.po: Likewise.
642 * po/nl.po: Likewise.
643 * po/pl.po: Likewise.
644 * po/pt_BR.po: Likewise.
645 * po/ru.po: Likewise.
646 * po/rw.po: Likewise.
647 * po/sk.po: Likewise.
648 * po/sl.po: Likewise.
649 * po/sv.po: Likewise.
650 * po/tr.po: Likewise.
651 * po/uk.po: Likewise.
652 * po/vi.po: Likewise.
653 * po/zh_CN.po: Likewise.
654 * po/zh_TW.po: Likewise.
655
656 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
657
658 [BZ #24130]
659 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
660 of $f3 register on $y_is_neg path.
661
662 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
663
664 [BZ #24110]
665 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
666 sigaltstack.ss_flags.
667
668 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
669
670 [BZ #23758]
671 * manual/time.texi (strftime): Document "%Ey".
672 * time/strftime_l.c (__strftime_internal): Set the default width
673 padding with zero of "%Ey" to 2.
674
675 [BZ #24096]
676 * manual/time.texi (strftime): Document "%EC" and "%EY".
677 * time/Makefile (tests): Add tst-strftime2.
678 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
679 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
680 override padding for "%Ey".
681 If an optional flag ('_' or '-') is specified to "%EY", interpret the
682 "%Ey" in the subformat as if decorated with that flag.
683 * time/tst-strftime2.c: New file.
684
685 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
686
687 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
688 are not defined.
689
690 [BZ #24122]
691 * elf/Makefile (tests): Add tst-audit13.
692 (modules-names): Add tst-audit13mod1.
693 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
694 rule.
695 * elf/rtld.c (dl_main): Handle invalid audit module version.
696 * elf/tst-audit13.c: New file.
697 * elf/tst-audit13mod1.c: Likewise.
698
699 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
700
701 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
702 returned by __hurd_at_flags.
703 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
704 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
705 directly instead of __hurd_file_name_lookup.
706
707 2019-01-21 Joseph Myers <joseph@codesourcery.com>
708
709 * scripts/build-many-glibcs.py (Context.checkout): Default
710 binutils version to 2.32 branch.
711
712 2019-01-21 Florian Weimer <fweimer@redhat.com>
713
714 [BZ #20018]
715 CVE-2016-10739
716 resolv: Reject trailing characters in host names
717 * include/arpa/inet.h (__inet_aton_exact): Declare.
718 (inet_aton): Remove hidden prototype. No longer used internally.
719 * nscd/gai.c (__inet_aton): Do not define.
720 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
721 * nss/digits_dots.c (__inet_aton): Likewise.
722 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
723 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
724 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
725 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
726 (tst-resolv-trailing): Likewise.
727 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
728 libc.
729 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
730 Make static. Add endp parameter.
731 (__inet_aton_exact): New function.
732 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
733 (__inet_addr): Call inet_aton_end.
734 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
735 not just IPv6. Call __inet_aton_exact.
736 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
737 (tests): Make const. Add additional test cases with trailing
738 characters.
739 (do_test): Use array_length.
740 * resolv/tst-inet_aton_exact.c: New file.
741 * resolv/tst-resolv-trailing.c: Likewise.
742 * resolv/tst-resolv-nondecimal.c: Likewise.
743 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
744
745 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
746
747 [BZ# 24097]
748 CVE-2019-6488
749 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
750 Clear the upper 32 bits of RSI register.
751 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
752 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
753 and tst-size_t-wcsnlen.
754 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
755 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
756
757 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
758
759 [BZ# 24097]
760 CVE-2019-6488
761 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
762 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
763 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
764 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
765 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
766
767 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
768
769 [BZ# 24097]
770 CVE-2019-6488
771 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
772 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
773 * sysdeps/x86_64/strcmp.S: Likewise.
774 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
775 tst-size_t-strncmp and tst-size_t-wcsncmp.
776 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
777 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
778 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
779
780 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
781
782 [BZ# 24097]
783 CVE-2019-6488
784 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
785 RDX_LP for length. Clear the upper 32 bits of RDX register.
786 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
787 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
788 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
789 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
790
791 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
792
793 [BZ# 24097]
794 CVE-2019-6488
795 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
796 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
797 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
798 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
799
800 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
801
802 [BZ# 24097]
803 CVE-2019-6488
804 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
805 length. Clear the upper 32 bits of RDX register.
806 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
807 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
808 Likewise.
809 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
810 Likewise.
811 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
812 tst-size_t-wmemchr.
813 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
814
815 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
816
817 [BZ# 24097]
818 CVE-2019-6488
819 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
820 length. Clear the upper 32 bits of RDX register.
821 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
822 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
823 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
824 tst-size_t-wmemcmp.
825 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
826 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
827
828 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
829
830 [BZ# 24097]
831 CVE-2019-6488
832 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
833 upper 32 bits of RDX register.
834 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
835 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
836 tst-size_t-wmemchr.
837 * sysdeps/x86_64/x32/test-size_t.h: New file.
838 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
839 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
840
841 2019-01-18 Florian Weimer <fweimer@redhat.com>
842
843 [BZ #24112]
844 resolv: Do not send queries for non-host-names in nss_dns.
845 * resolv/nss_dns/dns-host.c (check_name): New function.
846 (_nss_dns_gethostbyname2_r): Use it.
847 (_nss_dns_gethostbyname_r): Likewise.
848 (_nss_dns_gethostbyname4_r): Likewise.
849
850 2019-01-21 Florian Weimer <fweimer@redhat.com>
851
852 * resolv/inet_addr.c: Reformat to GNU style.
853 (__inet_addr, __inet_aton): Update comment.
854
855 2019-01-18 Florian Weimer <fweimer@redhat.com>
856
857 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
858 ("malloc: Use current (C11-style) atomics for fastbin access").
859 This commit introduces a substantial performance regression on
860 POWER and Aarch64.
861 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
862 (REMOVE_FB): Define.
863 (_int_malloc): Use it and reindent.
864 (_int_free): Use CAS loop with
865 catomic_compare_and_exchange_val_rel.
866 (malloc_consolidate): Use atomic_exchange_acq.
867
868
869 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
870
871 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
872 -Wl,-z,now.
873 (LDFLAGS-tst-minsigstksz-2): Likewise.
874 (LDFLAGS-tst-minsigstksz-3): Likewise.
875 (LDFLAGS-tst-minsigstksz-3a): Likewise.
876 (LDFLAGS-tst-minsigstksz-4): Likewise.
877
878 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
879
880 * manual/time.texi (strftime): Fix the wording to "alternative" rather
881 than "alternate".
882
883 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
884
885 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
886
887 2019-01-16 Zack Weinberg <zackw@panix.com>
888
889 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
890 (xget_sigstack_location): New test support functions.
891 * support/xsigstack.c: New file, implementing them.
892 * support/tst-xsigstack.c: New test for them.
893 * support/Makefile: Update.
894
895 * signal/tst-minsigstksz-1.c
896 * signal/tst-minsigstksz-2.c
897 * signal/tst-minsigstksz-3.c
898 * signal/tst-minsigstksz-3a.c
899 * signal/tst-minsigstksz-4.c: New tests.
900 * signal/Makefile: Run them.
901
902 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
903
904 * po/libc.pot: Regenerate.
905
906 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
907
908 * math/libm-test-fma.inc (fma_test_data): Set
909 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
910
911 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
912
913 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
914 (do_test): Changed __vector __int128_t to __vector unsigned int.
915
916 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
917
918 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
919 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
920 stpcpy-avx2 and stpncpy-avx2.
921 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
922 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
923 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
924 and __stpncpy_avx2.
925 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
926 ifunc-strcpy.h}: rename header for a more generic name.
927 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
928 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
929 AVX unaligned load is fast and vzeroupper is preferred.
930 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
931 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
932 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
933 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
934 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
935 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
936
937 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
938
939 * argp/argp-help.c: Fix typo in comment.
940 * misc/sys/cdefs.h: Likewise.
941 * posix/regexec.c (sift_states_iter_mb): Likewise.
942 * socket/sockatmark.c: Likewise.
943 * socket/sys/socket.h: Likewise.
944 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
945 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
946 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
947 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
948 * sysdeps/unix/sockatmark.c: Likewise.
949 * time/strptime_l.c: Likewise.
950
951 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
952
953 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
954 missing space after the cast of "_NL_CURRENT".
955
956 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
957
958 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
959 ifdef to fix read of VSCR.
960 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
961 tst-ucontext-ppc64-vscr.c to test list.
962 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
963
964 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
965
966 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
967 fall-through.
968
969 2019-01-09 Jim Wilson <jimw@sifive.com>
970
971 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
972
973 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
974
975 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
976 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
977 __memcpy_falkor for ares.
978 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
979 Add new define.
980 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
981 Add ares cpu.
982
983 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
984
985 [BZ #24066]
986 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
987 4_FP_W_TYPEs are used for IEEE quad precision.
988 * soft-fp/extendhftf2.c: Likewise.
989 * soft-fp/extendsftf2.c: Likewise.
990 * soft-fp/extendxftf2.c: Likewise.
991 * soft-fp/trunctfdf2.c: Likewise.
992 * soft-fp/trunctfhf2.c: Likewise.
993 * soft-fp/trunctfsf2.c: Likewise.
994 * soft-fp/trunctfxf2.c: Likewise.
995 * sysdeps/alpha/ots_cvttx.c: Likewise.
996 * sysdeps/alpha/ots_cvtxt.c: Likewise.
997 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
998 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
999 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1000 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1001 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1002 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1003 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1004 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1005 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1006 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1007 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1008 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1009 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1010 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1011 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1012 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1013
1014 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1015
1016 [BZ #24024]
1017 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1018 code with -fmath-errno.
1019 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1020 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1021 * string/test-strerror-errno.c: New file.
1022
1023 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1024
1025 [BZ #24046]
1026 * localedata/locales/en_US (date_fmt): Add, set to
1027 "%a %d %b %Y %r %Z".
1028
1029 2019-01-07 Florian Weimer <fweimer@redhat.com>
1030
1031 [BZ #24063]
1032 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1033 instead of @var{errno}.
1034 (Parsing of Integers): Likewise.
1035 (Parsing of Floats): Likewise.
1036 * manual/filesys.texi (Working with Directory Trees): Likewise.
1037 (Temporary Files): Likewise.
1038 * manual/job.texi (Terminal Access Functions): Likewise.
1039 * manual/llio.texi (Synchronizing I/O): Likewise.
1040 * manual/math.texi (SVID Random): Likewise.
1041 * manual/message.texi (The catgets Functions): Likewise.
1042 (Translation with gettext): Likewise.
1043 (Locating gettext catalog): Likewise.
1044 (Charset conversion in gettext): Likewise.
1045 * manual/nss.texi (NSS Module Function Internals): Likewise.
1046 * manual/search.texi (Hash Search Function): Likewise.
1047 * manual/setjmp.texi (System V contexts): Likewise.
1048 * manual/time.texi (Sleeping): Likewise.
1049 * manual/users.texi (Lookup User): Likewise.
1050 (Lookup Group): Likewise.
1051
1052 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1053
1054 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1055 fix typo.
1056
1057 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1058
1059 [BZ #19444]
1060 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1061 __builtin_unreachable for default case in switch.
1062 (__ieee754_yn): Likewise.
1063 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1064 (__ieee754_ynl): Likewise.
1065 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1066 (__ieee754_ynl): Likewise.
1067 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1068 (__ieee754_ynl): Likewise.
1069
1070 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1071
1072 * manual/maint.texi: Use @{ and @}.
1073
1074 2019-01-04 Florian Weimer <fweimer@redhat.com>
1075
1076 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1077 function.
1078 (do_in_chroot_1): Call it.
1079 (run_chroot_tests):
1080 Improve error reporting in case it is not possible to create a
1081 collision for the PTY name required by the test.
1082
1083 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1084
1085 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1086 lll_wait_tid with timeout.
1087 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1088 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1089 futex_reltimed_wait_cancelable for cancelabla mode.
1090 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1091 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1092 macros.
1093 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1094 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1095 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1096 SYSCALL_CANCEL_NCS): New macro.
1097 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1098 (lll_timedwait_tid): Remove macro.
1099 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1100 Likewise.
1101 (lll_timedwait_tid): Likewise.
1102 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1103 Likewise.
1104 (lll_timedwait_tid): Likewise.
1105 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1106 Likewise.
1107 (lll_timedwait_tid): Likewise.
1108 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1109 Use INTERNAL_SYSCALL_CANCEL.
1110 * sysdeps/unix/sysv/linux/futex-internal.h
1111 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1112 instead of __pthread_{enable,disable}_asynccancel.
1113 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1114 (lll_futex_wait_cancel): New macro.
1115
1116 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1117 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1118
1119 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1120 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1121
1122 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1123 in backtrace analysis.
1124 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1125 side-effects.
1126 (tf_send): Likewise.
1127
1128 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1129 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1130 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1131 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1132 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1133 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1134 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1135 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1136 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1137 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1138 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1139 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1140 Likewise.
1141 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1142 tst-cancel-wrappers.sh.
1143 (generated): Remove tst-cancel-wrappers.out.
1144 (tst-cancel-wrappers.out): Remove rule.
1145 * nptl/tst-cancel-wrappers.sh: Remove file.
1146
1147 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1148
1149 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1150 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1151 Update.
1152
1153 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1154
1155 [BZ #23640]
1156 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1157 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1158 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1159 close-on-exec reset for adddup2 file action.
1160 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1161
1162 2019-01-03 Zack Weinberg <zackw@panix.com>
1163
1164 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1165 parameter. Only use deprecated scanf when __USE_GNU is defined
1166 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1167 than 201103L, whichever is relevant for the language being compiled.
1168
1169 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1170 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1171 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1172 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1173 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1174
1175 * libio/iovsscanf.c
1176 * libio/fwscanf.c
1177 * libio/iovswscanf.c
1178 * libio/swscanf.c
1179 * libio/vscanf.c
1180 * libio/vwscanf.c
1181 * libio/wscanf.c
1182 * stdio-common/fscanf.c
1183 * stdio-common/scanf.c
1184 * stdio-common/vfscanf.c
1185 * stdio-common/vfwscanf.c
1186 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1187 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1188 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1189 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1190 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1191 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1192 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1193 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1194 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1195 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1196 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1197 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1198 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1199 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1200 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1201
1202 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1203 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1204 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1205 not sscanf.
1206 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1207 with a preprocessor macro.
1208
1209 * stdio-common/bug21.c, stdio-common/scanf14.c:
1210 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1211 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1212 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1213 to xscanf, xfscanf, xsscanf.
1214
1215 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1216 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1217 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1218 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1219 xfscanf, xsscanf.
1220 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1221 override feature selection macros or provide definitions of u_char etc.
1222 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1223 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1224 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1225 with -std=gnu89.
1226
1227 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1228
1229 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1230 bits/termios-misc.h.
1231 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1232 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1233 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1234 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1235 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1236 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1237
1238 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1239 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1240 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1241 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1242 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1243 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1244 termios-misc.h.
1245 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1246 (sysdep_headers): Add termios-misc.h.
1247
1248 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1249 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1250 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1251
1252 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1253 termios-tcflow.h.
1254 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1255 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1256 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1257 TCSAFLUSH): Move to termios-tcflow.h.
1258 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1259 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1260 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1261 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1262
1263 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1264 termios-c_lflag.h.
1265 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1266 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1267 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1268 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1269 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1270 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1271 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1272 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1273 Likewise.
1274 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1275 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1276 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1277 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1278
1279 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1280 termios-c_cflag.h.
1281 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1282 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1283 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1284 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1285 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1286 termios-c_cflag.h.
1287 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1288 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1289 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1290 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1291
1292 [BZ #23783]
1293 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1294 termios-baud.h.
1295 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1296 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1297 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1298 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1299 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1300 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1301 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1302 __MAX_BAUD): Move to termios-baud.h.
1303 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1304 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1305 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1306 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1307 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1308
1309 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1310 termios-c_oflag.h.
1311 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1312 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1313 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1314 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1315 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1316 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1317 termios-c_oflag.h.
1318 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1319 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1320 FFR1): Likewise.
1321 [USE_MISC] (XTABS): Likewise.
1322 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1323 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1324 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1325 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1326
1327 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1328 termios-c_iflag.h.
1329 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1330 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1331 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1332 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1333 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1334 IUTF8): Move to termios-c_iflag.h.
1335 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1336 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1337 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1338 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1339
1340 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1341 termios-cc.h.
1342 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1343 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1344 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1345 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1346 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1347 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1348 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1349 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1350 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1351 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1352 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1353 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1354
1355 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1356 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1357 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1358 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1359 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1360 termios-struct.h.
1361 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1362 termios-struct.h.
1363 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1364 Likewise.
1365 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1366 Likewise.
1367 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1368 Likewise.
1369 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1370 Likewise.
1371 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1372 _HAVE_C_OSPEED): Define.
1373 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1374 _HAVE_C_OSPEED): Likewise.
1375 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1376 _HAVE_C_OSPEED): Likewise.
1377 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1378 (cfsetospeed): Check for define value instead of existence.
1379 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1380 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1381 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1382 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1383 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1384
1385 [BZ #17783]
1386 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1387 Define.
1388 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1389 (TIOCSER_TEMT): Likewise.
1390 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1391 (TEOCSER_TEMT): Likewise.
1392
1393 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1394
1395 [BZ #24011]
1396 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1397
1398 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1399
1400 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1401
1402 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1403
1404 * sysdeps/htl/pt-barrierattr-setpshared.c
1405 (pthread_barrierattr_setpshared): Add stub warning.
1406 * sysdeps/htl/pt-condattr-setpshared.c
1407 (pthread_condattr_setpshared): Likewise.
1408 * sysdeps/htl/pt-mutexattr-setpshared.c
1409 (pthread_mutexattr_setpshared): Likewise.
1410 * sysdeps/htl/pt-rwlockattr-setpshared.c
1411 (pthread_rwlockattr_setpshared): Likewise.
1412 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1413 (pthread_mutexattr_setpshared): Likewise.
1414
1415 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1416
1417 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1418 constants to match with Linux 4.20.
1419
1420 * sysdeps/mips/mips32/libm-test-ulps: Update.
1421 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1422
1423 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1424
1425 [BZ #24034]
1426 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1427 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1428 than __typeof (...) for the a_ptr variable.
1429
1430 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1431
1432 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1433 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1434 * libio/Makefile (tests): Add tst-sprintf-ub and
1435 tst-sprintf-chk-ub.
1436 (CFLAGS-tst-sprintf-ub.c): New variable.
1437 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1438 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1439 destination buffer and check for overflows in fortified mode.
1440 * libio/libioP.h (PRINTF_CHK): New macro.
1441 * libio/tst-sprintf-chk-ub.c: New file.
1442 * libio/tst-sprintf-ub.c: Likewise.
1443
1444 2019-01-02 Florian Weimer <fweimer@redhat.com>
1445
1446 [BZ #24018]
1447 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1448 failure.
1449
1450 2019-01-02 Florian Weimer <fweimer@redhat.com>
1451
1452 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1453
1454 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1455
1456 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1457 macro.
1458
1459 * sysdeps/unix/sysv/linux/netpacket/packet.h
1460 (PACKET_IGNORE_OUTGOING): New macro.
1461
1462 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1463 macro.
1464
1465 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1466 version to 4.20.
1467 (riscv_flush_icache): New syscall.
1468
1469 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1470 trailing whitespace removed.
1471 * scripts/config.guess: Update to version 2019-01-01.
1472 * scripts/config.sub: Update to version 2019-01-01.
1473 * scripts/move-if-change: Update from gnulib.
1474
1475 * NEWS: Update copyright dates.
1476 * catgets/gencat.c (print_version): Likewise.
1477 * csu/version.c (banner): Likewise.
1478 * debug/catchsegv.sh: Likewise.
1479 * debug/pcprofiledump.c (print_version): Likewise.
1480 * debug/xtrace.sh (do_version): Likewise.
1481 * elf/ldconfig.c (print_version): Likewise.
1482 * elf/ldd.bash.in: Likewise.
1483 * elf/pldd.c (print_version): Likewise.
1484 * elf/sotruss.sh: Likewise.
1485 * elf/sprof.c (print_version): Likewise.
1486 * iconv/iconv_prog.c (print_version): Likewise.
1487 * iconv/iconvconfig.c (print_version): Likewise.
1488 * locale/programs/locale.c (print_version): Likewise.
1489 * locale/programs/localedef.c (print_version): Likewise.
1490 * login/programs/pt_chown.c (print_version): Likewise.
1491 * malloc/memusage.sh (do_version): Likewise.
1492 * malloc/memusagestat.c (print_version): Likewise.
1493 * malloc/mtrace.pl: Likewise.
1494 * manual/libc.texinfo: Likewise.
1495 * nptl/version.c (banner): Likewise.
1496 * nscd/nscd.c (print_version): Likewise.
1497 * nss/getent.c (print_version): Likewise.
1498 * nss/makedb.c (print_version): Likewise.
1499 * posix/getconf.c (main): Likewise.
1500 * scripts/test-installation.pl: Likewise.
1501 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1502
1503 * All files with FSF copyright notices: Update copyright dates
1504 using scripts/update-copyrights.
1505 * locale/programs/charmap-kw.h: Regenerated.
1506 * locale/programs/locfile-kw.h: Likewise.
1507
1508 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1509
1510 * timezone/zdump.c: Update from tzcode 2018i.
1511 * timezone/zic.c: Likewise.
1512
1513 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1514
1515 regex: improve Gnulib port to AIX
1516 From the glibc point of view, this removes duplicate macro
1517 definitions and is obviously safe.
1518 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1519 * posix/regex_internal.h:
1520 (__attribute__, __attribute_warn_unused_result__):
1521 Remove; already defined elsewhere.
1522
1523 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1524
1525 [BZ #24027]
1526 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1527 copying operation. (ncopies had the wrong type, resulting in an
1528 integer wraparound and too few elements being copied.)
1529
1530 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1531
1532 [BZ #24022]
1533 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1534 <asm/syscalls.h> exists with __has_include__ before including it.
1535
1536 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1537
1538 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1539 version to 4.20.
1540
1541 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1542
1543 * hurd/lookup-retry: Include <unistd.h>.
1544 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1545 Release it on return. Handle "pid" magical lookup retry.
1546
1547 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1548
1549 [BZ #10496]
1550 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1551 (t_fmt_ampm): Likewise.
1552 * localedata/locales/aa_ER (t_fmt): Likewise.
1553 (t_fmt_ampm): Likewise.
1554 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1555 (t_fmt_ampm): Likewise.
1556 * localedata/locales/aa_ET (t_fmt): Likewise.
1557 (t_fmt_ampm): Likewise.
1558 * localedata/locales/am_ET (t_fmt): Likewise.
1559 (t_fmt_ampm): Likewise.
1560 * localedata/locales/byn_ER (t_fmt): Likewise.
1561 (t_fmt_ampm): Likewise.
1562 * localedata/locales/om_ET (t_fmt): Likewise.
1563 (t_fmt_ampm): Likewise.
1564 * localedata/locales/sid_ET (t_fmt): Likewise.
1565 (t_fmt_ampm): Likewise.
1566 * localedata/locales/so_DJ (t_fmt): Likewise.
1567 (t_fmt_ampm): Likewise.
1568 * localedata/locales/so_ET (t_fmt): Likewise.
1569 (t_fmt_ampm): Likewise.
1570 * localedata/locales/so_SO (t_fmt): Likewise.
1571 (t_fmt_ampm): Likewise.
1572 * localedata/locales/ti_ER (t_fmt): Likewise.
1573 (t_fmt_ampm): Likewise.
1574 * localedata/locales/ti_ET (t_fmt): Likewise.
1575 (t_fmt_ampm): Likewise.
1576 * localedata/locales/tig_ER (t_fmt): Likewise.
1577 (t_fmt_ampm): Likewise.
1578 * localedata/locales/wal_ET (t_fmt): Likewise.
1579 (t_fmt_ampm): Likewise.
1580
1581 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1582 * localedata/locales/ar_IN (t_fmt): Likewise.
1583 * localedata/locales/bhb_IN (t_fmt): Likewise.
1584 * localedata/locales/bho_IN (t_fmt): Likewise.
1585 * localedata/locales/bi_VU (t_fmt): Likewise.
1586 * localedata/locales/bn_BD (t_fmt): Likewise.
1587 * localedata/locales/bn_IN (t_fmt): Likewise.
1588 * localedata/locales/brx_IN (t_fmt): Likewise.
1589 * localedata/locales/doi_IN (t_fmt): Likewise.
1590 * localedata/locales/en_HK (t_fmt): Likewise.
1591 (t_fmt_ampm): Likewise.
1592 * localedata/locales/en_IN (t_fmt): Likewise.
1593 * localedata/locales/en_PH (t_fmt): Likewise.
1594 * localedata/locales/gu_IN (t_fmt): Likewise.
1595 * localedata/locales/hi_IN (t_fmt): Likewise.
1596 * localedata/locales/hif_FJ (t_fmt): Likewise.
1597 * localedata/locales/hne_IN (t_fmt): Likewise.
1598 * localedata/locales/kn_IN (t_fmt): Likewise.
1599 * localedata/locales/kok_IN (t_fmt): Likewise.
1600 * localedata/locales/ks_IN (t_fmt): Likewise.
1601 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1602 * localedata/locales/mag_IN (t_fmt): Likewise.
1603 * localedata/locales/mai_IN (t_fmt): Likewise.
1604 * localedata/locales/mjw_IN (t_fmt): Likewise.
1605 * localedata/locales/ml_IN (t_fmt): Likewise.
1606 * localedata/locales/mni_IN (t_fmt): Likewise.
1607 * localedata/locales/mr_IN (t_fmt): Likewise.
1608 * localedata/locales/ms_MY (t_fmt): Likewise.
1609 * localedata/locales/pa_IN (t_fmt): Likewise.
1610 * localedata/locales/raj_IN (t_fmt): Likewise.
1611 * localedata/locales/sa_IN (t_fmt): Likewise.
1612 * localedata/locales/sat_IN (t_fmt): Likewise.
1613 * localedata/locales/sd_IN (t_fmt): Likewise.
1614 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1615 * localedata/locales/tcy_IN (t_fmt): Likewise.
1616 * localedata/locales/the_NP (t_fmt): Likewise.
1617 * localedata/locales/to_TO (t_fmt): Likewise.
1618 * localedata/locales/ur_IN (t_fmt): Likewise.
1619
1620 * localedata/locales/hif_FJ (d_t_fmt): Set to
1621 "%A %d %b %Y %I:%M:%S %p".
1622 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1623
1624 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1625 * localedata/locales/ar_BH (t_fmt): Likewise.
1626 * localedata/locales/ar_DZ (t_fmt): Likewise.
1627 * localedata/locales/ar_EG (t_fmt): Likewise.
1628 * localedata/locales/ar_IQ (t_fmt): Likewise.
1629 * localedata/locales/ar_JO (t_fmt): Likewise.
1630 * localedata/locales/ar_KW (t_fmt): Likewise.
1631 * localedata/locales/ar_LB (t_fmt): Likewise.
1632 * localedata/locales/ar_LY (t_fmt): Likewise.
1633 * localedata/locales/ar_OM (t_fmt): Likewise.
1634 * localedata/locales/ar_QA (t_fmt): Likewise.
1635 * localedata/locales/ar_SD (t_fmt): Likewise.
1636 * localedata/locales/ar_SS (t_fmt): Likewise.
1637 * localedata/locales/ar_SY (t_fmt): Likewise.
1638 * localedata/locales/ar_TN (t_fmt): Likewise.
1639 * localedata/locales/ar_YE (t_fmt): Likewise.
1640
1641 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1642 (t_fmt_ampm): Likewise.
1643 * localedata/locales/gez_ET (t_fmt): Likewise.
1644 (t_fmt_ampm): Likewise.
1645
1646 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1647 (t_fmt_ampm): Likewise.
1648 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1649
1650 * localedata/locales/zh_HK (t_fmt):
1651 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1652
1653 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1654 because this locale does not use the 12-hour clock.
1655 (t_fmt): Set to "%Z %H:%M:%S".
1656 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1657
1658 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1659 because this locale does not use the 12-hour clock.
1660 (t_fmt): Set to "%H:%M:%S %Z".
1661 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1662
1663 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1664 because this locale does not use the 12-hour clock.
1665 (t_fmt): Set to "%T".
1666 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1667 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1668
1669 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1670 because this locale does not use the 12-hour clock.
1671 (t_fmt): Set to "%H:%M:%S %Z".
1672 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1673
1674 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1675 because this locale does not use the 12-hour clock.
1676 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1677 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1678
1679 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1680
1681 [BZ #10496]
1682 [BZ #23724]
1683 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1684 (t_fmt_ampm): Likewise.
1685 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1686 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1687 (d_fmt): Set to "%-d.%-m.%y".
1688
1689 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1690
1691 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1692 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1693 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1694 Likewise.
1695 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1696 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1697 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1698 function.
1699 * support/blob_repeat.c (check_mul_overflow_size_t,
1700 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1701
1702 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1703
1704 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1705
1706 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1707
1708 regex: simplify Gnulib port
1709 This simplifies the code, by removing stuff intended for porting
1710 to Gnulib but no longer needed there.
1711 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1712 uses of libc_hidden_def, weak_alias.
1713 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1714 _Restrict_ except for public-facing headers.
1715 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1716 Remove; already defined elsewhere.
1717 * posix/regex.c, posix/regex_internal.h:
1718 Use __GNUC_PREREQ instead of rolling our own.
1719 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1720
1721 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1722
1723 * benchtests/bench-strlen.c (generic_strlen): New function.
1724 (memchr_strlen): New function.
1725
1726 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1727
1728 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1729 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1730 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1731
1732 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1733
1734 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1735
1736 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1737
1738 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1739 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1740 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1741 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1742 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1743 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1744 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1745
1746 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1747
1748 [BZ #24023]
1749 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1750 PLT reference in libc.so.
1751 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1752 _Q_lltoq and _Q_qtod PLT references in libc.so.
1753
1754 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1755
1756 * benchtests/bench-memchr.c: Cleanup defines.
1757 * benchtests/bench-memcmp.c: Likewise.
1758 * benchtests/bench-memset.c: Likewise.
1759 * benchtests/bench-memset-large.c: Likewise.
1760 * benchtests/bench-memset-walk.c: Likewise.
1761 * benchtests/bench-stpcpy.c: Likewise.
1762 * benchtests/bench-stpncpy.c: Likewise.
1763 * benchtests/bench-strcat.c: Likewise.
1764 * benchtests/bench-strchr.c: Likewise.
1765 * benchtests/bench-strcmp.c: Likewise.
1766 * benchtests/bench-strcpy.c: Likewise.
1767 * benchtests/bench-strcspn.c: Likewise.
1768 * benchtests/bench-string.h: Likewise.
1769 * benchtests/bench-strlen.c: Likewise.
1770 * benchtests/bench-strncat.c: Likewise.
1771 * benchtests/bench-strncmp.c: Likewise.
1772 * benchtests/bench-strncpy.c: Likewise.
1773 * benchtests/bench-strnlen.c: Likewise.
1774 * benchtests/bench-strpbrk.c: Likewise.
1775 * benchtests/bench-strrchr.c: Likewise.
1776 * benchtests/bench-strspn.c: Likewise.
1777
1778 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1779
1780 * stdlib/longlong.h: Update from GCC.
1781
1782 [BZ #23993]
1783 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1784 * configure: Regenerated.
1785 * manual/install.texi (Tools for Compilation): Update minimum GCC
1786 version.
1787 * INSTALL: Regenerated.
1788
1789 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1790
1791 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1792
1793 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1794
1795 * malloc/malloc.c (mremap_chunk): Additional checks.
1796
1797 2018-12-21 Mao Han <han_mao@c-sky.com>
1798
1799 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1800 * scripts/build-many-glibcs.py: Add C-SKY targets.
1801 * sysdeps/csky/Implies: New file.
1802 * sysdeps/csky/Makefile: Likewise.
1803 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1804 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1805 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1806 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1807 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1808 * sysdeps/csky/abiv2/memmove.S: Likewise.
1809 * sysdeps/csky/abiv2/memset.S: Likewise.
1810 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1811 * sysdeps/csky/abiv2/start.S: Likewise.
1812 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1813 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1814 * sysdeps/csky/abiv2/strlen.S: Likewise.
1815 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1816 * sysdeps/csky/abort-instr.h: Likewise.
1817 * sysdeps/csky/atomic-machine.h: Likewise.
1818 * sysdeps/csky/bits/endian.h: Likewise.
1819 * sysdeps/csky/bits/fenv.h: Likewise.
1820 * sysdeps/csky/bits/link.h: Likewise.
1821 * sysdeps/csky/bits/setjmp.h: Likewise.
1822 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1823 * sysdeps/csky/bsd-setjmp.S: Likewise.
1824 * sysdeps/csky/configure: Likewise.
1825 * sysdeps/csky/configure.ac: Likewise.
1826 * sysdeps/csky/dl-machine.h: Likewise.
1827 * sysdeps/csky/dl-procinfo.c: Likewise.
1828 * sysdeps/csky/dl-procinfo.h: Likewise.
1829 * sysdeps/csky/dl-sysdep.h: Likewise.
1830 * sysdeps/csky/dl-tls.h: Likewise.
1831 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1832 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1833 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
1834 * sysdeps/csky/fpu/fegetenv.c: Likewise.
1835 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
1836 * sysdeps/csky/fpu/fegetmode.c: Likewise.
1837 * sysdeps/csky/fpu/fegetround.c: Likewise.
1838 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
1839 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
1840 * sysdeps/csky/fpu/fenv_private.h: Likewise.
1841 * sysdeps/csky/fpu/fesetenv.c: Likewise.
1842 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
1843 * sysdeps/csky/fpu/fesetmode.c: Likewise.
1844 * sysdeps/csky/fpu/fesetround.c: Likewise.
1845 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
1846 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
1847 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
1848 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
1849 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
1850 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
1851 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
1852 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
1853 * sysdeps/csky/fpu_control.h: Likewise.
1854 * sysdeps/csky/gccframe.h: Likewise.
1855 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
1856 * sysdeps/csky/ldsodefs.h: Likewise.
1857 * sysdeps/csky/libc-tls.c: Likewise.
1858 * sysdeps/csky/linkmap.h: Likewise.
1859 * sysdeps/csky/machine-gmon.h: Likewise.
1860 * sysdeps/csky/memusage.h: Likewise.
1861 * sysdeps/csky/nofpu/Implies: Likewise.
1862 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
1863 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
1864 * sysdeps/csky/nptl/Makefile: Likewise.
1865 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
1866 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
1867 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
1868 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
1869 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
1870 * sysdeps/csky/nptl/tls.h: Likewise.
1871 * sysdeps/csky/preconfigure: Likewise.
1872 * sysdeps/csky/sfp-machine.h: Likewise.
1873 * sysdeps/csky/sotruss-lib.c: Likewise.
1874 * sysdeps/csky/stackinfo.h: Likewise.
1875 * sysdeps/csky/sysdep.h: Likewise.
1876 * sysdeps/csky/tininess.h: Likewise.
1877 * sysdeps/csky/tst-audit.h: Likewise.
1878 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
1879 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
1880 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
1881 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
1882 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1883 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
1884 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1885 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
1886 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
1887 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
1888 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
1889 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
1890 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
1891 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
1892 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
1893 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
1894 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
1895 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
1896 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
1897 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
1898 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
1899 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
1900 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
1901 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1902 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
1903 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
1904 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1905 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
1906 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
1907 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
1908 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
1909 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
1910 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
1911 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
1912 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
1913 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
1914 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
1915 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
1916 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
1917 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
1918 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
1919 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
1920 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
1921 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
1922
1923 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
1924
1925 * include/time.h (__difftime64): Add.
1926 * time/difftime.c (subtract): convert to 64-bit time.
1927 * time/difftime.c (__difftime64): Add.
1928 * time/difftime.c (__difftime): Wrap around __difftime64.
1929
1930 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
1931
1932 * manual/examples/add.c: Remove redundant "if not".
1933 * manual/examples/argp-ex1.c: Likewise.
1934 * manual/examples/argp-ex2.c: Likewise.
1935 * manual/examples/argp-ex3.c: Likewise.
1936 * manual/examples/argp-ex4.c: Likewise.
1937 * manual/examples/atexit.c: Likewise.
1938 * manual/examples/db.c: Likewise.
1939 * manual/examples/dir.c: Likewise.
1940 * manual/examples/dir2.c: Likewise.
1941 * manual/examples/execinfo.c: Likewise.
1942 * manual/examples/filecli.c: Likewise.
1943 * manual/examples/filesrv.c: Likewise.
1944 * manual/examples/fmtmsgexpl.c: Likewise.
1945 * manual/examples/genpass.c: Likewise.
1946 * manual/examples/inetcli.c: Likewise.
1947 * manual/examples/inetsrv.c: Likewise.
1948 * manual/examples/isockad.c: Likewise.
1949 * manual/examples/longopt.c: Likewise.
1950 * manual/examples/memopen.c: Likewise.
1951 * manual/examples/memstrm.c: Likewise.
1952 * manual/examples/mkdirent.c: Likewise.
1953 * manual/examples/mkfsock.c: Likewise.
1954 * manual/examples/mkisock.c: Likewise.
1955 * manual/examples/mygetpass.c: Likewise.
1956 * manual/examples/pipe.c: Likewise.
1957 * manual/examples/popen.c: Likewise.
1958 * manual/examples/rprintf.c: Likewise.
1959 * manual/examples/search.c: Likewise.
1960 * manual/examples/select.c: Likewise.
1961 * manual/examples/setjmp.c: Likewise.
1962 * manual/examples/sigh1.c: Likewise.
1963 * manual/examples/sigusr.c: Likewise.
1964 * manual/examples/stpcpy.c: Likewise.
1965 * manual/examples/strdupa.c: Likewise.
1966 * manual/examples/strftim.c: Likewise.
1967 * manual/examples/subopt.c: Likewise.
1968 * manual/examples/swapcontext.c: Likewise.
1969 * manual/examples/termios.c: Likewise.
1970 * manual/examples/testopt.c: Likewise.
1971 * manual/examples/testpass.c: Likewise.
1972 * manual/examples/timeval_subtract.c: Likewise.
1973
1974 2018-12-19 Joseph Myers <joseph@codesourcery.com>
1975
1976 * sysdeps/x86/fpu/math_private.h: New file.
1977 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
1978
1979 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
1980 definition.
1981 (cosh): Likewise.
1982 (tanh): Likewise.
1983
1984 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1985
1986 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
1987 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
1988 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
1989 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
1990 fields.
1991 (_dl_show_auxv): Give a special treatment to
1992 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
1993 and AT_L3_CACHEGEOMETRY.
1994 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
1995 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
1996 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
1997 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
1998
1999 2018-12-19 Andreas Schwab <schwab@suse.de>
2000
2001 * nscd/connections.c (check_use): Don't abort on invalid len.
2002
2003 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2004
2005 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2006 values in the 64bit value cases.
2007
2008 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2009
2010 * include/time.h
2011 (__ctime64_r): Add.
2012 * time/ctime_r.c
2013 (__ctime64_r): Add.
2014 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2015
2016 * include/time.h
2017 (__ctime64): Add.
2018 * time/gmtime.c
2019 (__ctime64): Add.
2020 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2021
2022 * include/time.h
2023 (__gmtime64_r): Add.
2024 * time/gmtime.c
2025 (__gmtime64_r): Add.
2026 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2027
2028 * include/time.h
2029 (__gmtime64): Add.
2030 * time/gmtime.c
2031 (__gmtime64): Add.
2032 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2033
2034 * include/time.h
2035 (__localtime64_r): Add.
2036 * time/localtime.c
2037 (__localtime64_r): Add.
2038 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2039
2040 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2041
2042 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2043 kernel_sigction definition.
2044
2045 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2046
2047 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2048
2049 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2050 __syscall_rt_sigaction.
2051 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2052 (kernel_sigaction): Use Linux generic defintion.
2053 (STUB): Define.
2054 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2055 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2056 (__syscall_rt_sigaction): Remove implementation.
2057 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2058 hidden.
2059 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2060 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2061 INTERNAL_SYSCALL): Remove definitions.
2062 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2063 action and signal set size.
2064 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2065 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2066
2067 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2068 James Clarke <jrtc27@jrtc27.com>
2069
2070 [BZ #23967]
2071 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2072 Define if SA_RESTORER is defined.
2073 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2074 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2075 already defined.
2076 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2077 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2078 definitions.
2079 (HAS_SA_RESTORER): Define.
2080 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2081 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2082 (HAS_SA_RESTORER): Define.
2083 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2084 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2085 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2086 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2087 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2088
2089 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2090
2091 * sysdeps/unix/sysv/linux/kernel-features.h
2092 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2093 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2094 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2095 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2096 (__ASSUME_ST_INO_64_BIT): Likewise.
2097 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2098 <kernel-features.h>.
2099 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2100 Remove conditional code.
2101 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2102 <kernel-features.h>.
2103 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2104 Remove conditional code.
2105 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2106 <kernel-features.h>.
2107 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2108 Remove conditional code.
2109 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2110 <kernel-features.h>.
2111 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2112 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2113
2114 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2115
2116 * sysdeps/s390/multiarch/ifunc-resolve.h
2117 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2118 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2119 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2120 Delete macro definition.
2121 (s390_libc_ifunc_init): Rename to
2122 s390_libc_ifunc_expr_stfle_init.
2123 * sysdeps/s390/bzero: Use
2124 s390_libc_ifunc_expr_stfle_init instead of
2125 s390_libc_ifunc_init.
2126 * sysdeps/s390/memcmp.c: Likewise.
2127 * sysdeps/s390/memcpy.c: Likewise.
2128 * sysdeps/s390/mempcpy.c: Likewise.
2129 * sysdeps/s390/memset.c: Likewise.
2130
2131 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2132
2133 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2134 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2135
2136 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2137
2138 * sysdeps/s390/multiarch/Makefile
2139 (sysdep_routines): Remove wmemcmp variants.
2140 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2141 * sysdeps/s390/multiarch/ifunc-impl-list.c
2142 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2143 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2144 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2145 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2146 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2147 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2148 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2149 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2150
2151 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2152
2153 * sysdeps/s390/multiarch/Makefile
2154 (sysdep_routines): Remove wmemset variants.
2155 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2156 * sysdeps/s390/multiarch/ifunc-impl-list.c
2157 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2158 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2159 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2160 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2161 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2162 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2163 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2164 * sysdeps/s390/ifunc-wmemset.h: New file.
2165
2166 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2167
2168 * sysdeps/s390/multiarch/Makefile
2169 (sysdep_routines): Remove wmemchr variants.
2170 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2171 * sysdeps/s390/multiarch/ifunc-impl-list.c
2172 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2173 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2174 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2175 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2176 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2177 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2178 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2179 * sysdeps/s390/ifunc-wmemchr.h: New file.
2180
2181 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2182
2183 * sysdeps/s390/multiarch/Makefile
2184 (sysdep_routines): Remove wcscspn variants.
2185 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2186 * sysdeps/s390/multiarch/ifunc-impl-list.c
2187 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2188 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2189 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2190 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2191 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2192 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2193 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2194 * sysdeps/s390/ifunc-wcscspn.h: New file.
2195
2196 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2197
2198 * sysdeps/s390/multiarch/Makefile
2199 (sysdep_routines): Remove wcspbrk variants.
2200 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2201 * sysdeps/s390/multiarch/ifunc-impl-list.c
2202 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2203 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2204 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2205 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2206 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2207 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2208 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2209 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2210
2211 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2212
2213 * sysdeps/s390/multiarch/Makefile
2214 (sysdep_routines): Remove wcsspn variants.
2215 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2216 * sysdeps/s390/multiarch/ifunc-impl-list.c
2217 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2218 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2219 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2220 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2221 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2222 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2223 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2224 * sysdeps/s390/ifunc-wcsspn.h: New file.
2225
2226 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2227
2228 * sysdeps/s390/multiarch/Makefile
2229 (sysdep_routines): Remove wcsrchr variants.
2230 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2231 * sysdeps/s390/multiarch/ifunc-impl-list.c
2232 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2233 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2234 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2235 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2236 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2237 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2238 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2239 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2240
2241 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2242
2243 * sysdeps/s390/multiarch/Makefile
2244 (sysdep_routines): Remove wcschrnul variants.
2245 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2246 * sysdeps/s390/multiarch/ifunc-impl-list.c
2247 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2248 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2249 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2250 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2251 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2252 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2253 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2254 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2255
2256 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2257
2258 * sysdeps/s390/multiarch/Makefile
2259 (sysdep_routines): Remove wcschr variants.
2260 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2261 * sysdeps/s390/multiarch/ifunc-impl-list.c
2262 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2263 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2264 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2265 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2266 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2267 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2268 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2269 * sysdeps/s390/ifunc-wcschr.h: New file.
2270
2271 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2272
2273 * sysdeps/s390/multiarch/Makefile
2274 (sysdep_routines): Remove wcsncmp variants.
2275 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2276 * sysdeps/s390/multiarch/ifunc-impl-list.c
2277 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2278 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2279 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2280 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2281 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2282 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2283 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2284 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2285
2286 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2287
2288 * sysdeps/s390/multiarch/Makefile
2289 (sysdep_routines): Remove wcscmp variants.
2290 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2291 * sysdeps/s390/multiarch/ifunc-impl-list.c
2292 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2293 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2294 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2295 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2296 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2297 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2298 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2299 * sysdeps/s390/ifunc-wcscmp.h: New file.
2300
2301 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2302
2303 * sysdeps/s390/multiarch/Makefile
2304 (sysdep_routines): Remove wcsncat variants.
2305 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2306 * sysdeps/s390/multiarch/ifunc-impl-list.c
2307 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2308 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2309 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2310 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2311 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2312 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2313 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2314 * sysdeps/s390/ifunc-wcsncat.h: New file.
2315
2316 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2317
2318 * sysdeps/s390/multiarch/Makefile
2319 (sysdep_routines): Remove wcscat variants.
2320 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2321 * sysdeps/s390/multiarch/ifunc-impl-list.c
2322 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2323 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2324 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2325 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2326 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2327 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2328 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2329 * sysdeps/s390/ifunc-wcscat.h: New file.
2330
2331 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2332
2333 * sysdeps/s390/multiarch/Makefile
2334 (sysdep_routines): Remove wcpncpy variants.
2335 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2336 * sysdeps/s390/multiarch/ifunc-impl-list.c
2337 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2338 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2339 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2340 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2341 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2342 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2343 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2344 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2345
2346 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2347
2348 * sysdeps/s390/multiarch/Makefile
2349 (sysdep_routines): Remove wcsncpy variants.
2350 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2351 * sysdeps/s390/multiarch/ifunc-impl-list.c
2352 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2353 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2354 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2355 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2356 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2357 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2358 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2359 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2360
2361 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2362
2363 * sysdeps/s390/multiarch/Makefile
2364 (sysdep_routines): Remove wcpcpy variants.
2365 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2366 * sysdeps/s390/multiarch/ifunc-impl-list.c
2367 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2368 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2369 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2370 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2371 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2372 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2373 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2374 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2375
2376 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2377
2378 * sysdeps/s390/multiarch/Makefile
2379 (sysdep_routines): Remove wcscpy variants.
2380 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2381 * sysdeps/s390/multiarch/ifunc-impl-list.c
2382 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2383 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2384 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2385 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2386 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2387 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2388 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2389 * sysdeps/s390/ifunc-wcscpy.h: New file.
2390
2391 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2392
2393 * sysdeps/s390/multiarch/Makefile
2394 (sysdep_routines): Remove wcsnlen variants.
2395 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2396 * sysdeps/s390/multiarch/ifunc-impl-list.c
2397 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2398 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2399 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2400 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2401 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2402 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2403 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2404 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2405
2406 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2407
2408 * sysdeps/s390/multiarch/Makefile
2409 (sysdep_routines): Remove wcslen variants.
2410 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2411 * sysdeps/s390/multiarch/ifunc-impl-list.c
2412 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2413 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2414 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2415 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2416 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2417 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2418 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2419 * sysdeps/s390/ifunc-wcslen.h: New file.
2420
2421 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2422
2423 * sysdeps/s390/multiarch/Makefile
2424 (sysdep_routines): Remove memrchr variants.
2425 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2426 * sysdeps/s390/multiarch/ifunc-impl-list.c
2427 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2428 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2429 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2430 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2431 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2432 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2433 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2434 * sysdeps/s390/ifunc-memrchr.h: New file.
2435
2436 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2437
2438 * sysdeps/s390/multiarch/Makefile
2439 (sysdep_routines): Remove memccpy variants.
2440 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2441 * sysdeps/s390/multiarch/ifunc-impl-list.c
2442 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2443 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2444 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2445 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2446 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2447 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2448 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2449 * sysdeps/s390/ifunc-memccpy.h: New file.
2450
2451 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2452
2453 * sysdeps/s390/multiarch/Makefile
2454 (sysdep_routines): Remove rawmemchr variants.
2455 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2456 * sysdeps/s390/multiarch/ifunc-impl-list.c
2457 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2458 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2459 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2460 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2461 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2462 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2463 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2464 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2465
2466 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2467
2468 * sysdeps/s390/multiarch/Makefile
2469 (sysdep_routines): Remove memchr variants.
2470 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2471 * sysdeps/s390/multiarch/ifunc-impl-list.c
2472 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2473 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2474 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2475 * sysdeps/s390/multiarch/memchr.c: Move to ...
2476 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2477 * sysdeps/s390/ifunc-memchr.h: New file.
2478 * sysdeps/s390/s390-64/memchr.S: Move to ...
2479 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2480 for 31/64bit and ifunc handling.
2481 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2482 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2483 * sysdeps/s390/s390-32/memchr.S: Likewise.
2484
2485 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2486
2487 * sysdeps/s390/multiarch/Makefile
2488 (sysdep_routines): Remove strcspn variants.
2489 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2490 * sysdeps/s390/multiarch/ifunc-impl-list.c
2491 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2492 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2493 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2494 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2495 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2496 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2497 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2498 * sysdeps/s390/ifunc-strcspn.h: New file.
2499
2500 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2501
2502 * sysdeps/s390/multiarch/Makefile
2503 (sysdep_routines): Remove strpbrk variants.
2504 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2505 * sysdeps/s390/multiarch/ifunc-impl-list.c
2506 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2507 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2508 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2509 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2510 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2511 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2512 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2513 * sysdeps/s390/ifunc-strpbrk.h: New file.
2514
2515 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2516
2517 * sysdeps/s390/multiarch/Makefile
2518 (sysdep_routines): Remove strspn variants.
2519 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2520 * sysdeps/s390/multiarch/ifunc-impl-list.c
2521 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2522 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2523 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2524 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2525 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2526 * sysdeps/s390/multiarch/strspn.c: Move to ...
2527 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2528 * sysdeps/s390/ifunc-strspn.h: New file.
2529
2530 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2531
2532 * sysdeps/s390/multiarch/Makefile
2533 (sysdep_routines): Remove strrchr variants.
2534 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2535 * sysdeps/s390/multiarch/ifunc-impl-list.c
2536 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2537 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2538 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2539 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2540 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2541 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2542 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2543 * sysdeps/s390/ifunc-strrchr.h: New file.
2544
2545 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2546
2547 * sysdeps/s390/multiarch/Makefile
2548 (sysdep_routines): Remove strchrnul variants.
2549 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2550 * sysdeps/s390/multiarch/ifunc-impl-list.c
2551 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2552 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2553 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2554 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2555 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2556 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2557 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2558 * sysdeps/s390/ifunc-strchrnul.h: New file.
2559
2560 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2561
2562 * sysdeps/s390/multiarch/Makefile
2563 (sysdep_routines): Remove strchr variants.
2564 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2565 * sysdeps/s390/multiarch/ifunc-impl-list.c
2566 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2567 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2568 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2569 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2570 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2571 * sysdeps/s390/multiarch/strchr.c: Move to ...
2572 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2573 * sysdeps/s390/ifunc-strchr.h: New file.
2574
2575 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2576
2577 * sysdeps/s390/multiarch/Makefile
2578 (sysdep_routines): Remove strncmp variants.
2579 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2580 * sysdeps/s390/multiarch/ifunc-impl-list.c
2581 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2582 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2583 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2584 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2585 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2586 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2587 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2588 * sysdeps/s390/ifunc-strncmp.h: New file.
2589
2590 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2591
2592 * sysdeps/s390/multiarch/Makefile
2593 (sysdep_routines): Remove strcmp variants.
2594 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2595 * sysdeps/s390/multiarch/ifunc-impl-list.c
2596 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2597 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2598 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2599 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2600 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2601 * sysdeps/s390/ifunc-strcmp.h: New file.
2602 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2603 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2604 for 31/64bit and ifunc handling.
2605 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2606 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2607 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2608
2609 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2610
2611 * sysdeps/s390/multiarch/Makefile
2612 (sysdep_routines): Remove strncat variants.
2613 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2614 * sysdeps/s390/multiarch/ifunc-impl-list.c
2615 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2616 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2617 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2618 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2619 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2620 * sysdeps/s390/multiarch/strncat.c: Move to ...
2621 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2622 * sysdeps/s390/ifunc-strncat.h: New file.
2623
2624 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2625
2626 * sysdeps/s390/multiarch/Makefile
2627 (sysdep_routines): Remove strcat variants.
2628 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2629 * sysdeps/s390/multiarch/ifunc-impl-list.c
2630 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2631 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2632 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2633 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2634 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2635 * sysdeps/s390/multiarch/strcat.c: Move to ...
2636 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2637 * sysdeps/s390/ifunc-strcat.h: New file.
2638
2639 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2640
2641 * sysdeps/s390/multiarch/Makefile
2642 (sysdep_routines): Remove stpncpy variants.
2643 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2644 * sysdeps/s390/multiarch/ifunc-impl-list.c
2645 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2646 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2647 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2648 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2649 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2650 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2651 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2652 * sysdeps/s390/ifunc-stpncpy.h: New file.
2653
2654 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2655
2656 * sysdeps/s390/multiarch/Makefile
2657 (sysdep_routines): Remove strncpy variants.
2658 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2659 * sysdeps/s390/multiarch/ifunc-impl-list.c
2660 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2661 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2662 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2663 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2664 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2665 * sysdeps/s390/ifunc-strncpy.h: New file.
2666 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2667 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2668 and adjust ifunc handling.
2669 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2670 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2671 and adjust ifunc handling.
2672 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2673 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2674
2675 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2676
2677 * sysdeps/s390/multiarch/Makefile
2678 (sysdep_routines): Remove stpcpy variants.
2679 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2680 * sysdeps/s390/multiarch/ifunc-impl-list.c
2681 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2682 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2683 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2684 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2685 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2686 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2687 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2688 * sysdeps/s390/ifunc-stpcpy.h: New file.
2689
2690 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2691
2692 * sysdeps/s390/multiarch/Makefile
2693 (sysdep_routines): Remove strcpy variants.
2694 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2695 * sysdeps/s390/multiarch/ifunc-impl-list.c
2696 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2697 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2698 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2699 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2700 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2701 * sysdeps/s390/ifunc-strcpy.h: New file.
2702 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2703 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2704 for 31/64bit and ifunc handling.
2705 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2706 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2707 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2708
2709 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2710
2711 * sysdeps/s390/multiarch/Makefile
2712 (sysdep_routines): Remove strnlen variants.
2713 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2714 * sysdeps/s390/multiarch/ifunc-impl-list.c
2715 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2716 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2717 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2718 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2719 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2720 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2721 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2722 * sysdeps/s390/ifunc-strnlen.h: New file.
2723
2724 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2725
2726 * sysdeps/s390/multiarch/Makefile
2727 (sysdep_routines): Remove strlen variants.
2728 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2729 * sysdeps/s390/multiarch/ifunc-impl-list.c
2730 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2731 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2732 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2733 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2734 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2735 * sysdeps/s390/multiarch/strlen.c: Move to ...
2736 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2737 * sysdeps/s390/ifunc-strlen.h: New file.
2738
2739 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2740
2741 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2742 * sysdeps/s390/multiarch/ifunc-impl-list.c
2743 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2744 * sysdeps/s390/ifunc-memmem.h: New file.
2745 * sysdeps/s390/memmem.c: Likewise.
2746 * sysdeps/s390/memmem-c.c: Likewise.
2747 * sysdeps/s390/memmem-vx.c: Likewise.
2748
2749 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2750
2751 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2752 * sysdeps/s390/multiarch/ifunc-impl-list.c
2753 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2754 * sysdeps/s390/ifunc-strstr.h: New file.
2755 * sysdeps/s390/strstr.c: Likewise.
2756 * sysdeps/s390/strstr-c.c: Likewise.
2757 * sysdeps/s390/strstr-vx.c: Likewise.
2758
2759 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2760
2761 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2762 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2763 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2764 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2765 New defines.
2766 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2767 * sysdeps/s390/memmove-c.c: New file.
2768 * sysdeps/s390/memmove.c: Likewise.
2769 * sysdeps/s390/multiarch/ifunc-impl-list.c
2770 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2771
2772 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2773
2774 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2775 * sysdeps/s390/configure.ac: Add check for z13 support.
2776 * sysdeps/s390/configure: Regenerated.
2777
2778 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2779
2780 * sysdeps/s390/memcopy.h: New file.
2781
2782 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2783
2784 * sysdeps/s390/s390-32/bcopy.S: Remove.
2785 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2786
2787 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2788
2789 * sysdeps/s390/ifunc-memcpy.h: New File.
2790 * sysdeps/s390/memcpy.S: Move to ...
2791 * sysdeps/s390/memcpy-z900.S ... here.
2792 Move implementations from memcpy-s390x.s to here.
2793 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2794 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2795 Remove memcpy/mempcpy variants.
2796 * sysdeps/s390/Makefile (sysdep_routines):
2797 Add memcpy/mempcpy variants.
2798 * sysdeps/s390/multiarch/ifunc-impl-list.c
2799 (__libc_ifunc_impl_list): Adjust ifunc variants for
2800 memcpy and mempcpy.
2801 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2802 to ...
2803 * sysdeps/s390/memcpy.c: ... here.
2804 Adjust ifunc variants for memcpy.
2805 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2806 * sysdeps/s390/mempcpy.c: ... here.
2807 Adjust ifunc variants for mempcpy.
2808 * sysdeps/s390/mempcpy.S: Delete file.
2809
2810 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2811
2812 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2813 * sysdeps/s390/memcpy.S: ... here.
2814 Adjust to be usable for 31/64bit.
2815 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2816 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2817 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2818 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2819 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2820 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2821 Adjust to be usable for 31/64bit.
2822 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2823 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2824 * sysdeps/s390/multiarch/memcpy.c: ... here.
2825 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2826
2827 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2828
2829 * sysdeps/s390/ifunc-memcmp.h: New File.
2830 * sysdeps/s390/memcmp.S: Move to ...
2831 * sysdeps/s390/memcmp-z900.S ... here.
2832 Move implementations from memcmp-s390x.s to here.
2833 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
2834 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2835 Remove memcmp variants.
2836 * sysdeps/s390/Makefile (sysdep_routines):
2837 Add memcmp variants.
2838 * sysdeps/s390/multiarch/ifunc-impl-list.c
2839 (__libc_ifunc_impl_list): Adjust ifunc variants for
2840 memcmp.
2841 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
2842 to ...
2843 * sysdeps/s390/memcmp.c: ... here.
2844 Adjust ifunc variants for memcmp.
2845
2846 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2847
2848 * sysdeps/s390/s390-64/memcmp.S: Move to ...
2849 * sysdeps/s390/memcmp.S: ... here.
2850 Adjust to be usable for 31/64bit.
2851 * sysdeps/s390/s390-32/memcmp.S: Delete File.
2852 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
2853 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2854 Remove memcmp.
2855 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2856 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
2857 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
2858 Adjust to be usable for 31/64bit.
2859 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
2860 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
2861 * sysdeps/s390/multiarch/memcmp.c: ... here.
2862 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
2863
2864 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2865
2866 * sysdeps/s390/s390-32/bzero.S: Delete file.
2867 * sysdeps/s390/s390-64/bzero.S: Likewise.
2868 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
2869 * sysdeps/s390/bzero.c: New file.
2870 * sysdeps/s390/memset-z900.S: Add bzero entry points.
2871 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
2872 * sysdeps/s390/multiarch/ifunc-impl-list.c
2873 (__libc_ifunc_impl_list): Add bzero ifunc variants.
2874
2875 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2876
2877 * sysdeps/s390/ifunc-memset.h: New File.
2878 * sysdeps/s390/memset.S: Move to ...
2879 * sysdeps/s390/memset-z900.S ... here.
2880 Move implementations from memset-s390x.s to here.
2881 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
2882 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2883 Remove memset variants.
2884 * sysdeps/s390/Makefile (sysdep_routines):
2885 Add memset variants.
2886 * sysdeps/s390/multiarch/ifunc-impl-list.c
2887 (__libc_ifunc_impl_list): Adjust ifunc variants for
2888 memset.
2889 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
2890 to ...
2891 * sysdeps/s390/memset.c: ... here.
2892 Adjust ifunc variants for memset.
2893
2894 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2895
2896 * sysdeps/s390/s390-64/memset.S: Move to ...
2897 * sysdeps/s390/memset.S: ... here.
2898 Adjust to be usable for 31/64bit.
2899 * sysdeps/s390/s390-32/memset.S: Delete File.
2900 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
2901 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2902 Remove memset.
2903 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2904 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
2905 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
2906 Adjust to be usable for 31/64bit.
2907 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
2908 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
2909 * sysdeps/s390/multiarch/memset.c: ... here.
2910 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
2911
2912 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2913
2914 * sysdeps/s390/multiarch/ifunc-resolve.h
2915 (s390_libc_ifunc_init, s390_libc_ifunc,
2916 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
2917
2918 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2919
2920 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
2921 * sysdeps/s390/configure.ac: Add check for z10 support.
2922 * sysdeps/s390/configure: Regenerated.
2923
2924 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
2925
2926 * sysdeps/i386/atomic-machine.h: Merged with ...
2927 * sysdeps/x86_64/atomic-machine.h: To ...
2928 * sysdeps/x86/atomic-machine.h: This. New file.
2929
2930 2018-12-18 Florian Weimer <fweimer@redhat.com>
2931
2932 Rewrite locale/gen-translit.pl in Python.
2933 * locale/Makefile (generated): Add C-translit.h.
2934 (before-compile): Add $(objpfx)C-translit.h.
2935 (C-translit.h): Move to $(objpfx). Create target directory.
2936 Build using Python script.
2937 * locale/gen-translit.py: New file.
2938 * locale/gen-translit.pl: Remove file.
2939 * locale/C-translit.h.in: Change comment character to '#' for
2940 easier parsing without a C preprocessor.
2941 * locale/C-translit.h: Remove generated file.
2942 * manual/install.texi (Tools for Compilation): Do not mention
2943 C-translit.h.
2944 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
2945 Remove locale/C-translit.h.
2946 * scripts/update-copyrights: Likewise.
2947 * INSTALL: Regenerate.
2948
2949 2018-12-18 Florian Weimer <fweimer@redhat.com>
2950
2951 [BZ #23995]
2952 * localedata/locales/bi_VU: Remove executable bit from file.
2953
2954 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
2955
2956 * include/time.h
2957 (__localtime64): Add.
2958 * manual/maint.texi: Document Y2038 symbol handling.
2959 * time/localtime.c
2960 (__localtime64): Add.
2961 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
2962
2963 2018-12-17 Joseph Myers <joseph@codesourcery.com>
2964
2965 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
2966 Do not clobber r12.
2967
2968 * scripts/glibcextract.py (compare_macro_consts): Take parameters
2969 to allow extra macros from first or second sources.
2970 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
2971 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2972 (tests-special): Add $(objpfx)tst-mman-consts.out.
2973 ($(objpfx)tst-mman-consts.out): New makefile target.
2974
2975 2018-12-17 Mao Han <han_mao@c-sky.com>
2976
2977 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
2978 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
2979 without stat64 system call support.
2980 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
2981 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
2982 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
2983 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
2984 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
2985 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
2986 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
2987 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
2988 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
2989 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
2990 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
2991
2992 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
2993
2994 regex: fix storage-exhaustion error
2995 [BZ #18040]
2996 * posix/regexec.c (get_subexp):
2997 Do not continue if storage is exhausted.
2998
2999 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3000
3001 regex: fix heap-use-after-free error
3002 [BZ #18040]
3003 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3004 https://debbugs.gnu.org/32592
3005 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3006 call extend_buffers which reallocates the re_string_t internal buffer.
3007 Local variable 'buf' was not updated in such case, resulting in
3008 use-after-free.
3009 * posix/regexec.c (get_subexp): Update 'buf' after call to
3010 get_subexp_sub.
3011
3012 2018-12-15 Florian Weimer <fweimer@redhat.com>
3013
3014 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3015 (minimum_stride_size): Use it.
3016 (support_blob_repeat_allocate): Likewise.
3017
3018 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3019
3020 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3021 definition.
3022 (acosh): Likewise.
3023 (atanh): Likewise.
3024
3025 2018-12-14 Florian Weimer <fweimer@redhat.com>
3026
3027 * manual/process.texi (Process Creation Concepts): Remove
3028 documentation of process (ID) lifetime. List more process
3029 creation functions. Reference Process Identification section.
3030 (Process Identification): Add information about process ID
3031 lifetime. Describe Linux thread/task IDs.
3032 * manual/signal.texi (Signaling Another Process): Mention that the
3033 signal is always sent to the process.
3034
3035 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3036
3037 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3038 and tst-ldbl-efgcvt.
3039 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3040 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3041 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3042 (fcvt_tests, output_error, output_r_error, do_test): Use the
3043 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3044 select the type of floating-point variables and arguments; to
3045 produce extra tests for double and conversion specifiers for
3046 printf; and to set the names of called functions.
3047 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3048 in tst-efgcvt-template.c.
3049 * misc/tst-ldbl-efgcvt.c: Likewise.
3050
3051 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3052
3053 * nss/Makefile (tst-nss-test3.out): New rule.
3054
3055 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3056
3057 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3058 clobber sp.
3059
3060 2018-12-13 fanjinke <fanjinke@hygon.cn>
3061
3062 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3063 "HygonGenuine".
3064
3065 2018-12-13 Andreas Schwab <schwab@suse.de>
3066
3067 [BZ #23861]
3068 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3069 (__pthread_rwlock_rdlock_full): Update expected value for
3070 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3071 * nptl/tst-rwlock-pwn.c: New file.
3072 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3073
3074 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3075
3076 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3077 definition.
3078
3079 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3080
3081 * benchtests/scripts/compare_bench.py (do_compare): write to
3082 stderr in casestat is not present.
3083 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3084 stderr in case timings field is not present. Also string showing
3085 the output filename goes into the stderr.
3086
3087 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3088
3089 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3090 and ZeroDivisorError exceptions.
3091 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3092 argument to loop through user provided statistics.
3093 * benchtests/scripts/compare_bench.py (main): Include the --stats
3094 argument.
3095
3096 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3097
3098 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3099 instead of return.
3100
3101 2018-12-12 Florian Weimer <fweimer@redhat.com>
3102
3103 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3104 clause to copyright header.
3105
3106 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3107
3108 [BZ #23614]
3109 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3110 registers saved in the stack frame.
3111 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3112 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3113
3114 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3115
3116 * include/bits/monetary-ldbl.h: New file.
3117 * include/bits/printf-ldbl.h: Likewise.
3118 * include/bits/stdio-ldbl.h: Likewise.
3119 * include/bits/stdlib-ldbl.h: Likewise.
3120 * include/bits/syslog-ldbl.h: Likewise.
3121 * include/bits/wchar-ldbl.h: Likewise.
3122
3123 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3124
3125 * libio/libio.h: Remove redirection for _IO_vfprintf.
3126
3127 2018-12-11 Andreas Schwab <schwab@suse.de>
3128
3129 * Makerules: Remove all references to abilist-pattern.
3130 (update-all-abi): Simplify find expression.
3131
3132 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3133
3134 [BZ #23961]
3135 * math/auto-libm-test-in: Add new test case.
3136 * math/auto-libm-test-out-pow: Regenerated.
3137 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3138
3139 2018-12-10 DJ Delorie <dj@redhat.com>
3140
3141 [BZ #23948]
3142 * support/test-container.c: Move postclean step to before we
3143 change namespaces.
3144
3145 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3146
3147 * scripts/gen-as-const.py (main): Handle --python option.
3148 * scripts/gen-py-const.awk: Remove.
3149 * Makerules (py-const-script): Use gen-as-const.py.
3150 ($(py-const)): Likewise.
3151 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3152 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3153 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3154 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3155 ~PTHREAD_MUTEX_NO_ELISION_NP.
3156 * manual/README.pretty-printers: Update reference to
3157 gen-py-const.awk.
3158
3159 * scripts/glibcextract.py: New file.
3160 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3161 or tempfile. Import glibcexctract.
3162 (compute_c_consts): Remove. Moved to glibcextract.py.
3163 (gen_test): Update reference to compute_c_consts.
3164 (main): Likewise.
3165 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3166 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3167 * sysdeps/unix/sysv/linux/Makefile
3168 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3169 Redirect stderr as well as stdout.
3170
3171 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3172
3173 [BZ #19767]
3174 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3175 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3176 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3177 ALWAYS_USE_VSYSCALL.
3178 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3179 ALWAYS_USE_VSYSCALL.
3180 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3181 ALWAYS_USE_VSYSCALL.
3182
3183 2018-12-10 Florian Weimer <fweimer@redhat.com>
3184
3185 [BZ #23972]
3186 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3187 offset instead of count for clarity. Fix typo in comment.
3188 (__old_getdents64): Keep track of previous offset. Use it to call
3189 handle_overflow.
3190 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3191 that d_off is never zero.
3192
3193 2018-12-10 Andreas Schwab <schwab@suse.de>
3194
3195 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3196 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3197 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3198 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3199 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3200
3201 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3202
3203 * timezone/private.h: Update from tzcode 2018g.
3204 * timezone/tzfile.h: Likewise.
3205 * timezone/tzselect.ksh: Likewise.
3206 * timezone/zdump.c: Likewise.
3207 * timezone/zic.c: Likewise.
3208
3209 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3210
3211 [BZ #23490]
3212 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3213 (do_test): Adjust buffer size and fix format.
3214
3215 2018-12-07 DJ Delorie <dj@redhat.com>
3216
3217 [BZ #23907]
3218 * malloc/tst-tcfree3.c: New.
3219 * malloc/Makefile: Add it.
3220
3221 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3222
3223 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3224
3225 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3226
3227 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3228 used as a mask for the mode argument of __vfscanf_internal and
3229 __vfwscanf_internal.
3230 * stdio-common/vfscanf-internal.c
3231 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3232 (__strtof128_internal): Define to __wcstof128_internal.
3233 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3234 __strtof128_internal or __wcstof128_internal when the format of
3235 long double is the same as _Float128.
3236
3237 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3238
3239 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3240 * posix/confstr.c (confstr): Rename to __confstr.
3241 (__confstr): Add hidden def.
3242 (confstr): Add weak alias for __confstr.
3243 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3244 confstr.
3245
3246 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3247
3248 * NEWS: Mention getcpu.
3249 * include/sched.h (__getcpu): New libc_hidden_proto.
3250 * manual/resource.texi: Document getcpu.
3251 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3252 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3253 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3254 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3255 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3256 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3257 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3258 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3259 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3260 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3261 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3262 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3263 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3264 Likewise.
3265 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3266 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3267 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3268 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3269 Likewise.
3270 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3271 Likewise.
3272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3273 Likewise.
3274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3275 Likewise.
3276 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3277 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3278 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3279 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3280 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3281 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3282 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3283 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3284 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3285 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3286 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3287 Also check getcpu.
3288
3289 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3290
3291 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3292 functions.
3293 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3294
3295 2018-12-07 Florian Weimer <fweimer@redhat.com>
3296
3297 [BZ #17405]
3298 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3299 * posix/Versions (GLIBC_2.29): Export
3300 posix_spawn_file_actions_addfchdir_np.
3301 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3302 * posix/spawn_faction_destroy.c
3303 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3304 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3305 and the field action.fchdir_action.
3306 * posix/tst-spawn-chdir.c (add_chdir): New function.
3307 (do_test): Add do_fchdir loop. Call add_chdir.
3308 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3309 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3310 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3311 posix_spawn_file_actions_addfchdir_np.
3312 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3313 Likewise.
3314 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3315 Likewise.
3316 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3317 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3318 Likewise.
3319 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3320 Likewise.
3321 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3322 Likewise.
3323 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3324 Likewise.
3325 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3326 Likewise.
3327 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3328 Likewise.
3329 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3330 (GLIBC_2.29): Likewise.
3331 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3332 (GLIBC_2.29): Likewise.
3333 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3334 (GLIBC_2.29): Likewise.
3335 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3336 (GLIBC_2.29): Likewise.
3337 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3338 Likewise.
3339 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3340 (GLIBC_2.29): Likewise.
3341 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3342 (GLIBC_2.29): Likewise.
3343 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3344 (GLIBC_2.29): Likewise.
3345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3346 (GLIBC_2.29): Likewise.
3347 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3348 Likewise.
3349 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3350 Likewise.
3351 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3352 Likewise.
3353 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3354 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3355 Likewise.
3356 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3357 Likewise.
3358 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3359 Likewise.
3360 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3361 Likewise.
3362
3363 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3364
3365 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3366 trailing whitespace removed.
3367 * scripts/config.guess: Update to version 2018-11-28.
3368 * scripts/config.sub: Update to version 2018-11-28.
3369 * scripts/install-sh: Update to version 2018-03-11.20.
3370 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3371 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3372
3373 2018-12-07 Florian Weimer <fweimer@redhat.com>
3374
3375 [BZ #23927]
3376 CVE-2018-19591
3377 * inet/tst-if_index-long.c: New file.
3378 * inet/Makefile (tests): Add tst-if_index-long.
3379
3380 2018-12-07 Florian Weimer <fweimer@redhat.com>
3381
3382 * support/check.h (support_record_failure_is_failed): Declare.
3383 * support/descriptors.h: New file.
3384 * support/support_descriptors.c: Likewise.
3385 * support/tst-support_descriptors.c: Likewise.
3386 * support/support_record_failure.c
3387 (support_record_failure_is_failed): New function.
3388 * support/Makefile (libsupport-routines): Add support_descriptors.
3389 (tests): Add tst-support_descriptors.
3390
3391 2018-12-05 Zack Weinberg <zackw@panix.com>
3392 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3393
3394 * stdio-common/vfprintf-internal.c
3395 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3396 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3397 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3398 and __no_long_double.
3399 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3400 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3401 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3402 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3403 and __nldbl_*syslog* functions.
3404 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3405 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3406 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3407 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3408 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3409 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3410 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3411 (__nldbl_vwprintf, __nldbl_wprintf):
3412 Directly call the appropriate __v*printf_internal routine, passing
3413 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3414 variable names.
3415 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3416 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3417 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3418 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3419 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3420 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3421 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3422 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3423 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3424 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3425 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3426 (__nldbl_syslog, __nldbl_vsyslog):
3427 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3428 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3429 appropriate.
3430 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3431 appropriate.
3432
3433 2018-12-05 Zack Weinberg <zackw@panix.com>
3434 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3435
3436 [BZ #11319]
3437 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3438 Moved here from debug/vsprintf_chk.c.
3439 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3440 and completion logic for the strfile to match exactly what
3441 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3442 _IO_str_init_static_internal instead of maxlen-1.
3443 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3444 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3445 __vsprintf_internal.
3446
3447 * debug/vsprintf_chk.c (__vsprintf_chk)
3448 * debug/sprintf_chk.c (__sprintf_chk):
3449 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3450 'flags' argument is positive, and slen as maxlen. No need to lock
3451 the FILE and/or construct a temporary FILE. Minimize and normalize
3452 header inclusions and variable names. Do not libc_hidden_def anything.
3453
3454 * debug/asprintf_chk.c (__asprintf_chk)
3455 * debug/dprintf_chk.c (__dprintf_chk)
3456 * debug/fprintf_chk.c (__fprintf_chk)
3457 * debug/fwprintf_chk.c (__fwprintf_chk)
3458 * debug/printf_chk.c (__printf_chk)
3459 * debug/snprintf_chk.c (__snprintf_chk)
3460 * debug/swprintf_chk.c (__swprintf_chk)
3461 * debug/vasprintf_chk.c (__vasprintf_chk)
3462 * debug/vdprintf_chk.c (__vdprintf_chk)
3463 * debug/vfprintf_chk.c (__vfprintf_chk)
3464 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3465 * debug/vprintf_chk.c (__vprintf_chk)
3466 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3467 * debug/vswprintf_chk.c (__vswprintf_chk)
3468 * debug/vwprintf_chk.c (__vwprintf_chk)
3469 * debug/wprintf_chk.c (__wprintf_chk):
3470 Directly call the corresponding vxxprintf_internal function, passing
3471 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3472 the FILE and/or construct a temporary FILE. Minimize and normalize
3473 header inclusions and variable names. Do not libc_hidden_def anything.
3474
3475 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3476 __obstack_vprintf_internal.
3477 (__obstack_vprintf_chk): Convert into a wrapper that calls
3478 __obstack_vprintf_internal (these two functions already had the
3479 same code) and move to new file...
3480 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3481 file.
3482 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3483 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3484 * debug/Makefile (routines): Add vobprintf_chk.
3485
3486 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3487 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3488 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3489 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3490 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3491 (__nldbl___obstack_vfprintf_chk):
3492 Directly call the corresponding vxxprintf_internal function,
3493 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3494 duplicate comparison of slen with 0 or maxlen from the corresponding
3495 non-__nldbl function.
3496
3497 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3498 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3499 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3500 Remove libc_hidden_proto.
3501
3502 * stdio-common/vfprintf-internal.c
3503 (__vfprintf_internal, __vfwprintf_internal):
3504 Do not check _IO_FLAGS2_FORTIFY.
3505 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3506 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3507 a comment explaining why it has the maxlen argument.
3508 (_IO_acquire_lock_clear_flags2_fct): Remove.
3509 (_IO_acquire_lock_clear_flags2): Remove.
3510 (_IO_release_lock): Remove conditional statement which will
3511 now never execute.
3512 (_IO_acquire_lock): Remove variable which is now unused.
3513 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3514 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3515
3516 * stdio-common/Makefile (tests): Add tst-bz11319 and
3517 tst-bz11319-fortify2.
3518 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3519 * stdio-common/tst-bz11319-fortify2.c: New file.
3520 * stdio-common/tst-bz11319.c: Likewise.
3521
3522 2018-12-05 Zack Weinberg <zackw@panix.com>
3523 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3524
3525 * misc/syslog.c: Include libioP.h, not iolibio.h.
3526 (__vsyslog_internal): New function with the former body of
3527 __vsyslog_chk; takes mode_flags argument same as
3528 __v*printf_internal. Call __vfprintf_internal directly.
3529
3530 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3531 Remove libc_hidden_def.
3532 (__syslog, __syslog_chk): Use __vsyslog_internal.
3533 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3534
3535 * include/sys/syslog.h: Add multiple inclusion guard.
3536 Add prototype for __vsyslog_internal.
3537 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3538
3539 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3540 Use __vsyslog_internal.
3541
3542 2018-12-05 Zack Weinberg <zackw@panix.com>
3543 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3544
3545 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3546 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3547 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3548 New functions.
3549 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3550 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3551
3552 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3553 Include wctype.h here if COMPILE_WPRINTF is defined.
3554 Define __vfprintf_internal or __vfwprintf_internal, depending
3555 on COMPILE_WPRINTF.
3556 Temporarily, on entry to this function, update mode_flags
3557 according to the environmental settings corresponding to
3558 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3559 Throughout, check mode_flags instead of __ldbl_is_dbl and
3560 _IO_FLAGS2_FORTIFY on the destination FILE.
3561 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3562 Include vfprintf-internal.c. Don't include wctype.h.
3563 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3564 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3565 and vfprintf.
3566 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3567 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3568 and vfwprintf.
3569 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3570
3571 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3572 and add mode_flags argument; use __vfprintf_internal.
3573 (__vdprintf): New function. Alias vdprintf to this.
3574 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3575 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3576 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3577 (__obstack_printf): Use __obstack_printf_internal.
3578 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3579 public aliases __vsnprintf and vsnprintf.
3580 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3581 called internally.
3582 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3583 public aliases _IO_vsprintf and vsprintf.
3584 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3585 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3586 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3587 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3588 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3589
3590 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3591 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3592 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3593 * stdio-common/printf.c: Use __vfprintf_internal.
3594
3595 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3596 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3597 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3598
3599 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3600 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3601 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3602 __vfwprintf_internal.
3603
3604 * libio/libio.h: Remove libc_hidden_proto and declaration for
3605 _IO_vfprintf.
3606 Remove declaration of _IO_vfwprintf.
3607 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3608 _IO_vsprintf.
3609 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3610 _IO_obstack_printf.
3611 * include/stdio.h: Add prototype for __vasprintf.
3612 (__vsnprintf): Remove declaration, because there are no more
3613 internal calls.
3614 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3615 declaration, because there are no more internal calls.
3616
3617 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3618 __vsnprintf_internal, instead of _IO_vsnprintf.
3619 * argp/argp-help.c (__argp_error, __argp_failure): Use
3620 __vasprintf_internal, instead of _IO_vasprintf.
3621 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3622 redefine, because there are no more internal calls.
3623
3624 2018-12-05 Zack Weinberg <zackw@panix.com>
3625 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3626
3627 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3628 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3629 Include libio/strfile.h instead of libioP.h.
3630 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3631 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3632 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3633 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3634 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3635 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3636 necessary. Do not set __no_long_double. Normalize variable names.
3637 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3638 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3639 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3640 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3641 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3642 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3643 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3644 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3645 Do not set __no_long_double. Normalize variable names.
3646
3647 2018-12-05 Zack Weinberg <zackw@panix.com>
3648 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3649
3650 * stdio-common/isoc99_scanf.c
3651 * stdio-common/isoc99_fscanf.c
3652 * stdio-common/isoc99_sscanf.c
3653 * stdio-common/isoc99_vscanf.c
3654 * stdio-common/isoc99_vfscanf.c
3655 * stdio-common/isoc99_vsscanf.c
3656 * wcsmbs/isoc99_wscanf.c
3657 * wcsmbs/isoc99_fwscanf.c
3658 * wcsmbs/isoc99_swscanf.c
3659 * wcsmbs/isoc99_vwscanf.c
3660 * wcsmbs/isoc99_vfwscanf.c
3661 * wcsmbs/isoc99_vswscanf.c:
3662 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3663 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3664 No need to lock and unlock the FILE passed to that function.
3665
3666 * stdio-common/vfscanf-internal.c
3667 (__vfscanf_internal, __vfwscanf_internal):
3668 Don't look at _IO_FLAGS2_SCANF_STD.
3669 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3670 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3671 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3672
3673 2018-12-05 Zack Weinberg <zackw@panix.com>
3674 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3675
3676 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3677 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3678 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3679 * libio/strfile.h: Add multiple inclusion guard.
3680 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3681
3682 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3683 consistency with the other version of this file.
3684 (ldbl_compat_symbol): New macro.
3685 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3686 New macro.
3687
3688 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3689 Define __vfscanf_internal or __vfwscanf_internal, depending on
3690 COMPILE_WSCANF; don't define any other public symbols.
3691 Remove errval and code to set errp.
3692 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3693 as the mode_flags argument.
3694 (encode_error, conv_error, input_error): Don't set errval.
3695 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3696 Include vfscanf-internal.c.
3697 * stdio-common/vfscanf.c: New file defining the public entry
3698 point vfscanf, which calls __vfscanf_internal.
3699 * stdio-common/vfwscanf.c: New file defining the public entry
3700 point vfwscanf, which calls __vfwscanf_internal.
3701
3702 * stdio-common/iovfscanf.c: New file.
3703 * stdio-common/iovfwscanf.c: Likewise.
3704
3705 * stdio-common/Makefile (routines): Add vfscanf-internal,
3706 vfwscanf-internal, iovfscanf, iovfwscanf.
3707 * stdio-common/Versions: Mention GLIBC_2.29, so that
3708 it can be used in SHLIB_COMPAT expressions.
3709 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3710 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3711 Call __vfscanf_internal, instead of _IO_vfscanf.
3712 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3713 _IO_vfscanf.
3714 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3715 _IO_vfwscanf.
3716
3717 * libio/iovsscanf.c: Clean up includes, when possible. Use
3718 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3719 __vfscanf_internal or __vfwscanf_internal directly.
3720 * libio/iovswscanf.c: Likewise.
3721 * libio/swscanf.c: Likewise.
3722 * libio/vscanf.c: Likewise.
3723 * libio/vwscanf.c: Likewise.
3724 * libio/wscanf.c: Likewise.
3725 * stdio-common/isoc99_fscanf.c: Likewise.
3726 * stdio-common/isoc99_scanf.c: Likewise.
3727 * stdio-common/isoc99_sscanf.c: Likewise.
3728 * stdio-common/isoc99_vfscanf.c: Likewise.
3729 * stdio-common/isoc99_vscanf.c: Likewise.
3730 * stdio-common/isoc99_vsscanf.c: Likewise.
3731 * stdio-common/scanf.c: Likewise.
3732 * stdio-common/sscanf.c: Likewise.
3733 * wcsmbs/isoc99_fwscanf.c: Likewise.
3734 * wcsmbs/isoc99_swscanf.c: Likewise.
3735 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3736 * wcsmbs/isoc99_vswscanf.c: Likewise.
3737 * wcsmbs/isoc99_vwscanf.c: Likewise.
3738 * wcsmbs/isoc99_wscanf.c: Likewise.
3739
3740 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3741
3742 * include/time.h
3743 (__tz_compute): Replace time_t with __time64_t.
3744 (__tz_convert): Replace time_t* with __time64_t.
3745 (__offtime): Replace time_t* with __time64_t.
3746 * time/gmtime.c
3747 (__gmtime_r): Adjust call to __tz_convert.
3748 (gmtime): Likewise.
3749 * time/localtime.c
3750 (__localtime_r): Likewise.
3751 (localtime): Likewise.
3752 * time/offtime.c: Replace time_t with __time64_t.
3753 * time/tzset.c: Likewise.
3754
3755 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3756
3757 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3758 dynamic linker unless [$(run-built-tests) = yes].
3759
3760 2018-12-03 DJ Delorie <dj@delorie.com>
3761
3762 * support/test-container.c (check_for_unshare_hints): New.
3763 (main): Call it if unshare fails. Add support for "su" scriptlet
3764 command.
3765
3766 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3767
3768 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3769 'START' to indicate that start text should be output.
3770 (gen_test): Likewise.
3771 (main): Generate 'START' for first symbol or '--' line, or at end
3772 of input if not previously generated.
3773
3774 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3775
3776 [BZ #19767]
3777 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3778 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3779 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3780 ALWAYS_USE_VSYSCALL.
3781
3782 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3783
3784 [BZ #23913]
3785 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3786 new_argv by one.
3787
3788 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3789
3790 [BZ #23923]
3791 * locale/programs/localedef.c: Declare boolean hard_links default true.
3792 (options): Add --no-hard-links option.
3793 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3794 * locale/programs/localedef.h: Declare prototype for hard_links.
3795 * locale/programs/locfile.c (write_locale_data): Don't use hard
3796 links if hard_links is false.
3797
3798 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3799
3800 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3801 cpu_features_basic.
3802 (__cache_sysconf): Likewise.
3803 (init_cacheinfo): Likewise.
3804 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3805 populate COMMON_CPUID_INDEX_80000007 and
3806 COMMON_CPUID_INDEX_80000008.
3807 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3808 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3809 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3810 (init_cpu_features): Use _Static_assert on
3811 index_arch_Fast_Unaligned_Load.
3812 __get_cpuid_registers and __get_arch_feature. Updated for
3813 cpu_features_basic. Set stepping in cpu_features.
3814 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3815 (FEATURE_INDEX_2): New.
3816 (FEATURE_INDEX_MAX): Changed to enum.
3817 (COMMON_CPUID_INDEX_D_ECX_1): New.
3818 (COMMON_CPUID_INDEX_80000007): Likewise.
3819 (COMMON_CPUID_INDEX_80000008): Likewise.
3820 (cpuid_registers): Likewise.
3821 (cpu_features_basic): Likewise.
3822 (CPU_FEATURE_USABLE): Likewise.
3823 (bit_arch_XXX_Usable): Likewise.
3824 (cpu_features): Use cpuid_registers and cpu_features_basic.
3825 (bit_arch_XXX): Reweritten.
3826 (bit_cpu_XXX): Likewise.
3827 (index_cpu_XXX): Likewise.
3828 (reg_XXX): Likewise.
3829 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3830 <support/check.h>.
3831 (CHECK_CPU_FEATURE): New.
3832 (CHECK_CPU_FEATURE_USABLE): Likewise.
3833 (cpu_kinds): Likewise.
3834 (do_test): Print vendor, family, model and stepping. Check
3835 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
3836 (TEST_FUNCTION): Removed.
3837 Include <support/test-driver.c> instead of
3838 "../../test-skeleton.c".
3839 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
3840 Check POPCNT instead of POPCOUNT.
3841 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
3842
3843 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3844
3845 * scripts/gen-as-const.py (main): Avoid emitting empty line when
3846 there is no element in `consts'.
3847
3848 2018-12-01 Florian Weimer <fweimer@redhat.com>
3849
3850 * support/support_capture_subprocess.c
3851 (support_capture_subprocess): Check that pipe descriptors have
3852 expected values. Close original pipe descriptors in subprocess.
3853
3854 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3855
3856 [BZ #23032]
3857 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
3858 attr with __pthread_default_barrierattr.
3859 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
3860 attr with __pthread_default_condattr.
3861 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
3862 attr with __pthread_default_mutexattr.
3863 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
3864 attr with __pthread_default_rwlockattr.
3865
3866 2018-12-01 Kemi Wang <kemi.wang@intel.com>
3867
3868 * manual/tunables.texi (POSIX Thread Tunables): New node.
3869 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
3870 * nptl/nptl-init.c: Include pthread_mutex_conf.h
3871 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
3872 __pthread_tunables_init.
3873 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
3874 (max_adaptive_count): Define.
3875 * nptl/pthread_mutex_conf.c: New file.
3876 * nptl/pthread_mutex_conf.h: New file.
3877 * sysdeps/generic/adaptive_spin_count.h: New file.
3878 * sysdeps/nptl/dl-tunables.list: New file.
3879 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
3880 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
3881 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
3882 Likewise.
3883
3884 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3885
3886 [BZ #20544]
3887 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
3888 * stdlib/on_exit.c (__on_exit): Likewise.
3889 * stdlib/Makefile (tests): Add tst-bz20544.
3890 * stdlib/tst-bz20544.c: New test.
3891
3892 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
3893
3894 [BZ #19767]
3895 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
3896 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
3897 New.
3898
3899 2018-11-30 Florian Weimer <fweimer@redhat.com>
3900
3901 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
3902 Extend error logging.
3903 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
3904 symbol.
3905
3906 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3907
3908 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
3909 __sigismember instead of sigismember.
3910 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
3911 cancel_handler): New definitions.
3912 (do_system): Use posix_spawn instead of fork and execl and remove
3913 reentracy code.
3914 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
3915 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
3916 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
3917 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
3918 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
3919 * sysdeps/unix/sysv/linux/system.c: Likewise.
3920
3921 [BZ #22834]
3922 [BZ #17490]
3923 * NEWS: Add new semantic for atfork with popen and system.
3924 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
3925 fork and execl.
3926
3927 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3928
3929 [BZ #23690]
3930 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
3931 modification order when accessing reloc_result->addr.
3932 * include/link.h (reloc_result): Add field init.
3933 * nptl/Makefile (tests): Add tst-audit-threads.
3934 (modules-names): Add tst-audit-threads-mod1 and
3935 tst-audit-threads-mod2.
3936 Add rules to build tst-audit-threads.
3937 * nptl/tst-audit-threads-mod1.c: New file.
3938 * nptl/tst-audit-threads-mod2.c: Likewise.
3939 * nptl/tst-audit-threads.c: Likewise.
3940 * nptl/tst-audit-threads.h: Likewise.
3941
3942 2018-11-30 Joseph Myers <joseph@codesourcery.com>
3943
3944 * scripts/gen-as-const.py: New file.
3945 * scripts/gen-as-const.awk: Remove.
3946 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
3947 gen-as-const.py.
3948 ($(objpfx)test-as-const-%.c): Likewise.
3949
3950 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
3951
3952 * elf/dl-exception.c: Include <_itoa.h>.
3953
3954 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3955
3956 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
3957 returned by __f_setlk.
3958
3959 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
3960 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3961
3962 * elf/Makefile (tests-internal): Add tst-create_format1.
3963 * elf/dl-exception.c (_dl_exception_create_format): Support
3964 %x, %lx and %zx.
3965 * elf/tst-create_format1.c: New file.
3966
3967 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
3968
3969 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
3970 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
3971 gnulib.)
3972 * argp/argp-help.c (__argp_failure): Likewise.
3973
3974 2018-11-29 Mao Han <han_mao@c-sky.com>
3975
3976 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
3977 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
3978 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
3979 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
3980 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
3981 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
3982 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
3983 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
3984 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
3985 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
3986 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
3987 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
3988 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
3989 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
3990 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
3991 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
3992 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
3993 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
3994 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
3995 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
3996 (R_CKCORE_TLS_TPOFF32): New defines.
3997
3998 2018-11-29 Florian Weimer <fweimer@redhat.com>
3999
4000 * posix/Makefile (before-compile): Remove testcases.h and
4001 ptestcases.h.
4002 (generated): Add testcases.h and ptestcases.h.
4003 (testcases.h, ptestcases.h): Move to $(objpfx).
4004 (runtests.o): Add dependency on testcases.h.
4005 (runptests.o): Add dependency on ptestcases.h.
4006 * posix/testcases.h, posix/ptestcases.h: Remove files.
4007 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4008 not touch posix/testcases.h and posix/ptestcases.h.
4009
4010 2018-11-28 Florian Weimer <fweimer@redhat.com>
4011
4012 support: Add signal support to support_capture_subprocess_check.
4013 * support/capture_subprocess.h (support_capture_subprocess_check):
4014 Adjust comment and rename parameter.
4015 * support/support_capture_subprocess_check.c
4016 (print_actual_status): New function.
4017 (support_capture_subprocess_check): Support negative
4018 status_or_signal. Call print_actual_status.
4019 * support/tst-support_capture_subprocess.c (do_test): Call
4020 support_capture_subprocess_check.
4021 * libio/tst-vtables-common.c (termination_status)
4022 (init_termination_status): Remove.
4023 (check_for_termination): Adjust support_capture_subprocess_check
4024 call.
4025 (do_test): Remove call to init_termination_status.
4026
4027 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4028
4029 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4030 source directory instead of a copy.
4031 (CommandList.create_copy_dir): Remove.
4032
4033 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4034
4035 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4036
4037 2018-11-28 Florian Weimer <fweimer@redhat.com>
4038
4039 * support/support.h (support_quote_string): Do not use str
4040 parameter name.
4041
4042 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4043
4044 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4045 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4046
4047 2018-11-27 Florian Weimer <fweimer@redhat.com>
4048
4049 * support/support.h (support_quote_string): Declare.
4050 * support/support_quote_string.c: New file.
4051 * support/tst-support_quote_string.c: Likewise.
4052 * support/Makefile (libsupport-routines): Add
4053 support_quote_string.
4054 (tests): Add tst-support_quote_string.
4055
4056 2018-11-27 Florian Weimer <fweimer@redhat.com>
4057
4058 [BZ #23927]
4059 CVE-2018-19591
4060 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4061 descriptor leak in case of ENODEV error.
4062
4063 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4064
4065 [BZ #19767]
4066 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4067 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4068 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4069
4070 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4071
4072 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4073 Error for unknown lines.
4074
4075 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4076
4077 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4078 Touch additional files.
4079
4080 2018-11-26 Florian Weimer <fweimer@redhat.com>
4081
4082 [BZ #23907]
4083 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4084 double-frees.
4085
4086 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4087
4088 [BZ #19767]
4089 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4090 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4091 SHARED. Include sysdep.h.
4092 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4093 ALWAYS_USE_VSYSCALL.
4094 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4095 ALWAYS_USE_VSYSCALL.
4096
4097 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4098
4099 [BZ #19767]
4100 * nptl/Makefile (tests-static): Add tst-cond11-static.
4101 (tests): Likewise.
4102 * nptl/tst-cond11-static.c: New File.
4103 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4104 tst-affinity-static.
4105 (tests): Likewise.
4106 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4107 instead of SHARED.
4108 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4109 (USE_VSYSCALL): Likewise.
4110 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4111 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4112 instead of SHARED.
4113 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4114 SHARED.
4115 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4116 New.
4117
4118 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4119
4120 [BZ #23915]
4121 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4122 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4123 Undefine.
4124
4125 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4126
4127 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4128 (tst-cet-legacy-1a-ARGS): New.
4129 ($(objpfx)tst-cet-legacy-1a): New target.
4130 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4131
4132 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4133
4134 * conform/conformtest.py (CompileSubTest.__init__): Set
4135 self.run_early to False.
4136 (ExecuteSubTest.__init__): Likewise.
4137 (HeaderTests.run): Try running all non-optional, non-XFAILed
4138 compilation tests in a single execution of the compiler.
4139
4140 * conform/conformtest.py (CompileSubTest): New class.
4141 (ExecuteSubTest): Likewise.
4142 (ElementTest.run): Rename to gen_subtests. Append tests to
4143 self.subtests instead of running them.
4144 (ConstantTest.run): Likewise.
4145 (SymbolTest.run): Likewise.
4146 (TypeTest.run): Likewise.
4147 (TagTest.run): Likewise.
4148 (FunctionTest.run): Likewise.
4149 (VariableTest.run): Likewise.
4150 (MacroFunctionTest.run): Likewise.
4151 (MacroStrTest.run): Likewise.
4152 (HeaderTests.handle_test_line): Generate subtests for tests.
4153 (HeaderTests.run): Run subtests for tests.
4154
4155 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4156
4157 * math/Versions (GLIBC_2.29): Add pow.
4158 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4159 symbol.
4160 * math/w_pow.c: New file.
4161 * sysdeps/i386/fpu/w_pow.c: New file.
4162 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4163 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4164 and add necessary aliases.
4165 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4166 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4167 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4168 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4169 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4170 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4171 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4172 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4173 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4174 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4175 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4176 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4177 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4178 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4179 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4180 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4181 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4184 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4185 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4186 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4187 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4188 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4189 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4190 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4191 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4192 __pow.
4193 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4194 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4195 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4196
4197 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4198
4199 * math/Versions (GLIBC_2.29): Add log2.
4200 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4201 symbol.
4202 * math/w_log2.c: New file.
4203 * sysdeps/i386/fpu/w_log2.c: New file.
4204 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4205 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4206 and add necessary aliases.
4207 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4208 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4209 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4210 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4211 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4212 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4213 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4214 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4215 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4216 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4217 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4218 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4219 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4220 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4221 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4222 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4223 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4224 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4226 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4227 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4228 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4229 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4230 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4231 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4232 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4233
4234 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4235
4236 * math/Versions (GLIBC_2.29): Add log.
4237 * math/w_log_compat.c (__log_compat): Change to versioned compat
4238 symbol.
4239 * math/w_log.c: New file.
4240 * sysdeps/i386/fpu/w_log.c: New file.
4241 * sysdeps/ia64/fpu/e_log.S: Update.
4242 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4243 and add necessary aliases.
4244 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4245 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4246 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4247 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4248 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4249 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4250 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4251 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4252 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4253 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4254 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4255 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4256 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4257 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4258 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4260 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4262 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4263 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4264 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4265 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4266 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4267 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4268 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4269 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4270 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4271 __log.
4272 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4273 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4274 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4275 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4276
4277 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4278
4279 * math/Versions (GLIBC_2.29): Add exp and exp2.
4280 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4281 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4282 * math/w_exp_compat.c (__exp_compat): Likewise.
4283 * math/w_exp.c: New file.
4284 * math/w_exp2.c: New file.
4285 * sysdeps/i386/fpu/w_exp.c: New file.
4286 * sysdeps/i386/fpu/w_exp2.c: New file.
4287 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4288 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4289 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4290 and add necessary aliases.
4291 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4292 and add necessary aliases.
4293 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4294 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4295 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4296 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4297 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4298 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4299 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4300 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4301 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4302 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4303 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4304 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4305 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4306 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4307 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4308 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4309 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4311 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4312 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4313 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4314 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4315 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4316 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4317 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4318 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4319 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4320 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4321 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4322 (__ieee754_exp): Rename to __exp.
4323 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4324 (__ieee754_exp): Rename to __exp.
4325 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4326 (__ieee754_exp): Rename to __exp.
4327 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4328 __exp.
4329 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4330
4331 2018-11-20 DJ Delorie <dj@redhat.com>
4332
4333 * malloc/malloc.c (tcache_entry): Add key field.
4334 (tcache_put): Set it.
4335 (tcache_get): Likewise.
4336 (_int_free): Check for double free in tcache.
4337 * malloc/tst-tcfree1.c: New.
4338 * malloc/tst-tcfree2.c: New.
4339 * malloc/Makefile: Run the new tests.
4340 * manual/probes.texi: Document memory_tcache_double_free probe.
4341
4342 * dlfcn/dlerror.c (check_free): Prevent double frees.
4343
4344 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4345
4346 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4347
4348 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4349
4350 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4351 in tests. Use names for format arguments.
4352 (ConstantTest.run): Likewise.
4353 (SymbolTest.run): Likewise.
4354 (TypeTest.run): Likewise.
4355 (TagTest.run): Likewise.
4356 (FunctionTest.run): Likewise.
4357 (VariableTest.run): Likewise.
4358 (MacroFunctionTest.run): Likewise.
4359 (MacroStrTest.run): Likewise.
4360 (HeaderTests.__init__): Set self.num_tests.
4361 (HeaderTests.handle_test_line): Set test.num. Increment
4362 self.num_tests.
4363
4364 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4365
4366 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4367 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4368 SEEK_SET.
4369
4370 2018-11-19 Mao Han <han_mao@c-sky.com>
4371
4372 * scripts/config.guess: Update to version 2018-08-29.
4373 * scripts/config.sub: Update to version 2018-08-29.
4374
4375 2018-11-19 Florian Weimer <fweimer@redhat.com>
4376
4377 support: Print timestamps in timeout handler.
4378 * support/support_test_main.c (print_timestamp): New function.
4379 (signal_handler): Use it to print the termination time and the
4380 time of the last write to standard output.
4381
4382 2018-11-16 Zack Weinberg <zackw@panix.com>
4383 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4384
4385 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4386 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4387 argument.
4388 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4389 and add flags argument. Check flags instead of __ldbl_is_dbl when
4390 deciding whether to set is_long_double.
4391 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4392 passing zero for flags argument.
4393 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4394
4395 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4396 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4397 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4398 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4399 variable names. Remove libc_hidden_def/libc_hidden_proto from
4400 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4401 longer called from within the library.
4402 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4403 for __nldbl___vstrfmon_l, declare it explicitly.
4404
4405 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4406
4407 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4408
4409 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4410 macros
4411 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4412 F_SETLK64, F_SETLKW64, respectively.
4413 * sysdeps/mach/hurd/f_setlk.c: New file.
4414 * sysdeps/mach/hurd/f_setlk.h: New file.
4415 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4416 f_setlk.
4417 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4418 (__libc_fcntl): Move non-flock operations to...
4419 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4420 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4421
4422 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4423
4424 mktime: DEBUG_MKTIME cleanup
4425 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4426 And it’s no longer needed now that glibc and Gnulib both have
4427 their own testing mechanisms for mktime.
4428 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4429
4430 mktime: fix non-EOVERFLOW errno handling
4431 [BZ#23789]
4432 mktime was not properly reporting failures when the underlying
4433 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4434 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4435 The problem could happen on non-glibc platforms, with Gnulib.
4436 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4437 (tm_diff): ... this simpler function, which does not change errno.
4438 All callers changed to deal with errno themselves.
4439 (ranged_convert, __mktime_internal): Return failure immediately if
4440 the underlying function reports any failure other than EOVERFLOW.
4441 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4442 gap code fails.
4443
4444 mktime: fix bug with Y2038 DST transition
4445 [BZ#23789]
4446 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4447 mishandle a DST transition that jumps over the Y2038 boundary.
4448 No such DST transitions are known so this is only a theoretical
4449 bug, but we might as well do things right.
4450
4451 mktime: make more room for overflow
4452 [BZ#23789]
4453 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4454 This is so that we can add tm_diff results to a previous guess,
4455 which will be useful in a later patch.
4456
4457 mktime: simplify offset guess
4458 [BZ#23789]
4459 * time/mktime.c (__mktime_internal): Omit excess precision.
4460
4461 mktime: new test for mktime failure
4462 [BZ#23789]
4463 Based on a test suggested by Albert Aribaud in:
4464 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4465 * time/Makefile (tests): Add bug-mktime4.
4466 * time/bug-mktime4.c: New file.
4467
4468 mktime: fix EOVERFLOW bug
4469 [BZ#23789]
4470 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4471 Include libc-config.h, not config.h, for __set_errno.
4472 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4473
4474 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4475
4476 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4477 __attribute_copy__ to copy attributes from name. Drop static qualifier
4478 to avoid warnings about leaf attribute not having effect on static
4479 functions.
4480
4481 2018-11-13 Florian Weimer <fweimer@redhat.com>
4482
4483 * malloc/malloc.c (fastbin_push_entry): New function.
4484 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4485 (REMOVE_FB): Remove macro.
4486 (_int_malloc): Use fastbin_pop_entry and reindent.
4487 (_int_free): Use fastbin_push_entry.
4488 (malloc_consolidate): Use atomic_exchange_acquire.
4489
4490 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4491
4492 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4493 alias attribute, not with strong_alias.
4494
4495 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4496 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4497 with additional parameter thread.
4498 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4499 in terms of __hidden_ver2.
4500 (hidden_tls_def): New macro.
4501 (libc_hidden_tls_def): Likewise.
4502 (rtld_hidden_tls_def): Likewise.
4503 (libm_hidden_tls_def): Likewise.
4504 (libmvec_hidden_tls_def): Likewise.
4505 (libresolv_hidden_tls_def): Likewise.
4506 (librt_hidden_tls_def): Likewise.
4507 (libdl_hidden_tls_def): Likewise.
4508 (libnss_files_hidden_tls_def): Likewise.
4509 (libnsl_hidden_tls_def): Likewise.
4510 (libnss_nisplus_hidden_tls_def): Likewise.
4511 (libutil_hidden_tls_def): Likewise.
4512 (libutil_hidden_tls_def): Likweise.
4513 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4514 libc_hidden_tls_def.
4515 (__sim_disabled_exceptions_thread): Likewise.
4516 (__sim_round_mode_thread): Likewise.
4517
4518 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4519 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4520 copy attributes from name.
4521
4522 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4523
4524 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4525 Use __attribute_copy__ to copy attributes from name.
4526
4527 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4528 with __hidden_ver1 call.
4529 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4530 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4531 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4532 (__cosf): Do not declare here.
4533 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4534 (__sincosf): Do not declare here.
4535 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4536 (__sinf): Do not declare here.
4537
4538 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4539 (__BIG_ENDIAN): Likewise.
4540 (__BYTE_ORDER): Likewise.
4541 (strong_alias): Likewise.
4542 (_strong_alias): Likewise.
4543
4544 2018-11-12 Florian Weimer <fweimer@redhat.com>
4545
4546 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4547 function. Move after the definition of in_smallbin_range. Do not
4548 use __builtin_expect for paths that lead to a noreturn function.
4549 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4550 because it is unclear whether this is in fact an unlikely
4551 condition.
4552 (_int_malloc, _int_free): Adjust.
4553 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4554 variables.
4555 * malloc/arena.c (heap_trim): Likewise.
4556
4557 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4558
4559 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4560 it, free it if needed.
4561 (reauthenticate): Test and use ccwdir.
4562 (child_init_port): In non-resetids case, test and use ccwdir.
4563 (child_chdir): New nested function to set ccwdir.
4564 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4565 * hurd/hurd/port.h (_hurd_port_move): New function.
4566 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4567 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4568 * hurd/Versions (_hurd_port_move): Export function.
4569 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4570 symbol.
4571 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4572 of dtablesize for allocating dtable_cloexec.
4573
4574 2018-11-09 Martin Sebor <msebor@redhat.com>
4575
4576 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4577 it's already defined.
4578 (_strong_alias): Use __attribute_copy__.
4579 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4580 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4581 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4582 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4583 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4584 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4585 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4586 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4587 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4588 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4589 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4590 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4591 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4592 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4593 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4594 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4595 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4596 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4597 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4598
4599 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4600
4601 * misc/tst-efgcvt.c: Include support/check.h and
4602 support/test-driver.c. Do not include test-skeleton.c.
4603 (error_count): Remove.
4604 (output_error): Replace increments to error_count with calls to
4605 support_record_failure.
4606 (output_r_error): Likewise.
4607 (special): Likewise.
4608 (do_test): Unconditionally return zero.
4609 (TEST_FUNCTION): Remove.
4610
4611 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4612
4613 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4614 not $(@D)/scratch.
4615 ($(linknamespace-header-tests)): Likewise.
4616
4617 * conform/conformtest.py: New file.
4618 * conform/conformtest.pl: Remove.
4619 * conform/GlibcConform.pm: Likewise.
4620 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4621 (KEYWORDS_C99): Likewise.
4622 (KEYWORDS): Likewise.
4623 * conform/Makefile ($(conformtest-header-tests)): Use
4624 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4625 option. Use --header instead of --headers.
4626 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4627 function entries.
4628 * conform/data/spawn.h-data: Likewise.
4629 * conform/data/fcntl.h-data (openat): Add space after function
4630 name.
4631 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4632 (wcscasecmp_l): Likewise.
4633 * conform/data/termios.h-data (c_cc): Add space after element
4634 name.
4635
4636 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4637
4638 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4639 instead of manually comparing and reporting mismatching strings.
4640 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4641 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4642
4643 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4644
4645 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4646 __ASSUME_SOCKETCALL.
4647 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4648 (__ASSUME_SOCKETCALL): Remove.
4649 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4650 (__ASSUME_SOCKETCALL): Likewise.
4651 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4652 (__ASSUME_SOCKETCALL): Likewise.
4653 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4654 (__ASSUME_SOCKETCALL): Likewise.
4655 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4656 (__ASSUME_SOCKETCALL): Likewise.
4657 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4658 (__ASSUME_SOCKETCALL): Likewise.
4659 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4660 (__ASSUME_SOCKETCALL): Likewise.
4661
4662 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4663
4664 [BZ #23509]
4665 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4666 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4667 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4668 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4669 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4670 lc_unknown.
4671
4672 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4673
4674 [BZ #17630]
4675 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4676
4677 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4678
4679 [BZ #23867]
4680 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4681 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4682 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4683 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4684
4685 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4686
4687 * support/support_test_compare_string.c
4688 (support_test_compare_string): Fix printf format.
4689
4690 2018-11-07 Florian Weimer <fweimer@redhat.com>
4691
4692 Implement TEST_COMPARE_STRING.
4693 * support/check.h (TEST_COMPARE_STRING): Define.
4694 (support_test_compare_string): Declare.
4695 * support/Makefile (libsupport-routines): Add
4696 support_test_compare_string.
4697 (tests): Add tst-test_compare_string.
4698 * support/support_test_compare_string.c: New file.
4699 * support/tst-test_compare_string.c: Likewise.
4700
4701 2018-11-07 Andreas Schwab <schwab@suse.de>
4702
4703 [BZ #23864]
4704 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4705 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4706 Undef.
4707
4708 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4709
4710 [BZ #23862]
4711 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4712 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4713 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4714 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4715 Likewise.
4716
4717 2018-11-06 Florian Weimer <fweimer@redhat.com>
4718
4719 [BZ #17405]
4720 * posix/Makefile (routines): Add spawn_faction_addchdir.
4721 (tests): Add tst-spawn-chdir.
4722 * posix/Versions (GLIBC_2.29): Add
4723 posix_spawn_file_actions_addchdir_np.
4724 * posix/spawn_faction_addchdir.c: New file.
4725 * posix/spawn_faction_destroy.c
4726 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4727 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4728 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4729 chdir_action.
4730 * posix/tst-spawn-chdir.c: New file.
4731 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4732 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4733 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4734 posix_spawn_file_actions_addchdir_np.
4735 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4736 Likewise.
4737 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4738 Likewise.
4739 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4740 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4741 Likewise.
4742 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4743 Likewise.
4744 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4745 Likewise.
4746 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4747 Likewise.
4748 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4749 Likewise.
4750 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4751 Likewise.
4752 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4753 (GLIBC_2.29): Likewise.
4754 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4755 (GLIBC_2.29): Likewise.
4756 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4757 (GLIBC_2.29): Likewise.
4758 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4759 (GLIBC_2.29): Likewise.
4760 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4761 Likewise.
4762 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4763 (GLIBC_2.29): Likewise.
4764 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4765 (GLIBC_2.29): Likewise.
4766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4767 (GLIBC_2.29): Likewise.
4768 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4769 (GLIBC_2.29): Likewise.
4770 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4771 Likewise.
4772 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4773 Likewise.
4774 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4775 Likewise.
4776 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4777 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4778 Likewise.
4779 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4780 Likewise.
4781 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4782 Likewise.
4783 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4784 Likewise.
4785
4786 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4787
4788 * misc/Makefile (tests): Add tst-ldbl-error.
4789 * misc/tst-ldbl-error.c: New file.
4790
4791 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4792
4793 * misc/Makefile (tests): Add tst-ldbl-warn.
4794 * misc/tst-ldbl-warn.c: New file.
4795
4796 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4797
4798 * argp/Makefile (tests): Add tst-ldbl-argp.
4799 * argp/tst-ldbl-argp.c: New file.
4800
4801 2018-11-05 Arjun Shankar <arjun@redhat.com>
4802
4803 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4804 __gconv_path_elem and call __gconv_get_path unconditionally.
4805
4806 2018-11-05 Andreas Schwab <schwab@suse.de>
4807
4808 [BZ #22927]
4809 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4810 creating the first helper thread failed.
4811
4812 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4813
4814 * sysdeps/mach/hurd/msync.c: New file.
4815
4816 2018-11-02 Florian Weimer <fweimer@redhat.com>
4817
4818 * support/shell-container.c (copy_func): Call
4819 support_copy_file_range instead of copy_file_range to support
4820 cross-device copies.
4821
4822 2018-11-02 Florian Weimer <fweimer@redhat.com>
4823
4824 * support/test-container.c: Include <libc-pointer-arith.h> for
4825 ALIGN_UP.
4826
4827 2018-11-01 Zong Li <zong@andestech.com>
4828
4829 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4830 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4831 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4832 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4833
4834 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
4835 variable to avoid overlap arguments.
4836
4837 2018-11-01 Joseph Myers <joseph@codesourcery.com>
4838
4839 * posix/bug-regex22.c (main): Use puts with distinct error
4840 messages for unexpected success of re_compile_pattern, not printf
4841 with NULL argument to %s.
4842
4843 * stdio-common/bug22.c: Include <libc-diag.h>.
4844 (do_test): Disable -Wformat-overflow= warnings around fprintf
4845 calls outputting more than INT_MAX characters.
4846 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
4847 around printf call with NULL %s argument.
4848
4849 [BZ #23848]
4850 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
4851 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
4852 Undefine.
4853 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4854 (__ASSUME_RECVMSG_SYSCALL): Likewise.
4855 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4856 (__ASSUME_SENDTO_SYSCALL): Likewise.
4857 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4858 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
4859 [!__arch64__].
4860 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4861 (__ASSUME_CONNECT_SYSCALL): Likewise.
4862 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4863 (__ASSUME_RECVFROM_SYSCALL): Likewise.
4864 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
4865 Define.
4866 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
4867 Likewise.
4868 [__LINUX_KERNEL_VERSION >= 0x040400]
4869 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
4870 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
4871 Remove.
4872 (listen): Likewise.
4873 (setsockopt): Likewise.
4874
4875 2018-11-01 Fredrik Noring <noring@nocrew.org>
4876
4877 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
4878 with the ISA override.
4879
4880 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
4881
4882 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
4883 #endif.
4884
4885 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
4886
4887 * manual/errno.texi (EIEIO): Document how translators should
4888 translate the error message.
4889 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
4890 printing trailing whitespaces refused by git.
4891 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
4892 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
4893 * hurd/Makefile (user-interfaces): Add pci.
4894
4895 2018-10-30 Joseph Myers <joseph@codesourcery.com>
4896
4897 * conform/linknamespace.py: New file.
4898 * conform/linknamespace.pl: Remove file.
4899 * conform/Makefile ($(linknamespace-header-tests)): Use
4900 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
4901 option.
4902
4903 2018-10-30 Florian Weimer <fweimer@redhat.com>
4904
4905 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
4906 memory leaks.
4907
4908 2018-10-30 Florian Weimer <fweimer@redhat.com>
4909
4910 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
4911
4912 2018-10-30 Florian Weimer <fweimer@redhat.com>
4913
4914 * stdlib/tst-strtod-overflow.c (do_test): Switch to
4915 support_blob_repeat.
4916
4917 2018-10-30 Florian Weimer <fweimer@redhat.com>
4918
4919 Avoid spurious test failures in stdlib/test-bz22786.
4920 * support/Makefile (libsupport-routines): Add blob_repeat.
4921 (tests): Add tst-support_blob_repeat.
4922 * support/blob_repeat.h: New file.
4923 * support/blob_repeat.c: Likewise.
4924 * support/tst-support_blob_repeat.c: Likewise.
4925 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
4926 support_blob_repeat_allocate.
4927
4928 2018-10-30 Andreas Schwab <schwab@suse.de>
4929
4930 [BZ #23125]
4931 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
4932 Don't use tail call.
4933 * elf/tst-unwind-main.c: New file.
4934 * elf/Makefile (tests): Add tst-unwind-main.
4935 (CFLAGS-tst-unwind-main.c): Define.
4936
4937 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
4938
4939 [BZ #23791]
4940 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
4941 n_cs_precedes to 0.
4942 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
4943
4944 2018-10-29 Joseph Myers <joseph@codesourcery.com>
4945
4946 * conform/glibcconform.py: Do not import shutil.
4947 (list_exported_functions): Use tempfile.TemporaryDirectory instead
4948 of mkdtemp.
4949
4950 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
4951 critic_missing for versions before 3.4.
4952 * configure: Regenerated.
4953 * manual/install.texi (Tools for Compilation): Document
4954 requirement for Python to build glibc.
4955 * INSTALL: Regenerated.
4956 * Rules [PYTHON]: Make code unconditional.
4957 * benchtests/Makefile [PYTHON]: Likewise.
4958 * conform/Makefile [PYTHON]: Likewise.
4959 * manual/Makefile [PYTHON]: Likewise.
4960 * math/Makefile [PYTHON]: Likewise.
4961
4962 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
4963
4964 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
4965 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
4966 answer to interrupt_operation, return EIEIO instead of EINTR.
4967 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
4968 _hurd_intr_rpc_msg_about_to global point to start of controlled
4969 assembly snippet. Make it check canceled flag.
4970 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
4971 the _hurd_intr_rpc_msg_about_to point.
4972 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
4973 issue, remove cancel flag check.
4974
4975 2018-10-26 Joseph Myers <joseph@codesourcery.com>
4976
4977 * scripts/build-many-glibcs.py: Remove compatibility for missing
4978 os.cpu_count and re.fullmatch.
4979
4980 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
4981
4982 [BZ #23822]
4983 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
4984 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
4985 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
4986
4987 2018-10-25 Joseph Myers <joseph@codesourcery.com>
4988
4989 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
4990 macro.
4991
4992 2018-10-25 Florian Weimer <fweimer@redhat.com>
4993
4994 [BZ #23562]
4995 [BZ #23821]
4996 XFAIL siginfo_t si_band conform test on sparc64.
4997 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
4998 (__SI_BAND_TYPE): Only override long int default type on sparc64.
4999 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5000 (conformtest-xfail-conds): Add sparc64-linux.
5001 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5002 sparc64.
5003 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5004
5005 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5006
5007 * elf/elf.h (NT_MIPS_DSP): New macro.
5008 (NT_MIPS_FP_MODE): Likewise.
5009
5010 2018-10-25 Zong Li <zong@andestech.com>
5011
5012 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5013 name by adding the file extension (.so).
5014
5015 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5016
5017 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5018 (test-xfail-ISO11/threads.h/linknamespace,
5019 test-xfail-ISO11/threads.h/conform): Add.
5020
5021 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5022
5023 * math/gen-libm-test.py: Import os.
5024 (ALL_FLOATS_MANUAL): New constant.
5025 (ALL_FLOATS_SUFFIX): Likewise.
5026 (Ulps.all_functions): New function.
5027 (real_all_ulps): Likewise.
5028 (generate_err_table_sub): Likewise.
5029 (generate_err_table): Likewise.
5030 (main): Handle -s and -m options.
5031 * manual/libm-err-tab.pl: Remove.
5032 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5033 instead of libm-err-tab.pl.
5034 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5035 != no].
5036 * manual/install.texi (Tools for Compilation): Document
5037 requirement for Python to build manual.
5038 * INSTALL: Regenerated.
5039
5040 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5041
5042 * bits/time64.h: New file.
5043 * include/time.h: Replace internal_time_t with __time64_t.
5044 * posix/bits/types (__time64_t): Add.
5045 * stdlib/Makefile: Add bits/time64.h to includes.
5046 * time/tzfile.c: Replace internal_time_t with __time64_t.
5047
5048 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5049
5050 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5051 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5052 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5053 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5054 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5055 prototype.
5056 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5057 * posix/spawn_faction_addclose.c
5058 (__posix_spawn_file_actions_addclose): Add hidden definition.
5059 * posix/spawn_faction_adddup2.c
5060 (__posix_spawn_file_actions_adddup2): Likewise.
5061 * posix/spawn_faction_destroy.c
5062 (__posix_spawn_file_actions_destroy): Likewise.
5063 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5064 Likewise.
5065 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5066 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5067 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5068 Likewise.
5069 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5070 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5071 Likewise.
5072
5073 2018-10-24 Andreas Schwab <schwab@suse.de>
5074
5075 [BZ #18093]
5076 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5077 format cache.
5078 * elf/cache.c (print_cache): Likewise.
5079
5080 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5081
5082 * bits/timesize.h: New file.
5083 * stdlib/Makefile (headers): Add bits/timesize.h.
5084 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5085 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5086 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5087 (__SEM_PAD_AFTER_TIME): Likewise.
5088 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5089 (__SHM_PAD_AFTER_TIME): Likewise.
5090 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5091 (__MSQ_PAD_BEFORE_TIME): Likewise.
5092 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5093 (__SEM_PAD_BEFORE_TIME): Likewise.
5094 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5095 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5096 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5097 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5098 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5099 (__MSQ_PAD_BEFORE_TIME): Likewise.
5100 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5101 (__SEM_PAD_BEFORE_TIME): Likewise.
5102 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5103 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5104 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5105 (__MSQ_PAD_BEFORE_TIME): Likewise.
5106 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5107 (__SEM_PAD_BEFORE_TIME): Likewise.
5108 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5109 (__SHM_PAD_BEFORE_TIME): Likewise.
5110 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5111 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5112 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5113
5114 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5115
5116 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5117 USE_RDTSCP is defined.
5118 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5119 USE_RDTSCP is defined.
5120
5121 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5122
5123 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5124 defined.
5125
5126 [BZ #23709]
5127 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5128 independently of other flags.
5129
5130 2018-10-23 Florian Weimer <fweimer@redhat.com>
5131
5132 * time/tst-mktime2.c (N_STRINGS): Remove.
5133 (set_timezone): New function.
5134 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5135 (mktime_test1): Report localtime failure and check errno value.
5136 Use TEST_COMPARE.
5137 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5138 (do_test): Remove alarm call. Use set_timezone and array_length.
5139
5140 2018-10-23 Andreas Schwab <schwab@suse.de>
5141
5142 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5143 (__start_context): Use END instead of PSEUDO_END.
5144
5145 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5146
5147 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5148 version to 4.19.
5149
5150 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5151 version to 4.19.
5152
5153 [BZ #23793]
5154 * wcsmbs/c32rtomb.c: New file.
5155 * wcsmbs/mbrtoc32.c: Likewise.
5156 * wcsmbs/tst-c32-state.c: Likewise.
5157 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5158 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5159 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5160 (tests): Add tst-c32-state.
5161 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5162 $(gen-locales).
5163
5164 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5165
5166 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5167 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5168
5169 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5170
5171 [BZ #23794]
5172 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5173 pair and return 0 in that case, and use saved character to
5174 interpret following character.
5175 * wcsmbs/tst-c16-surrogate.c: New file.
5176 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5177 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5178 Depend on $(gen-locales)
5179
5180 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5181
5182 [BZ #23562]
5183 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5184 (struct siginfo_t): Use correct type for si_band.
5185
5186 2018-10-19 Florian Weimer <fweimer@redhat.com>
5187
5188 [BZ #23689]
5189 * resource/bits/types/struct_rusage.h (struct rusage): Update
5190 comment on struct. Remove extraneous field comment.
5191
5192 2018-10-18 David S. Miller <davem@davemloft.net>
5193
5194 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5195 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5196 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5197 sysdep_routines in subdir elf.
5198 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5199 version for __vdso_clock_gettime.
5200 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5201 Define.
5202 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5203 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5204
5205 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5206
5207 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5208
5209 * sysdeps/i386/init-arch.h: Removed.
5210 * sysdeps/i386/i586/init-arch.h: Likewise.
5211 * sysdeps/i386/i686/init-arch.h: Likewise.
5212 * sysdeps/i386/i686/hp-timing.h: Likewise.
5213 * sysdeps/x86_64/hp-timing.h: Likewise.
5214 * sysdeps/i386/isa.h: New file.
5215 * sysdeps/i386/i586/isa.h: Likewise.
5216 * sysdeps/i386/i686/isa.h: Likewise.
5217 * sysdeps/x86_64/isa.h: Likewise.
5218 * sysdeps/x86/hp-timing.h: New file.
5219 * sysdeps/x86/init-arch.h: Include <isa.h>.
5220
5221 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5222
5223 * math/libm-test-pow.inc (pow_test_data): Do not allow
5224 divide-by-zero exception for pow(+/- 0, -Inf).
5225
5226 2018-10-17 Zack Weinberg <zackw@panix.com>
5227
5228 * manual/job.texi (Job Control is Optional): Remove node, as
5229 job control has not been optional in quite some time.
5230 (Job Control): Mention briefly that systems older than
5231 POSIX.1-2001 might not support job control.
5232 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5233 defined on systems conforming to POSIX.1-2001.
5234
5235 2018-10-17 Arjun Shankar <arjun@redhat.com>
5236
5237 [BZ #22062]
5238 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5239 indentation.
5240 * (__gconv_read_conf): Mark function static.
5241 * (once): New static variable.
5242 * (__gconv_load_conf): New function.
5243 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5244 * iconv/gconv_db.c (once): Remove static variable.
5245 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5246 __gconv_read_conf.
5247 * (__gconv_find_transform): Likewise.
5248 * iconv/tst-iconv-mt.c: New test.
5249 * iconv/Makefile: Add tst-iconv_mt.
5250
5251 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5252
5253 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5254 bits/shm-pad.h.
5255 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5256 (shmatt_t): Define as __syscall_ulong_t.
5257 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5258 and [__SHM_PAD_AFTER_TIME].
5259 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5260 Define shm_segsz and associated padding based on
5261 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5262 Use __syscall_ulong_t instead of unsigned long int.
5263 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5264 unsigned long int.
5265 [__USE_MISC] (struct shm_info): Likewise.
5266 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5267 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5268 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5269 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5270 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5271 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5272 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5273 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5274 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5275 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5276 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5277
5278 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5279 bits/shmlba.h.
5280 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5281 (SHMLBA): Remove macro.
5282 (__getpagesize): Remove function declaration.
5283 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5284 <bits/shmlba.h>.
5285 (SHMLBA): Remove macro.
5286 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5287 <bits/shmlba.h>.
5288 (SHMLBA): Remove macro.
5289 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5290 <bits/shmlba.h>.
5291 (SHMLBA): Remove macro.
5292 (__getpagesize): Remove function declaration.
5293 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5294 <bits/shmlba.h>.
5295 (SHMLBA): Remove macro.
5296 (__getshmlba): Remove function declaration.
5297 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5298 (SHMLBA): Remove macro.
5299 (__getpagesize): Remove function declaration.
5300 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5301 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5302 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5303 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5304 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5305 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5306 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5307 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5308 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5309 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5310
5311 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5312
5313 [BZ #23275]
5314 * nptl/tst-mutex10.c: New File.
5315 * nptl/Makefile (tests): Add tst-mutex10.
5316 (tst-mutex10-ENV): New variable.
5317 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5318 Ensure that elision path is used if elision is available.
5319 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5320 Likewise.
5321 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5322 Likewise.
5323 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5324 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5325 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5326 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5327 Likewise.
5328 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5329 (__pthread_mutex_cond_lock_adjust): Likewise.
5330 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5331 Likewise.
5332 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5333 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5334 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5335 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5336 Add comments.
5337 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5338 Use atomic_load_relaxed and atomic_store_relaxed.
5339 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5340 Use atomic_store_relaxed.
5341
5342 2018-10-17 Andreas Schwab <schwab@suse.de>
5343
5344 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5345 * crypt/badsalttest.c (TIMEOUT): Likewise.
5346 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5347 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5348 * io/test-lfs.c (TIMEOUT): Likewise.
5349 * libio/tst-atime.c (TIMEOUT): Likewise.
5350 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5351 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5352 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5353 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5354 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5355 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5356 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5357 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5358 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5359 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5360 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5361 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5362 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5363 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5364 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5365 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5366 * nptl/tst-once2.c (TIMEOUT): Likewise.
5367 * nptl/tst-once3.c (TIMEOUT): Likewise.
5368 * nptl/tst-once4.c (TIMEOUT): Likewise.
5369 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5370 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5371 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5372 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5373 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5374 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5375 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5376 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5377 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5378 * posix/tst-chmod.c (TIMEOUT): Likewise.
5379 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5380 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5381 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5382 * posix/tst-regex2.c (TIMEOUT): Likewise.
5383 * posix/tst-waitid.c (TIMEOUT): Likewise.
5384 * rt/tst-aio.c (TIMEOUT): Likewise.
5385 * rt/tst-aio10.c (TIMEOUT): Likewise.
5386 * rt/tst-aio4.c (TIMEOUT): Likewise.
5387 * rt/tst-aio5.c (TIMEOUT): Likewise.
5388 * rt/tst-aio6.c (TIMEOUT): Likewise.
5389 * rt/tst-aio64.c (TIMEOUT): Likewise.
5390 * rt/tst-aio7.c (TIMEOUT): Likewise.
5391 * rt/tst-aio9.c (TIMEOUT): Likewise.
5392 * rt/tst-clock.c (TIMEOUT): Likewise.
5393 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5394 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5395 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5396 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5397 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5398 * rt/tst-timer4.c (TIMEOUT): Likewise.
5399 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5400 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5401 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5402 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5403 * time/tst-ftime.c (TIMEOUT): Likewise.
5404 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5405
5406 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5407
5408 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5409 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5410 for thunderX2.
5411
5412 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5413
5414 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5415 bits/sem-pad.h.
5416 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5417 instead of <bits/wordsize.h>.
5418 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5419 and [__SEM_PAD_AFTER_TIME].
5420 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5421 __syscall_ulong_t instead of unsigned long int.
5422 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5423 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5424 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5425 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5426 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5427 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5428 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5429 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5430 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5431 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5432 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5433
5434 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5435
5436 regex: simplify by using intprops.h
5437 [BZ#23744]
5438 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5439 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5440 intprops.h defines them.
5441
5442 regex: __builtin_expect → __glibc_unlikely
5443 [BZ#23744]
5444 This refactoring was prompted by a problem when the regex code is
5445 used as part of Gnulib and when the builder’s compiler does not grok
5446 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5447 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5448 Although this refactoring does not fix the problem directly,
5449 we might as well have Gawk use the now-preferred glibc style for when
5450 __builtin_expect is unavailable.
5451 * posix/regex_internal.h (BE): Remove.
5452 All uses replaced by __glibc_unlikely or __glibc_likely.
5453
5454 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5455
5456 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5457 bits/msq-pad.h.
5458 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5459 instead of <bits/wordsize.h>.
5460 (msgqnum_t): Define as __syscall_ulong_t.
5461 (msglen_t): Likewise.
5462 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5463 and [__MSQ_PAD_AFTER_TIME].
5464 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5465 __syscall_ulong_t instead of unsigned long int.
5466 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5467 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5468 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5469 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5470 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5471 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5472 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5473 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5474 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5475 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5476 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5477
5478 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5479
5480 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5481 (struct shmid_ds): Condition padding after time fields on
5482 [__WORDSIZE == 32].
5483 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5484 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5485 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5486
5487 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5488 (struct semid_ds): Condition padding after time fields on
5489 [__WORDSIZE == 32].
5490 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5491 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5492 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5493 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5494
5495 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5496 (struct msqid_ds): Condition padding after time fields on
5497 [__WORDSIZE == 32].
5498 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5499 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5500 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5501 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5502
5503 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5504
5505 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5506
5507 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5508
5509 * libio/tst-readline.c (TIMEOUT): Define.
5510
5511 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5512
5513 mktime fix for Gnulib + coreutils
5514 [BZ#23745]
5515 This fix affects only Gnulib. Problem discovered when
5516 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5517 * time/mktime.c:
5518 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5519 Do not define since it is not used. Defining an unused static
5520 function prompts a warning from GCC when Coreutils is configured
5521 with --enable-gcc-warnings.
5522
5523 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5524
5525 * benchtests/scripts/compare_bench.py (main): set float type on
5526 threshold argument.
5527
5528 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5529
5530 [BZ #23740]
5531 * localedata/locales/kl_GL (mon): Update, the relative case.
5532 (alt_mon): Add, fill with month names in the nominative case.
5533 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5534 (d_fmt): Set to "%b %d %Y".
5535
5536 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5537
5538 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5539 <bits/mman-linux.h>.
5540 (PROT_READ): Don't define here.
5541 (PROT_WRITE): Likewise.
5542 (PROT_EXEC): Likewise.
5543 (PROT_NONE): Likewise.
5544 (PROT_GROWSDOWN): Likewise.
5545 (PROT_GROWSUP): Likewise.
5546 (MAP_SHARED): Likewise.
5547 (MAP_PRIVATE): Likewise.
5548 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5549 [__USE_MISC] (MAP_FILE): Likewise.
5550 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5551 [__USE_MISC] (MAP_ANON): Likewise.
5552 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5553 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5554 (MCL_CURRENT): Likewise.
5555 (MCL_FUTURE): Likewise.
5556 (MCL_ONFAULT): Likewise.
5557 [__USE_MISC] (MADV_NORMAL): Likewise.
5558 [__USE_MISC] (MADV_RANDOM): Likewise.
5559 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5560 [__USE_MISC] (MADV_WILLNEED): Likewise.
5561 [__USE_MISC] (MADV_DONTNEED): Likewise.
5562 [__USE_MISC] (MADV_FREE): Likewise.
5563 [__USE_MISC] (MADV_REMOVE): Likewise.
5564 [__USE_MISC] (MADV_DONTFORK): Likewise.
5565 [__USE_MISC] (MADV_DOFORK): Likewise.
5566 [__USE_MISC] (MADV_HWPOISON): Likewise.
5567 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5568 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5569 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5570 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5571 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5572 (__MAP_ANONYMOUS): New macro.
5573 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5574 <bits/mman-linux.h> inclusion.
5575 (MAP_FIXED): Likewise.
5576 (MS_SYNC): Likewise.
5577 (MS_ASYNC): Likewise.
5578 (MS_INVALIDATE): Likewise.
5579 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5580 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5581 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5582 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5583 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5584 [__USE_MISC] (MADV_DODUMP): Likewise.
5585 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5586 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5587
5588 [BZ #23735]
5589 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5590 Define.
5591 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5592 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5593 Add test-nldbl-redirect.
5594 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5595 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5596 $(objpfx)libnldbl_nonshared.a.
5597
5598 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5599
5600 * support/support.h (support_objdir_elf_ldso): New variable.
5601 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5602 * support/Makefile (CFLAGS-support_paths.c): Add definition
5603 for OBJDIR_ELF_LDSO_PATH.
5604 * support/test-container.c (main): Search for the ld.so
5605 which is also used by the testsuite.
5606
5607 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5608
5609 [BZ #20209]
5610 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5611 should be "sap" rather than "sab".
5612 (day): Fix spelling of Sunday, should be "sapaat" rather than
5613 "sabaat".
5614
5615 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5616
5617 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5618
5619 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5620
5621 [BZ #19444]
5622 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5623 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5624 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5625
5626 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5627
5628 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5629
5630 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5631
5632 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5633 Add -mrtm.
5634 (CFLAGS-elision-unlock.c): Likewise.
5635 (CFLAGS-elision-timed.c): Likewise.
5636 (CFLAGS-elision-trylock.c): Likewise.
5637 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5638
5639 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5640
5641 [BZ #21037]
5642 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5643 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5644 new fd_to_filename interface.
5645 * libio/freopen64.c (freopen64): Likewise.
5646 * libio/tst-memstream.h: New file.
5647 * libio/tst-memstream4.c: Likewise.
5648 * libio/tst-wmemstream4.c: Likewise.
5649 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5650 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5651 and remove internal dynamic allocation.
5652
5653 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5654
5655 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5656 (MREMAP_MAYMOVE): Do not define here.
5657 [__USE_GNU] (MREMAP_FIXED): Likewise.
5658 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5659 (MREMAP_MAYMOVE): Define here instead.
5660 [__USE_GNU] (MREMAP_FIXED): Likewise.
5661 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5662 (MREMAP_MAYMOVE): Remove.
5663 [__USE_GNU] (MREMAP_FIXED): Likewise.
5664
5665 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5666
5667 * math/fromfp.h: Do not include <math_private.h>.
5668 * math/s_cacosh_template.c: Likewise.
5669 * math/s_casin_template.c: Likewise.
5670 * math/s_casinh_template.c: Likewise.
5671 * math/s_ccos_template.c: Likewise.
5672 * math/s_cproj_template.c: Likewise.
5673 * math/s_fdim_template.c: Likewise.
5674 * math/s_fmaxmag_template.c: Likewise.
5675 * math/s_fminmag_template.c: Likewise.
5676 * math/s_iseqsig_template.c: Likewise.
5677 * math/s_ldexp_template.c: Likewise.
5678 * math/s_nextdown_template.c: Likewise.
5679 * math/w_log1p_template.c: Likewise.
5680 * math/w_scalbln_template.c: Likewise.
5681 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5682 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5683 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5684 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5685 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5686 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5687 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5688 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5689 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5690 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5691 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5692 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5693 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5694 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5695 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5696 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5697 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5698 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5699 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5700 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5701 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5702 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5703 * sysdeps/ieee754/k_standardf.c: Likewise.
5704 * sysdeps/ieee754/k_standardl.c: Likewise.
5705 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5706 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5707 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5708 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5709 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5710 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5711 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5712 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5713 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5714 * sysdeps/ieee754/s_signgam.c: Likewise.
5715 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5716 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5717 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5718 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5719 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5720 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5721 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5722 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5723 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5724 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5725 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5726 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5727 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5728 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5729 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5730 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5731 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5732 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5733 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5734 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5735 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5736 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5737 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5738 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5739 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5740 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5741 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5742 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5743 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5744 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5745 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5746 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5747 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5748 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5749 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5750 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5751 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5752 <math_private.h>.
5753 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5754
5755 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5756
5757 [BZ #23716]
5758 * sysdeps/i386/dl-cet.c: Removed.
5759 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5760 prototype.
5761 (_dl_runtime_profile_shstk): Likewise.
5762 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5763 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5764
5765 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5766
5767 [BZ #23579]
5768 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5769 do_test_with_invalid_iov): New tests.
5770 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5771 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5772 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5773 errno is ENOSYS.
5774 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5775 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5776 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5777
5778 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5779
5780 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5781 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5782 (MATH_REDIRECT_BINARY_ARGS): New macro.
5783 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5784 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5785 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5786 header inclusion.
5787 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5788 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5789 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5790 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5791 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5792 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5793 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5794 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5795 Likewise.
5796 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5797 Likewise.
5798 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5799 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5800 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5801 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5802 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5803 Likewise.
5804 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5805 Likewise.
5806 * sysdeps/generic/math_private_calls.h
5807 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5808 Do not declare and define as an inline function.
5809 * math/divtc3.c (__divtc3): Use copysign functions instead of
5810 __copysign variants.
5811 * math/multc3.c (__multc3): Likewise.
5812 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5813 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5814 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5815 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5816 Likewise.
5817 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5818 (__ieee754_yn): Likewise.
5819 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5820 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5821 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5822 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5823 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5824 (__sin): Likewise.
5825 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5826 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5827 Likewise.
5828 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5829 Likewise.
5830 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5831 Likewise.
5832 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5833 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5834 Likewise.
5835 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
5836 (__ieee754_ynf): Likewise.
5837 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
5838 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5839 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
5840 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5841 Likewise.
5842 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5843 (__ieee754_ynl): Likewise.
5844 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5845 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5846 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5847 Likewise.
5848 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5849 (__ieee754_ynl): Likewise.
5850 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
5851 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5852 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5853 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5854 Likewise.
5855 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
5856 (__ieee754_ynl)
5857 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
5858 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
5859 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
5860 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
5861 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5862
5863 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5864 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
5865 using MATH_REDIRECT.
5866 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
5867 header inclusion.
5868 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
5869 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5870 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5871 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
5872 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5873 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5874 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5875 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
5876 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
5877 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
5878 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
5879 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5880 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5881 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5882 (round): Redirect to __round.
5883 (__roundl): Call round instead of __round.
5884 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
5885 Remove macro.
5886 [_ARCH_PWR5X] (__roundf): Likewise.
5887 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
5888 functions instead of __round variants.
5889 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
5890 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
5891 Likewise.
5892 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
5893 Likewise.
5894 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
5895 Likewise.
5896 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
5897 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
5898 __lroundl.
5899 (__ieee754_expl): Call roundl instead of __roundl.
5900
5901 2018-09-27 Andreas Schwab <schwab@suse.de>
5902
5903 [BZ #23717]
5904 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
5905 (do_test): Make st1 static.
5906
5907 2018-09-26 Andreas Schwab <schwab@suse.de>
5908
5909 [BZ #23707]
5910 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
5911 * elf/Makefile (tests): Add tst-unwind-ctor.
5912 (modules-names): Add tst-unwind-ctor-lib.
5913 ($(objpfx)tst-unwind-ctor): Depend on
5914 $(objpfx)tst-unwind-ctor-lib.so.
5915
5916 2018-09-26 Joseph Myers <joseph@codesourcery.com>
5917
5918 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
5919 file. Most contents moved from ....
5920 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
5921 and include <bits/mman-map-flags-generic.h>.
5922 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5923 (sysdep_headers): Add bits/mman-map-flags-generic.h.
5924 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
5925 <bits/mman-map-flags-generic.h>.
5926 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
5927 macros defined in <bits/mman-map-flags-generic.h>.
5928 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
5929 <bits/mman-map-flags-generic.h>.
5930 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
5931 defined in <bits/mman-map-flags-generic.h>.
5932
5933 2018-09-26 Andreas Schwab <schwab@suse.de>
5934
5935 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
5936 output.
5937
5938 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
5939 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5940 Fangrui Song <maskray@google.com>
5941
5942 [BZ #20480]
5943 * config.make.in (have-textrel_ifunc): New define.
5944 * configure.ac: Add check if linker supports textrel relocation with
5945 ifunc.
5946 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
5947 tst-ifunc-textrel.
5948 (CFLAGS-tst-ifunc-textrel.c): New rule.
5949 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
5950 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
5951 * elf/tst-ifunc-textrel.c: New file.
5952
5953 2018-09-25 Joseph Myers <joseph@codesourcery.com>
5954
5955 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
5956 <bits/procfs-prregset.h>.
5957 (prgregset_t): Define using __prgregset_t.
5958 (prfpregset_t): Define using __prfpregset_t.
5959 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5960 (sysdep_headers): Add bits/procfs-prregset.h.
5961 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
5962 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
5963 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
5964 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
5965
5966 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
5967 <bits/procfs-id.h> and <bits/procfs-extra.h>.
5968 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
5969 pr_uid and pr_gid.
5970 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5971 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
5972 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
5973 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
5974 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
5975 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
5976 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
5977 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
5978 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
5979 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
5980 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
5981 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
5982 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
5983 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
5984 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
5985 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
5986 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
5987 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
5988 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
5989 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
5990 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
5991 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
5992 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
5993 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
5994
5995 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
5996 AArch64 version. Include <bits/procfs.h>.
5997 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5998 (sysdep_headers): Add bits/procfs.h.
5999 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6000 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6001 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6002 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6003 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6004 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6005 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6006 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6007 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6008 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6009 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6010 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6011 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6012 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6013 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6014 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6015 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6016
6017 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6018
6019 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6020 Use libsupport.
6021
6022 2018-09-25 Arjun Shankar <arjun@redhat.com>
6023
6024 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6025 (__gconv_max_path_elem_len): Likewise.
6026 (__gconv_nmodules): Likewise.
6027 (__gconv_get_path): Likewise.
6028 (path_elem): Move to ...
6029 * iconv/gconv_conf.c: ... here.
6030 (__gconv_get_path): Mark function static.
6031 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6032 * iconv/gconv_open.c: ... here.
6033
6034 2018-09-24 Andreas Schwab <schwab@suse.de>
6035
6036 * scripts/haveversions.awk: New file.
6037 * Makerules ($(common-objpfx)Versions.def)
6038 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6039 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6040 Move rules ...
6041 * Makeconfig ($(common-objpfx)Versions.def)
6042 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6043 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6044 ... here.
6045 ($(common-objpfx)Versions.mk): New rule. Include it.
6046 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6047 Emit error if build-obsolete-nsl = yes.
6048 * manual/install.texi (Configuring and compiling): Describe
6049 --enable-obsolete-nsl as unavaiable after version 2.28.
6050 * INSTALL: Regenerate.
6051
6052 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6053
6054 * NEWS: Add note about new TLE support on powerpc64le.
6055 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6056 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6057 __ununsed1.
6058 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6059 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6060 * sysdeps/powerpc/powerpc32/sysdep.h,
6061 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6062 ABORT_TRANSACTION): Remove macros.
6063 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6064 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6065 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6066 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6067 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6068 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6069 usage.
6070 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6071
6072 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6073
6074 [BZ #10425]
6075 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6076 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6077 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6078 which is the same as in it_IT.
6079 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6080 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6081
6082 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6083
6084 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6085 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6086 using MATH_REDIRECT.
6087 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6088 header inclusion.
6089 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6090 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6091 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6092 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6093 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6094 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6095 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6096 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6097 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6098 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6099 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6100 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6101 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6102 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6103 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6104 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6105 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6106 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6107 (ceil): Redirect to __ceil.
6108 (floor): Redirect to __floor.
6109 (trunc): Redirect to __trunc.
6110 (__truncl): Call trunc instead of __trunc.
6111 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6112 Remove macro.
6113 [_ARCH_PWR5X] (__truncf): Likewise.
6114 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6115 trunc functions instead of __trunc variants.
6116 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6117 Likewise.
6118 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6119 Likewise.
6120 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6121 Likewise.
6122 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6123 Likewise.
6124
6125 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6126 [__i586__ || __pentium__].
6127 [__i486__]: Handle explicitly.
6128 (HAS_CPUID): Define to 1 if above macros are undefined.
6129 (HAS_I586): Likewise.
6130 (HAS_I686): Likewise.
6131
6132 2018-09-20 Florian Weimer <fweimer@redhat.com>
6133
6134 * misc/tst-gethostid.c: New file.
6135 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6136 (tst-gethostid): Link with -ldl.
6137
6138 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6139
6140 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6141 value from gethostbyname_r.
6142
6143 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6144
6145 * stdlib/tst-setcontext9.c (f1): Rename to...
6146 (f1a): ... this.
6147 (f1b): New function implementing lower half of f1 in alternate stack.
6148
6149 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6150
6151 Fix mktime localtime offset confusion
6152 [BZ #23603]
6153 * include/time.h (__mktime_internal): The localtime offset is now
6154 of type long int instead of time_t. This is the longstanding type
6155 in glibc, and it is more than enough to represent difference
6156 between localtime and gmtime even if it is 32 bits and time_t is
6157 64. Changing it now will let us avoid an unnecessary change when
6158 time_t is widened to 64 bits on 32-bit platforms.
6159 * time/mktime-internal.h (mktime_offset_t): Now long int.
6160
6161 Merge mktime, timegm from upstream Gnulib
6162 [BZ #23603][BZ #16346]
6163 This fixes some obscure problems with integer overflow.
6164 Although it looks scary, it is almost all a byte-for-byte copy
6165 from Gnulib, and the Gnulib code has been tested reasonably well.
6166 * include/intprops.h: New file, copied from Gnulib.
6167 * include/verify.h, time/mktime-internal.h:
6168 New tiny files, simplified from Gnulib.
6169 * time/mktime.c: Copy from Gnulib. This has the following changes:
6170 Do not include config.h if DEBUG_MKTIME is nonzero.
6171 Include stdbool.h, intprops.h, verify.h.
6172 Include string.h only if needed.
6173 Include stdlib.h on MS-Windows.
6174 Include mktime-internal.h.
6175 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6176 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6177 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6178 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6179 simplify later conditionals; default the others to zero. Use
6180 these conditionals to express only the code needed on the current
6181 platform. In uses of these conditionals, explicitly spell out how
6182 _LIBC affects things, so it’s easier to review from a glibc
6183 viewpoint.
6184 (WRAPV): Remove; no longer needed now that we have
6185 systematic overflow checking.
6186 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6187 compartmentalize tzset issues. Move system-dependent tzsettish
6188 code here from mktime.
6189 (verify): Remove; now done by verify.h. All uses changed.
6190 (long_int): Use a more-conservative definition, to avoid
6191 integer overflow.
6192 (SHR): Remove, replacing with ...
6193 (shr): New function, which means we needn’t worry about side
6194 effects in args, and conversion analysis is simpler.
6195 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6196 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6197 (time_t_avg, time_t_add_ok): Remove.
6198 (mktime_min, mktime_max): New constants.
6199 (leapyear, isdst_differ): Use bool for booleans.
6200 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6201 Use long_int, not time_t, for mktime differences.
6202 (long_int_avg): New function, replacing time_t_avg.
6203 INT_ADD_WRAPV replaces time_t_add_ok.
6204 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6205 All uses changed.
6206 (convert_time): New function.
6207 (ranged_convert): Use it.
6208 (__mktime_internal): Last arg now points to mktime_offset_t, not
6209 time_t. All uses changed. This is a no-op on glibc, where
6210 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6211 offset guess. Directly check for integer overflow instead of
6212 using a heuristic that works only 99.9...% of the time.
6213 Access *OFFSET only once, to avoid an unlikely race if the
6214 compiler delays a load and if this cascades into a signed integer
6215 overflow.
6216 (mktime): Move tzsettish code to my_tzset, and move
6217 localtime_offset to within mktime so that it doesn’t
6218 need a separate ifdef.
6219 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6220 instead of localtime.
6221 * time/timegm.c: Copy from Gnulib. This has the following changes:
6222 Include mktime-internal.h.
6223 [!_LIBC]: Include config.h and time.h. Do not include
6224 timegm.h or time_r.h. Make __mktime_internal a macro,
6225 and include mktime-internal.h to get its declaration.
6226 (timegm): Temporary is now mktime_offset_t, not time_t.
6227 This affects only Gnulib.
6228
6229 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6230
6231 [BZ #23637]
6232 * string/test-strstr.c (pr23637): New function.
6233 (test_main): Add tests with longer needles.
6234 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6235 * string/strstr.c (AVAILABLE): Likewise.
6236
6237 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6238
6239 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6240
6241 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6242
6243 * NEWS: Mention pow improvements.
6244 * math/Makefile (type-double-routines): Add e_pow_log_data.
6245 * sysdeps/generic/math_private.h (__exp1): Remove.
6246 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6247 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6248 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6249 contraction.
6250 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6251 (exp_inline): Remove.
6252 (__ieee754_exp): Only single double input is handled.
6253 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6254 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6255 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6256 (__pow_log_data): Define.
6257 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6258 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6259 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6260 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6261 contraction.
6262 (CFLAGS-e_pow-fma4.c): Likewise.
6263
6264 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6265
6266 Simplify tzfile fstat failure code
6267 [BZ #21716]
6268 * time/tzfile.c (__tzfile_read): Simplify slightly.
6269
6270 Fix tzfile low-memory assertion failure
6271 [BZ #21716]
6272 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6273 when registering time zone abbreviations.
6274
6275 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6276
6277 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6278 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6279 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6280 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6281 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6282 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6283 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6284 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6285 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6286
6287 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6288 __ceil.
6289 (__ceill): Call ceil instead of __ceil.
6290 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6291 __floor.
6292 (__floorl): Call floor instead of __floor.
6293
6294 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6295
6296 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6297 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6298 using MATH_REDIRECT.
6299 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6300 header inclusion.
6301 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6302 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6303 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6304 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6305 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6306 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6307 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6308 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6309 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6310 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6311 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6312 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6313 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6314 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6315 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6316 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6317 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6318 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6319 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6320 Remove macro.
6321 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6322 functions instead of __ceil variants.
6323 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6324 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6325 Likewise.
6326 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6327 Likewise.
6328 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6329 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6330 Likewise.
6331 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6332 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6333
6334 [BZ #21286]
6335 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6336 constant.
6337 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6338 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6339 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6340 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6341 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6342 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6343 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6344 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6345 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6346 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6347 (ILL_BADIADDR): Remove constant.
6348 (TRAP_BRANCH): Likewise.
6349 (TRAP_HWBKPT): Likewise.
6350
6351 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6352
6353 [BZ #23656]
6354 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6355 Remove [_MIPS_SIM = _ABIN32] conditional case.
6356 (struct elf_prpsinfo): Likewise.
6357
6358 [BZ #23649]
6359 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6360 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6361 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6362 Likewise.
6363 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6364 elf_prpsinfo): Likewise.
6365 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6366 elf_prpsinfo): Likewise.
6367 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6368 Likewise.
6369
6370 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6371 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6372 using MATH_REDIRECT.
6373 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6374 header inclusion.
6375 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6376 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6377 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6378 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6379 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6380 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6381 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6382 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6383 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6384 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6385 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6386 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6387 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6388 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6389 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6390 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6391 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6392 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6393 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6394 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6395 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6396 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6397 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6398 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6399 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6400 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6401 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6402 __rint variants.
6403 * math/e_scalbf.c (invalid_fn): Likewise.
6404 * math/e_scalbl.c (invalid_fn): Likewise.
6405 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6406 Likewise.
6407 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6408 Likewise.
6409 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6410 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6411 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6412 Likewise.
6413 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6414 Likewise.
6415 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6416 Likewise.
6417 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6418 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6419
6420 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6421 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6422 New macro.
6423 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6424 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6425 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6426 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6427 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6428 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6429 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6430 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6431 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6432 && !NO_MATH_REDIRECT] (floor): Likewise.
6433 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6434 header inclusion.
6435 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6436 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6437 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6438 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6439 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6440 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6441 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6442 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6443 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6444 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6445 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6446 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6447 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6448 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6449 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6450 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6451 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6452 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6453 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6454 Remove macro.
6455 [_ARCH_PWR5X] (__floorf): Likewise.
6456 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6457 inline function.
6458 [__SSE4_1__] (__floorf): Likewise.
6459 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6460 instead of __floor variants.
6461 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6462 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6463 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6464 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6465 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6466 * math/w_tgamma_compat.c (__tgamma): Likewise.
6467 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6468 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6469 * math/w_tgammal_compat.c (__tgammal): Likewise.
6470 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6471 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6472 Likewise.
6473 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6474 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6475 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6476 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6477 Likewise.
6478 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6479 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6480 Likewise.
6481 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6482 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6483 Likewise.
6484 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6485 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6486 Likewise.
6487 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6488 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6489 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6490 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6491 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6492 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6493
6494 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6495
6496 * elf/Makefile (modules-names-tests): New variable.
6497
6498 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6499
6500 * NEWS: Mention log2 improvements.
6501 * math/Makefile (type-double-routines): Add e_log2_data.
6502 * sysdeps/i386/fpu/e_log2_data.c: New file.
6503 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6504 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6505 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6506 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6507 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6508 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6509
6510 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6511
6512 * NEWS: Mention log improvement.
6513 * math/Makefile (type-double-routines): Add e_log_data.
6514 * sysdeps/i386/fpu/e_log_data.c: New file.
6515 * sysdeps/ia64/fpu/e_log_data.c: New file.
6516 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6517 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6518 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6519 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6520 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6521 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6522
6523 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6524 Xuepeng Guo <xuepeng.guo@intel.com>
6525
6526 [BZ #23606]
6527 * sysdeps/i386/start.S: Include <sysdep.h>
6528 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6529 enabled. Add cfi_undefined (eip).
6530
6531 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6532
6533 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6534 (MOVQ): Likewise.
6535 (EXTRACT_WORDS64): Likewise.
6536 (INSERT_WORDS64): Likewise.
6537 (GET_FLOAT_WORD): Likewise.
6538 (SET_FLOAT_WORD): Likewise.
6539
6540 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6541 argument.
6542 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6543 build, but not for second build if --full-gcc. Use
6544 --enable-languages=all for second build if --full-gcc.
6545 (get_parser): Add --full-gcc option.
6546 (main): Update call to Context.
6547
6548 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6549
6550 [BZ #10797]
6551 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6552 Single Quotation Mark).
6553 (thousands_sep): Likewise.
6554 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6555 * localedata/locales/it_IT (thousands_sep): Use ".".
6556 (grouping): Use "3;3".
6557
6558 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6559
6560 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6561 x86_64 and i686 configs using --enable-obsolete-rpc
6562 --enable-obsolete-nsl.
6563
6564 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6565
6566 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6567
6568 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6569
6570 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6571 Increment size of new_argv by one.
6572
6573 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6574
6575 [BZ #17426]
6576 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6577 * localedata/locales/ar_IN (d_fmt): Likewise.
6578 * localedata/locales/bhb_IN (d_fmt): Likewise.
6579 * localedata/locales/bho_IN (d_fmt): Likewise.
6580 * localedata/locales/bn_BD (d_fmt): Likewise.
6581 * localedata/locales/bn_IN (d_fmt): Likewise.
6582 * localedata/locales/doi_IN (d_fmt): Likewise.
6583 * localedata/locales/gu_IN (d_fmt): Likewise.
6584 * localedata/locales/hi_IN (d_fmt): Likewise.
6585 * localedata/locales/hne_IN (d_fmt): Likewise.
6586 * localedata/locales/kn_IN (d_fmt): Likewise.
6587 * localedata/locales/mag_IN (d_fmt): Likewise.
6588 * localedata/locales/mai_IN (d_fmt): Likewise.
6589 * localedata/locales/mjw_IN (d_fmt): Likewise.
6590 * localedata/locales/ml_IN (d_fmt): Likewise.
6591 * localedata/locales/mni_IN (d_fmt): Likewise.
6592 * localedata/locales/mr_IN (d_fmt): Likewise.
6593 * localedata/locales/pa_IN (d_fmt): Likewise.
6594 * localedata/locales/raj_IN (d_fmt): Likewise.
6595 * localedata/locales/sat_IN (d_fmt): Likewise.
6596 * localedata/locales/sd_IN (d_fmt): Likewise.
6597 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6598 * localedata/locales/ta_IN (d_fmt): Likewise.
6599 * localedata/locales/ta_LK (d_fmt): Likewise.
6600 * localedata/locales/tcy_IN (d_fmt): Likewise.
6601 * localedata/locales/ur_IN (d_fmt): Likewise.
6602
6603 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6604 * localedata/locales/ks_IN (d_fmt): Likewise.
6605 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6606
6607 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6608 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6609 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6610 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6611
6612 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6613
6614 * NEWS: Mention exp and exp2 improvements.
6615 * math/Makefile (libm-support): Remove t_exp.
6616 (type-double-routines): Add math_err and e_exp_data.
6617 * sysdeps/aarch64/libm-test-ulps: Update.
6618 * sysdeps/arm/libm-test-ulps: Update.
6619 * sysdeps/i386/fpu/e_exp_data.c: New file.
6620 * sysdeps/i386/fpu/math_err.c: New file.
6621 * sysdeps/i386/fpu/t_exp.c: Remove.
6622 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6623 * sysdeps/ia64/fpu/math_err.c: New file.
6624 * sysdeps/ia64/fpu/t_exp.c: Remove.
6625 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6626 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6627 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6628 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6629 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6630 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6631 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6632 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6633 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6634 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6635 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6636 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6637 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6638 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6639 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6640 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6641
6642 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6643
6644 * sysdeps/alpha/fpu/math_private.h: Remove.
6645
6646 * sysdeps/generic/math_private.h
6647 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6648 Move this inline function ....
6649 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6650 * include/math.h [!_ISOMAC]: To here....
6651
6652 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6653
6654 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6655 code ....
6656 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6657 * include/fenv.h [!_ISOMAC]: ... to here.
6658 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6659 (feraiseexcept): Likewise.
6660 * math/fromfp.h: Do not include <fenv_private.h>.
6661 * math/s_cexp_template.c: Likewise.
6662 * math/s_csin_template.c: Likewise.
6663 * math/s_csinh_template.c: Likewise.
6664 * math/s_ctan_template.c: Likewise.
6665 * math/s_ctanh_template.c: Likewise.
6666 * math/s_iseqsig_template.c: Likewise.
6667 * math/w_acos_compat.c: Likewise.
6668 * math/w_acosf_compat.c: Likewise.
6669 * math/w_acosl_compat.c: Likewise.
6670 * math/w_asin_compat.c: Likewise.
6671 * math/w_asinf_compat.c: Likewise.
6672 * math/w_asinl_compat.c: Likewise.
6673 * math/w_j0_compat.c: Likewise.
6674 * math/w_j0f_compat.c: Likewise.
6675 * math/w_j0l_compat.c: Likewise.
6676 * math/w_j1_compat.c: Likewise.
6677 * math/w_j1f_compat.c: Likewise.
6678 * math/w_j1l_compat.c: Likewise.
6679 * math/w_jn_compat.c: Likewise.
6680 * math/w_jnf_compat.c: Likewise.
6681 * math/w_log10_compat.c: Likewise.
6682 * math/w_log10f_compat.c: Likewise.
6683 * math/w_log10l_compat.c: Likewise.
6684 * math/w_log2_compat.c: Likewise.
6685 * math/w_log2f_compat.c: Likewise.
6686 * math/w_log2l_compat.c: Likewise.
6687 * math/w_log_compat.c: Likewise.
6688 * math/w_logf_compat.c: Likewise.
6689 * math/w_logl_compat.c: Likewise.
6690 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6691 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6692 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6693 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6694 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6695 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6696 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6697 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6698 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6699 * sysdeps/ieee754/k_standardl.c: Likewise.
6700 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6701 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6702 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6703 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6704 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6705 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6706 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6707 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6708 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6709 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6710 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6711 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6712 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6713 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6714 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6715 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6716 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6717 * math/w_ilogb_template.c: Include <fenv.h> instead of
6718 <fenv_private.h>.
6719 * math/w_llogb_template.c: Likewise.
6720 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6721 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6722
6723 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6724
6725 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6726 * math/fromfp.h: Include <fenv_private.h>.
6727 * math/math-narrow.h: Likewise.
6728 * math/s_cexp_template.c: Likewise.
6729 * math/s_csin_template.c: Likewise.
6730 * math/s_csinh_template.c: Likewise.
6731 * math/s_ctan_template.c: Likewise.
6732 * math/s_ctanh_template.c: Likewise.
6733 * math/s_iseqsig_template.c: Likewise.
6734 * math/w_acos_compat.c: Likewise.
6735 * math/w_acosf_compat.c: Likewise.
6736 * math/w_acosl_compat.c: Likewise.
6737 * math/w_asin_compat.c: Likewise.
6738 * math/w_asinf_compat.c: Likewise.
6739 * math/w_asinl_compat.c: Likewise.
6740 * math/w_ilogb_template.c: Likewise.
6741 * math/w_j0_compat.c: Likewise.
6742 * math/w_j0f_compat.c: Likewise.
6743 * math/w_j0l_compat.c: Likewise.
6744 * math/w_j1_compat.c: Likewise.
6745 * math/w_j1f_compat.c: Likewise.
6746 * math/w_j1l_compat.c: Likewise.
6747 * math/w_jn_compat.c: Likewise.
6748 * math/w_jnf_compat.c: Likewise.
6749 * math/w_llogb_template.c: Likewise.
6750 * math/w_log10_compat.c: Likewise.
6751 * math/w_log10f_compat.c: Likewise.
6752 * math/w_log10l_compat.c: Likewise.
6753 * math/w_log2_compat.c: Likewise.
6754 * math/w_log2f_compat.c: Likewise.
6755 * math/w_log2l_compat.c: Likewise.
6756 * math/w_log_compat.c: Likewise.
6757 * math/w_logf_compat.c: Likewise.
6758 * math/w_logl_compat.c: Likewise.
6759 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6760 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6761 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6762 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6763 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6764 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6765 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6766 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6767 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6768 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6769 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6770 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6771 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6772 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6773 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6774 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6775 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6776 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6777 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6778 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6779 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6780 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6781 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6782 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6783 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6784 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6785 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6786 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6787 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6788 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6789 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6790 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6791 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6792 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6793 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6794 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6795 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6796 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6797 * sysdeps/ieee754/k_standardl.c: Likewise.
6798 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6799 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6800 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6801 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6802 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6803 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6804 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6805 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6806 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6807 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6808 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6809 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6810 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6811 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6812 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6813 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6814 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6815 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6816 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6817 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6818 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6819 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6820 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6821 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6822 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6823 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6824 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6825 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6826 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6827 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6828 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6829 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6830 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6831 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6832 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6833 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6834 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6835 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6836 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6837 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6838 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6839 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6840 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6841 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6842 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6843 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6844 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6845 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6846 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6847 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6848 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6849 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6850 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6851 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6852 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6853 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6854 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6855 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6856 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6857 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6858 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6859 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6860 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6861 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6862 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6863 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6864 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6865 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6866 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6867 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6868 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6869
6870 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6871
6872 [BZ #20271]
6873 * include/stdio.h (__libc_fatal): Mention newline in comment.
6874 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
6875 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
6876 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6877 * nss/nsswitch.c (__nss_next2): Likewise.
6878 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
6879 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
6880 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
6881 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
6882 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
6883 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
6884 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
6885 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
6886 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
6887 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
6888 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
6889 * sysdeps/unix/sysv/linux/netlink_assert_response.c
6890 (__netlink_assert_response): Likewise.
6891
6892 2018-08-31 Joseph Myers <joseph@codesourcery.com>
6893
6894 * conform/glibcconform.py: New file.
6895 * conform/list-header-symbols.py: Likewise.
6896 * conform/list-header-symbols.pl: Remove.
6897 * conform/Makefile (tests-special): Only add linknamespace tests
6898 if [PYTHON].
6899 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
6900
6901 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
6902
6903 [BZ #23597]
6904 * support/Makefile (libsupport-routines): Add
6905 support_copy_file_range and xcopy_file_range.
6906 * support/support.h: Include <sys/types.h>.
6907 (support_copy_file_range): New prototype.
6908 * support/support_copy_file_range.c: New file. Copied and
6909 modified from io/copy_file_range-compat.c.
6910 * support/test-container.c (copy_one_file): Call xcopy_file_rang
6911 instead of copy_file_range.
6912 * support/xcopy_file_range.c: New file.
6913 * support/xunistd.h (xcopy_file_range): New prototype.
6914
6915 2018-08-30 Carlos O'Donell <carlos@redhat.com>
6916
6917 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
6918 xpthread_create and xpthread_join.
6919
6920 2018-08-30 Florian Weimer <fweimer@redhat.com>
6921
6922 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
6923
6924 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
6925
6926 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
6927 if malloc fails.
6928
6929 2018-08-29 Joseph Myers <joseph@codesourcery.com>
6930
6931 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
6932 and minus_oflow as non-finite.
6933
6934 2018-08-28 Joseph Myers <joseph@codesourcery.com>
6935
6936 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
6937 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
6938 moved to fenv_private.h except for ...
6939 (TOINT_INTRINSICS): Kept in math_private.h.
6940 (roundtoint): Likewise.
6941 (converttoint): Likewise.
6942 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
6943 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6944 * sysdeps/arm/math_private.h: Remove.
6945 * sysdeps/generic/fenv_private.h: New file. Contents moved from
6946 ....
6947 * sysdeps/generic/math_private.h: ... this file. Include
6948 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
6949 Include <fenv_private.h>. Remove functions and macros moved to
6950 fenv_private.h.
6951 * sysdeps/i386/fpu/math_private.h: Remove.
6952 * sysdeps/mips/math_private.h: Move to ....
6953 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
6954 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
6955 [__mips_hard_float] conditional. Include next <fenv_private.h>.
6956 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
6957 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6958 * sysdeps/powerpc/fpu/math_private.h: Do not include
6959 <fenv_private.h>.
6960 * sysdeps/riscv/rvf/math_private.h: Move to ....
6961 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
6962 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
6963 <fenv_private.h>.
6964 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
6965 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6966 * sysdeps/sparc/fpu/math_private.h: Remove.
6967 * sysdeps/i386/fpu/fenv_private.h: Move to ....
6968 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
6969 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
6970 <fenv_private.h>.
6971 * sysdeps/x86_64/fpu/math_private.h: Do not include
6972 <sysdeps/i386/fpu/fenv_private.h>.
6973
6974 2018-08-28 Florian Weimer <fweimer@redhat.com>
6975
6976 [BZ #23578]
6977 * posix/tst-regcomp-truncated.c: New file.
6978 * posix/Makefile (tests): Add it.
6979 (tst-regcomp-truncated.out): Depend on generated locales.
6980
6981 2018-08-28 Florian Weimer <fweimer@redhat.com>
6982
6983 * support/test-container.c (main): Treat unshare failure with
6984 EPERM as an unsupported test.
6985
6986 2018-08-28 Florian Weimer <fweimer@redhat.com>
6987
6988 [BZ #23520]
6989 nscd: Fix use-after-free in addgetnetgrentX and its callers.
6990 * nscd/netgroupcache.c
6991 (addgetnetgrentX): Add tofreep parameter. Do not free
6992 heap-allocated buffer.
6993 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
6994 (addgetnetgrentX_ignore): New function.
6995 (addgetnetgrent): Call it.
6996 (readdgetnetgrent): Likewise.
6997
6998 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6999
7000 * string/memmem.c: Use memcmp for first match.
7001
7002 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7003
7004 [BZ #17426]
7005 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7006
7007 2018-08-27 DJ Delorie <dj@redhat.com>
7008
7009 * support/Makefile (others): Don't list programs explicitly as a
7010 dependency of "others".
7011
7012 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7013
7014 * sysdeps/generic/math-tests-trap-force.h: New file.
7015 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7016 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7017 * sysdeps/powerpc/math-tests.h: Remove file.
7018 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7019
7020 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7021 Torvald Riegel <triegel@redhat.com>
7022
7023 [BZ #23538]
7024 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7025 Update r to include the set wake-request flag if waiters are
7026 remaining after spinning.
7027
7028 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7029
7030 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7031
7032 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7033
7034 [BZ #23578]
7035 regex: fix uninitialized memory access
7036 I introduced this bug into gnulib in commit
7037 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7038 eventually it was merged into glibc. The bug was found by
7039 project-repo <bugs@feusi.co> and reported here:
7040 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7041 Diagnosis and draft fix reported by Assaf Gordon here:
7042 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7043 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7044 * posix/regex_internal.c (build_wcs_upper_buffer):
7045 Fix bug when mbrtowc returns 0.
7046
7047 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7048
7049 * po/be.po: Update translation.
7050
7051 2018-08-24 DJ Delorie <dj@delorie.com>
7052
7053 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7054 $(libunwind).
7055
7056 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7057
7058 [BZ #23400]
7059 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7060 create temporary files in source tree.
7061
7062 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7063
7064 * sysdeps/generic/math-tests-trap.h: New file.
7065 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7066 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7067 * sysdeps/aarch64/math-tests.h: Remove file.
7068 * sysdeps/arm/math-tests.h: Likewise.
7069 * sysdeps/riscv/math-tests.h: Likewise.
7070 * sysdeps/aarch64/math-tests-trap.h: New file.
7071 * sysdeps/arm/math-tests-trap.h: Likewise.
7072 * sysdeps/riscv/math-tests-trap.h: Likewise.
7073
7074 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7075
7076 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7077 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7078 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7079 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7080 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7081 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7082 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7083 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7084 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7085 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7086 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7087 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7088 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7089 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7090 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7091 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7092 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7093 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7094
7095 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7096
7097 * sysdeps/generic/math-tests-exceptions.h: New file.
7098 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7099 (EXCEPTION_TESTS_float): Do not define here.
7100 (EXCEPTION_TESTS_double): Likewise.
7101 (EXCEPTION_TESTS_long_double): Likewise.
7102 (EXCEPTION_TESTS_float128): Likewise.
7103 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7104 Likewise.
7105 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7106 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7107 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7108 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7109 * sysdeps/mips/math-tests.h: Likewise.
7110 * sysdeps/nios2/math-tests.h: Likewise.
7111 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7112 (EXCEPTION_TESTS_float): Do not define here.
7113 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7114 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7115 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7116
7117 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7118
7119 * NEWS: Move optimized sinf entry to 2.29.
7120
7121 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7122
7123 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7124
7125 2018-08-22 DJ Delorie <dj@redhat.com>
7126
7127 * Makefile (testroot.pristine): New rules to initialize the
7128 test-in-container "testroot".
7129 * Makerules (all-testsuite): Add tests-container.
7130 * Rules (tests-expected): Add tests-container.
7131 (binaries-all-tests): Likewise.
7132 (tests-container): New, run these tests in the testroot container.
7133 * support/Makefile (others): Add *-container, support_paths.c,
7134 xmkdirp, and links-dso-program.
7135 * support/links-dso-program-c.c: New.
7136 * support/links-dso-program.cc: New.
7137 * support/test-container.c: New.
7138 * support/shell-container.c: New.
7139 * support/echo-container.c: New.
7140 * support/true-container.c: New.
7141 * support/xmkdirp.c: New.
7142 * support/xsymlink.c: New.
7143 * support/support_paths.c: New.
7144 * support/support.h: Add support paths prototypes.
7145 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7146
7147 * nss/tst-nss-test3.c: Convert to test-in-container.
7148 * nss/tst-nss-test3.root/: New.
7149
7150 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7151
7152 regex: port Gnulib code to z/OS POSIX environment
7153 Problem reported by Arnold Robbins in:
7154 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7155 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7156 Undef.
7157
7158 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7159
7160 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7161 (ROUNDING_TESTS_double): Remove.
7162 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7163 (ROUNDING_TESTS_double): Remove.
7164 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7165 (ROUNDING_TESTS_double): Remove.
7166 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7167 (ROUNDING_TESTS_float): Remove.
7168 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7169 (ROUNDING_TESTS_float): Remove.
7170 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7171 (ROUNDING_TESTS_float): Remove.
7172 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7173 !TEST_MATHVEC here.
7174 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7175 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7176
7177 * sysdeps/generic/math-tests-rounding.h: New file.
7178 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7179 (ROUNDING_TESTS_float): Do not define here.
7180 (ROUNDING_TESTS_double): Likewise.
7181 (ROUNDING_TESTS_long_double): Likewise.
7182 (ROUNDING_TESTS_float128): Likewise.
7183 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7184 (ROUNDING_TESTS_double): Undefine before defining.
7185 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7186 (ROUNDING_TESTS_double): Undefine before defining.
7187 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7188 (ROUNDING_TESTS_double): Undefine before defining.
7189 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7190 (ROUNDING_TESTS_float): Undefine before defining.
7191 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7192 (ROUNDING_TESTS_float): Undefine before defining.
7193 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7194 (ROUNDING_TESTS_float): Undefine before defining.
7195 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7196 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7197 not define here.
7198 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7199 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7200 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7201 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7202 (ROUNDING_TESTS_float): Do not define here.
7203 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7204 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7205 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7206 (ROUNDING_TESTS_float): Likewise.
7207 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7208 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7209 * sysdeps/mips/math-tests.h [__mips_soft_float]
7210 (ROUNDING_TESTS_float): Likewise.
7211 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7212 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7213 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7214 (ROUNDING_TESTS_double): Likewise.
7215 (ROUNDING_TESTS_long_double): Likewise.
7216
7217 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7218
7219 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7220 (PF_XDP): New macro.
7221 (AF_XDP): New macro.
7222 (SOL_XDP): New macro.
7223
7224 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7225
7226 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7227 (TCP_INQ): Likewise.
7228 (TCP_CM_INQ): Likewise.
7229 (TCP_REPAIR_ON): Likewise.
7230 (TCP_REPAIR_OFF): Likewise.
7231 (TCP_REPAIR_OFF_NO_WP): Likewise.
7232 (struct tcp_zerocopy_receive): New type.
7233
7234 2018-08-21 Florian Weimer <fweimer@redhat.com>
7235
7236 * support/support.h (support_descriptor_supports_holes): Declare.
7237 * support/Makefile (libsupport-routines): Add
7238 support_descriptor_supports_holes.
7239 * support/support_descriptor_supports_holes.c: New file.
7240 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7241 and stop testing if holes are not supported.
7242 * io/test-lfs.c (do_prepare): Likewise.
7243 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7244 Likewise.
7245 * timezone/tst-tzset.c (create_tz_file): Likewise.
7246 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7247 variable.
7248 (do_prepare): Set it.
7249 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7250
7251 2018-08-21 Florian Weimer <fweimer@redhat.com>
7252
7253 [BZ #17248]
7254 * Makeconfig (+cflags): Do not sort (and deduplicate).
7255
7256 2018-08-21 Florian Weimer <fweimer@redhat.com>
7257
7258 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7259 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7260
7261 2018-08-20 Florian Weimer <fweimer@redhat.com>
7262
7263 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7264 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7265
7266 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7267
7268 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7269 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7270 and ssi_arch members.
7271
7272 * elf/elf.c (NT_VMCOREDD): New macro.
7273 (AT_MINSIGSTKSZ): Likewise.
7274
7275 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7276
7277 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7278 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7279 s_cosf-ppc64 and s_cosf-power8.
7280 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7281 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7282 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7283 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7284 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7285 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7286 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7288 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7289 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7290 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7291 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7292
7293 2018-08-17 Florian Weimer <fweimer@redhat.com>
7294
7295 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7296
7297 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7298
7299 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7300
7301 2018-08-16 Florian Weimer <fweimer@redhat.com>
7302
7303 * configure.ac: Add --with-nonshared-cflags option.
7304 * config.make.in (extra-nonshared-cflags): Set variable.
7305 * Makeconfig (CFLAGS-.oS): Use it.
7306 * manual/install.texi (Configuring and compiling): Document
7307 --with-nonshared-cflags.
7308 * configure: Regenerate.
7309 * INSTALL: Likewise.
7310
7311 2018-08-16 Florian Weimer <fweimer@redhat.com>
7312
7313 * Makeconfig (ASFLAGS): Always append required assembler flags.
7314
7315 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7316
7317 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7318 (malloc_consolidate): Likewise.
7319
7320 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7321
7322 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7323
7324 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7325
7326 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7327 every strlen call.
7328
7329 * benchtests/bench-strlen.c: Print performance numbers in json.
7330
7331 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7332
7333 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7334 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7335 only for little endian.
7336 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7337 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7338 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7339 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7340 Add check for little endian.
7341 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7342 (__strcmp_power9): Add check for little endian.
7343 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7344 Add check for little endian.
7345 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7346 (__strncmp_power9): Add check for little endian.
7347 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7348 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7349 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7350 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7351 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7352
7353 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7354
7355 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7356 [!STRLEN](STRLEN): Set to __strlen.
7357 * sysdeps/aarch64/multiarch/strlen.c: New file.
7358 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7359 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7360 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7361 (__libc_ifunc_impl_list): Add strlen.
7362 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7363 strlen_generic and strlen_asimd.
7364
7365 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7366
7367 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7368 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7369 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7370
7371 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7372
7373 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7374
7375 2018-08-14 Florian Weimer <fweimer@redhat.com>
7376
7377 [BZ #23519]
7378 * include/stdio.h (__vfxprintf): Declare.
7379 * stdio-common/fxprintf.c (__vfxprintf): New function.
7380 (__fxprintf): Call it.
7381 * misc/err.c (convert_and_print): Remove function.
7382 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7383 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7384 * misc/Makefile (tests): Add tst-warn-wide.
7385 * misc/tst-warn-wide.c: New file.
7386
7387 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7388 Szabolcs Nagy <szabolcs.nagy@arm.com>
7389
7390 * NEWS: Mention sinf, cosf, sincosf.
7391 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7392 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7393 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7394 constants rather than including generic sincosf.h.
7395 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7396 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7397 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7398 (reduced_cos): Remove.
7399 (sinf_poly): New function.
7400 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7401
7402 2018-08-14 Florian Weimer <fweimer@redhat.com>
7403
7404 [BZ #23521]
7405 [BZ #23522]
7406 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7407 processing, bail out if no room, and close the stream before
7408 returning ERANGE.
7409 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7410 (tst-nss-files-alias-leak): Link with libdl.
7411 (tst-nss-files-alias-leak.out): Depend on nss_files.
7412
7413 * nss/tst-nss-files-alias-leak.c: New file.
7414
7415 2018-08-14 Florian Weimer <fweimer@redhat.com>
7416
7417 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7418 server_user, stat_user.
7419
7420 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7421
7422 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7423 version to 4.18.
7424 (io_pgetevents): New syscall.
7425 (rseq): Likewise.
7426
7427 * manual/install.texi (Configuring and compiling): Do not list
7428 tools used for testing pretty printers here.
7429 (Tools for Compilation): List Python, PExpect and GDB here.
7430 Update descriptions of uses of Perl and Python.
7431 * INSTALL: Regenerate.
7432
7433 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7434 version to 4.18.
7435
7436 2018-08-13 Florian Weimer <fweimer@redhat.com>
7437
7438 * misc/error.c (error): Add missing va_end call.
7439 (error_at_line): Likewise.
7440
7441 2018-08-13 Florian Weimer <fweimer@redhat.com>
7442
7443 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7444
7445 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7446
7447 * benchtests/scripts/benchout.schema.json (properties): Add
7448 new properties.
7449
7450 * benchtests/bench-skeleton.c (main): Add duration and
7451 iterations attributes.
7452
7453 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7454
7455 regex: Gnulib unibyte RRI uses bytes not chars
7456 Adjust the non-glibc code to agree with what Gawk needs for
7457 rational range interpretation (RRI) for regular expression ranges.
7458 In unibyte locales, Gawk wants ranges to use the underlying byte
7459 rather than the character code point. This change does not affect
7460 glibc proper.
7461 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7462 In unibyte locales, use the byte value rather than
7463 running it through btowc.
7464
7465 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7466
7467 * sysdeps/generic/math-tests-snan.h: New file.
7468 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7469 (SNAN_TESTS_float): Do not define here.
7470 (SNAN_TESTS_double): Likewise.
7471 (SNAN_TESTS_long_double): Likewise.
7472 (SNAN_TESTS_float128): Likewise.
7473 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7474 * sysdeps/i386/fpu/math-tests.h: Remove file.
7475 * sysdeps/ia64/math-tests-snan.h: New file.
7476 * sysdeps/ia64/math-tests.h: Remove file.
7477 * sysdeps/x86/math-tests.h: Likewise.
7478 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7479
7480 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7481 Szabolcs Nagy <szabolcs.nagy@arm.com>
7482
7483 * math/Makefile: Add s_sincosf_data.c.
7484 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7485 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7486 (sincosf_poly): Likewise.
7487 (reduce_small): Likewise.
7488 (reduce_large): Likewise.
7489 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7490 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7491 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7492 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7493
7494 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7495 Szabolcs Nagy <szabolcs.nagy@arm.com>
7496
7497 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7498 (converttoint): Use lround.
7499 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7500 document the semantics when TOINT_INTRINSICS is set.
7501 (converttoint): Likewise.
7502 (TOINT_RINT): Remove.
7503 (TOINT_SHIFT): Remove.
7504 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7505 path.
7506
7507 2018-08-10 Florian Weimer <fweimer@redhat.com>
7508
7509 [BZ #23497]
7510 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7511 function.
7512 (__old_getdents64): Use getdents64. Convert entries without
7513 moving them.
7514 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7515 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7516 tst-readdir64-compat.
7517
7518 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7519
7520 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7521 Fix unwind.
7522
7523 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7524
7525 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7526 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7527 code to s390x-mcount.h and #include it.
7528 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7529 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7530 (__fentry__): Add.
7531
7532 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7533
7534 * stdlib/Versions: Remove __fentry__.
7535 * sysdeps/i386/Versions: Add __fentry__.
7536 * sysdeps/x86_64/Versions: Add __fentry__.
7537
7538 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7539
7540 * sysdeps/s390/Makefile: Register the new tests.
7541 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7542 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7543 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7544 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7545 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7546 * sysdeps/s390/tst-dl-runtime.c: New file.
7547
7548 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7549
7550 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7551 Do not clobber R0.
7552
7553 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7554
7555 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7556 Do not clobber R0.
7557
7558 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7559
7560 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7561 Do not clobber R0.
7562
7563 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7564
7565 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7566 Do not clobber R0.
7567
7568 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7569
7570 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7571 Use symbolic offsets for stack variables.
7572
7573 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7574
7575 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7576 Use symbolic offsets for stack variables.
7577
7578 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7579
7580 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7581 Use symbolic offsets for stack variables.
7582
7583 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7584
7585 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7586 Use symbolic offsets for stack variables.
7587
7588 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7589
7590 * math/gen-libm-test.py: New file.
7591 * math/gen-libm-test.pl: Remove.
7592 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7593 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7594 gen-libm-test.pl.
7595 ($(libm-test-c-noauto-obj)): Likewise.
7596 ($(libm-test-c-auto-obj)): Likewise.
7597 ($(libm-test-c-narrow-obj)): Likewise.
7598 (regen-ulps): Likewise.
7599 * math/README.libm-test: Update references to gen-libm-test.pl.
7600 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7601 referencing gen-libm-test.pl.
7602 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7603 * math/libm-test-support.c: Likewise.
7604 * math/libm-test-support.h: Likewise.
7605 * sysdeps/generic/libm-test-ulps: Likewise.
7606
7607 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7608
7609 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7610 Fix value.
7611
7612 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7613
7614 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7615 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7616
7617 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7618
7619 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7620 symbols.
7621 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7622 __pthread_setspecific): Add hidden proto.
7623 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7624 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7625
7626 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7627
7628 * benchtests/bench-string.h (buf1_size, buf2_size): New
7629 variables.
7630 (init_sizes): New function.
7631 (test_init): Use it.
7632 (alloc_buf, exit_error): New functions.
7633 (alloc_bufs): Use ALLOC_BUF.
7634 (realloc_bufs): Remove.
7635 * benchtests/bench-memcmp.c (do_test): Adjust.
7636 * benchtests/bench-memset-large.c (do_test): Likewise.
7637 * benchtests/bench-memset-walk.c (do_test): Likewise.
7638 * benchtests/bench-memset.c (do_test): Likewise.
7639 * benchtests/bench-strncmp.c (do_test): Likewise.
7640
7641 2018-08-06 Andreas Schwab <schwab@suse.de>
7642
7643 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7644 of CONST_THREAD_AREA.
7645
7646 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7647
7648 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7649 (STATE_SAVE_MASK): Likewise.
7650 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7651 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7652 (STATE_SAVE_MASK): Likewise.
7653 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7654 instead of <cpu-features.h>.
7655
7656 2018-08-03 DJ Delorie <dj@redhat.com>
7657
7658 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7659 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7660
7661 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7662
7663 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7664
7665 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7666 after TEST_* calls.
7667 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7668 * math/libm-test-logb.inc (logb_test_data): Likewise.
7669
7670 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7671
7672 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7673 * string/strstr.c (AVAILABLE): Likewise.
7674
7675 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7676
7677 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7678 <init-arch.h>.
7679 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7680 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7681 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7682
7683 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7684
7685 * po/be.po: Update translation.
7686
7687 * po/be.po: Update translation.
7688
7689 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7690
7691 * sysdeps/x86/cpu-features-offsets.sym
7692 (rtld_global_ro_offsetof): Removed.
7693 (CPU_FEATURES_SIZE): Likewise.
7694 (CPUID_OFFSET): Likewise.
7695 (CPUID_SIZE): Likewise.
7696 (CPUID_EAX_OFFSET): Likewise.
7697 (CPUID_EBX_OFFSET): Likewise.
7698 (CPUID_ECX_OFFSET): Likewise.
7699 (CPUID_EDX_OFFSET): Likewise.
7700 (FAMILY_OFFSET): Likewise.
7701 (MODEL_OFFSET): Likewise.
7702 (FEATURE_OFFSET): Likewise.
7703 (FEATURE_SIZ): Likewise.
7704 (COMMON_CPUID_INDEX_1): Likewise.
7705 (COMMON_CPUID_INDEX_7): Likewise.
7706 (FEATURE_INDEX_1): Likewise.
7707 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7708
7709 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7710
7711 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7712 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7713 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7714 (install-locales): Depend on install-locale-archive.
7715 (install-locale-archive): Define.
7716 (install-locale-files): Define.
7717 (build-one-locale): Define macro.
7718 * manual/install.texi (Running make install): Document.
7719 * manual/INSTALL: Regenerate.
7720
7721 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7722
7723 * benchtests/scripts/compare_strings.py: Import traceback.
7724 (parse_file): Pretty-print error.
7725
7726 * NEWS: Mention the change.
7727 * elf/dl-tunables.list: Rename tune namespace to cpu.
7728 * sysdeps/powerpc/dl-tunables.list: Likewise.
7729 * sysdeps/x86/dl-tunables.list: Likewise.
7730 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7731 cpu.name.
7732 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7733 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7734 * manual/README.tunables: Likewise.
7735 * manual/tunables.texi: Likewise.
7736 * sysdeps/powerpc/cpu-features.c: Likewise.
7737 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7738 (init_cpu_features): Likewise.
7739 * sysdeps/x86/cpu-features.c: Likewise.
7740 * sysdeps/x86/cpu-features.h: Likewise.
7741 * sysdeps/x86/cpu-tunables.c: Likewise.
7742 * sysdeps/x86_64/Makefile: Likewise.
7743 * sysdeps/x86/dl-cet.c: Likewise.
7744
7745 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7746
7747 [BZ #23479]
7748 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7749 [__mips_hard_float].
7750 (FE_UNDERFLOW): Likewise.
7751 (FE_OVERFLOW): Likewise.
7752 (FE_DIVBYZERO): Likewise.
7753 (FE_INVALID): Likewise.
7754 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7755 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7756 (FE_UPWARD): Likewise.
7757 (FE_DOWNWARD): Likewise.
7758 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7759 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7760 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7761 [__mips_hard_float].
7762 (FP_ROUNDMODE): Likewise.
7763 (FP_RND_NEAREST): Likewise.
7764 (FP_RND_ZERO): Likewise.
7765 (FP_RND_PINF): Likewise.
7766 (FP_RND_MINF): Likewise.
7767 (FP_EX_INVALID): Likewise.
7768 (FP_EX_OVERFLOW): Likewise.
7769 (FP_EX_UNDERFLOW): Likewise.
7770 (FP_EX_DIVZERO): Likewise.
7771 (FP_EX_INEXACT): Likewise.
7772 (FP_INIT_ROUNDMODE): Likewise.
7773 * sysdeps/mips/nofpu/fesetenv.c: New file.
7774 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7775
7776 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7777
7778 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7779 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7780 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7781 conditional on [FE_UPWARD].
7782
7783 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7784
7785 regex: fix memory leak in Gnulib
7786 Problem and fix reported by Assaf Gordon in:
7787 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7788 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7789 range_ends members too, as they are defined in 'struct
7790 re_charset_t' even if not _LIBC. This affects only Gnulib.
7791
7792 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7793
7794 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7795 ...
7796 (get_common_indices): This.
7797 (init_cpu_features): Updated.
7798
7799 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7800
7801 * sysdeps/generic/math-tests-snan-payload.h: New file.
7802 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7803 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7804 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7805 * sysdeps/generic/math-tests.h: Include
7806 <math-tests-snan-payload.h>.
7807 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7808 * sysdeps/hppa/math-tests.h: Remove file.
7809 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7810 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7811 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7812 Likewise.
7813
7814 * sysdeps/generic/math-tests-snan-cast.h: New file.
7815 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7816 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7817 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7818 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7819
7820 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7821
7822 * version.h (RELEASE): Set to "development".
7823 (VERSION): Set to "2.28.9000".
7824 * NEWS (2.29): New section.
7825
7826 * version.h (RELEASE): Set to "stable".
7827 (VERSION): Set to "2.28".
7828 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7829 * NEWS: Add the list of bugs fixed in 2.28.
7830
7831 * po/ca.po: Update to latest version.
7832 * po/cs.po: Likewise
7833 * po/da.po: Likewise
7834 * po/el.po: Likewise
7835 * po/eo.po: Likewise
7836 * po/es.po: Likewise
7837 * po/fi.po: Likewise
7838 * po/fr.po: Likewise
7839 * po/gl.po: Likewise
7840 * po/hu.po: Likewise
7841 * po/ia.po: Likewise
7842 * po/id.po: Likewise
7843 * po/it.po: Likewise
7844 * po/ja.po: Likewise
7845 * po/ko.po: Likewise
7846 * po/lt.po: Likewise
7847 * po/nb.po: Likewise
7848 * po/nl.po: Likewise
7849 * po/pt_BR.po: Likewise
7850 * po/ru.po: Likewise
7851 * po/rw.po: Likewise
7852 * po/sk.po: Likewise
7853 * po/sl.po: Likewise
7854 * po/tr.po: Likewise
7855 * po/zh_CN.po: Likewise
7856 * po/zh_TW.po: Likewise
7857
7858 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7859
7860 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
7861 initialization...
7862 (init): ... before initializing libpthread.
7863
7864 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
7865 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
7866 (__mach_setup_tls): ... new function.
7867 (mach_setup_tls): New alias.
7868 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
7869 __mach_setup_thread.
7870 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
7871 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
7872 * mach/Versions [libc] (mach_setup_tls): Add symbol.
7873 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
7874
7875 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7876
7877 * manual/install.texi: Update versions.
7878 * INSTALL: Regenerate.
7879
7880 * manual/contrib.texi (Contributors): Update contributions.
7881
7882 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7883
7884 * po/be.po: Update translations.
7885
7886 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7887
7888 * sysdeps/sh/libm-test-ulps: Update.
7889
7890 2018-07-30 Carlos O'Donell <carlos@redhat.com>
7891
7892 * po/bg.po: Update translations.
7893 * po/de.po: Likewise.
7894 * po/hr.po: Likewise.
7895 * po/pt_BR.po: Likewise.
7896 * po/sv.po: Likewise.
7897 * po/vi.po: Likewise.
7898
7899 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7900
7901 [BZ #23467]
7902 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
7903 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
7904 (CFLAGS-tst-cet-property-1.o): New.
7905 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
7906 ($(objpfx)tst-cet-property-2): Likewise.
7907 ($(objpfx)tst-cet-property-2.out): Likewise.
7908 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
7909 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
7910 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
7911 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
7912 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
7913
7914 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7915
7916 [BZ #23458]
7917 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
7918
7919 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7920
7921 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
7922 __sbrk): Do not set attribute_hidden.
7923 * sysdeps/mach/hurd/not-errno.h: New file.
7924 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
7925 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
7926
7927 2018-07-27 Carlos O'Donell <carlos@redhat.com>
7928
7929 * po/uk.po: Update translations.
7930 * po/cs.po: Likewise.
7931 * po/pl.po: Likewise.
7932
7933 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
7934
7935 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
7936 parse beyond the note end.
7937
7938 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7939
7940 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
7941 kernel does not support OFD locks.
7942 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
7943
7944 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
7945
7946 * sysdeps/mach/hurd/Versions (libc): Make __access and
7947 __access_noerrno external so they can override the ld symbols.
7948 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
7949 __writev, __open64, __access_noerrno extern so they can be overrided.
7950 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
7951 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
7952
7953 2018-07-26 Carlos O'Donell <carlos@redhat.com>
7954
7955 * po/libc.pot: Regenerate.
7956
7957 2018-07-26 Joseph Myers <joseph@codesourcery.com>
7958
7959 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7960
7961 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
7962
7963 [BZ #23459]
7964 * sysdeps/x86/cpu-features.c (get_extended_indices): New
7965 function.
7966 (init_cpu_features): Call get_extended_indices for both Intel
7967 and AMD CPUs.
7968 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
7969 Remove "for AMD" comment.
7970
7971 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
7972
7973 [BZ # 23456]
7974 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
7975 COMMON_CPUID_INDEX_80000001.
7976
7977 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
7978
7979 * string/tst-xbzero-opt.c (use_test_buffer): New function.
7980 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
7981
7982 2018-07-26 Florian Weimer <fweimer@redhat.com>
7983
7984 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
7985 aliases for symbols not in the implementation namespace.
7986
7987 2018-07-25 Carlos O'Donell <carlos@redhat.com>
7988
7989 [BZ #23393]
7990 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
7991 lowercase in LATIN script.
7992 * localedata/Makefile (test-input): Add en_US.UTF-8.
7993 * localedata/en_US.UTF-8.in: New file.
7994 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
7995 and restore old tests.
7996 * posix/tst-regexloc.c (do_test): Add back range expression test.
7997
7998 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7999
8000 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8001
8002 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8003
8004 * nptl/threads.h: Move to ...
8005 * sysdeps/nptl/threads.h: ... here.
8006 * sysdeps/hurd/stdc-predef.h: New file.
8007
8008 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8009
8010 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8011 tst-cet-setcontext-1 if CET is enabled.
8012 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8013 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8014
8015 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8016
8017 * include/threads.h: Move to ...
8018 * sysdeps/nptl/threads.h: ... here.
8019 * sysdeps/htl/threads.h: New file.
8020 * conform/Makefile (linknamespace-libs-ISO11): Use
8021 static-thread-library instead of linking libpthread.
8022 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8023
8024 2018-07-25 Florian Weimer <fweimer@redhat.com>
8025
8026 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8027 nanoseconds into seconds.
8028 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8029 (do_test): Likewise.
8030 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8031 (do_test): Likewise. Avoid nanosecond overflow and spurious
8032 timeouts due to system load.
8033 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8034 (child_wait): Increment it.
8035 (do_test): Wait as long as necessary until all expected threads
8036 have arrived.
8037
8038 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8039 H.J. Lu <hongjiu.lu@intel.com>
8040
8041 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8042 __ssp.
8043 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8044 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8045 (__push___start_context): New.
8046 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8047 <asm/prctl.h>.
8048 (__getcontext): Record the current shadow stack base. Save the
8049 caller's shadow stack pointer and base.
8050 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8051 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8052 (__push___start_context): New prototype.
8053 (__makecontext): Call __push___start_context to allocate a new
8054 shadow stack, push __start_context onto the new stack as well
8055 as the new shadow stack.
8056 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8057 <asm/prctl.h>.
8058 (__setcontext): Restore the target shadow stack.
8059 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8060 <asm/prctl.h>.
8061 (__swapcontext): Record the current shadow stack base. Save
8062 the caller's shadow stack pointer and base. Restore the target
8063 shadow stack.
8064 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8065 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8066 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8067
8068 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8069
8070 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8071 tst-setcontext8 and tst-setcontext9.
8072 * stdlib/tst-setcontext6.c: New file.
8073 * stdlib/tst-setcontext7.c: Likewise.
8074 * stdlib/tst-setcontext8.c: Likewise.
8075 * stdlib/tst-setcontext9.c: Likewise.
8076
8077 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8078
8079 * stdlib/Makefile ((tests): Add tst-setcontext5.
8080 * stdlib/tst-setcontext5.c: New file.
8081
8082 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8083
8084 * stdlib/Makefile (tests): Add tst-setcontext4.
8085 * stdlib/tst-setcontext4.c: New file.
8086
8087 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8088
8089 * stdlib/Makefile (tests): Add tst-swapcontext1.
8090 * stdlib/tst-swapcontext1.c: New test.
8091
8092 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8093
8094 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8095 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8096 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8097 and tst-cet-legacy-4c.
8098 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8099 and tst-cet-legacy-mod-4.
8100 (CFLAGS-tst-cet-legacy-2.c): New.
8101 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8102 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8103 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8104 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8105 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8106 ($(objpfx)tst-cet-legacy-1): Likewise.
8107 ($(objpfx)tst-cet-legacy-2): Likewise.
8108 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8109 ($(objpfx)tst-cet-legacy-2a): Likewise.
8110 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8111 ($(objpfx)tst-cet-legacy-4): Likewise.
8112 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8113 ($(objpfx)tst-cet-legacy-4a): Likewise.
8114 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8115 (tst-cet-legacy-4a-ENV): Likewise.
8116 ($(objpfx)tst-cet-legacy-4b): Likewise.
8117 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8118 (tst-cet-legacy-4b-ENV): Likewise.
8119 ($(objpfx)tst-cet-legacy-4c): Likewise.
8120 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8121 (tst-cet-legacy-4c-ENV): Likewise.
8122 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8123 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8124 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8125 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8126 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8127 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8128 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8129 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8130 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8131 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8132 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8133
8134 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8135
8136 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8137 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8138 with ssp_base.
8139 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8140 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8141 with ssp_base.
8142
8143 2018-07-25 Andreas Schwab <schwab@suse.de>
8144
8145 [BZ #23442]
8146 * locale/weightwc.h (findidx): Handle the case where usrc is a
8147 prefix of cp but one character too short.
8148
8149 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8150
8151 * NEWS: Add ISO C threads addition.
8152
8153 2018-07-24 Florian Weimer <fweimer@redhat.com>
8154
8155 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8156 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8157 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8158 4.13.
8159
8160 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8161
8162 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8163 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8164 <sys/prctl.h> and <asm/prctl.h>.
8165 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8166 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8167 and <asm/prctl.h>.
8168 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8169 ARCH_CET_LEGACY_BITMAP.
8170 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8171 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8172 * sysdeps/x86/libc-start.c: Include <startup.h>.
8173
8174 2018-07-24 Florian Weimer <fweimer@redhat.com>
8175
8176 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8177 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8178
8179 2018-07-24 Rical Jasan <rj@2c3t.io>
8180 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8181 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8182
8183 [BZ #14092]
8184 * manual/debug.texi: Update adjacent chapter name.
8185 * manual/probes.texi: Likewise.
8186 * manual/threads.texi (ISO C Threads): New section.
8187 (POSIX Threads): Convert to a section.
8188
8189 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8190 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8191
8192 [BZ# 14092]
8193 * nptl/Makefile (tests): Add new test files.
8194 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8195 * nptl/tst-cnd-basic.c: Likewise.
8196 * nptl/tst-cnd-broadcast.c: Likewise.
8197 * nptl/tst-cnd-timedwait.c: Likewise.
8198 * nptl/tst-mtx-basic.c: Likewise.
8199 * nptl/tst-mtx-recursive.c: Likewise.
8200 * nptl/tst-mtx-timedlock.c: Likewise.
8201 * nptl/tst-mtx-trylock.c: Likewise.
8202 * nptl/tst-thrd-basic.c: Likewise.
8203 * nptl/tst-thrd-detach.c: Likewise.
8204 * nptl/tst-thrd-sleep.c: Likewise.
8205 * nptl/tst-tss-basic.c: Likewise.
8206
8207 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8208
8209 [BZ #14092]
8210 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8211 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8212 symbols.
8213 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8214 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8215 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8216 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8217 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8218 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8219 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8220 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8221 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8222 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8223 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8224 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8225 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8226 Likewise.
8227 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8228 Likewise.
8229 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8230 Likewise.
8231 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8232 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8233 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8234 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8235 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8236 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8237 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8238 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8239 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8240 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8241 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8242 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8243 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8244 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8245 Likewise.
8246 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8247 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8248 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8249 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8250 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8251 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8252 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8253 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8254 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8255 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8256 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8257 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8258 ikewise.
8259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8261 Likewise.
8262 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8263 Likewise.
8264 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8265 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8266 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8267 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8268 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8269 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8270 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8271 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8272
8273 [BZ #14092]
8274 * conform/data/threads.h-data (thread_local): New macro.
8275 (TSS_DTOR_ITERATIONS): Likewise.
8276 (tss_t): New type.
8277 (tss_dtor_t): Likewise.
8278 (tss_create): New function.
8279 (tss_get): Likewise.
8280 (tss_set): Likewise.
8281 (tss_delete): Likewise.
8282 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8283 tss_get, and tss_set objects.
8284 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8285 * nptl/tss_create.c: New file.
8286 * nptl/tss_delete.c: Likewise.
8287 * nptl/tss_get.c: Likewise.
8288 * nptl/tss_set.c: Likewise.
8289 * sysdeps/nptl/threads.h (thread_local): New define.
8290 (TSS_DTOR_ITERATIONS): Likewise.
8291 (tss_t): New typedef.
8292 (tss_dtor_t): Likewise.
8293 (tss_create): New prototype.
8294 (tss_get): Likewise.
8295 (tss_set): Likewise.
8296 (tss_delete): Likewise.
8297
8298 [BZ #14092]
8299 * conform/data/threads.h-data (cnd_t): New type.
8300 (cnd_init): New function.
8301 (cnd_signal): Likewise.
8302 (cnd_broadcast): Likewise.
8303 (cnd_wait): Likewise.
8304 (cnd_timedwait): Likewise.
8305 (cnd_destroy): Likewise.
8306 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8307 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8308 object.
8309 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8310 * nptl/cnd_broadcast.c: New file.
8311 * nptl/cnd_destroy.c: Likewise.
8312 * nptl/cnd_init.c: Likewise.
8313 * nptl/cnd_signal.c: Likewise.
8314 * nptl/cnd_timedwait.c: Likewise.
8315 * nptl/cnd_wait.c: Likewise.
8316 * sysdeps/nptl/threads.h (cnd_t): New type.
8317 (cnd_init): New prototype.
8318 (cnd_signa): Likewise.
8319 (cnd_broadcast): Likewise.
8320 (cnd_wait): Likewise.
8321 (cnd_timedwait): Likewise.
8322 (cnd_destroy): Likewise.
8323
8324 [BZ #14092]
8325 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8326 (once_flag): New type.
8327 (call_once): New function.
8328 * nptl/Makefile (libpthread-routines): Add call_once object.
8329 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8330 * nptl/call_once.c: New file.
8331 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8332 (once_flag): New type.
8333 (call_once): New prototype.
8334
8335 [BZ #14092]
8336 * conform/data/threads.h-data (mtx_plain): New constant.
8337 (mtx_recursive): Likewise.
8338 (mtx_timed): Likewise.
8339 (mtx_t): New type.
8340 (mtx_init): New function.
8341 (mtx_lock): Likewise.
8342 (mtx_timedlock): Likewise.
8343 (mtx_trylock): Likewise.
8344 (mtx_unlock): Likewise.
8345 (mtx_destroy): Likewise.
8346 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8347 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8348 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8349 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8350 * nptl/mtx_destroy.c: New file.
8351 * nptl/mtx_init.c: Likewise.
8352 * nptl/mtx_lock.c: Likewise.
8353 * nptl/mtx_timedlock.c: Likewise.
8354 * nptl/mtx_trylock.c: Likewise.
8355 * nptl/mtx_unlock.c: Likewise.
8356 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8357 (mtx_recursive): Likewise.
8358 (mtx_timed): Likewise.
8359 (mtx_t): New type.
8360 (mtx_init): New prototype.
8361 (mtx_lock): Likewise.
8362 (mtx_timedlock): Likewise.
8363 (mtx_trylock): Likewise.
8364 (mtx_unlock): Likewise.
8365 (mtx_destroy): Likewise.
8366
8367 [BZ #14092]
8368 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8369 (linknamespace-libs-ISO11): Add libpthread.a.
8370 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8371 functions.
8372 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8373 * nptl/Makefile (headers): Add threads.h.
8374 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8375 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8376 thrd_yield.
8377 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8378 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8379 thrd_join, thrd_sleep, and thrd_yield symbols.
8380 * nptl/descr.h (struct pthread): Add c11 field.
8381 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8382 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8383 routine with expected function prototype.
8384 (__pthread_create_2_1): Add C11 threads check based on attribute
8385 value.
8386 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8387 * nptl/thrd_create.c: New file.
8388 * nptl/thrd_current.c: Likewise.
8389 * nptl/thrd_detach.c: Likewise.
8390 * nptl/thrd_equal.c: Likewise.
8391 * nptl/thrd_exit.c: Likewise.
8392 * nptl/thrd_join.c: Likewise.
8393 * nptl/thrd_priv.h: Likewise.
8394 * nptl/thrd_sleep.c: Likewise.
8395 * nptl/thrd_yield.c: Likewise.
8396 * include/threads.h: Likewise.
8397
8398 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8399
8400 * bits/indirect-return.h: New file.
8401 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8402 * sysdeps/x86/bits/indirect-return.h: Likewise.
8403 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8404 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8405 (swapcontext): Add __INDIRECT_RETURN.
8406 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8407 (prepare_test_buffer): Use it.
8408
8409 2018-07-24 Andreas Schwab <schwab@suse.de>
8410
8411 [BZ #23448]
8412 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8413 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8414
8415 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8416
8417 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8418 Redefine if shadow stack is enabled.
8419 (SYSCALL_ERROR_LABEL): Likewise.
8420 (__vfork): Pop shadow stack and jump back to to caller directly
8421 when shadow stack is in use.
8422 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8423 Redefine if shadow stack is enabled.
8424 (SYSCALL_ERROR_LABEL): Likewise.
8425 (__vfork): Pop shadow stack and jump back to to caller directly
8426 when shadow stack is in use.
8427
8428 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8429
8430 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8431 enabled.
8432 (foo): Likewise.
8433 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8434 (foo): Likewise.
8435
8436 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8437
8438 * scripts/build-many-glibcs.py (Context.checkout): Default
8439 binutils version to 2.31 branch.
8440
8441 2018-07-20 Zong Li <zong@andestech.com>
8442
8443 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8444 URL of gcc's tarball.
8445
8446 2018-07-20 Florian Weimer <fweimer@redhat.com>
8447
8448 [BZ #23396]
8449 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8450 not compare an extra byte after the end of the weights.
8451
8452 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8453
8454 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8455 to 1.
8456 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8457 hidden prototypes.
8458 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8459 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8460 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8461 list of libraries whose stack executability is expected.
8462 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8463 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8464 variable.
8465 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8466 libc.so libpthread.so.
8467
8468 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8469
8470 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8471 SOCK_NONBLOCK.
8472 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8473 and SOCK_NONBLOCK.
8474 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8475 implement __pipe2.
8476 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8477
8478 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8479
8480 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8481 library to improve command line parsing.
8482 (__main__): make schema file as optional parameter (--schema),
8483 defaulting to benchtests/scripts/benchout.schema.json.
8484 (main): move out of the parsing stuff to __main_  and leave it
8485 only as caller of main comparison functions.
8486
8487 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8488
8489 * NEWS: Add a note for Intel CET status.
8490 * manual/install.texi: Likewise.
8491 * INSTALL: Regenerated.
8492
8493 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8494
8495 [BZ #23140]
8496 * localedata/locales/oc_FR (mon): Rename to...
8497 (alt_mon): This, then update October (typo fix).
8498 (mon): New content (genitive case, month names preceded by
8499 "de" or "d’").
8500
8501 [BZ #23422]
8502 * localedata/locales/oc_FR (abday): Update all items.
8503 (day): Update Wednesday and Saturday (typo fixes).
8504 (abmon): Update all items, except May.
8505 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8506 (LC_IDENTIFICATION): Bump the revision number and date.
8507 Keep the "category" entries in alphabetic order.
8508 (LC_ADDRESS): Remove no longer needed comment.
8509 (LC_COLLATE): Use “copy "ca_ES"”.
8510 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8511 "name_mrs".
8512
8513 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8514
8515 * grp/tst_fgetgrent.c: Include <unistd.h>.
8516 (main): Use mkstemp instead of tmpnam.
8517 * io/test-utime.c (main): Likewise.
8518 * posix/annexc.c (macrofile): Change to modifiable array.
8519 (main): Remove macrofile here.
8520 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8521 macrofile here.
8522 (check_header): Do not remove macrofile here.
8523 * posix/bug-getopt1.c: Include <stdlib.h>.
8524 (do_test): Use mkstemp instead of tmpnam.
8525 * posix/bug-getopt2.c: Include <stdlib.h>.
8526 (do_test): Use mkstemp instead of tmpnam.
8527 * posix/bug-getopt3.c: Include <stdlib.h>.
8528 (do_test): Use mkstemp instead of tmpnam.
8529 * posix/bug-getopt4.c: Include <stdlib.h>.
8530 (do_test): Use mkstemp instead of tmpnam.
8531 * posix/bug-getopt5.c: Include <stdlib.h>.
8532 (do_test): Use mkstemp instead of tmpnam.
8533 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8534 (main): Use mkstemp instead of tmpnam.
8535 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8536 (main): Use mkstemp instead of tmpnam.
8537 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8538 (main): use mkstemp instead of tmpnam.
8539 * stdlib/isomac.c (macrofile): Change to modifiable array.
8540 (main): Remove macrofile here.
8541 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8542 macrofile here.
8543 (check_header): Do not remove macrofile here.
8544
8545 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8546
8547 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8548 glibc.tune.x86_shstk.
8549
8550 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8551
8552 * NEWS: Mention --enable-cet.
8553 * manual/install.texi: Document --enable-cet.
8554 * INSTALL: Regenerated.
8555
8556 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8557
8558 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8559 Add _CET_NOTRACK before indirect jump to jump table.
8560
8561 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8562
8563 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8564 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8565 to jump table.
8566
8567 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8568
8569 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8570 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8571 to jump table.
8572
8573 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8574
8575 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8576 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8577 to jump table.
8578
8579 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8580
8581 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8582 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8583 to jump table.
8584
8585 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8586
8587 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8588 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8589 to jump table.
8590 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8591
8592 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8593
8594 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8595 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8596 to jump table.
8597
8598 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8599
8600 * sysdeps/i386/i686/multiarch/memset-sse2.S
8601 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8602 to jump table.
8603
8604 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8605
8606 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8607 indirect jump to jump table.
8608
8609 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8610
8611 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8612 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8613 to jump table.
8614 (MEMCPY): Likewise.
8615
8616 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8617
8618 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8619 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8620 to jump table.
8621 (MEMCPY): Likewise.
8622
8623 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8624
8625 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8626 _CET_NOTRACK before indirect jump to jump table.
8627
8628 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8629
8630 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8631 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8632 to jump table.
8633
8634 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8635
8636 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8637 indirect jump to jump table.
8638
8639 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8640
8641 [BZ #22241]
8642 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8643 (LOCALES): Likewise.
8644 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8645 * localedata/locales/sah_RU: New file.
8646 * localedata/sah_RU.UTF-8.in: New file.
8647
8648 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8649
8650 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8651 "sysdep.h".
8652 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8653 _CET_ENDBR to indirect jump targets and adjust jump destination
8654 for _CET_ENDBR.
8655 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8656 "sysdep.h".
8657 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8658 _CET_ENDBR to indirect jump targets and adjust jump destination
8659 for _CET_ENDBR.
8660 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8661 "sysdep.h".
8662 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8663 _CET_ENDBR to indirect jump targets and adjust jump destination
8664 for _CET_ENDBR.
8665
8666 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8667
8668 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8669 _CET_ENDBR.
8670
8671 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8672
8673 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8674 _CET_ENDBR.
8675 (_dl_tlsdesc_undefweak): Likewise.
8676 (_dl_tlsdesc_dynamic): Likewise.
8677 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8678 (_dl_tlsdesc_resolve_rel): Likewise.
8679 (_dl_tlsdesc_resolve_rela): Likewise.
8680 (_dl_tlsdesc_resolve_hold): Likewise.
8681 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8682 (_dl_tlsdesc_undefweak): Likewise.
8683 (_dl_tlsdesc_dynamic): Likewise.
8684 (_dl_tlsdesc_resolve_rela): Likewise.
8685 (_dl_tlsdesc_resolve_hold): Likewise.
8686
8687 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8688
8689 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8690 (_fini): Likewise.
8691 * sysdeps/x86_64/crti.S (_init): Likewise.
8692 (_fini): Likewise.
8693
8694 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8695
8696 [BZ #23140]
8697 * localedata/locales/os_RU (mon): Rename to...
8698 (alt_mon): This.
8699 (mon): Import from CLDR (genitive case).
8700
8701 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8702
8703 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8704 cet-tunables.h> when CET is enabled.
8705
8706 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8707
8708 [BZ #21598]
8709 * configure.ac: Add --enable-cet.
8710 * configure: Regenerated.
8711 * elf/Makefille (all-built-dso): Add a comment.
8712 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8713 Include <dl-prop.h>.
8714 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8715 segment.
8716 * elf/dl-open.c: Include <dl-prop.h>.
8717 (dl_open_worker): Call _dl_open_check.
8718 * elf/rtld.c: Include <dl-prop.h>.
8719 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8720 _rtld_main_check.
8721 * sysdeps/generic/dl-prop.h: New file.
8722 * sysdeps/i386/dl-cet.c: Likewise.
8723 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8724 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8725 * sysdeps/x86/cet-tunables.h: Likewise.
8726 * sysdeps/x86/check-cet.awk: Likewise.
8727 * sysdeps/x86/configure: Likewise.
8728 * sysdeps/x86/configure.ac: Likewise.
8729 * sysdeps/x86/dl-cet.c: Likewise.
8730 * sysdeps/x86/dl-procruntime.c: Likewise.
8731 * sysdeps/x86/dl-prop.h: Likewise.
8732 * sysdeps/x86/libc-start.h: Likewise.
8733 * sysdeps/x86/link_map.h: Likewise.
8734 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8735 _CET_ENDBR.
8736 (_dl_runtime_profile): Likewise.
8737 (_dl_runtime_resolve_shstk): New.
8738 (_dl_runtime_profile_shstk): Likewise.
8739 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8740 if CET is enabled.
8741 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8742 (CFLAGS-.os): Likewise.
8743 (CFLAGS-.op): Likewise.
8744 (CFLAGS-.oS): Likewise.
8745 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8746 is enabled.
8747 (tests-special): Add $(objpfx)check-cet.out.
8748 (cet-built-dso): New.
8749 (+$(cet-built-dso:=.note)): Likewise.
8750 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8751 ($(objpfx)check-cet.out): New.
8752 (generated): Add check-cet.out.
8753 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8754 <cet-tunables.h>.
8755 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8756 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8757 (init_cpu_features): Call get_cet_status to check CET status
8758 and update dl_x86_feature_1 with CET status. Call
8759 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8760 (set_x86_shstk). Disable and lock CET in libc.a.
8761 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8762 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8763 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8764 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8765 (_CET_ENDBR): Define if not defined.
8766 (ENTRY): Add _CET_ENDBR.
8767 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8768 x86_shstk.
8769 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8770 _CET_ENDBR.
8771 (_dl_runtime_profile): Likewise.
8772
8773 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8774
8775 [BZ #21895]
8776 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8777 restore r2 on longjmp.
8778 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8779 test list.
8780 Added rules to build test tst-setjmp-bug21895-static.
8781 Added module setjmp-bug21895 and rules to build a shared object from it.
8782 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8783 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8784
8785 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8786
8787 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8788 * benchtests/bench-strstr.c: Likewise.
8789 * string/memmem.c (FASTSEARCH): Define.
8790 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8791 Add support for FASTSEARCH.
8792 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8793 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8794 (FASTSEARCH): Define.
8795 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8796 * string/test-strstr.c: Likewise.
8797
8798 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8799
8800 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8801 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8802
8803 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8804 H.J. Lu <hongjiu.lu@intel.com>
8805
8806 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8807 (__longjmp): Restore shadow stack pointer if shadow stack is
8808 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8809 isn't defined for __longjmp_cancel.
8810 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8811 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8812 and SHADOW_STACK_POINTER_OFFSET is defined.
8813 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8814 (setjmp): Save shadow stack pointer if shadow stack is enabled
8815 and SHADOW_STACK_POINTER_OFFSET is defined.
8816 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8817 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8818 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8819 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8820 <jmp_buf-ssp.h>.
8821 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8822 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8823 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8824 Remove jmp_buf-ssp.sym.
8825 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8826 <jmp_buf-ssp.h>.
8827 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8828 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8829 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8830 jmp_buf-ssp.sym.
8831 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8832 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8833 (__longjmp): Restore shadow stack pointer if shadow stack is
8834 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8835 isn't defined for __longjmp_cancel.
8836 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
8837 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8838 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8839
8840 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
8841
8842 [BZ #22563]
8843 * nptl/pthread_create.c: Include <tls-setup.h>.
8844 (__pthread_create_2_1): Call tls_setup_tcbhead.
8845 * sysdeps/generic/tls-setup.h: New file.
8846 * sysdeps/x86/nptl/tls-setup.h: Likewise.
8847 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
8848 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
8849 Likewise.
8850 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
8851 to feature_1.
8852 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
8853 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
8854 (X86_FEATURE_1_SHSTK): Likewise.
8855 (CET_ENABLED): Likewise.
8856 (IBT_ENABLED): Likewise.
8857 (SHSTK_ENABLED): Likewise.
8858
8859 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
8860
8861 [BZ #23208]
8862 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
8863 (LOCALES): Likewise.
8864 * localedata/dsb_DE.UTF-8.in: New file.
8865 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
8866
8867 2018-07-12 Florian Weimer <fweimer@redhat.com>
8868
8869 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
8870 __mprotect, not mprotect.
8871
8872 2018-07-11 Florian Weimer <fweimer@redhat.com>
8873
8874 * io/Makefile (headers): Add bits/statx.h.
8875
8876 2018-07-10 Mike FABIAN <mfabian@redhat.com>
8877
8878 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
8879 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
8880 and headers.
8881 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
8882 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
8883 for utf8_gen.py
8884
8885 2018-07-10 Florian Weimer <fweimer@redhat.com>
8886
8887 * io/Makefile (routines): Add statx.
8888 (tests-internal): Add tst-statx.
8889 * io/Versions (GLIBC_2.28): Export statx.
8890 * io/bits/statx.h: New file.
8891 * io/sys/stat.h [__USE_GNU]: Include it.
8892 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
8893 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
8894 Define.
8895 * io/statx.c: New file.
8896 * io/statx_generic.: Likewise.
8897 * io/tst-statx.: Likewise.
8898 * include/bits/statx.h: Likewise.
8899 * sysdeps/unix/sysv/linux/kernel-features.h
8900 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
8901 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8902 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
8903 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
8904 Undefine.
8905 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8906 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
8907 * sysdeps/unix/sysv/linux/statx.c: New file.
8908 * manual/filesys.texi: Note that statx is undocumented.
8909 * sysdeps/**/libc*.abilist: Update.
8910
8911 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8912
8913 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
8914 a kernel issue which lead to test failure in some cases.
8915
8916 2018-07-10 Florian Weimer <fweimer@redhat.com>
8917
8918 [BZ #23036]
8919 * posix/regexec.c (check_node_accept_bytes): When comparing
8920 weights, do not compare an extra byte after the end of the
8921 weights.
8922
8923 2018-07-10 Florian Weimer <fweimer@redhat.com>
8924
8925 * libio/readline.c: Fix copyright year.
8926 * libio/tst-readline.c Likewise.
8927 * nss/tst-nss-files-hosts-getent.c: Likewise.
8928
8929 2018-07-06 Florian Weimer <fweimer@redhat.com>
8930
8931 [BZ #18991]
8932 * nss/nss_files/files-XXX.c (internal_getent): Use
8933 __libc_readline_unlocked. Seek back to the start of the line if
8934 parsing failes with ERANGE.
8935 (get_contents_ret, get_contents): Remove.
8936 * nss/tst-nss-files-hosts-getent.c: New file.
8937 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
8938 (tst-nss-files-hosts-getent): Link with -ldl.
8939
8940 2018-07-06 Florian Weimer <fweimer@redhat.com>
8941
8942 * include/stdio.h (__libc_readline_unlocked): Declare.
8943 (__ftello64, __fseeko64): Declare aliases.
8944 * libio/readline.c: New file.
8945 * libio/tst-readline.c: Likewise.
8946 (routines): Add readline.
8947 (tests-internal): Add tst-readlime.
8948 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
8949 __libc_readline_unlocked.
8950 * libio/fseeko.c (__fseeko): Rename from fseeko.
8951 (fseeko): Add alias.
8952 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
8953 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
8954 (fseeko64): Add alias.
8955 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
8956 * libio/ftello64.c (__ftello64): Rename from ftello64.
8957 (ftello64): Add alias.
8958
8959 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
8960
8961 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
8962 HWCAP_ATOMICS.
8963
8964 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
8965
8966 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
8967 Use dl_hwcap without masking.
8968 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
8969 Remove HWCAP_CPUID.
8970
8971 2018-07-06 Florian Weimer <fweimer@redhat.com>
8972
8973 * conform/conformtest.pl (checknamespace): Escape literal braces
8974 in regular expressions.
8975
8976 2018-07-06 Amit Pawar <amit.pawar@amd.com>
8977
8978 * sysdeps/x86/cpu-features.c (get_common_indeces):
8979 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
8980 * sysdeps/x86/cpu-features.c (init_cpu_features):
8981 AVX_Fast_Unaligned_Load is disabled for Excavator core.
8982
8983 2018-07-05 Florian Weimer <fweimer@redhat.com>
8984
8985 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
8986 protector.
8987 (CFLAGS-elf-init.oS): Likewise.
8988
8989 2018-07-05 Florian Weimer <fweimer@redhat.com>
8990 Carlos O'Donell <carlos@redhat.com>
8991
8992 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
8993 $(no-stack-protector). stack_chk_fail_local.c can be compiled
8994 with stack protector enabled because there is no risk of infinite
8995 recursion.
8996
8997 2018-07-05 Maciej W. Rozycki <macro@mips.com>
8998
8999 [BZ #19818]
9000 [BZ #23307]
9001 * libc-abis (ABSOLUTE): New ABI.
9002 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9003 * NEWS: Mention the new ABI.
9004
9005 2018-07-05 Florian Weimer <fweimer@redhat.com>
9006
9007 [BZ # 17662]
9008 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9009 (RENAME_WHITEOUT): Define.
9010 [__USE_GNU] (renameat2): Declare.
9011 * stdio-common/Makefile (routines): Add renameat2.
9012 (tests): Add tst-renameat2.
9013 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9014 * stdio-common/renameat2.c: New file.
9015 * stdio-common/tst-renameat2.c: Likewise.
9016 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9017 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9018 undocumented.
9019 * sysdeps/unix/sysv/linux/kernel-features.h
9020 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9021 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9022 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9023 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9024 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9025 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9026 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9027 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9028 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9029 * include/stdio.h (__renameat): Add alias for renameat.
9030 * stdio-common/renameat.c (__renameat): Rename from renameat.
9031 Add hidden definition and alias.
9032 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9033 * sysdeps/mach/hurd/renameat.c: Likewise.
9034 * sysdeps/**/libc*.abilist: Add renameat2.
9035
9036 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9037
9038 * posix/bug-regex33.c: Fix build after regex sync.
9039
9040 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9041
9042 [BZ #23164]
9043 * localedata/tst-langinfo-setlocale.c: New file.
9044 * localedata/tst-langinfo-setlocale-static.c: New file.
9045 * localedata/tst-langinfo-newlocale.c: New file.
9046 * localedata/tst-langinfo-newlocale-static.c: New file.
9047 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9048 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9049 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9050 (tests-static): Remove tst-langinfo-static. Add
9051 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9052 (tests-special): Remove $(objpfx)tst-langinfo.out,
9053 $(objpfx)tst-langinfo-static.out. Add
9054 $(objpfx)tst-langinfo-setlocale.out,
9055 $(objpfx)tst-langinfo-newlocale.out,
9056 $(objpfx)tst-langinfo-setlocale-static.out,
9057 $(objpfx)tst-langinfo-newlocale-static.out.
9058 ($(objpfx)tst-langinfo.out): Remove.
9059 ($(objpfx)tst-langinfo-static.out): Remove.
9060 ($(objpfx)tst-langinfo-newlocale.out): New target.
9061 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9062 (test-xfail-tst-langinfo-newlocale-static): Add.
9063 ($(objpfx)tst-langinfo-setlocale.out): New target.
9064 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9065 * localedata/tst-langinfo.c: Call test_locale.
9066 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9067 data.
9068
9069 2018-07-04 Florian Weimer <fweimer@redhat.com>
9070
9071 testrun.sh: Implement --tool=strace, --tool=valgrind
9072 * Makefile (testrun-script): Define variable.
9073 (testrun.sh): Use variable.
9074 * manual/install.texi (Tools for Compilation): make 4.0 or later
9075 is required.
9076 * configure.ac: Check for make 4.0 or later.
9077 * INSTALL: Regenerate.
9078 * configure: Likewise.
9079
9080 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9081
9082 [BZ #23233]
9083 [BZ #21163]
9084 [BZ #18986]
9085 [BZ #13762]
9086 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9087 * posix/PCRE.tests: Remove invalid test.
9088 * posix/bug-regex28.c: Fix expected values for used syntax.
9089 * posix/bug-regex37.c: New file.
9090 * posix/bug-regex38.c: Likewise.
9091 * posix/regcomp.c: Sync with gnulib.
9092 * posix/regex.c: Likewise.
9093 * posix/regex.h: Likewise.
9094 * posix/regex_internal.c: Likewise.
9095 * posix/regex_internal.h: Likewise.
9096 * posix/regexec.c: Likewise.
9097
9098 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9099
9100 [BZ #23308]
9101 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9102 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9103 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9104 * localedata/unicode-gen/PropList.txt: likewise.
9105 * localedata/unicode-gen/UnicodeData.txt: likewise.
9106 * localedata/charmaps/UTF-8: Regenerate.
9107 * localedata/locales/i18n_ctype: likewise.
9108 * localedata/locales/tr_TR: likewise.
9109 * localedata/locales/translit_circle: likewise.
9110 * localedata/locales/translit_cjk_compat: likewise.
9111 * localedata/locales/translit_combining: likewise.
9112 * localedata/locales/translit_compat: likewise.
9113 * localedata/locales/translit_font: likewise.
9114 * localedata/locales/translit_fraction: likewise.
9115
9116 2018-07-03 Florian Weimer <fweimer@redhat.com>
9117
9118 [BZ #23363]
9119 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9120 * stdio-common/tst-printf.sh: Adjust expected output.
9121 * LICENSES: Update.
9122
9123 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9124
9125 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9126 symbol.
9127
9128 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9129
9130 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9131 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9132 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9133 * stdio-common/tst-printfsz-islongdouble.c: New file.
9134 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9135 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9136 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9137 [subdir == stdio-common] (tests-internal): Add
9138 test-printf-size-ieee128, and test-printf-size-ibm128.
9139 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9140 (CFLAGS-test-printf-size-ibm128.c): New variables.
9141 [subdir == stdio-common] (tests-special): Add
9142 $(objpfx)test-printf-size-ieee128.out and
9143 $(objpfx)test-printf-size-ibm128.out.
9144 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9145 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9146 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9147 __printf_sizeieee128.
9148 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9149 New file.
9150 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9151 Likewise.
9152 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9153 Likewise.
9154
9155 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9156
9157 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9158 (exp2f_inline): Likewise.
9159 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9160 (__math_uflowf): Likewise.
9161 (__math_may_uflowf): Likewise.
9162 (__math_divzerof): Likewise.
9163 (__math_invalidf): Likewise.
9164 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9165 (__math_oflowf): Likewise.
9166 (__math_uflowf): Likewise.
9167 (__math_may_uflowf): Likewise.
9168 (__math_divzerof): Likewise.
9169 (__math_invalidf): Likewise.
9170
9171 2018-06-29 DJ Delorie <dj@redhat.com>
9172 Carlos O'Donell <carlos@redhat.com>
9173
9174 [BZ #23329]
9175 * include/libc-symbols.h: Comment the freeres framework.
9176 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9177 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9178 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9179 * dlfcn/dlerror.c: Include libc-symbols.h
9180 (__dlerror_main_freeres): New function.
9181 * dlfcn/dlfreeres.c: New file.
9182 * dlfcn/sdlfreeres.c: New file.
9183 * include/dlfcn.h: Declare __dlerror_main_freeres.
9184 * malloc/set-freeres.c: Declare __libdl_freeres, and
9185 __libpthread_freeres.
9186 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9187 the releavant libraries are loaded.
9188 * malloc/thread-freeres.c: Add comments.
9189 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9190 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9191 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9192 (__free_stacks): Rename to...
9193 (free_stacks): ...this. Mark static.
9194 (queue_stack): Call free_stacks.
9195 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9196 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9197 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9198 ptr_freeres element from struct.
9199 (pthread_functions): Remove .ptr_freeres from struct initializer.
9200 [SHARED] (nptl_freeres): Remove.
9201 * nptl/nptlfreeres.c: New file.
9202 * nptl/pthreadP.h
9203 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9204 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9205 attribute_hidden.
9206 (__free_stacks): Rename to...
9207 (__nptl_stacks_freeres): ...this.
9208 (__shm_directory_freeres): Declare.
9209 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9210 (__nptl_unwind_freeres): ...this.
9211 * resolv/res-close.c: Add comment.
9212 * resolv/resolv_conf.c: Include libc-symbols.h.
9213 * string/strerror_l.c: Include libc-symbols.h.
9214 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9215 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9216 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9217 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9218
9219 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9220
9221 * stdlib/tst-strfmon_l.c: Add tests for long double.
9222
9223 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9224
9225 [BZ #23208]
9226 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9227 * localedata/locales/dsb_DE: New file.
9228
9229 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9230
9231 [BZ #23140]
9232 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9233 genitive case).
9234 (alt_mon): New entry, import from CLDR (nominative case).
9235
9236 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9237
9238 [BZ #22996]
9239 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9240
9241 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9242
9243 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9244 Use vector registers.
9245
9246 * sysdeps/aarch64/multiarch/memmove_falkor.S
9247 (__memcpy_falkor): Use vector registers.
9248
9249 2018-06-29 Martin Sebor <msebor@redhat.com>
9250
9251 * manual/stdio.texi (Customizing Printf): Mention interaction
9252 with GCC built-ins.
9253
9254 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9255
9256 [BZ #23307]
9257 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9258 `st_value' is 0 if `st_shndx' is SHN_ABS.
9259 * elf/tst-absolute-zero.c: New file.
9260 * elf/tst-absolute-zero-lib.c: New file.
9261 * elf/tst-absolute-zero-lib.lds: New file.
9262 * elf/Makefile (tests): Add `tst-absolute-zero'.
9263 (modules-names): Add `tst-absolute-zero-lib'.
9264 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9265 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9266 ($(objpfx)tst-absolute-zero: New dependency.
9267
9268 2018-06-29 Zack Weinberg <zackw@panix.com>
9269
9270 * configure.ac: New command-line option --disable-crypt.
9271 Force --disable-nss-crypt when --disable-crypt is given, with a
9272 warning if it was explicitly enabled.
9273 * configure: Regenerate.
9274 * config.make.in: New boolean substitution variable $(build-crypt).
9275 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9276 when $(build-crypt).
9277 * manual/install.texi: Document --disable-crypt.
9278 * INSTALL: Regenerate.
9279
9280 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9281 which is never set.
9282 * conform/Makefile: Only include libcrypt.a in
9283 linknamespace-libs-xsi and linknamespace-libs-XPG4
9284 when $(build-crypt).
9285 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9286 USE_CRYPT to 1 when $(build-crypt).
9287 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9288 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9289 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9290
9291 2018-06-29 Zack Weinberg <zackw@panix.com>
9292
9293 * crypt/crypt.h, posix/unistd.h: Update comments and
9294 prototypes for crypt and crypt_r.
9295
9296 * manual/crypt.texi (Cryptographic Functions): New initial
9297 exposition.
9298 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9299 (Unpredictable Bytes): Improve initial exposition. Clarify error
9300 behavior of getentropy and getrandom.
9301 * manual/examples/genpass.c: Generate a salt using getentropy
9302 instead of the current time. Use hash $5$ (SHA-2-256).
9303 * manual/examples/testpass.c: Demonstrate validation against
9304 hashes generated with three different one-way functions.
9305
9306 * manual/intro.texi: crypt.texi does not need an overview
9307 anymore.
9308
9309 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9310 * manual/terminal.texi: Consistently refer to "passphrases"
9311 * instead of "passwords", and to the "user database" instead
9312 * of the "password database".
9313 * manual/users.texi: Similarly. Add notes about how actual
9314 passphrase hashes are now stored in the shadow database.
9315 Remove 20-year-old junk todo note.
9316
9317 2018-06-29 Zack Weinberg <zackw@panix.com>
9318
9319 * manual/crypt.texi: Use a normal top-level @node declaration.
9320 Move most of the introductory text to the 'crypt' section.
9321 Move the example programs below the @deftypefun for 'crypt_r'.
9322 Move the 'getpass' section...
9323 * manual/terminal.texi: ...here.
9324
9325 2018-06-29 Zack Weinberg <zackw@panix.com>
9326 Florian Weimer <fweimer@redhat.com>
9327
9328 * posix/unistd.h: Do not declare encrypt.
9329 (_XOPEN_CRYPT): Remove macro definition.
9330 (crypt): Declare only for _USE_MISC.
9331 * stdlib/stdlib.h: Do not declare setkey.
9332 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9333 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9334
9335 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9336 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9337 into compat symbols. Don't define initial_perm if it's not
9338 going to be used.
9339 * crypt/cert.c: Link explicitly with the expected versions for
9340 setkey and encrypt. If they are not available at all, mark
9341 the test as unsupported.
9342
9343 * sunrpc/des_crypt.c: Unconditionally block linkage with
9344 cbc_crypt and ecb_crypt for new binaries.
9345 * sunrpc/des_soft.c: Unconditionally block linkage with
9346 des_setparity for new binaries.
9347
9348 * manual/crypt.texi: Remove the entire "DES Encryption"
9349 section. Also remove the paragraph talking about FIPS 140-2
9350 from the introduction.
9351 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9352 of libgcrypt for "real" encryption, not DES.
9353 * manual/conf.texi (Constants for Sysconf): Mention that
9354 _XOPEN_CRYPT is no longer impelemented.
9355
9356 * conform/data/unistd.h-data: Remove crypt function declaration.
9357
9358 2018-06-29 Florian Weimer <fweimer@redhat.com>
9359
9360 [BZ #23351]
9361 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9362 (disallow_malloc_check): Remove variable.
9363 (__malloc_check_init): Adjust.
9364 (malloc_set_state): Update comment.
9365 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9366 declarations.
9367
9368 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9369
9370 [BZ #23140]
9371 * localedata/locales/ast_ES (mon): Rename to...
9372 (alt_mon): This.
9373 (mon): Import from CLDR (genitive case).
9374
9375 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9376 Jakub Sitnicki <jkbs@redhat.com>
9377
9378 [BZ #21812]
9379 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9380 on NLM_F_DUMP_INTR.
9381
9382 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9383
9384 * manual/llio.texi: Remove spurious space.
9385
9386 2018-06-28 Florian Weimer <fweimer@redhat.com>
9387
9388 [BZ #23349]
9389 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9390 _STRUCT_TIMESPEC.
9391
9392 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9393
9394 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9395 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9396 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9397 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9398 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9399 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9400 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9401
9402 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9403
9404 [BZ #23266]
9405 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9406 Copy and null-terminate entries that are not terminated, in
9407 addition to empty ones.
9408
9409 2018-06-27 Florian Weimer <fweimer@redhat.com>
9410
9411 [BZ #18023]
9412 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9413 (extend_alloca_account): Remove.
9414 * manual/stdio.texi (Variable Arguments Output): Update comment.
9415
9416 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9417
9418 * nptl/sockperf.c: Remove file.
9419
9420 2018-06-27 Florian Weimer <fweimer@redhat.com>
9421
9422 [BZ #18023]
9423 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9424 scratch_buffer instead of extend_alloca.
9425
9426 2018-06-27 Florian Weimer <fweimer@redhat.com>
9427
9428 [BZ #18023]
9429 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9430 scratch_buffer instead of extend_alloca. Update comments.
9431
9432 2018-06-27 Florian Weimer <fweimer@redhat.com>
9433
9434 [BZ #18023]
9435 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9436 instead of extend_alloca.
9437
9438 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9439
9440 [BZ #13888]
9441 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9442 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9443 /tmp.
9444 * scripts/test-installation.pl: Put temporary files in build
9445 directory, not /tmp.
9446 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9447 (CFLAGS-bug4.c): Likewise.
9448 (CFLAGS-bug5.c): Likewise.
9449 (CFLAGS-test-fseek.c): Likewise.
9450 (CFLAGS-test-popen.c): Likewise.
9451 (CFLAGS-test_rdwr.c): Likewise.
9452 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9453 /tmp.
9454 * stdio-common/bug4.c (main): Likewise.
9455 * stdio-common/bug5.c (main): Likewise.
9456 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9457 * stdio-common/test-popen.c (do_test): Likewise.
9458 * stdio-common/test_rdwr.c (main): Likewise.
9459
9460 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9461
9462 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9463 (sem_open): Set sem.newsem.pad to zero for valgrind.
9464
9465 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9466
9467 [BZ #20251]
9468 * NEWS: Mention fcntl64 addition.
9469 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9470 * login/utmp_file.c: Likewise.
9471 * sysdeps/posix/fdopendir.c: Likewise.
9472 * sysdeps/posix/opendir.c: Likewise.
9473 * sysdeps/unix/pt-fcntl.c: Likewise.
9474 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9475 __fcntl64_nocancel_adjusted): New prototype.
9476 (__fcntl_nocancel_adjusted): Remove prototype.
9477 * io/Makefile (routines): Add fcntl64.
9478 (CFLAGS-fcntl64.c): New rule.
9479 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9480 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9481 * io/fcntl.h (fcntl64): Add prototype and redirect if
9482 __USE_FILE_OFFSET64 is defined.
9483 * io/fcntl64.c: New file.
9484 * manual/llio.text: Add a note for which commands fcntl acts a
9485 cancellation point.
9486 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9487 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9488 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9489 New symbols.
9490 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9491 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9492 non-LFS case.
9493 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9494 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9495 to __fcntl64_nocancel.
9496 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9497 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9498 to __fcntl64_nocancel.
9499 * sysdeps/generic/not-cancel.h: Likewise.
9500 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9501 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9502 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9503 (fcntl64): New symbol.
9504 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9505 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9506 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9507 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9509 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9510 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9511 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9512 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9513 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9514 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9515 fcntl64): Likewise.
9516 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9517 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9518 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9519 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9520 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9521 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9522 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9523 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9524 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9525 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9526 Likewise.
9527 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9528 Likewise.
9529 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9530 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9531 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9532
9533 2018-06-26 Florian Weimer <fweimer@redhat.com>
9534
9535 Run thread shutdown functions in an explicit order.
9536 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9537 definition.
9538 (__libc_thread_freeres): Call thread shutdown functions
9539 explicitly.
9540 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9541 * include/string.h (__strerror_thread_freeres): Declare.
9542 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9543 arena_thread_freeres. No longer static. Remove thread shutdown
9544 hook registration.
9545 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9546 Declare.
9547 * resolv/res-close.c (__res_thread_freeres): Renamed from
9548 res_thread_freeres. No longer static. Remove thread shutdown
9549 hook registration.
9550 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9551 * resolv/resolv_conf.c (freeres): Remove incorrect section
9552 attribute and use libc_freeres_fn.
9553 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9554 strerror_thread_freeres. No longer static. Remove thread
9555 shutdown hook registration.
9556 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9557 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9558 shutdown hook registration.
9559 * Makerules (shlib.lds): Do not provide section boundary symbols
9560 for __libc_thread_subfreeres.
9561 * manual/memory.texi (Basic Allocation): Update comment.
9562
9563 2018-06-26 Florian Weimer <fweimer@redhat.com>
9564
9565 Remove always-defined _RPC_THREAD_SAFE_ macro.
9566 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9567 Do not define _RPC_THREAD_SAFE_.
9568 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9569 conditional.
9570 * sunrpc/clnt_perr.c: Likewise.
9571 * sunrpc/clnt_raw.c: Likewise.
9572 * sunrpc/clnt_simp.c: Likewise.
9573 * sunrpc/key_call.c: Likewise.
9574 * sunrpc/rpc_common.c: Likewise.
9575 * sunrpc/rpc_main.c: Likewise.
9576 * sunrpc/rpc_thread.c: Likewise.
9577 * sunrpc/svc.c: Likewise.
9578 * sunrpc/svc_raw.c: Likewise.
9579 * sunrpc/svc_simple.c: Likewise.
9580 * sumrpc/svcauth_des.c: Likewise.
9581
9582 2018-06-26 Florian Weimer <fweimer@redhat.com>
9583
9584 * libio/Makefile (tests-internal): Add tst-vtables,
9585 tst-vtables-interposed.
9586 * libio/tst-vtables.c: New file.
9587 * libio/tst-vtables-common.c: Likewise.
9588 * libio/tst-vtables-interposed.c: Likewise.
9589
9590 2018-06-26 Florian Weimer <fweimer@redhat.com>
9591
9592 * support/support_test_main.c (support_test_main): Only call
9593 setvbuf if not disables.
9594 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9595 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9596
9597 2018-06-26 Florian Weimer <fweimer@redhat.com>
9598
9599 [BZ #23313]
9600 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9601
9602 2018-06-25 Florian Weimer <fweimer@redhat.com>
9603
9604 [BZ #18023]
9605 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9606 Use struct scratch_buffer instead of extend_alloca.
9607
9608 2018-06-25 Florian Weimer <fweimer@redhat.com>
9609
9610 [BZ #18023]
9611 * nss/getent.c (initgroups_keys): Use dynarray instead of
9612 extend_alloca.
9613
9614 2018-06-25 Florian Weimer <fweimer@redhat.com>
9615
9616 [BZ #18023]
9617 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9618 Use struct scratch_buffer instead of extend_alloca.
9619
9620 2018-06-25 Florian Weimer <fweimer@redhat.com>
9621
9622 [BZ #18023]
9623 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9624 back to malloc directly, without stack allocations.
9625
9626 2018-06-25 Florian Weimer <fweimer@redhat.com>
9627
9628 [BZ #18023]
9629 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9630 of extend_alloca.
9631
9632 2018-06-25 Florian Weimer <fweimer@redhat.com>
9633
9634 [BZ #18023]
9635 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9636 of extend_alloca.
9637 * nscd/hstcache.c (addhstbyX): Likewise.
9638 * nscd/pwdcache.c (addpwbyX): Likewise.
9639 * nscd/servicescache.c (addservbyX): Likewise.
9640
9641 2018-06-25 Florian Weimer <fweimer@redhat.com>
9642
9643 [BZ #18023]
9644 * nscd/connections.c (read_cmdline): New function.
9645 (restart): Use it. Update comment.
9646
9647 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9648
9649 [BZ #23140]
9650 * localedata/locales/csb_PL (mon): Rename to...
9651 (alt_mon): This.
9652 (abmon): Rename to...
9653 (ab_alt_mon): This.
9654 (mon): Add with proper genitive forms, copy from Wikipedia.
9655 (abmon): Likewise.
9656
9657 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9658
9659 [BZ #19485]
9660 * localedata/locales/csb_PL (mon): Fix typos:
9661 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9662 (yesstr): Add, value is "jo".
9663 (nostr): Add, value is "nié".
9664
9665 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9666
9667 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9668 all log1p and significand functions on m680x0.
9669 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9670 of s_significand.c..
9671 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9672 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9673 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9674 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9675 s_log1p.c and include it..
9676
9677 2018-06-21 Vincent Chen <vincentc@andestech.com>
9678
9679 * elf/elf.h (R_NDS32_NONE): New define.
9680 (R_NDS32_32_RELA): Likewise.
9681 (R_NDS32_COPY): Likewise.
9682 (R_NDS32_GLOB_DAT): Likewise.
9683 (R_NDS32_JUMP_SLOT): Likewise.
9684 (R_NDS32_RELATIVE): Likewise.
9685 (R_NDS32_TLS_TPOFF): Likewise.
9686 (R_NDS32_TLS_DESC): Likewise.
9687
9688 2018-06-21 Mark Wielaard <mark@klomp.org>
9689
9690 * elf/elf.h (R_BPF_MAP_FD): Removed.
9691 (R_BPF_64_64, R_BPF_64_32): New.
9692
9693 2018-06-21 Florian Weimer <fweimer@redhat.com>
9694
9695 [BZ #23253]
9696 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9697 Renamed from libc_feholdsetround_ctx.
9698 (default_libc_feresetround_ctx): Renamed from
9699 libc_feresetround_ctx.
9700 (default_libc_feholdsetround_noex_ctx): Renamed from
9701 libc_feholdsetround_noex_ctx.
9702 (default_libc_feresetround_noex_ctx): Renamed from
9703 libc_feresetround_noex_ctx.
9704 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9705 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9706 forwardning to the old implementations under the new names.
9707 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9708 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9709 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9710 (libc_feresetround_ctx): Forward to default implements for i386
9711 and MATH_SET_BOTH_ROUNDING_MODES.
9712 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9713 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9714
9715 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9716
9717 * string/tst-cmp.c: Include <libc-diag.h>.
9718 (strncmp_max): Disable -Wstringop-overflow= around call to
9719 strncmp.
9720 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9721 strncasecmp.
9722
9723 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9724 (main): Disable -Wunused-value around call to strpbrk.
9725 * string/bug-strspn1.c: Include <libc-diag.h>.
9726 (main): Disable -Wunused-value around call to strspn.
9727
9728 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9729 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9730
9731 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9732 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9733
9734 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9735
9736 * math/Makefile (libm-calls): Move s_significandF to...
9737 (gen-libm-calls): ... here.
9738 * math/s_significand_template.c: New file.
9739 * math/s_significand.c: Removed.
9740 * math/s_significandf.c: Removed.
9741 * math/s_significandl.c: Removed.
9742 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9743 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9744
9745 * math/e_exp2_template.c (declare_mgen_finite_alias,
9746 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9747 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9748 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9749
9750 2018-06-20 Florian Weimer <fweimer@redhat.com>
9751
9752 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9753
9754 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9755
9756 [BZ #23280]
9757 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9758 floating-point number to strtod functions rather than possibly
9759 negating result of those functions.
9760 * stdio-common/tst-scanf-round.c: New file.
9761 * stdio-common/Makefile (tests): Add tst-scanf-round.
9762 ($(objpfx)tst-scanf-round): Depend on $(libm).
9763
9764 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9765
9766 * sysdeps/mach/hurd/localplt.data: Move to...
9767 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9768 R_386_GLOB_DAT like on Linux i386.
9769
9770 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9771
9772 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9773 (SHM_STAT_ANY): New macro.
9774 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9775 (SHM_STAT_ANY): Likewise.
9776 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9777 (SHM_STAT_ANY): Likewise.
9778 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9779 (SHM_STAT_ANY): Likewise.
9780 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9781 (SHM_STAT_ANY): Likewise.
9782 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9783 (SHM_STAT_ANY): Likewise.
9784 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9785 (SHM_STAT_ANY): Likewise.
9786 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9787 (SHM_STAT_ANY): Likewise.
9788 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9789 (SHM_STAT_ANY): Likewise.
9790 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9791 (SHM_STAT_ANY): Likewise.
9792 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9793 (SHM_STAT_ANY): Likewise.
9794 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9795 (SHM_STAT_ANY): Likewise.
9796
9797 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9798 (SEM_STAT_ANY): New macro.
9799 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9800 (SEM_STAT_ANY): Likewise.
9801 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9802 (SEM_STAT_ANY): Likewise.
9803 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9804 (SEM_STAT_ANY): Likewise.
9805 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9806 (SEM_STAT_ANY): Likewise.
9807 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9808 (SEM_STAT_ANY): Likewise.
9809 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9810 (SEM_STAT_ANY): Likewise.
9811 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9812 (SEM_STAT_ANY): Likewise.
9813 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9814 (SEM_STAT_ANY): Likewise.
9815 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9816 (SEM_STAT_ANY): Likewise.
9817
9818 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9819 (MSG_STAT_ANY): New macro.
9820 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9821 (MSG_STAT_ANY): Likewise.
9822 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9823 (MSG_STAT_ANY): Likewise.
9824 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9825 (MSG_STAT_ANY): Likewise.
9826 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9827 (MSG_STAT_ANY): Likewise.
9828 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9829 (MSG_STAT_ANY): Likewise.
9830 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9831 (MSG_STAT_ANY): Likewise.
9832 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9833 (MSG_STAT_ANY): Likewise.
9834 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
9835 (MSG_STAT_ANY): Likewise.
9836 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
9837 (MSG_STAT_ANY): Likewise.
9838
9839 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9840 (MAP_TYPE): Change value to 0x2b.
9841
9842 2018-06-18 Florian Weimer <fweimer@redhat.com>
9843
9844 [BZ #15722]
9845 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
9846 socket with SOCK_CLOEXEC.
9847
9848 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9849
9850 [BZ #23303]
9851 * sysdeps/powerpc/powerpc64/le/Makefile
9852 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
9853 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
9854 (gnulib-tests): Also add $(f128-loader-link) for
9855 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
9856
9857 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
9858
9859 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
9860 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
9861 of sendfile.
9862 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
9863 (sendfile64): New strong alias.
9864 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
9865 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
9866 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
9867 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
9868 attribute.
9869 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
9870 ___pthread_get_cleanup_stack.
9871 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
9872 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
9873 * mach/shortcut.awk: Make syscall stubs include
9874 <mach-shortcuts-hidden.h> and add hidden definition.
9875 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
9876 (__mach_msg): Add hidden prototype.
9877 * mach/msg.c: Include <mach.h>.
9878 (__mach_msg): Add hidden definition.
9879 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
9880 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
9881 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
9882 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
9883 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
9884 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
9885 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
9886 prototype and definition.
9887 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
9888 hidden target for _hurd_self_sigstate.
9889
9890 2018-06-15 Joseph Myers <joseph@codesourcery.com>
9891
9892 [BZ #23007]
9893 * stdlib/tst-strtod-nan-sign-main.c: New file.
9894 * stdlib/tst-strtod-nan-sign.c: Likewise.
9895 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
9896 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
9897 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
9898 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
9899 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
9900
9901 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
9902
9903 [BZ #23007]
9904 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
9905 appropriate sign.
9906
9907 2018-06-14 Florian Weimer <fweimer@redhat.com>
9908
9909 [BZ #23290]
9910 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
9911 that the result stays within the ISO-8859-1 range.
9912 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
9913 characters are defined in IBM273.
9914
9915 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9916
9917 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
9918 __mach_task_self): Remove attribute_hidden.
9919
9920 2018-06-14 Joseph Myers <joseph@codesourcery.com>
9921
9922 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
9923 ignore -Wrestrict for one test.
9924
9925 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
9926 Szabolcs Nagy <szabolcs.nagy@arm.com>
9927
9928 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
9929
9930 2018-06-14 Florian Weimer <fweimer@redhat.com>
9931
9932 * scripts/update-abilist.sh: Accept empty list of files to patch.
9933
9934 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
9935
9936 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
9937 test-xfail-check-abi-libmachuser): Add.
9938 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
9939 __libc_read and __libc_write to __read and __write.
9940 * sysdeps/hurd/include/hurd/port.h: New file.
9941 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
9942 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
9943 __thread_switch, __evc_wait): Move declarations to...
9944 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
9945 attribute_hidden.
9946 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
9947 use PLT to call _hurd_self_sigstate.
9948
9949 2018-06-13 Joseph Myers <joseph@codesourcery.com>
9950
9951 [BZ #23279]
9952 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
9953 MAX_EXP as overflowing.
9954 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
9955 overflow flag.
9956 (round_str): Output also whether result overflows in each rounding
9957 mode.
9958 * stdlib/tst-strtod-round-data: Add more tests.
9959 * stdlib/tst-strtod-round-data.h: Regenerated.
9960 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
9961 (TEST): Handle extra arguments for overflow flags.
9962 (struct test_overflow): New type.
9963 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
9964 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
9965 (test_in_one_mode): Take argument with overflow information.
9966 (do_test): Update calls to test_in_one_mode.
9967
9968 2018-06-12 Carlos O'Donell <carlos@redhat.com>
9969
9970 * elf/dl-load (_dl_dst_substitute): Correct comment.
9971 (_dl_dst_count): Likewise.
9972
9973 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
9974 lll_futex_timed_wait.
9975
9976 2018-06-12 Joseph Myers <joseph@codesourcery.com>
9977
9978 [BZ #23277]
9979 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
9980 attribute.
9981 * math/test-nan-const.c: New file.
9982 * math/Makefile (tests): Add test-nan-const.
9983 (CFLAGS-test-nan-const.c): New variable.
9984
9985 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
9986
9987 * benchtests/scripts/compare_strings.py (process_results): Add
9988 funcs argument. Compare only functions which are selected.
9989 (main): Check if base function is among selected functions.
9990 Pass selected functions to process_results.
9991 (__main__): Add -f/--functions argument.
9992
9993 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
9994 Hongbo Zhang <hongbo.zhang@linaro.org>
9995
9996 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
9997 __memcpy_falkor for phecda core.
9998 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
9999 __memmove_falkor for phecda core.
10000 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10001 __memset_falkor for phecda core.
10002 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10003 for phecda core.
10004 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10005 macro to identify phecda core.
10006
10007 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10008 Andreas Schwab <schwab@suse.de>
10009 Dmitry V. Levin <ldv@altlinux.org>
10010 Florian Weimer <fweimer@redhat.com>
10011
10012 [BZ #23102]
10013 [BZ #21942]
10014 [BZ #18018]
10015 [BZ #23259]
10016 CVE-2011-0536
10017 * elf/dl-dst.h: Remove DL_DST_COUNT.
10018 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10019 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10020 (is_dst): Comment. Support ELF gABI.
10021 (_dl_dst_count): Comment. Simplify and count DSTs.
10022 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10023 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10024 locals.
10025
10026 2018-06-12 Zack Weinberg <zackw@panix.com>
10027
10028 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10029 * sysdeps/unix/sysv/linux/dl-sysdep.c
10030 Include not-cancel.h. Use __close_nocancel instead of __close,
10031 __open64_nocancel instead of __open, __read_nocancel instead of
10032 __libc_read, and __write_nocancel instead of __libc_write.
10033
10034 * csu/check_fds.c (check_one_fd)
10035 * sysdeps/posix/fdopendir.c (__fdopendir)
10036 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10037 instead of __fcntl and/or __libc_fcntl.
10038
10039 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10040 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10041 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10042 Use __open64_nocancel instead of __open_nocancel.
10043
10044 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10045 hidden_proto declarations to the end and issue them if either
10046 IS_IN(libc) or IS_IN(rtld).
10047 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10048 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10049 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10050 read_nocancel, waitpid_nocancel, write_nocancel.
10051
10052 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10053 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10054 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10055
10056 * nptl/pt-fcntl.c: New file.
10057 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10058 (libpthread-routines): Add pt-fcntl.
10059 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10060 (__libc_fcntl): Remove attribute_hidden.
10061 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10062 __fcntl_nocancel_adjusted, not fcntl_common.
10063 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10064 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10065 to fcntl_nocancel.c.
10066 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10067 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10068 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10069 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10070
10071 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10072 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10073 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10074 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10075 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10076 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10077 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10078 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10079 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10080 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10081 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10082 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10083 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10084 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10085 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10086 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10087 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10088 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10089 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10090 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10091
10092 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10093 libpthread-routines.
10094 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10095 defines nothing.
10096
10097 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10098 __libc_read, and __write instead of __libc_write. Define
10099 __open64 in addition to __open.
10100
10101 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10102
10103 [BZ #23250]
10104 [BZ #10686]
10105 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10106 to _private_tm[3] and add __glibc_reserved2.
10107 Add _Static_assert of offset of __private_ss == 0x30.
10108 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10109 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10110
10111 2018-06-12 Florian Weimer <fweimer@redhat.com>
10112
10113 x86: Make strncmp usable from rtld.
10114 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10115 __strncmp_ia32 if in libc (and not in rtld).
10116 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10117 strncmp if not in libc (and not to __strncmp_sse2).
10118
10119 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10120
10121 [BZ #23140]
10122 * localedata/locales/gd_GB (mon): Rename to...
10123 (alt_mon): This.
10124 (mon): Import from CLDR (genitive case).
10125 * localedata/locales/hsb_DE (mon): Rename to...
10126 (alt_mon): This.
10127 (mon): Import from CLDR (genitive case).
10128 * localedata/locales/wa_BE (mon): Rename to...
10129 (alt_mon): This.
10130 (mon): Add, fill with the proper genitive forms, but CLDR data
10131 is incomplete; completed according to the comments in this file.
10132 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10133
10134 * localedata/locales/wa_BE (country_name): Reword
10135 "Beljike" -> "Beldjike".
10136
10137 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10138
10139 [BZ #23272]
10140 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10141 cases of non-finite arguments.
10142 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10143
10144 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10145
10146 [BZ #23174]
10147 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10148
10149 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10150
10151 [BZ #23264]
10152 * include/unistd.h (__execvpex): New prototype.
10153 * posix/Makefile (tests): Add tst-spawn4.
10154 (tests-internal): Add tst-spawn4-compat.
10155 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10156 * posix/tst-spawn4-compat.c: New file.
10157 * posix/tst-spawn4.c: Likewise.
10158 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10159 binaries as shell scripts.
10160 * sysdeps/posix/spawni.c (__spawni): Likewise.
10161
10162 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10163
10164 [BZ #23145]
10165 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10166 ($(all-built-dso:=.dynsym): New target.
10167 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10168 ($(objpfx)check-initfini.out): New target.
10169 (generated): Add check-initfini.out.
10170 * scripts/check-initfini.awk: New file.
10171 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10172 (_fini): Likewise.
10173 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10174 (_fini): Likewise.
10175 * sysdeps/arm/crti.S (_init): Mark as hidden.
10176 (_fini): Likewise.
10177 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10178 (_fini): Likewise.
10179 * sysdeps/i386/crti.S (_init): Mark as hidden.
10180 (_fini): Likewise.
10181 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10182 (_fini): Likewise.
10183 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10184 (_fini): Likewise.
10185 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10186 (_fini): Likewise.
10187 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10188 (_fini): Likewise.
10189 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10190 (_fini): Likewise.
10191 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10192 (_fini): Likewise.
10193 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10194 (_fini): Likewise.
10195 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10196 (_fini): Likewise.
10197 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10198 (_fini): Likewise.
10199 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10200 (_fini): Likewise.
10201 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10202 (_fini): Likewise.
10203 * sysdeps/sh/crti.S (_init): Mark as hidden.
10204 (_fini): Likewise.
10205 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10206 (_fini): Likewise.
10207 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10208 (_fini): Likewise.
10209
10210 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10211
10212 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10213 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10214 and TF redirection to KFtype and KF only when the default
10215 long double type is not the IEEE 128-bit floating point type.
10216
10217 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10218
10219 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10220 macro.
10221 (HWCAP_USCAT): Likewise.
10222 (HWCAP_ILRCPC): Likewise.
10223 (HWCAP_FLAGM): Likewise.
10224 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10225 Increase to 28.
10226 (_dl_aarch64_cap_flags): Add new flag names.
10227
10228 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10229 (MAP_FIXED_NOREPLACE): New macro.
10230 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10231 (MAP_FIXED_NOREPLACE): Likewise.
10232 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10233 (MAP_FIXED_NOREPLACE): Likewise.
10234 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10235 (MAP_FIXED_NOREPLACE): Likewise.
10236 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10237 (MAP_FIXED_NOREPLACE): Likewise.
10238 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10239 (MAP_FIXED_NOREPLACE): Likewise.
10240 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10241 (MAP_FIXED_NOREPLACE): Likewise.
10242 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10243 (MAP_FIXED_NOREPLACE): Likewise.
10244 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10245 (MAP_FIXED_NOREPLACE): Likewise.
10246 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10247 (MAP_FIXED_NOREPLACE): Likewise.
10248 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10249 (MAP_FIXED_NOREPLACE): Likewise.
10250 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10251 (MAP_FIXED_NOREPLACE): Likewise.
10252 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10253 (MAP_FIXED_NOREPLACE): Likewise.
10254 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10255 (MAP_FIXED_NOREPLACE): Likewise.
10256 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10257 (MAP_FIXED_NOREPLACE): Likewise.
10258
10259 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10260 version to 4.17.
10261
10262 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10263
10264 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10265 version to 4.17
10266
10267 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10268
10269 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10270 int.
10271 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10272
10273 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10274
10275 * benchtests/scripts/compare_string.py: (process_results) Catch
10276 exception in non-existent base_func and catch exception in
10277 non-existent attribute.
10278 (parse_file) Catch exception if input file does not exist.
10279
10280 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10281
10282 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10283 options to avoid diff calculation and omit header, respectively.
10284 (main): process --no-diff and --no-header
10285
10286 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10287 H.J. Lu <hongjiu.lu@intel.com>
10288
10289 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10290 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10291 wcsncmp-sse2.
10292 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10293 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10294 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10295 and __wcsncmp_sse2.
10296 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10297 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10298 AVX unaligned load is fast and vzeroupper is preferred.
10299 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10300 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10301 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10302 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10303 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10304 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10305 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10306 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10307 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10308 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10309 is undefined.
10310
10311 2018-06-01 Florian Weimer <fweimer@redhat.com>
10312
10313 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10314 configuring with --disable-multi-arch, building with
10315 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10316 Haswell-era CPU.
10317
10318 2018-06-01 Florian Weimer <fweimer@redhat.com>
10319
10320 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10321 results from building with “-march=x86-64 -mtune=generic
10322 -mfpmath=sse” and running on a Haswell-era CPU.
10323
10324 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10325
10326 [BZ #18473]
10327 * soft-fp/sqrttf2.c: Remove file.
10328 * soft-fp/sqrtdf2.c: Move to ....
10329 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10330 <shlib-compat.h>.
10331 (__sqrtdf2): Make conditional on
10332 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10333 symbol.
10334 * soft-fp/sqrtsf2.c: Move to ....
10335 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10336 <shlib-compat.h>.
10337 (__sqrtsf2): Make conditional on
10338 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10339 symbol.
10340 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10341 (gcc-double-routines): Remove sqrtdf2.
10342 (gcc-quad-routines): Remove sqrttf2.
10343 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10344 Do not filter out sqrtsf2 and sqrtdf2.
10345 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10346 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10347
10348 2018-06-01 Florian Weimer <fweimer@redhat.com>
10349
10350 * sysdeps/generic/libcidn.abilist: Remove file.
10351
10352 2018-06-01 Florian Weimer <fweimer@redhat.com>
10353
10354 [BZ #23236]
10355 * libio/strfile.h (struct _IO_str_fields): Rename members to
10356 discourage their use and add comment.
10357 (_IO_STR_DYNAMIC): Remove unused macro.
10358 * libio/strops.c (_IO_str_init_static_internal): Do not use
10359 callback pointers. Call malloc and free.
10360 (_IO_str_overflow): Do not use callback pointers. Call malloc
10361 and free.
10362 (enlarge_userbuf): Likewise.
10363 (_IO_str_finish): Call free.
10364 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10365 _allocate_buffer_unused.
10366 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10367 and free.
10368 (enlarge_userbuf): Likewise.
10369 (_IO_wstr_finish): Call free.
10370 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10371 _allocate_buffer_unused, _free_buffer_unused.
10372 * libio/memstream.c (__open_memstream): Likewise.
10373 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10374 * libio/wmemstream.c (open_wmemstream): Likewise.
10375
10376 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10377
10378 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10379 AMD Ryzen 7 1800X.
10380
10381 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10382
10383 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10384 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10385 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10386 New file.
10387 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10388 Likewise.
10389 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10390
10391 2018-05-29 Florian Weimer <fweimer@redhat.com>
10392
10393 * support/Makefile (libsupport-routines): Add
10394 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10395 xpthread_barrierattr_setpshared.
10396 * support/xpthread_barrierattr_destroy.c: New file.
10397 * support/xpthread_barrierattr_init.c: Likewise.
10398 * support/xpthread_barrierattr_setpshared.c: Likewise.
10399
10400 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10401
10402 [BZ #23206]
10403 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10404 _r_debug and update DT_DEBUG for debugger.
10405
10406 2018-05-29 Florian Weimer <fweimer@redhat.com>
10407
10408 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10409 (tst-strtod5i.out): Likewise.
10410
10411 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10412
10413 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10414 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10415 (sparc64-quad-routines): New variable. Moved from ....
10416 [$(subdir) = soft-fp] (sysdep_routines): Add
10417 $(sparc64-quad-routines). Moved from ....
10418 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10419 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10420 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10421 moved from ....
10422 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10423 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10424 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10425 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10426 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10427 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10428 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10429 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10430 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10431 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10432 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10433 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10434 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10435 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10436 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10437 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10438 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10439 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10440 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10441 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10442 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10443 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10444 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10445 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10446 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10447 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10448 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10449 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10450 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10451 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10452 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10453 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10454 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10455 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10456 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10457 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10458 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10459 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10460 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10461 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10462 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10463 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10464 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10465 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10466 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10467 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10468 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10469 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10470 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10471 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10472 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10473 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10474 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10475 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10476 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10477 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10478 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10479 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10480
10481 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10482 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10483 (sparc32-quad-routines): New variable. Moved from ....
10484 [$(subdir) = soft-fp] (sysdep_routines): Add
10485 $(sparc32-quad-routines). Moved from ....
10486 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10487 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10488 moved from ....
10489 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10490 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10491 * sysdeps/sparc/sparc32/q_add.c: ... here.
10492 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10493 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10494 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10495 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10496 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10497 * sysdeps/sparc/sparc32/q_div.c: ... here.
10498 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10499 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10500 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10501 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10502 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10503 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10504 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10505 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10506 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10507 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10508 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10509 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10510 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10511 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10512 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10513 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10514 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10515 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10516 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10517 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10518 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10519 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10520 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10521 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10522 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10523 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10524 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10525 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10526 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10527 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10528 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10529 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10530 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10531 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10532 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10533 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10534 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10535 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10536 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10537 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10538 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10539 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10540 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10541 * sysdeps/sparc/sparc32/q_util.c: ... here.
10542 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10543 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10544 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10545 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10546
10547 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10548 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10549
10550 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10551 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10552 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10553 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10554
10555 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10556
10557 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10558 powerpc/soft-fp.
10559 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10560 Likewise.
10561 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10562 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10563
10564 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10565
10566 [BZ #23171]
10567 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10568 double version.
10569
10570 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10571
10572 * sysdeps/sh/Implies: Remove sh/soft-fp.
10573 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10574 * sysdeps/sh/sfp-machine.h: ... here.
10575
10576 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10577
10578 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10579 (__mempcpy_erms): Skip zero length.
10580 (__memmove_erms): Likewise.
10581 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10582 (__memset_erms): Likewise.
10583
10584 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10585
10586 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10587 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10588 Add functions moved from ....
10589 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10590 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10591 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10592 from ....
10593 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10594 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10595 * sysdeps/alpha/e_sqrtl.c: ... here.
10596 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10597 * sysdeps/alpha/local-soft-fp.h: ... here.
10598 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10599 * sysdeps/alpha/ots_add.c: ... here.
10600 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10601 * sysdeps/alpha/ots_cmp.c: ... here.
10602 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10603 * sysdeps/alpha/ots_cmpe.c: ... here.
10604 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10605 * sysdeps/alpha/ots_cvtqux.c: ... here.
10606 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10607 * sysdeps/alpha/ots_cvtqx.c: ... here.
10608 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10609 * sysdeps/alpha/ots_cvttx.c: ... here.
10610 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10611 * sysdeps/alpha/ots_cvtxq.c: ... here.
10612 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10613 * sysdeps/alpha/ots_cvtxt.c: ... here.
10614 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10615 * sysdeps/alpha/ots_div.c: ... here.
10616 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10617 * sysdeps/alpha/ots_mul.c: ... here.
10618 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10619 * sysdeps/alpha/ots_nintxq.c: ... here.
10620 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10621 * sysdeps/alpha/ots_sub.c: ... here.
10622 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10623 * sysdeps/alpha/sfp-machine.h: ... here.
10624
10625 2018-05-23 Florian Weimer <fweimer@redhat.com>
10626
10627 [BZ #19728]
10628 [BZ #19729]
10629 [BZ #22247]
10630 CVE-2016-6261
10631 CVE-2016-6263
10632 CVE-2017-14062
10633 Switch to extern IDNA implementation (libidn2).
10634 * libidn: Remove subdirectory.
10635 * LICENSES: Do not mention licensing conditions for the removed
10636 libidn code.
10637 * config.h.in (HAVE_LIBIDN): Remove.
10638 * include/dlfcn.h (__libc_dlopen): Update comment.
10639 * include/idna.h: Remove file.
10640 * inet/Makefile (routines): Add idna.
10641 (tests-static, tests-internal): Add tst-idna_name_classify.
10642 (LOCALES): Generate locales for tests.
10643 (tst-idna_name_classify.out): Depend on generated locales.
10644 * inet/idna_name_classify.c: New file.
10645 * inet/tst-idna_name_classify.c: Likewise.
10646 * inet/net-internal.h (__idna_to_dns_encoding)
10647 (__idna_from_dns_encoding): Declare.
10648 * inet/net-internal.h (enum idna_name_classification): Define.
10649 (__idna_name_classify): Declare.
10650 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10651 __idna_from_dns_encoding.
10652 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10653 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10654 name as a fallback in case of encoding errors.
10655 (getnameinfo): Use DEPRECATED_NI_IDN.
10656 * inet/idna.c: New file.
10657 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10658 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10659 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10660 (modules-names): Add tst-no-libidn2.
10661 (extra-test-objs): Add tst-no-libidn2.os.
10662 (LDFLAGS-tst-no-libidn2.so): Set soname.
10663 (LOCALES): Set, and generate locales.
10664 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10665 (tst-resolv-ai_idn-latin1): Likewise.
10666 (tst-resolv-ai_idn-nolibidn2): Likewise.
10667 (tst-resolv-ai_idn.out): Depend on locales.
10668 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10669 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10670 tst-no-libidn2.so.
10671 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10672 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10673 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10674 * resolv/tst-resolv-ai_idn.c: New file.
10675 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10676 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10677 * resolv/tst-no-libidn2.c: Likewise.
10678 * support/support_format_addrinfo.c (format_ai_flags): Do not
10679 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10680 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10681 (gaih_inet): Call __idna_to_dns_encoding and
10682 __idna_from_dns_encoding, and use the original (punycode) name if
10683 __idna_from_dns_encoding fails due to an encoding error.
10684 (getaddrinfo): Use DEPRECATED_AI_IDN.
10685 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10686 * sysdeps/unix/inet/configure: Remove file.
10687 * sysdeps/unix/inet/configure.ac: Likewise.
10688
10689 2018-05-23 Florian Weimer <fweimer@redhat.com>
10690
10691 Implement allocate_once.
10692 * include/allocate_once.h: New file.
10693 * misc/allocate_once.c: Likewise.
10694 * misc/tst-allocate_once.c: Likewise.
10695 * misc/Makefile (routines): Add allocate_once.
10696 (tests-internal): Add tst-allocate_once.
10697 (generated): Add tst-allocate_once.mtrace,
10698 tst-allocate_once-mem.out.
10699 (tests-special): Add tst-allocate_once-mem.out.
10700 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10701 (tst-allocate_once-mem.out): Call mtrace.
10702 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10703
10704 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10705
10706 [BZ #23196]
10707 * string/test-memcpy.c (do_test1): New function.
10708 (test_main): Call it.
10709
10710 2018-05-23 Andreas Schwab <schwab@suse.de>
10711
10712 [BZ #23196]
10713 CVE-2018-11237
10714 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10715 (L(preloop_large)): Save initial destination pointer in %r11 and
10716 use it instead of %rax after the loop.
10717 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10718
10719 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10720
10721 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10722 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10723 -I../soft-fp. Moved from ....
10724 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10725 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10726 * sysdeps/aarch64/e_sqrtl.c: ... here.
10727 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10728 * sysdeps/aarch64/sfp-machine.h: ... here.
10729
10730 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10731 -Wmaybe-uninitialized around access to fq[0].
10732 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10733 Likewise.
10734
10735 [BZ #18471]
10736 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10737 aliases for non-libc case of versioned symbols.
10738 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10739 (llseek): Define as compat symbol if
10740 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10741 with link warning.
10742 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10743 Make into a compat symbol, disabled for minimum symbol version
10744 GLIBC_2.28 and later.
10745 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10746
10747 2018-05-22 Florian Weimer <fweimer@redhat.com>
10748
10749 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10750 not add -mpreferred-stack-boundary=4.
10751 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10752 (stack-align-test-flags): Likewise.
10753 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10754 Likewise.
10755 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10756 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10757 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10758 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10759 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10760 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10761 (CFLAGS-tst-align2.c): Likewise.
10762
10763 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10764
10765 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10766 (index_arch_Prefer_FSRM): Likewise.
10767 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10768 Also check Prefer_FSRM.
10769 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10770 Also return OPTIMIZE (erms) for Prefer_FSRM.
10771
10772 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10773
10774 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10775 (index_cpu_FSRM): Likewise.
10776 (reg_FSRM): Likewise.
10777
10778 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10779
10780 * math/gen-tgmath-tests.py: Import sys.
10781 (Tests.__init__): Initialize macros_seen.
10782 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10783 if requested to do so for this macro.
10784 (Tests.add_all_tests): Take argument for macro for which to
10785 generate tests.
10786 (Tests.check_macro_list): New function.
10787 (main): Handle check-list argument and argument specifying macro
10788 for which to generate tests.
10789 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10790 [PYTHON] (tgmath3-macro-tests): Likewise.
10791 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10792 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10793 not test-tgmath3.c.
10794 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10795 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10796 to CFLAGS.
10797 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10798 [PYTHON] ($(foreach
10799 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10800 rule.
10801 [PYTHON] (tests-special): Add
10802 $(objpfx)test-tgmath3-macro-list.out.
10803 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10804
10805 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10806 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10807 later.
10808
10809 [BZ #22639]
10810 * time/tzset.c (SECSPERDAY): Cast to time_t.
10811 * time/tst-y2039.c: New file.
10812 * time/Makefile (tests): Add tst-y2039.
10813
10814 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10815
10816 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10817 (PREFETCH_ONE_SET): Remove duplicate line.
10818
10819 2018-05-17 Florian Weimer <fweimer@redhat.com>
10820
10821 * sysdeps/generic/math-type-macros-double.h: Include
10822 <math-nan-payload-double.h> after <libm-alias-double.h>.
10823 * sysdeps/generic/math-type-macros-float.h: Include
10824 <math-nan-payload-float.h> after <libm-alias-float.h>.
10825 * sysdeps/generic/math-type-macros-float128.h: Include
10826 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10827 * sysdeps/generic/math-type-macros-ldouble.h: Include
10828 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10829
10830 2018-05-17 Andreas Schwab <schwab@suse.de>
10831
10832 * resolv/res_send.c (__res_context_send): Don't set errno when
10833 returing error after malloc failure.
10834
10835 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
10836
10837 * nptl/allocatestack.c (allocate_stack): Remove the
10838 !__ASSUME_PRIVATE_FUTEX paths.
10839 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
10840 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
10841 Likewise.
10842 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
10843 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10844 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10845 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10846 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
10847 !__ASSUME_PRIVATE_FUTEX path.
10848 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
10849 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
10850 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10851 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
10852 !__ASSUME_PRIVATE_FUTEX macros.
10853 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
10854 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
10855 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10856 * sysdeps/unix/sysv/linux/kernel-features.h
10857 (__ASSUME_PRIVATE_FUTEX): Removed.
10858
10859 2018-05-17 Joseph Myers <joseph@codesourcery.com>
10860
10861 * math/Makefile (libm-narrow-fns): Add div.
10862 (libm-test-funcs-narrow): Likewise.
10863 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
10864 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
10865 * math/gen-auto-libm-tests.c (test_functions): Add div.
10866 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
10867 (NARROW_DIV_ROUND_TO_ODD): Likewise.
10868 (NARROW_DIV_TRIVIAL): Likewise.
10869 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
10870 macro.
10871 (__ddivl): Likewise.
10872 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
10873 ddiv.
10874 (CFLAGS-nldbl-ddiv.c): New variable.
10875 (CFLAGS-nldbl-fdiv.c): Likewise.
10876 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10877 __nldbl_ddivl.
10878 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
10879 prototype.
10880 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
10881 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
10882 * math/auto-libm-test-in: Add tests of div.
10883 * math/auto-libm-test-out-narrow-div: New generated file.
10884 * math/libm-test-narrow-div.inc: New file.
10885 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
10886 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
10887 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
10888 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
10889 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
10890 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
10891 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
10892 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
10893 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
10894 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
10895 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
10896 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
10897 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
10898 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
10899 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
10900 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
10901 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
10902 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
10903 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10904 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
10905 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10906 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10907 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10908 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10909 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10910 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10911 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10912 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10913 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10914 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10915 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10916 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
10918 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
10919 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
10920 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
10921 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
10922 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10923 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10924 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10925 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10926 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10927 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10928 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10929
10930 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10931
10932 [BZ #23178]
10933 * nscd/nscd-client.h (sendfileall): Remove prototype.
10934 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
10935 (handle_request): Use writeall instead of sendfileall.
10936 * nscd/aicache.c (addhstaiX): Likewise.
10937 * nscd/grpcache.c (cache_addgr): Likewise.
10938 * nscd/hstcache.c (cache_addhst): Likewise.
10939 * nscd/initgrcache.c (addinitgroupsX): Likewise.
10940 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
10941 * nscd/pwdcache.c (cache_addpw): Likewise.
10942 * nscd/servicescache.c (cache_addserv): Likewise.
10943 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
10944 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
10945 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
10946 Remove define.
10947
10948 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
10949
10950 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
10951 Include <string/strncat.c>.
10952 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
10953 alias.
10954 (__GI___strncat): New hidden alias.
10955
10956 2018-05-16 Joseph Myers <joseph@codesourcery.com>
10957
10958 * sysdeps/mips/mips32/libm-test-ulps: Update.
10959 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10960
10961 2018-05-16 Florian Weimer <fweimer@redhat.com>
10962
10963 * support/Makefile (libsupport-routines): Add support_quote_blob,
10964 support_test_compare_blob.
10965 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
10966 * support/check.h (TEST_COMPARE_BLOB): Define.
10967 (support_test_compare_blob): Declare.
10968 * support/support.h (support_quote_blob): Declare.
10969 * support/support_quote_blob.c: New file.
10970 * support/support_test_compare_blob.c: Likewise.
10971 * support/tst-support_quote_blob.c: Likewise.
10972 * support/tst-test_compare_blob.c: Likewise.
10973
10974 2018-05-16 Florian Weimer <fweimer@redhat.com>
10975
10976 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
10977 of <strtod_nan_double.h>.
10978 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
10979 instead of SET_MANTISSA.
10980 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
10981 of include <strtod_nan_float.h>.
10982 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
10983 instead of <strtod_nan_ldouble.h>.
10984 * stdlib/strtod_nan_double.h: Move to ...
10985 * sysdeps/generic/math-nan-payload-double.h: ... here.
10986 (FLOAT): Remove definition.
10987 (SET_MANTISSA): Rename to ...
10988 (SET_NAN_PAYLOAD): ... this.
10989 * stdlib/strtod_nan_float.h: Move to ...
10990 * sysdeps/generic/math-nan-payload-float.h: ... here.
10991 (FLOAT): Remove definition.
10992 (SET_MANTISSA): Rename to ...
10993 (SET_NAN_PAYLOAD): ... this.
10994 * sysdeps/generic/math-type-macros-double.h: Include
10995 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
10996 instead of <math-svid-compat.h>.
10997 * sysdeps/generic/math-type-macros-float.h: Include
10998 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
10999 instead of <math-svid-compat.h>.
11000 * sysdeps/generic/math-type-macros-float128.h: Include
11001 <math-nan-payload-float128.h>.
11002 * sysdeps/generic/math-type-macros-ldouble.h: Include
11003 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11004 instead of <math-svid-compat.h>.
11005 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11006 check for definition.
11007 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11008 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11009 Include <ieee754_float128.h>.
11010 (FLOAT): Remove definition.
11011 (SET_MANTISSA): Rename to ...
11012 (SET_NAN_PAYLOAD): ... this.
11013 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11014 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11015 Do not include <float128_private.h>.
11016 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11017 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11018 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11019 (FLOAT): Remove definition.
11020 (SET_MANTISSA): Rename to ...
11021 (SET_NAN_PAYLOAD): ... this.
11022 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11023 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11024 (FLOAT): Remove definition.
11025 (SET_MANTISSA): Rename to ...
11026 (SET_NAN_PAYLOAD): ... this.
11027 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11028 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11029 (FLOAT): Remove definition.
11030 (SET_MANTISSA): Rename to ...
11031 (SET_NAN_PAYLOAD): ... this.
11032 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11033 of "../stdlib/strtod_nan_double.h".
11034 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11035 of "../stdlib/strtod_nan_float.h".
11036 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11037 instead of "../stdlib/strtod_nan_ldouble.h".
11038 * manual/arith.texi (Parsing of Floats): Adjust comment.
11039
11040 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11041
11042 * math/Makefile (libm-narrow-fns): Add mul.
11043 (libm-test-funcs-narrow): Likewise.
11044 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11045 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11046 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11047 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11048 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11049 (NARROW_MUL_TRIVIAL): Likewise.
11050 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11051 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11052 macro.
11053 (__dmull): Likewise.
11054 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11055 dmul.
11056 (CFLAGS-nldbl-dmul.c): New variable.
11057 (CFLAGS-nldbl-fmul.c): Likewise.
11058 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11059 __nldbl_dmull.
11060 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11061 prototype.
11062 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11063 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11064 * math/auto-libm-test-in: Add tests of mul.
11065 * math/auto-libm-test-out-narrow-mul: New generated file.
11066 * math/libm-test-narrow-mul.inc: New file.
11067 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11068 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11069 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11070 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11071 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11072 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11073 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11074 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11075 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11076 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11077 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11078 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11079 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11080 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11081 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11082 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11083 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11084 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11085 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11086 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11087 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11088 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11089 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11090 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11091 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11092 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11093 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11094 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11095 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11096 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11097 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11098 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11099 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11100 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11101 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11102 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11103 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11104 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11105 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11106 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11107 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11108 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11109 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11110 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11111
11112 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11113
11114 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11115 with *%eax in call.
11116
11117 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11118
11119 * sysdeps/i386/ldsodefs.h: Removed.
11120 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11121 * sysdeps/x86/ldsodefs.h: This.
11122 (La_i86_regs): New.
11123 (La_i86_retval): Likewise.
11124 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11125 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11126
11127 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11128
11129 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11130 unnecessary testl.
11131
11132 2018-05-13 Alan Modra <amodra@gmail.com>
11133
11134 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11135 R_PARISC_TLS_DTPOFF32 reloc addend.
11136
11137 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11138
11139 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11140 * math/math.h: Restrict the prototype definition for the functions
11141 issignaling(_Float128) and iszero(_Float128); and template
11142 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11143 __HAVE_FLOAT128_UNLIKE_LDBL.
11144 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11145 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11146 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11147 __f128() constants; define the type _Float128 as long double;
11148 and reuse long double in __CFLOAT128.
11149
11150 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11151
11152 * sysdeps/generic/math_private.h: Do not include
11153 <math-barriers.h>.
11154 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11155 <math_private.h>.
11156 * math/fromfp.h: Include <math-barriers.h>.
11157 * math/math-narrow.h: Likewise.
11158 * math/s_nextafter.c: Likewise.
11159 * math/s_nexttowardf.c: Likewise.
11160 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11161 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11162 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11163 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11164 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11165 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11166 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11167 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11168 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11169 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11170 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11171 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11172 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11173 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11174 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11175 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11176 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11177 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11178 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11179 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11180 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11181 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11182 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11183 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11184 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11185 * sysdeps/ieee754/k_standardl.c: Likewise.
11186 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11187 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11188 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11189 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11190 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11191 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11192 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11193 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11194 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11195 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11196 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11197 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11198 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11199 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11200 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11201 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11202 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11203 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11204 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11205 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11206 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11207 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11208
11209 2018-05-11 Florian Weimer <fweimer@redhat.com>
11210
11211 Use 64-bit epoch values in the time zone file parser.
11212 * include/time.h (internal_time_t): Define.
11213 (__tzfile_compute): Use it.
11214 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11215 member.
11216 (transitions): Switch to internal_time_t.
11217 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11218 types.
11219 (__tzfile_compute): Use internal_time_t for timer argument. Check
11220 for truncation before calling __offtime.
11221
11222 2018-05-11 Florian Weimer <fweimer@redhat.com>
11223
11224 [BZ #23166]
11225 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11226 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11227 Likewise.
11228 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11229 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11230 export without --enable-obsolete-rpc.
11231 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11232 symbol. This should not have been exported, ever.
11233
11234 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11235
11236 [BZ #23152]
11237 * localedata/locales/gd_GB (abmon): Fix typo in May:
11238 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11239
11240 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11241
11242 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11243 Use multiple registers to copy data in loop tail.
11244
11245 * sysdeps/aarch64/multiarch/memmove_falkor.S
11246 (__memmove_falkor): Use multiple registers to move data in
11247 loop tail.
11248
11249 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11250
11251 * math/math-underflow.h: New file.
11252 * sysdeps/generic/math_private.h: Do not include <float.h>.
11253 (fabs_tg): Remove macro. Moved to math-underflow.h.
11254 (min_of_type_f): Likewise.
11255 (min_of_type_): Likewise.
11256 (min_of_type_l): Likewise.
11257 (min_of_type_f128): Likewise.
11258 (min_of_type): Likewise.
11259 (math_check_force_underflow): Likewise.
11260 (math_check_force_underflow_nonneg): Likewise.
11261 (math_check_force_underflow_complex): Likewise.
11262 * math/e_exp2_template.c: Include <math-underflow.h>.
11263 * math/k_casinh_template.c: Likewise.
11264 * math/s_catan_template.c: Likewise.
11265 * math/s_catanh_template.c: Likewise.
11266 * math/s_ccosh_template.c: Likewise.
11267 * math/s_cexp_template.c: Likewise.
11268 * math/s_clog10_template.c: Likewise.
11269 * math/s_clog_template.c: Likewise.
11270 * math/s_csin_template.c: Likewise.
11271 * math/s_csinh_template.c: Likewise.
11272 * math/s_csqrt_template.c: Likewise.
11273 * math/s_ctan_template.c: Likewise.
11274 * math/s_ctanh_template.c: Likewise.
11275 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11276 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11277 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11278 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11279 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11280 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11281 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11282 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11283 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11284 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11285 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11286 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11287 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11288 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11289 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11290 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11291 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11292 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11293 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11294 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11295 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11296 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11297 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11298 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11299 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11300 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11301 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11302 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11303 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11304 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11305 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11306 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11307 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11308 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11309 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11310 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11311 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11312 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11313 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11314 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11315 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11316 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11317 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11318 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11319 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11320 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11321 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11322 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11323 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11324 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11325 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11326 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11327 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11328 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11329 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11330 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11331 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11332 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11333 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11334 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11335 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11336 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11337 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11338 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11339 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11340 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11341 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11342 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11343 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11344 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11345 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11346 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11347 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11348 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11349 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11350 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11351 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11352 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11353 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11354 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11355 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11356 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11357 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11358 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11359
11360 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11361
11362 * sysdeps/generic/math-barriers.h: New file.
11363 * sysdeps/generic/math_private.h [!math_opt_barrier]
11364 (math_opt_barrier): Move to math-barriers.h.
11365 [!math_opt_barrier] (math_force_eval): Likewise.
11366 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11367 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11368 math-barriers.h.
11369 (math_force_eval): Likewise.
11370 * sysdeps/alpha/fpu/math-barriers.h: New file.
11371 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11372 math-barriers.h.
11373 (math_force_eval): Likewise.
11374 * sysdeps/x86/fpu/math-barriers.h: New file.
11375 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11376 math-barriers.h.
11377 (math_force_eval): Likewise.
11378 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11379 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11380 multiple-include guard for rename.
11381 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11382 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11383 math-barriers.h.
11384 (math_force_eval): Likewise.
11385
11386 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11387
11388 [BZ #22786]
11389 CVE-2018-11236
11390 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11391 computation.
11392 * stdlib/Makefile (test-bz22786): New test.
11393 * stdlib/test-bz22786.c: New test.
11394
11395 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11396
11397 * include/math-narrow-eval.h: New file. Contents moved from ....
11398 * sysdeps/generic/math_private.h: ... here.
11399 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11400 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11401 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11402 * stdlib/strtod_l.c: Likewise.
11403 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11404 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11405 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11406 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11407 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11408 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11409 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11410 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11411 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11412 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11413 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11414 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11415 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11416 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11417 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11418 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11419 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11420 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11421 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11422 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11423 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11424 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11425 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11426 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11427 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11428 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11429 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11430 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11431 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11432
11433 2018-05-08 Andreas Schwab <schwab@suse.de>
11434
11435 * sysdeps/nptl/internaltypes.h: Fix comment.
11436
11437 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11438
11439 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11440 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11441 hidden.
11442
11443 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11444
11445 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11446 of I into loop header.
11447 * benchtests/bench-memmove-walk.c
11448 (test_main): Likewise.
11449
11450 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11451
11452 Revert:
11453 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11454 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11455
11456 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11457
11458 [BZ #20419]
11459 * elf/dl-load.c (open_verify): Fix stack overflow.
11460 * elf/Makefile (tst-big-note): New test.
11461 * elf/tst-big-note-lib.S: New.
11462 * elf/tst-big-note.c: New.
11463
11464 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11465
11466 * scripts/abilist.awk: Ignore absolute symbols.
11467 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11468 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11469 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11470 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11471 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11472 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11473 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11474 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11475 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11476 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11477 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11478 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11479 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11480 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11481 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11482 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11483 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11484 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11485 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11486 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11487 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11488 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11489 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11490 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11491 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11492 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11493 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11494 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11495 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11496 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11497 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11498 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11499 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11500 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11501 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11502 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11503 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11504 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11505 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11506 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11507 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11508 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11509 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11510 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11511 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11512 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11513 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11514 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11515 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11516 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11517 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11518 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11519 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11520 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11521 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11522 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11523 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11524 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11525 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11526 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11527 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11528 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11529 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11530 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11531 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11532 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11533 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11534 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11535 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11536 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11537 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11538 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11539 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11540 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11541 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11542 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11543 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11544 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11545 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11546 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11547 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11548 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11549 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11550 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11551 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11552 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11553 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11554 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11555 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11556 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11557 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11558 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11559 Likewise.
11560 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11561 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11562 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11563 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11564 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11565 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11566 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11567 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11568 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11569 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11570 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11571 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11572 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11573 Likewise.
11574 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11575 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11576 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11577 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11578 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11579 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11580 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11581 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11582 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11583 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11584 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11585 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11586 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11587 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11588 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11589 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11590 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11591 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11592 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11593 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11594 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11595 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11596 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11597 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11598 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11599 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11600 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11601 Likewise.
11602 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11603 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11604 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11605 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11606 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11607 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11608 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11609 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11610 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11611 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11612 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11613 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11614 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11615 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11616 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11617 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11618 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11619 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11620 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11621 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11622 Likewise.
11623 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11624 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11625 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11626 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11627 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11628 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11629 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11630 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11631 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11632 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11633 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11634 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11635 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11636 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11637 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11638 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11639 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11640 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11641 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11642 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11643 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11644 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11647 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11648 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11649 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11650 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11651 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11655 Likewise.
11656 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11661 Likewise.
11662 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11663 Likewise.
11664 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11666 Likewise.
11667 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11669 Likewise.
11670 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11671 Likewise.
11672 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11675 Likewise.
11676 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11677 Likewise.
11678 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11679 Likewise.
11680 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11684 Likewise.
11685 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11691 Likewise.
11692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11694 Likewise.
11695 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11696 Likewise.
11697 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11698 Likewise.
11699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11700 Likewise.
11701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11704 Likewise.
11705 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11706 Likewise.
11707 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11708 Likewise.
11709 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11712 Likewise.
11713 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11718 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11719 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11720 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11721 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11722 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11724 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11725 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11726 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11727 Likewise.
11728 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11729 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11730 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11736 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11737 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11738 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11739 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11740 Likewise.
11741 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11742 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11743 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11744 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11745 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11746 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11747 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11750 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11753 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11754 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11766 Likewise.
11767 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11768 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11770 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11771 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11772 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11773 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11775 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11776 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11777 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11778 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11779 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11780 Likewise.
11781 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11782 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11783 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11784 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11785 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11786 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11788 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11789 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11791 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11792 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11793 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11794 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11796 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11798 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11799 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11800 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11801 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11803 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11804 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11805 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11806 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11807 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11808 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11809 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11810 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11811 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11812 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11813 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11814 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11815 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11816 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11817 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11818 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11819
11820 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11821
11822 [BZ #23137]
11823 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11824 Use atomic_load_acquire to load __tid.
11825
11826 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11827
11828 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11829 Restore the pointer into %rdx, after syscall and use %rdx,
11830 instead of %rsi, to restore context.
11831
11832 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11833
11834 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
11835 Pop the pointer into %rdx after syscall and use %rdx, instead
11836 of %rsi, to restore context.
11837
11838 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11839
11840 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
11841 handlers after setjmp.
11842 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
11843 defined.
11844 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
11845 <libc-pointer-arith.h>.
11846 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
11847 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
11848 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
11849 _JUMP_BUF_SIGSET_BITS_PER_WORD.
11850 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
11851 * sysdeps/x86/__longjmp_cancel.S: New file.
11852 * sysdeps/x86/longjmp.c: Likewise.
11853 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
11854
11855 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11856
11857 * NEWS: Add ustat.h deprecation entry.
11858 * bits/ustat.h: Remove file.
11859 * misc/sys/ustat.h: Likewise.
11860 * misc/ustat.h: Likewise.
11861 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
11862 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
11863 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
11864 compatibility mode.
11865 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
11866 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
11867 generic Linux implementation.
11868
11869 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11870
11871 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
11872 * math/w_expl_compat.c: Likewise.
11873 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
11874
11875 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11876
11877 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11878
11879 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11880
11881 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
11882 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
11883 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
11884 Remove.
11885 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
11886 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11887 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11888 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
11889 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
11890 and SYSCALL_LL64.
11891
11892 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11893
11894 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
11895
11896 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
11897 * math/w_asin_template.c: Likewise.
11898 * math/w_atanh_template.c: Likewise.
11899
11900 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11901
11902 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
11903 to powerpc/powerpc64/be for big-endian.
11904 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
11905 little-endian.
11906
11907 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
11908 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
11909 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
11910 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
11911 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
11912 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
11913 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
11914 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
11915 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
11916 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
11917 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
11918 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
11919 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
11920 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
11921 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
11922 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
11923 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
11924 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
11925 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
11926 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
11927 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
11928 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
11929 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
11930 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
11931 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
11932 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
11933 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
11934 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
11935 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
11936 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
11937 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
11938 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
11939
11940 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
11941 adjusted to imply powerpc64 and older processors on powerpc64/be.
11942 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
11943 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
11944 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
11945 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
11946 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
11947 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
11948 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
11949 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
11950 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
11951 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
11952 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
11953 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
11954 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
11955 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
11956 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
11957 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
11958 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
11959 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
11960 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
11961 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
11962 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
11963 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
11964 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
11965 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
11966 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
11967 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
11968 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
11969 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
11970 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
11971 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
11972 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
11973
11974 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
11975 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
11976 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
11977 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
11978
11979 * sysdeps/powerpc/powerpc64/be/Implies: New file.
11980 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
11981 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
11982 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
11983
11984 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
11985 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
11986 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
11987 * sysdeps/powerpc/powerpc64le/configure: Likewise.
11988 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
11989 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
11990 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
11991 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
11992 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
11993 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
11994 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
11995
11996 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
11997 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
11998 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
11999 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12000 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12001 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12002 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12003 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12004 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12005 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12006 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12007
12008 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12009 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12010 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12011 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12012 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12013 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12014 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12015 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12016 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12017 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12018 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12019 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12020
12021 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12022 and adjusted to imply olders processors.
12023 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12024 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12025 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12026 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12027 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12028 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12029 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12030 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12031 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12032 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12033 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12034
12035 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12036 powerpc64/le.
12037 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12038 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12039
12040 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12041 powerpc64le.
12042 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12043 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12044
12045 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12046 powerpc64/be.
12047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12049 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12050
12051 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12052 powerpc64 and adjusted.
12053 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12054 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12055 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12056 Likewise.
12057
12058 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12059
12060 * sysdeps/tile: Remove.
12061 * sysdeps/unix/sysv/linux/tile: Likewise.
12062 * README (tilegx-*-linux-gnu): Remove from list of supported
12063 configurations.
12064 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12065 contribution of support for generic Linux kernel syscall
12066 interface.
12067 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12068 tilegx configurations.
12069 (Config.install_linux_headers): Do not handle tile.
12070 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12071 in comment.
12072 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12073 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12074 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12075 conditional undefine and redefine.
12076 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12077 in comment.
12078 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12079 conditional undefine and redefine.
12080
12081 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12082
12083 * signal/tst-sigaction.c: New file to test BZ #23069.
12084 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12085
12086 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12087
12088 [BZ #22766]
12089 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12090 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12091 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12092 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12093
12094 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12095
12096 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12097 _DIRENT_MATCHES_DIRENT64 is not defined.
12098 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12099 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12100 is defined.
12101 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12102 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12103
12104 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12105
12106 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12107 version to GCC 8 branch.
12108
12109 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12110
12111 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12112 (check_no_hidden): Use type of original function when declaring
12113 alias.
12114
12115 * sysdeps/unix/sysv/linux/sys/ptrace.h
12116 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12117 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12118 (struct __ptrace_seccomp_metadata): New type.
12119 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12120 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12121 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12122 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12123 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12124 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12125 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12126 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12127 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12128 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12129 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12130 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12131 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12132 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12133 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12134 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12135
12136 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12137
12138 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12139 defined.
12140 * dirent/versionsort.c (versionsort): Likewise.
12141 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12142 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12143 * dirent/versionsort64.c (versionsort64): Likewise.
12144 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12145 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12146 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12147 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12148 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12149 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12150 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12151 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12152 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12153 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12154 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12155 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12156 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12157 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12158
12159 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12160
12161 * elf/elf.h (NT_PPC_PKEY): New macro.
12162
12163 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12164
12165 [BZ #23094]
12166 * localedata/locales/hr_HR: fix thousands_sep and
12167 mon_thousands_sep
12168
12169 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12170
12171 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12172 (XTABS): Define to TAB3.
12173
12174 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12175
12176 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12177
12178 * dirent/scandir-tail-common.c: New file.
12179 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12180 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12181 * dirent/scandir.c: Use scandir-tail-common.c.
12182 * dirent/scandirat.c: Likewise.
12183 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12184 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12185 if _DIRENT_MATCHES_DIRENT64 is defined.
12186 * dirent/scandirat64.c (scandirat64): Likewise.
12187 * include/dirent.h (__scandir_tail): Only define iff
12188 _DIRENT_MATCHES_DIRENT64 is not defined.
12189 (__scandir64_tail): Define regardless.
12190 (__scandirat, scandirat64): Remove libc_hidden_proto.
12191 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12192 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12193 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12194 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12195 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12196 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12197 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12198
12199 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12200
12201 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12202 New macro.
12203 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12204 Increase to 24.
12205 (_dl_aarch64_cap_flags): Add asimdfhm.
12206
12207 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12208
12209 * sysdeps/nios2/libm-test-ulps: Update.
12210
12211 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12212
12213 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12214 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12215
12216 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12217 requirements.
12218 (_DIRENT_MATCHES_DIRENT64): Undef
12219 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12220 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12221 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12222 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12223 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12224 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12225 use getdents64 syscalls as base.
12226 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12227 symbol if required.
12228 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12229 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12230 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12231 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12232 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12233 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12234 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12235 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12236 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12237 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12238 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12239
12240 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12241
12242 * scripts/test_printers_common.py (init_test): Disable lock elision.
12243
12244 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12245
12246 * math/test-tgmath.c (count_double, count_float,
12247 count_ldouble, count_cdouble, count_cfloat,
12248 count_cldouble): Use volatile int.
12249
12250 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12251
12252 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12253 (conformtest-xfail-conds): Add i386-gnu.
12254 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12255 i386-gnu.
12256 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12257 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12258 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12259 msqid_ds.msg_lrpid): Likewise.
12260 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12261 Likewise.
12262 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12263 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12264 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12265 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12266 unsigned int.
12267 (struct statvfs64): Likewise.
12268 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12269 Likewise.
12270 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12271 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12272 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12273 instead of wait_queue.
12274 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12275 instead of vm_area_struct.
12276 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12277 struct sched_param definition to it.
12278 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12279 * bits/types/struct_sched_param.h: New file.
12280 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12281 <bits/types/struct_sched_param.h> instead of <sched.h>.
12282 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12283 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12284 generic version but include <bits/pthreadtypes.h> to make struct
12285 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12286 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12287 non-compliant.
12288 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12289 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12290 [__USE_XOPEN] (OFDEL): New macro.
12291 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12292 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12293 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12294 prototypes.
12295 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12296 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12297 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12298 non-compliant.
12299 * sysdeps/i386/sys/ucontext.h: Likewise.
12300 * sysdeps/m68k/sys/ucontext.h: Likewise.
12301 * sysdeps/mips/sys/ucontext.h: Likewise.
12302 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12303 * sysdeps/mach/hurd/i386/Makefile
12304 (test-xfail-POSIX/fcntl.h/conform): Add.
12305 (test-xfail-POSIX/signal.h/conform): Add.
12306 (test-xfail-POSIX/semaphore.h/conform): Add.
12307 (test-xfail-POSIX/regex.h/conform): Add.
12308 (test-xfail-POSIX/aio.h/conform): Add.
12309 (test-xfail-POSIX/mqueue.h/conform): Add.
12310 (test-xfail-POSIX/sys/types.h/conform): Add.
12311 (test-xfail-UNIX98/fcntl.h/conform): Add.
12312 (test-xfail-UNIX98/netdb.h/conform): Add.
12313 (test-xfail-UNIX98/signal.h/conform): Add.
12314 (test-xfail-UNIX98/semaphore.h/conform): Add.
12315 (test-xfail-UNIX98/regex.h/conform): Add.
12316 (test-xfail-UNIX98/aio.h/conform): Add.
12317 (test-xfail-UNIX98/ftw.h/conform): Add.
12318 (test-xfail-UNIX98/mqueue.h/conform): Add.
12319 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12320 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12321 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12322 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12323 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12324 (test-xfail-UNIX98/sys/types.h/conform): Add.
12325 (test-xfail-UNIX98/stdlib.h/conform): Add.
12326 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12327 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12328 (test-xfail-POSIX2008/netdb.h/conform): Add.
12329 (test-xfail-POSIX2008/signal.h/conform): Add.
12330 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12331 (test-xfail-POSIX2008/regex.h/conform): Add.
12332 (test-xfail-POSIX2008/aio.h/conform): Add.
12333 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12334 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12335 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12336 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12337 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12338 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12339 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12340 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12341 (test-xfail-XOPEN2K/signal.h/conform): Add.
12342 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12343 (test-xfail-XOPEN2K/regex.h/conform): Add.
12344 (test-xfail-XOPEN2K/aio.h/conform): Add.
12345 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12346 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12347 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12348 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12349 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12350 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12351 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12352 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12353 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12354 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12355 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12356 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12357 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12358 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12359 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12360 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12361 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12362 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12363 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12364 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12365 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12366 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12367 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12368 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12369 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12370 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12371 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12372 i386-gnu.
12373 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12374 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12375
12376 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12377
12378 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12379 --enable-obsolete for powerpc-linux-gnuspe.
12380
12381 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12382
12383 * conform/data/sys/un.h-data: Allow sun_ prefix.
12384 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12385 prototypes.
12386 * sysdeps/mach/include/mach.h: Likewise.
12387 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12388 * sysdeps/mach/include/mach_error.h: Likewise.
12389
12390 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12391
12392 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12393 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12394 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12395 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12396
12397 2018-04-16 Andreas Schwab <schwab@suse.de>
12398
12399 [BZ #19527]
12400 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12401
12402 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12403
12404 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12405 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12406
12407 2018-04-12 DJ Delorie <dj@redhat.com>
12408
12409 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12410 version to 4.16.
12411
12412 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12413
12414 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12415 (struct kernel_sigaction): Use the same definition on 31bit as is used
12416 on 64bit.
12417
12418 2018-04-09 Florian Weimer <fweimer@redhat.com>
12419
12420 [BZ #23037]
12421 * resolv/res_send.c (send_dg): Use designated initializers instead
12422 of assignment to zero-initialize other fields of struct mmsghdr.
12423
12424 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12425
12426 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12427 __READDIR_ALIAS): Undefine after usage.
12428 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12429 __READDIR_R_ALIAS): Likewise.
12430 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12431 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12432 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12433 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12434 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12435 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12436 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12437 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12438 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12439 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12440 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12441 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12442 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12443 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12444 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12445 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12446 * sysdeps/unix/sysv/linux/readdir.c: New file.
12447 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12448 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12449 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12450
12451 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12452
12453 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12454
12455 * manual/charset.texi (Converting a Character): Fix typo.
12456
12457 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12458
12459 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12460
12461 * sysdeps/arm/libm-test-ulps: Update.
12462
12463 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12464 as base implementation.
12465 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12466 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12467 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12468 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12469 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12470 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12471 remove unrequired definitions and update comments.
12472 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12473 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12474 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12475 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12476 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12477 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12478 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12479 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12480 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12481 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12482 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12483 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12484 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12485 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12486 and RESET_SA_RESTORER hooks.
12487
12488 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12489
12490 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12491
12492 2018-04-05 Florian Weimer <fweimer@redhat.com>
12493
12494 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12495 integer overflow, memory leak on error, and indeterminate errno
12496 value. Add a null wide character to terminate the result string.
12497 * manual/charset.texi (Converting a Character): Mention embedded
12498 null bytes in the mbrtowc input string. Explain what happens in
12499 the -2 result case. Do not claim that mbrtowc is simple or
12500 obvious to use. Adjust the description of the code example. Use
12501 @code, not @var, for concrete variables.
12502
12503 2018-04-05 Florian Weimer <fweimer@redhat.com>
12504
12505 * manual/examples/mbstouwcs.c: New file.
12506 * manual/charset.texi (Converting a Character): Include it.
12507
12508 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12509
12510 * include/dirent.h (dirfd): Add hidden proto.
12511 * dirent/dirfd.c (dirfd): Add hidden def.
12512 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12513 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12514
12515 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12516
12517 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12518 sin, cos and sincos to 1 ULP.
12519
12520 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12521
12522 [BZ #19818]
12523 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12524 symbols.
12525 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12526 * elf/tst-absolute-sym.c: New file.
12527 * elf/tst-absolute-sym-lib.c: New file.
12528 * elf/tst-absolute-sym-lib.lds: New file.
12529 * elf/Makefile (tests): Add `tst-absolute-sym'.
12530 (modules-names): Add `tst-absolute-sym-lib'.
12531 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12532 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12533 ($(objpfx)tst-absolute-sym): New dependency.
12534
12535 [BZ #19818]
12536 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12537 parameter.
12538 (SYMBOL_ADDRESS): New macro.
12539 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12540 SYMBOL_ADDRESS for symbol address calculation.
12541 * elf/dl-runtime.c (_dl_fixup): Likewise.
12542 (_dl_profile_fixup): Likewise.
12543 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12544 * elf/rtld.c (dl_main): Likewise.
12545 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12546 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12547 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12548 (elf_machine_rela): Likewise.
12549 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12550 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12551 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12552 (elf_machine_rela): Likewise.
12553 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12554 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12555 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12556 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12557 Likewise.
12558 (elf_machine_reloc): Likewise.
12559 (elf_machine_got_rel): Likewise.
12560 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12561 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12562 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12563 Likewise.
12564 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12565 Likewise.
12566 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12567 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12568 Likewise.
12569 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12570 Likewise.
12571 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12572 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12573 Likewise.
12574 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12575 Likewise.
12576 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12577 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12578
12579 2018-04-04 Zack Weinberg <zackw@panix.com>
12580
12581 * sysdeps/generic/internal-signals.h: Include signal.h,
12582 sigsetops.h, and stdbool.h.
12583 (__libc_signal_block_all): Actually block all signals.
12584 (__libc_signal_block_app): Likewise.
12585 (__libc_signal_restore_set): Actually restore the signal mask.
12586
12587 2018-04-04 Florian Weimer <fweimer@redhat.com>
12588
12589 inet: Actually build and run tst-deadline.
12590 * inet/Makefile (tests-internal): Add tst-deadline and do not
12591 overwrite the variable.
12592 (tests-static-internal): Remove variable.
12593
12594 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12595
12596 [BZ #22947]
12597 * bits/uio-ext.h (RWF_APPEND): New.
12598 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12599 * manual/llio.texi: Document RWF_APPEND.
12600 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12601 (RWF_SUPPORTED): Add RWF_APPEND.
12602
12603 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12604
12605 [BZ #22391]
12606 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12607 check for internal nptl signals.
12608 * nptl/sigaction.c (__sigaction): Likewise.
12609 * signal/sigaddset.c (sigaddset): Likewise.
12610 * signal/sigdelset.c (sigdelset): Likewise.
12611 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12612 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12613 value.
12614 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12615 to filter out internal nptl signals.
12616 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12617 also check realtime signals using standard macros.
12618 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12619 __is_internal_signal, __libc_signal_block_all,
12620 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12621 * sysdeps/nptl/sigfillset.c: Remove file.
12622 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12623 Change return to bool.
12624 (__clear_internal_signals): Remove SIGTIMER clean since it is
12625 equal to SIGCANEL on Linux.
12626 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12627 signal set was constructed using standard functions.
12628
12629 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12630
12631 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12632 ifname is too long.
12633 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12634 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12635 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12636 hidden def.
12637 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12638 * signal/sigaddset.c: Include <sigsetopts.h>.
12639 * signal/sigdelset.c: Likewise.
12640
12641 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12642
12643 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12644 (__cos): Likewise.
12645 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12646 logic as sin and cos.
12647
12648 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12649
12650 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12651 inputs. Return correct sign.
12652 (do_sincos): Remove small input check before do_sin, let do_sin set
12653 the sign.
12654 (__sin): Likewise.
12655 (__cos): Likewise.
12656
12657 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12658
12659 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12660 (do_cos_slow): Likewise.
12661 (do_sin_slow): Likewise.
12662 (reduce_and_compute): Likewise.
12663 (slow): Likewise.
12664 (slow1): Likewise.
12665 (slow2): Likewise.
12666 (sloww): Likewise.
12667 (sloww1): Likewise.
12668 (sloww2): Likewise.
12669 (bslow): Likewise.
12670 (bslow1): Likewise.
12671 (bslow2): Likewise.
12672 (cslow2): Likewise.
12673
12674 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12675
12676 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12677 (do_cos): Remove corp parameter and calculations.
12678 (do_sin): Likewise.
12679 (do_sincos): Remove cor variable.
12680 (__sin): Use do_sincos for huge inputs.
12681 (__cos): Likewise.
12682 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12683 (reduce_and_compute_sincos): Remove unused function.
12684
12685 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12686
12687 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12688 reduce_sincos, improve accuracy to 136 bits.
12689 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12690 (__sin): Use improved reduction and simplified do_sincos calculation.
12691 (__cos): Likewise.
12692 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12693
12694 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12695
12696 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12697 (do_sincos_2): Likewise.
12698 (__sin): Remove middle range reduction case.
12699 (__cos): Likewise.
12700 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12701 reduction case.
12702
12703 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12704
12705 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12706 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12707 inputs.
12708 (__cos): Likewise.
12709 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12710
12711 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12712
12713 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12714 version to 4.16
12715
12716 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12717
12718 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12719 Remove definitions.
12720 (opendir_oflags): Use O_DIRECTORY regardless.
12721 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12722 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12723
12724 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12725
12726 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12727 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12728 macros.
12729 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12730 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12731 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12732 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12733 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12734 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12735
12736 * htl/Makefile: Bump licence to LGPL 2.1+.
12737 * htl/alloca_cutoff.c: Likewise.
12738 * htl/cthreads-compat.c: Likewise.
12739 * htl/lockfile.c: Likewise.
12740 * htl/pt-alloc.c: Likewise.
12741 * htl/pt-cancel.c: Likewise.
12742 * htl/pt-cleanup.c: Likewise.
12743 * htl/pt-create.c: Likewise.
12744 * htl/pt-dealloc.c: Likewise.
12745 * htl/pt-detach.c: Likewise.
12746 * htl/pt-exit.c: Likewise.
12747 * htl/pt-getattr.c: Likewise.
12748 * htl/pt-initialize.c: Likewise.
12749 * htl/pt-internal.h: Likewise.
12750 * htl/pt-join.c: Likewise.
12751 * htl/pt-self.c: Likewise.
12752 * htl/pt-setcancelstate.c: Likewise.
12753 * htl/pt-setcanceltype.c: Likewise.
12754 * htl/pt-sigmask.c: Likewise.
12755 * htl/pt-spin-inlines.c: Likewise.
12756 * htl/pt-testcancel.c: Likewise.
12757 * htl/pt-yield.c: Likewise.
12758 * htl/tests/test-1.c: Likewise.
12759 * htl/tests/test-10.c: Likewise.
12760 * htl/tests/test-11.c: Likewise.
12761 * htl/tests/test-12.c: Likewise.
12762 * htl/tests/test-13.c: Likewise.
12763 * htl/tests/test-14.c: Likewise.
12764 * htl/tests/test-15.c: Likewise.
12765 * htl/tests/test-16.c: Likewise.
12766 * htl/tests/test-17.c: Likewise.
12767 * htl/tests/test-2.c: Likewise.
12768 * htl/tests/test-3.c: Likewise.
12769 * htl/tests/test-4.c: Likewise.
12770 * htl/tests/test-5.c: Likewise.
12771 * htl/tests/test-6.c: Likewise.
12772 * htl/tests/test-7.c: Likewise.
12773 * htl/tests/test-8.c: Likewise.
12774 * htl/tests/test-9.c: Likewise.
12775 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12776 * sysdeps/htl/bits/cancelation.h: Likewise.
12777 * sysdeps/htl/bits/pthread-np.h: Likewise.
12778 * sysdeps/htl/bits/pthread.h: Likewise.
12779 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12780 * sysdeps/htl/bits/semaphore.h: Likewise.
12781 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12782 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12783 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12784 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12785 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12786 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12787 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12788 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12789 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12790 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12791 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12792 * sysdeps/htl/old_pt-atfork.c: Likewise.
12793 * sysdeps/htl/pt-atfork.c: Likewise.
12794 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12795 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12796 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12797 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12798 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12799 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12800 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12801 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12802 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12803 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12804 * sysdeps/htl/pt-attr-init.c: Likewise.
12805 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12806 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12807 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12808 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12809 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12810 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12811 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12812 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12813 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12814 * sysdeps/htl/pt-attr.c: Likewise.
12815 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12816 * sysdeps/htl/pt-barrier-init.c: Likewise.
12817 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12818 * sysdeps/htl/pt-barrier.c: Likewise.
12819 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12820 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12821 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12822 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12823 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12824 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12825 * sysdeps/htl/pt-cond-init.c: Likewise.
12826 * sysdeps/htl/pt-cond-signal.c: Likewise.
12827 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12828 * sysdeps/htl/pt-cond-wait.c: Likewise.
12829 * sysdeps/htl/pt-cond.c: Likewise.
12830 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12831 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12832 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12833 * sysdeps/htl/pt-condattr-init.c: Likewise.
12834 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
12835 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
12836 * sysdeps/htl/pt-destroy-specific.c: Likewise.
12837 * sysdeps/htl/pt-equal.c: Likewise.
12838 * sysdeps/htl/pt-getconcurrency.c: Likewise.
12839 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
12840 * sysdeps/htl/pt-getschedparam.c: Likewise.
12841 * sysdeps/htl/pt-getspecific.c: Likewise.
12842 * sysdeps/htl/pt-init-specific.c: Likewise.
12843 * sysdeps/htl/pt-key-create.c: Likewise.
12844 * sysdeps/htl/pt-key-delete.c: Likewise.
12845 * sysdeps/htl/pt-key.h: Likewise.
12846 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
12847 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
12848 * sysdeps/htl/pt-mutex-init.c: Likewise.
12849 * sysdeps/htl/pt-mutex-lock.c: Likewise.
12850 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
12851 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
12852 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
12853 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
12854 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
12855 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
12856 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
12857 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
12858 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
12859 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
12860 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
12861 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
12862 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
12863 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
12864 * sysdeps/htl/pt-mutexattr.c: Likewise.
12865 * sysdeps/htl/pt-once.c: Likewise.
12866 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
12867 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
12868 * sysdeps/htl/pt-rwlock-init.c: Likewise.
12869 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
12870 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
12871 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
12872 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
12873 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
12874 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
12875 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
12876 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
12877 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
12878 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
12879 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
12880 * sysdeps/htl/pt-setconcurrency.c: Likewise.
12881 * sysdeps/htl/pt-setschedparam.c: Likewise.
12882 * sysdeps/htl/pt-setschedprio.c: Likewise.
12883 * sysdeps/htl/pt-setspecific.c: Likewise.
12884 * sysdeps/htl/pt-spin.c: Likewise.
12885 * sysdeps/htl/pt-startup.c: Likewise.
12886 * sysdeps/htl/pthread.h: Likewise.
12887 * sysdeps/htl/sem-close.c: Likewise.
12888 * sysdeps/htl/sem-destroy.c: Likewise.
12889 * sysdeps/htl/sem-getvalue.c: Likewise.
12890 * sysdeps/htl/sem-init.c: Likewise.
12891 * sysdeps/htl/sem-open.c: Likewise.
12892 * sysdeps/htl/sem-post.c: Likewise.
12893 * sysdeps/htl/sem-timedwait.c: Likewise.
12894 * sysdeps/htl/sem-trywait.c: Likewise.
12895 * sysdeps/htl/sem-unlink.c: Likewise.
12896 * sysdeps/htl/sem-wait.c: Likewise.
12897 * sysdeps/hurd/htl/pt-kill.c: Likewise.
12898 * sysdeps/i386/htl/pt-machdep.h: Likewise.
12899 * sysdeps/mach/htl/pt-block.c: Likewise.
12900 * sysdeps/mach/htl/pt-spin.c: Likewise.
12901 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
12902 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
12903 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
12904 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
12905 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
12906 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
12907 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
12908 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
12909 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
12910 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
12911 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
12912 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
12913 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
12914 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
12915 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
12916 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
12917 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
12918 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
12919 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
12920 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
12921 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
12922 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
12923 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
12924 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
12925 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
12926 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
12927 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
12928 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
12929 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
12930 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
12931 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
12932 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
12933 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
12934 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
12935 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
12936 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
12937 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
12938 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
12939 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
12940 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
12941 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
12942 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
12943 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
12944
12945 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
12946 * README: Remove the mention of out-of-tree patches needed for
12947 GNU/Hurd.
12948
12949 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
12950 (UTIME_NOW, UTIME_OMIT): Define macros.
12951
12952 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
12953 instead of pthread_detach.
12954 (__cthread_fork): Call __pthread_create instead of pthread_create.
12955 (__cthread_keycreate): Call __pthread_key_create instead of
12956 pthread_key_create.
12957 (__cthread_getspecific): Call __pthread_getspecific instead of
12958 pthread_getspecific.
12959 (__cthread_setspecific): Call __pthread_setspecific instead of
12960 pthread_setspecific.
12961 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
12962 __pthread_mutex_unlock instead of pthread_mutex_lock and
12963 pthread_mutex_unlock.
12964 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
12965 ___pthread_get_cleanup_stack.
12966 (__pthread_get_cleanup_stack): New strong alias.
12967 * htl/pt-create.c: Include <pthreadP.h>.
12968 (entry_point): Call __pthread_exit instead of pthread_exit.
12969 (pthread_create): Rename to __pthread_create.
12970 (pthread_create): New strong alias.
12971 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
12972 (pthread_detach): New strong alias.
12973 (__pthread_detach): Call __pthread_cond_broadcast instead of
12974 pthread_cond_broadcast.
12975 * htl/pt-exit.c: Include <pthreadP.h>.
12976 (__pthread_exit): Call __pthread_setcancelstate and
12977 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
12978 __pthread_get_cleanup_stack.
12979 * htl/pt-testcancel.c: Include <pthreadP.h>.
12980 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
12981 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
12982 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
12983 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
12984 pthread_attr_getstacksize.
12985 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
12986 Rename to __pthread_attr_getstackaddr.
12987 (pthread_attr_getstackaddr): New strong alias.
12988 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
12989 Rename to __pthread_attr_getstacksize.
12990 (pthread_attr_getstacksize): New strong alias.
12991 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
12992 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
12993 (pthread_attr_setstack): New strong alias.
12994 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
12995 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
12996 pthread_attr_getstacksize, pthread_attr_setstacksize and
12997 pthread_attr_setstackaddr.
12998 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
12999 Rename to __pthread_attr_setstackaddr.
13000 (pthread_attr_setstackaddr): New strong alias.
13001 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13002 Rename to __pthread_attr_setstacksize.
13003 (pthread_attr_setstacksize): New strong alias.
13004 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13005 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13006 pthread_exit.
13007 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13008 (__pthread_key_create): New hidden def.
13009 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13010 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13011 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13012 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13013 __pthread_setspecific, __pthread_setcancelstate,
13014 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13015 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13016 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13017 declarations.
13018 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13019 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13020 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13021 (pthread_attr_setstackaddr): New strong alias.
13022 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13023 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13024 (pthread_attr_setstacksize): New strong alias.
13025 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13026 (call_exit): Call __pthread_exit instead of pthread_exit.
13027 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13028 (_pthread_mutex_init): New hidden definition.
13029 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13030 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13031 instead of pthread_attr_init and pthread_attr_setstack.
13032
13033 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13034 __vm_deallocate instead of vm_allocate and vm_deallocate.
13035 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13036 setenv.
13037 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13038 of geteuid.
13039 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13040 strdup.
13041 * hurd/siginfo.c: Include <libioP.h>.
13042 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13043 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13044 munmap.
13045 * mach/devstream.c: Include <libioP.h>.
13046 (dealloc_ref): Call __mach_port_deallocate instead of
13047 mach_port_deallocate.
13048 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13049 Call __mach_port_deallocate instead of mach_port_deallocate.
13050 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13051 pathconf.
13052 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13053 munmap.
13054 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13055 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13056 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13057 of munmap.
13058 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13059 of close.
13060 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13061 instead of sysconf.
13062 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13063 __clock_gettime instead of clock_gettime.
13064 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13065 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13066 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13067 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13068 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13069 tcgetattr.
13070 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13071 __clock_gettime and __nanosleep instead of clock_gettime and
13072 nanosleep.
13073 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13074 __hurd_catch_signal.
13075 (hurd_catch_signal): New strong alias.
13076 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13077 __hurd_catch_signal instead of hurd_catch_signal.
13078 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13079 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13080 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13081 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13082 (_hurd_thread_sigstate): Add hidden def.
13083 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13084 mutex_unlock.
13085 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13086 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13087 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13088 __hurd_file_name_path_lookup.
13089 (hurd_file_name_path_lookup): New strong alias.
13090 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13091 hurd_file_name_path_lookup.
13092 * mach/errstring.c (mach_error_type): Add hidden def.
13093 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13094 * mach/mutex-init.c (__mutex_init): Add hidden def.
13095 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13096 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13097 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13098 * sysdeps/mach/hurd/getcwd.c
13099 (_hurd_canonicalize_directory_name_internal): Rename to
13100 __hurd_canonicalize_directory_name_internal.
13101 (_hurd_canonicalize_directory_name_internal): New strong alias.
13102 (__canonicalize_directory_name_internal, __getcwd): Call
13103 __hurd_canonicalize_directory_name_internal instead of
13104 _hurd_canonicalize_directory_name_internal.
13105 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13106 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13107 hidden defs.
13108 * sysdeps/hurd/include/hurd.h: New file.
13109 * sysdeps/hurd/include/hurd/fd.h: New file.
13110 * sysdeps/hurd/include/hurd/signal.h: New file.
13111 * sysdeps/mach/include/lock-intern.h: New file.
13112 * sysdeps/mach/include/mach.h: New file.
13113 * sysdeps/mach/include/mach/mig_support.h: New file.
13114 * sysdeps/mach/include/mach_error.h: New file.
13115 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13116 prototype.
13117 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13118 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13119 _HEADER_H_HIDDEN_DEF macro.
13120 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13121 _hurd_fd_error_signal): Add hidden prototype.
13122 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13123 hidden def.
13124 * libio/iolibio.h (_IO_puts): New hidden prototype.
13125 * libio/ioputs.c (_IO_puts): New hidden def.
13126 * sysdeps/mach/hurd/localplt.data: New file.
13127
13128 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13129 Amos Jeffries <squid3@treenet.co.nz>
13130 David Michael <fedora.dm0@gmail.com>
13131 Marco Gerards <marco@gnu.org>
13132 Marcus Brinkmann <marcus@gnu.org>
13133 Neal H. Walfield <neal@gnu.org>
13134 Pino Toscano <toscano.pino@tiscali.it>
13135 Richard Braun <rbraun@sceen.net>
13136 Roland McGrath <roland@gnu.org>
13137 Samuel Thibault <samuel.thibault@ens-lyon.org>
13138 Thomas DiModica <ricinwich@yahoo.com>
13139 Thomas Schwinge <tschwinge@gnu.org>
13140
13141 * htl: New directory.
13142 * sysdeps/htl: New directory.
13143 * sysdeps/hurd/htl: New directory.
13144 * sysdeps/i386/htl: New directory.
13145 * sysdeps/mach/htl: New directory.
13146 * sysdeps/mach/hurd/htl: New directory.
13147 * sysdeps/mach/hurd/i386/htl: New directory.
13148 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13149 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13150 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13151
13152 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13153
13154 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13155 signals in thread created for runing timers.
13156
13157 2018-04-01 Florian Weimer <fweimer@redhat.com>
13158
13159 * support/support_format_addrinfo.c (support_format_addrinfo):
13160 Include unknown error number in formatted result.
13161
13162 2018-03-29 Florian Weimer <fweimer@redhat.com>
13163
13164 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13165 capture SIGBUS.
13166
13167 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13168
13169 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13170 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13171 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13172 (__ASSUME_CLONE_BACKWARDS): Define.
13173
13174 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13175
13176 [BZ #23024]
13177 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13178 early when linux sentinel value is set.
13179
13180 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13181
13182 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13183
13184 2018-03-27 Andreas Schwab <schwab@suse.de>
13185
13186 [BZ #23005]
13187 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13188 allocation of private copy of nsaddr_list fails.
13189
13190 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13191
13192 [BZ #16552]
13193 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13194 * sysdeps/unix/sysv/linux/umount.c: ... here.
13195 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13196 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13197 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13198 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13199 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13200 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13201 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13202
13203 2018-03-26 Andreas Schwab <schwab@suse.de>
13204
13205 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13206 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13207 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13208 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13209 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13210 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13211 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13212 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13213 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13214 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13215 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13216 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13217 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13218 (R_RISCV_NUM): Define.
13219
13220 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13221
13222 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13223 TLS declaration of errno.
13224 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13225 __libc_setup_tls.
13226 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13227 (ARCH_SETUP_TLS): Likewise.
13228 * sysdeps/mach/hurd/libc-start.h: New file copied from
13229 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13230 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13231 instead of __libc_setup_tls.
13232 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13233 __libc_setup_tls before initializing libpthread and running _hurd_init
13234 which starts the signal thread.
13235 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13236 Declare function.
13237 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13238
13239 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13240
13241 [BZ #22998]
13242 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13243 after it is defined.
13244
13245 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13246 Max Horn <max@quendi.de>
13247
13248 [BZ #22644]
13249 CVE-2017-18269
13250 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13251 branch conditions.
13252 * string/test-memmove.c (do_test2): New testcase.
13253
13254 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13255
13256 * sysdeps/generic/frame.h: Remove file.
13257 * sysdeps/arm/frame.h: Likewise.
13258 * sysdeps/hppa/frame.h: Likewise.
13259 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13260 macro.
13261 (GET_FRAME): Likewise.
13262 (GET_STACK): Likewise.
13263 (CALL_SIGHANDLER): Likewise.
13264 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13265 Likewise.
13266 (GET_FRAME): Likewise.
13267 (GET_STACK): Likewise.
13268 (CALL_SIGHANDLER): Likewise.
13269 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13270 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13271 (GET_FRAME): Likewise.
13272 (GET_STACK): Likewise.
13273 (CALL_SIGHANDLER): Likewise.
13274 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13275 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13276 (GET_FRAME): Likewise.
13277 (GET_STACK): Likewise.
13278 (ADVANCE_STACK_FRAME): Likewise.
13279 (CALL_SIGHANDLER): Likewise.
13280 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13281 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13282 (GET_FRAME): Likewise.
13283 (GET_STACK): Likewise.
13284 (CALL_SIGHANDLER): Likewise.
13285 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13286 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13287 (GET_FRAME): Likewise.
13288 (GET_STACK): Likewise.
13289 (CALL_SIGHANDLER): Likewise.
13290 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13291 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13292 (GET_FRAME): Likewise.
13293 (GET_STACK): Likewise.
13294 (CALL_SIGHANDLER): Likewise.
13295 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13296 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13297 (GET_FRAME): Likewise.
13298 (GET_STACK): Likewise.
13299 (CALL_SIGHANDLER): Likewise.
13300 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13301 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13302 (GET_FRAME): Likewise.
13303 (GET_STACK): Likewise.
13304 (CALL_SIGHANDLER): Likewise.
13305 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13306 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13307 (GET_FRAME): Likewise.
13308 (GET_STACK): Likewise.
13309 (CALL_SIGHANDLER): Likewise.
13310 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13311 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13312 (GET_FRAME): Likewise.
13313 (GET_STACK): Likewise.
13314 (CALL_SIGHANDLER): Likewise.
13315 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13316 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13317 (GET_FRAME): Likewise.
13318 (GET_STACK): Likewise.
13319 (CALL_SIGHANDLER): Likewise.
13320 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13321 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13322 (GET_FRAME): Likewise.
13323 (GET_STACK): Likewise.
13324 (CALL_SIGHANDLER): Likewise.
13325 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13326 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13327 (FIRST_FRAME_POINTER): Likewise.
13328 (ADVANCE_STACK_FRAME): Likewise.
13329 (GET_STACK): Likewise.
13330 (GET_FRAME): Likewise.
13331 (CALL_SIGHANDLER): Likewise.
13332 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13333 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13334 (ADVANCE_STACK_FRAME): Likewise.
13335 (GET_STACK): Likewise.
13336 (GET_FRAME): Likewise.
13337 (CALL_SIGHANDLER): Likewise.
13338 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13339 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13340 (GET_FRAME): Likewise.
13341 (GET_STACK): Likewise.
13342 (CALL_SIGHANDLER): Likewise.
13343 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13344 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13345 (GET_FRAME): Likewise.
13346 (GET_STACK): Likewise.
13347 (CALL_SIGHANDLER): Likewise.
13348
13349 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13350
13351 * sysdeps/x86_64/backtrace.c: Move to ....
13352 * debug/backtrace.c: ... here.
13353 * sysdeps/aarch64/backtrace.c: Remove file.
13354 * sysdeps/alpha/backtrace.c: Likewise.
13355 * sysdeps/hppa/backtrace.c: Likewise.
13356 * sysdeps/ia64/backtrace.c: Likewise.
13357 * sysdeps/mips/backtrace.c: Likewise.
13358 * sysdeps/nios2/backtrace.c: Likewise.
13359 * sysdeps/riscv/backtrace.c: Likewise.
13360 * sysdeps/sh/backtrace.c: Likewise.
13361 * sysdeps/tile/backtrace.c: Likewise.
13362
13363 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13364
13365 [BZ #22987]
13366 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13367 function.
13368 (fdimf): Likewise.
13369 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13370
13371 [BZ #17343]
13372 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13373 possibly overflowing computations.
13374
13375 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13376
13377 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13378 values from Linux-specific section now that it is in the GNU section.
13379 * sysdeps/gnu/errlist.c: Regenerate.
13380
13381 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13382
13383 * math/Makefile (libm-narrow-fns): Add sub.
13384 (libm-test-funcs-narrow): Likewise.
13385 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13386 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13387 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13388 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13389 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13390 (NARROW_SUB_TRIVIAL): Likewise.
13391 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13392 macro.
13393 (__dsubl): Likewise.
13394 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13395 dsub.
13396 (CFLAGS-nldbl-dsub.c): New variable.
13397 (CFLAGS-nldbl-fsub.c): Likewise.
13398 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13399 __nldbl_dsubl.
13400 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13401 prototype.
13402 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13403 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13404 * math/auto-libm-test-in: Add tests of sub.
13405 * math/auto-libm-test-out-narrow-sub: New generated file.
13406 * math/libm-test-narrow-sub.inc: New file.
13407 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13408 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13409 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13410 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13411 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13412 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13413 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13414 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13415 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13416 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13417 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13418 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13419 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13420 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13421 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13422 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13423 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13424 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13425 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13426 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13427 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13428 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13429 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13430 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13431 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13432 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13433 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13434 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13435 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13436 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13437 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13438 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13439 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13440 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13441 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13442 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13443 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13444 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13445 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13446 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13447 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13448 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13449 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13450 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13451 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13452 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13453
13454 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13455
13456 [BZ #20079]
13457 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13458
13459 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13460
13461 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13462
13463 2018-03-18 Richard Braun <rbraun@sceen.net>
13464
13465 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13466 thread reference.
13467
13468 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13469
13470 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13471 (__libc_cleanup_fct): Define function.
13472 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13473 __libc_cleanup_end): Rewrite implementation using
13474 __attribute__ ((__cleanup__)).
13475 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13476 * hurd/Makefile (routines): Add hurdlock.
13477 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13478 interface.
13479 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13480 * hurd/hurdpid.c: Include <lowlevellock.h>
13481 (_S_msg_proc_newids): Use lll_wait to synchronize.
13482 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13483 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13484 * mach/Makefile (lock-headers): Remove machine-lock.h.
13485 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13486 <machine-lock.h>.
13487 (__spin_lock_t): New type.
13488 (__SPIN_LOCK_INITIALIZER): New macro.
13489 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13490 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13491 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13492 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13493 (__mutex_init): Initialize with lll.
13494 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13495 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13496 needing lll.
13497 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13498 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13499 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13500 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13501 (__setpgid): Use lll for synchronization.
13502 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13503 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13504 instead of <cthreads.h>.
13505 (_IO_lock_inexpensive): New macro
13506 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13507 (__libc_lock_self0): New declaration.
13508 (__libc_lock_owner_self): New macro.
13509 (__libc_key_t): Remove type.
13510 (_LIBC_LOCK_INITIALIZER): New macro.
13511 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13512 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13513 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13514 __libc_lock_define_initialized_recursive,
13515 __rtld_lock_define_initialized_recursive,
13516 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13517 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13518 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13519 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13520 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13521 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13522 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13523 New macros.
13524 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13525 * hurd/hurdlock.c: New file.
13526 * hurd/hurdlock.h: New file.
13527 * mach/lowlevellock.h: New file
13528
13529 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13530
13531 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13532 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13533 when opening a symlink with O_NOFOLLOW.
13534 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13535 path when flags contains O_NOFOLLOW.
13536 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13537 if flags contains O_DIRECTORY and the result is a directory.
13538 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13539 oneself when the pointer given in D is nul (as set by ext2fs).
13540 * sysdeps/mach/hurd/mlockall.c: New file.
13541 * sysdeps/mach/hurd/munlockall.c: New file.
13542
13543 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13544
13545 * hurd/hurdsig.c: Include <pthread.h>.
13546 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13547 get the signal thread stack layout.
13548 * hurd/Makefile (headers): Remove threadvar.h.
13549 (inline-headers): Remove threadvar.h.
13550 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13551 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13552 __hurd_threadvar_max, __hurd_errno_location.
13553 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13554 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13555 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13556 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13557 unless TLS is not initialized yet, in which case we do not need a
13558 critical section yet anyway.
13559 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13560 <machine-sp.h>.
13561 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13562 declarations.
13563 (__hurd_threadvar_index): Remove enum.
13564 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13565 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13566 inlines.
13567 (__hurd_reply_port0): New variable declaration.
13568 (__hurd_local_reply_port): New macro.
13569 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13570 (interrupted_reply_port_location): Add thread_t parameter. Use it
13571 with THREAD_TCB to access thread-local variables.
13572 (_hurdsig_abort_rpcs): Pass ss->thread to
13573 interrupted_reply_port_location.
13574 (_hurd_internal_post_signal): Likewise.
13575 (_hurdsig_init): Use presence of cthread_fork instead of
13576 __hurd_threadvar_stack_mask to start signal thread by hand.
13577 Remove signal thread threadvar initialization.
13578 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13579 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13580 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13581 of threadvar.
13582 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13583 __libc_lock_self0.
13584 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13585 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13586 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13587 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13588 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13589 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13590 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13591 define variables.
13592 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13593 <hurd/threadvar.h>.
13594 [IS_IN(rtld)] (rtld_errno): New variable.
13595 [IS_IN(rtld)] (__errno_location): New weak function.
13596 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13597 * sysdeps/mach/hurd/errno.c: Remove file.
13598 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13599 (__fork): Remove THREADVAR_SPACE macro and its use.
13600 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13601 variable.
13602 (init): Do not initialize threadvar.
13603 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13604 symbol.
13605 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13606 __hurd_local_reply_port instead of threadvar.
13607 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13608 _hurd_sigstate fields.
13609 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13610 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13611 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13612 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13613 instead of threadvar.
13614 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13615 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13616 (use_threadvar, global_reply_port): Remove variables.
13617 (__hurd_reply_port0): New variable.
13618 (__mig_get_reply_port): Use __hurd_local_reply_port and
13619 __hurd_reply_port0 instead of threadvar.
13620 (__mig_dealloc_reply_port): Likewise.
13621 (__mig_init): Do not initialize threadvar.
13622 * sysdeps/mach/hurd/profil.c: Fix comment.
13623 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13624 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13625 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13626 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13627 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13628 __cthread_setspecific.
13629 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13630 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13631 __cthread_t instead of cthread_fork, cthread_detach,
13632 pthread_getattr_np, pthread_attr_getstack.
13633 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13634 __cthread_keycreate.
13635 (cthread_getspecific): Rename to __cthread_getspecific.
13636 (cthread_setspecific): Rename to __cthread_setspecific.
13637 (__libc_getspecific): Use __cthread_getspecific instead of
13638 cthread_getspecific.
13639 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13640 __cthread_keycreate instead of cthread_keycreate.
13641 (__libc_setspecific): Use __cthread_setspecific instead of
13642 cthread_setspecific.
13643 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13644 Likewise.
13645 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13646 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13647 testing whether it is defined.
13648
13649 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13650
13651 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13652 Define macro.
13653 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13654 * sysdeps/mach/i386/thread_state.h
13655 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13656 i386_THREAD_STATE.
13657 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13658 i386_THREAD_STATE.
13659 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13660
13661 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13662 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13663
13664 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13665 macros.
13666 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13667 descriptor instead of creating a new one.
13668 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13669
13670 * mach/setup-thread.c: Include <ldsodefs.h>.
13671 (__mach_setup_thread): Call _dl_allocate_tls, pass
13672 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13673 MACHINE_THREAD_STATE_FLAVOR, before getting
13674 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13675 MACHINE_THREAD_STATE_FLAVOR with the result.
13676 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13677 MACHINE_THREAD_STATE_FIX_NEW.
13678 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13679 too. Add original thread parameter.
13680
13681 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13682
13683 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13684 Remove inline function.
13685
13686 * sysdeps/i386/fpu/libm-test-ulps: Update.
13687 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13688
13689 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13690
13691 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13692 commit.
13693
13694 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13695
13696 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13697 (__sincos_code): Remove define and undefine.
13698 [__FAST_MATH__] (__sincos): Remove inline function.
13699 [__FAST_MATH__] (__sincosf): Remove inline function.
13700 [__FAST_MATH__] (__sincosl): Remove inline function.
13701 (__atan2l): Remove inline functions.
13702 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13703 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13704 function.
13705 (floor): Remove inline function.
13706 (ceil): Likewise.
13707 [__FAST_MATH__] (__ldexp_code): Remove macro.
13708 [__FAST_MATH__] (ldexp): Remove inline function.
13709 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13710 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13711 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13712 [__USE_ISOC99] (__lrint_code): Remove macro.
13713 [__USE_ISOC99] (__llrint_code): Likewise.
13714 [__USE_ISOC99] (lrintf): Remove inline function.
13715 [__USE_ISOC99] (lrint): Likewise.
13716 [__USE_ISOC99] (lrintl): Likewise.
13717 [__USE_ISOC99] (llrint): Likewise.
13718 [__USE_ISOC99] (llrintf): Likewise.
13719 [__USE_ISOC99] (llrintl): Likewise.
13720
13721 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13722
13723 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13724 (__ieee754_sqrtf): Remove.
13725 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13726 (__ieee754_sqrtf): Remove.
13727 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13728 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13729 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13730 (__ieee754_sqrtf): Remove.
13731 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13732 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13733 (sqrtf): Remove.
13734 (sqrtl): Remove.
13735 (__ieee754_sqrt): Remove.
13736 (__ieee754_sqrtf): Remove.
13737 (__ieee754_sqrtl): Remove.
13738 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13739 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13740 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13741 (__ieee754_sqrtf): Remove.
13742 (__ieee754_sqrtl): Remove.
13743
13744 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13745
13746 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13747 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13748 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13749 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13750 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13751 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13752 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13753 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13754 Likewise.
13755 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13756 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13757 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13758 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13759 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13760 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13761 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13762 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13763 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13764 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13765 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13766 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13767 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13768 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13769 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13770 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13771 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13772 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13773 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13774 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13775 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13776 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13777 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13778 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13779 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13780 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13781 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13782 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13783 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13784 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13785 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13786 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13787 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13788 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13789 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13790 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13791 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13792 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13793 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13794 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13795
13796 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13797
13798 * include/math.h (sqrt): Declare with asm redirect.
13799 (sqrtf): Likewise.
13800 (sqrtl): Likewise.
13801 (sqrtf128): Likewise.
13802 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13803 nonlib and libnldbl with -fmath-errno.
13804 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13805 * math/w_sqrt_template.c: Likewise.
13806 * math/w_sqrtf_compat.c: Likewise.
13807 * math/w_sqrtl_compat.c: Likewise.
13808 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13809 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13810 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13811 complex.h.
13812
13813 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13814
13815 * benchtests/Makefile: Define _ISOMAC.
13816 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13817 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13818 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13819 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13820 * benchtests/bench-timing.h: Define attribute_hidden.
13821
13822 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13823
13824 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13825 mov + lsr.
13826
13827 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13828
13829 [BZ #22963]
13830 * localedata/locales/cs_CZ (mon): Rename to...
13831 (alt_mon): This.
13832 (mon): Import from CLDR (genitive case).
13833
13834 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13835
13836 [BZ #22937]
13837 * localedata/locales/el_CY (abmon): Rename to...
13838 (ab_alt_mon): This.
13839 (abmon): Import from CLDR (abbreviated genitive case).
13840 * localedata/locales/el_GR (abmon): Rename to...
13841 (ab_alt_mon): This.
13842 (abmon): Import from CLDR (abbreviated genitive case).
13843
13844 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13845
13846 [BZ #22932]
13847 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
13848
13849 2018-03-15 Robert Buj <robert.buj@gmail.com>
13850
13851 [BZ #22848]
13852 * localedata/locales/ca_ES (abmon): Rename to...
13853 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13854 (mon): Rename to...
13855 (alt_mon): This.
13856 (abmon): Import from CLDR (genitive case, month names preceded by
13857 "de" or "d’").
13858 (mon): Likewise.
13859 (abday): Synchronize with CLDR.
13860 (d_t_fmt): Likewise.
13861 (d_fmt): Likewise.
13862 (am_pm): Likewise.
13863
13864 (LC_TIME): Improve indentation.
13865 (LC_TELEPHONE): Likewise.
13866 (LC_NAME): Likewise.
13867 (LC_ADDRESS): Likewise.
13868
13869 2018-03-14 Joseph Myers <joseph@codesourcery.com>
13870
13871 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
13872 (lrintf): Remove definitions used only with old GCC.
13873 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
13874 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
13875 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
13876 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
13877 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
13878 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
13879 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
13880 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
13881 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
13882 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
13883 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
13884 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
13885 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
13886 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
13887 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
13888 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
13889 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
13890 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
13891 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
13892 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
13893 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
13894 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
13895 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
13896 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
13897 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
13898 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
13899 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
13900 [__FAST_MATH__] (__M_SQRT2): Remove macro.
13901
13902 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
13903
13904 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
13905 instruction to unbreak builds with binutils 2.26 and older.
13906
13907 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
13908
13909 * sysdeps/aarch64/strncmp.S (count): New macro.
13910 (strncmp): Store misaligned length in SRC1 in COUNT.
13911 (mutual_align): Adjust.
13912 (misaligned8): Load dword at a time when it is safe.
13913
13914 2018-03-12 Zack Weinberg <zackw@panix.com>
13915
13916 [BZ #1190]
13917 [BZ #19476]
13918 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
13919 if the _IO_EOF_SEEN bit is already set; update commentary.
13920 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
13921 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
13922
13923 * support/support_openpty.c, support/tty.h: New files.
13924 * support/Makefile (libsupport-routines): Add support_openpty.
13925
13926 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
13927 New test cases.
13928 * libio/Makefile (tests): Add tst-fgetc-after-eof.
13929 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
13930
13931 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
13932
13933 * po/pt_BR.po: Update translations.
13934
13935 2018-03-12 David Michael <fedora.dm0@gmail.com>
13936
13937 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
13938 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
13939 get a port to the startup server.
13940
13941 2018-03-11 Zack Weinberg <zackw@panix.com>
13942
13943 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
13944 before nldbl-compat.h.
13945
13946 2018-03-10 Zack Weinberg <zackw@panix.com>
13947
13948 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
13949 math.h or math_private.h.
13950
13951 * sysdeps/alpha/fpu/s_isnan.c
13952 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
13953 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
13954 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
13955 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
13956 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
13957 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
13958 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
13959 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
13960 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
13961 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
13962 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
13963 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
13964 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
13965 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
13966 Include math_private.h.
13967
13968 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
13969 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
13970 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
13971 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
13972 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
13973 * sysdeps/powerpc/power7/fpu/s_logb.c:
13974 Include math.h and math_private.h.
13975
13976 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
13977 uses of $at in .set noat / .set at.
13978
13979 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
13980
13981 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
13982 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
13983 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
13984 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
13985 Likewise.
13986
13987 2018-03-09 Florian Weimer <fweimer@redhat.com>
13988
13989 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
13990 in comment.
13991
13992 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
13993
13994 [BZ #22919]
13995 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
13996 Add nop before __startcontext, add explaining comments.
13997
13998 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13999
14000 [BZ #22926]
14001 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14002 empty for __SPE__.
14003 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14004 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14005 Do not build hardware transactional code for __SPE__.
14006 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14007 (__lll_trylock_elision): Likewise.
14008 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14009 (__lll_unlock_elision): Likewise.
14010
14011 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14012 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14013 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14014 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14015 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14016 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14017 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14018 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14019 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14020 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14021 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14022 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14023 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14024 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14025 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14026 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14027 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14028 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14029 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14030 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14031 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14032 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14033 (__ASSUME_CLONE_BACKWARDS): Define.
14034 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14035 __clone2 if __NR_clone2 is defined.
14036 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14037 (__ASSUME_CLONE_BACKWARDS): Likewise.
14038 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14039 (__ASSUME_CLONE_BACKWARDS): Likewise.
14040 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14041 (__ASSUME_CLONE2): Likewise.
14042 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14043 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14044 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14045 variants and the define architecture can use.
14046 (__ASSUME_CLONE_DEFAULT): Define as default.
14047 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14048 (__ASSUME_CLONE_BACKWARDS): Likewise.
14049 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14050 (__ASSUME_CLONE_BACKWARDS): Likewise.
14051 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14052 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14053
14054 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14055
14056 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14057
14058 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14059 time.
14060
14061 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14062 (do_test_limit): Likewise.
14063
14064 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14065 for every implementation.
14066 (do_test): Likewise.
14067
14068 * benchtests/bench-strncmp.c: Convert output to json.
14069
14070 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14071
14072 * io/futimens.c: Add missing start-of-file descriptive comment.
14073 * io/utime.c: Likewise.
14074 * misc/futimesat.c: Likewise.
14075 * misc/utimes.c: Likewise.
14076 * sysdeps/mach/hurd/futimesat.c: Likewise.
14077 * sysdeps/mach/hurd/utimes.c: Likewise.
14078 * sysdeps/posix/utime.c: Likewise.
14079 * sysdeps/posix/utimes.c: Likewise.
14080 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14081 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14082 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14083 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14084
14085 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14086
14087 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14088 hurd_futimes.
14089 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14090 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14091 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14092 (__futimens): Move implementation to...
14093 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14094 utime_tvalue_from_tspec): ... new helper functions.
14095 (hurd_futimens): New function.
14096 * sysdeps/mach/hurd/futimesat.c: New file.
14097 * sysdeps/mach/hurd/utimensat.c: New file.
14098
14099 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14100
14101 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14102 UTIME_OMIT): New macros.
14103 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14104 before reverting to converting time spec to time value and calling
14105 __file_utimes.
14106 * sysdeps/mach/hurd/utime-helper.c: New file.
14107 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14108 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14109 reverting to utime_tvalue_from_tval and __file_utimes.
14110 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14111 (__lutimes): Just call hurd_futimens after lookup.
14112 * sysdeps/mach/hurd/utimes.c: Likewise.
14113
14114 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14115
14116 * bits/sigaction.h: Add include guard.
14117 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14118 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14119 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14120 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14121 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14122 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14123 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14124 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14125 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14126
14127 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14128
14129 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14130 -Wmaybe-uninitialized for -Os.
14131 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14132 this disabling.
14133
14134 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14135
14136 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14137 __INO_T_MATCHES_INO64_T is defined.
14138 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14139 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14140 of definition.
14141 * dirent/alphasort64.c: Likewise.
14142 * dirent/scandir.c: Likewise.
14143 * dirent/scandir64-tail.c: Likewise.
14144 * dirent/scandir64.c: Likewise.
14145 * dirent/scandirat.c: Likewise.
14146 * dirent/scandirat64.c: Likewise.
14147 * dirent/versionsort.c: Likewise.
14148 * dirent/versionsort64.c: Likewise.
14149 * include/dirent.h: Likewise.
14150
14151 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14152 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14153 for socketpair endpoint.
14154 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14155 WRITE_BUFFER_SIZE as buffer size for sending socket.
14156 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14157 issue on system where send is implemented with sendto syscall.
14158 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14159 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14160 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14161 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14162
14163 [BZ #21269]
14164 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14165 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14166 sa_restorer for vDSO case.
14167 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14168
14169 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14170
14171 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14172 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14173 * hurd/hurd/ioctl.h: Include <mach/port.h>
14174 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14175 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14176 <mach/mach_types.h> and <mach/message.h>.
14177 (headers): Move mach/param.h to bits/mach/param.h.
14178 * sysdeps/mach/i386/mach/param.h: Move file to ...
14179 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14180 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14181 of <mach/param.h>.
14182 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14183 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14184 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14185 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14186 trivial, for C++ conformity.
14187 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14188 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14189 Process mig output through $(migheadersed).
14190 * hurd/Makefile (migheadersed): Define variable.
14191 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14192 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14193 headers.
14194 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14195 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14196 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14197 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14198 <bits/types/sigset_t.h>.
14199 [!defined __USE_GNU]: Do not #error out.
14200 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14201 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14202 Include <stddef.h> and <bits/types/sigset_t.h>
14203 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14204 instead of sighandler_t.
14205 * stdlib/errno.h (error_t): Move definition to...
14206 * bits/types/error_t.h: ... new header.
14207 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14208 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14209 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14210 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14211 * hurd/hurd.h: Include <bits/types/error_t.h>
14212 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14213 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14214 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14215 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14216 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14217 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14218 * sysdeps/mach/hurd/futimens.c: New file.
14219
14220 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14221
14222 [BZ #22918]
14223 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14224 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14225 * nscd/gai.c (__nss_hosts_database): Readd definition.
14226 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14227 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14228 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14229
14230 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14231
14232 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14233 (ifunc_one): Likewise.
14234
14235 2018-03-01 DJ Delorie <dj@delorie.com>
14236
14237 [BZ #22342]
14238 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14239 key value.
14240
14241 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14242
14243 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14244 `match_pid' parameter.
14245 (td_ta_thr_iter): Update accordingly.
14246
14247 2018-03-01 Florian Weimer <fweimer@redhat.com>
14248
14249 * nptl/Makefile (install-lib-ldscripts): Remove.
14250 (install): Remove rule.
14251 ($(inst_libdir)/libpthread.so): Likewise.
14252
14253 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14254
14255 [BZ #22896]
14256 * localedata/locales/an_ES: update month and day names,
14257 improve d_fmt, improve postal_fmt, add country_post,
14258 add country_isbn
14259
14260 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14261
14262 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14263 Ukrainian instead of Bulgarian.
14264
14265 2018-03-01 Florian Weimer <fweimer@redhat.com>
14266
14267 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14268 reference.
14269
14270 2018-03-01 Florian Weimer <fweimer@redhat.com>
14271
14272 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14273 * nptl/Makefile (routines): Add pthread_atfork.
14274 (static-only-routines): Set to pthread_atfork.
14275 (libpthread-routines): Remove pthread_atfork.
14276 (libpthread-static-only-routines): Remove.
14277 (install): Update comment.
14278 (libpthread.so): Do not install libpthread_nonshared.a.
14279 (tests): Do not link with libpthread_nonshared.a.
14280 (generated): Remove libpthread_nonshared.a.
14281 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14282 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14283 with libpthread_nonshared.a.
14284
14285 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14286
14287 [BZ #22902]
14288 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14289 (libc_feholdexcept_setroundf128): New macro.
14290 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14291
14292 [BZ #15105]
14293 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14294 libc_hidden_def.
14295 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14296 * include/inttypes.h: New file.
14297
14298 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14299
14300 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14301 -Os in two more places.
14302
14303 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14304
14305 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14306 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14307 be sorted correctly at the moment because of a bug.
14308
14309 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14310
14311 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14312 treat ñ as a primary different character, sync the collation
14313 for Spanish with CLDR.
14314 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14315 * localedata/Makefile: Add new test files.
14316 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14317 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14318 collation order.
14319 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14320 * localedata/am_ET.UTF-8.in: New test file.
14321 * localedata/az_AZ.UTF-8.in: Likewise.
14322 * localedata/be_BY.UTF-8.in: Likewise.
14323 * localedata/ber_DZ.UTF-8.in: Likewise.
14324 * localedata/ber_MA.UTF-8.in: Likewise.
14325 * localedata/bg_BG.UTF-8.in: Likewise.
14326 * localedata/br_FR.UTF-8.in: Likewise.
14327 * localedata/cmn_TW.UTF-8.in: Likewise.
14328 * localedata/crh_UA.UTF-8.in: Likewise.
14329 * localedata/csb_PL.UTF-8.in: Likewise.
14330 * localedata/cv_RU.UTF-8.in: Likewise.
14331 * localedata/cy_GB.UTF-8.in: Likewise.
14332 * localedata/dz_BT.UTF-8.in: Likewise.
14333 * localedata/eo.UTF-8.in: Likewise.
14334 * localedata/es_ES.UTF-8.in: Likewise.
14335 * localedata/fa_IR.UTF-8.in: Likewise.
14336 * localedata/fi_FI.UTF-8.in: Likewise.
14337 * localedata/fil_PH.UTF-8.in: Likewise.
14338 * localedata/fur_IT.UTF-8.in: Likewise.
14339 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14340 * localedata/ha_NG.UTF-8.in: Likewise.
14341 * localedata/ig_NG.UTF-8.in: Likewise.
14342 * localedata/ik_CA.UTF-8.in: Likewise.
14343 * localedata/kk_KZ.UTF-8.in: Likewise.
14344 * localedata/ku_TR.UTF-8.in: Likewise.
14345 * localedata/ky_KG.UTF-8.in: Likewise.
14346 * localedata/ln_CD.UTF-8.in: Likewise.
14347 * localedata/mi_NZ.UTF-8.in: Likewise.
14348 * localedata/ml_IN.UTF-8.in: Likewise.
14349 * localedata/mn_MN.UTF-8.in: Likewise.
14350 * localedata/mr_IN.UTF-8.in: Likewise.
14351 * localedata/mt_MT.UTF-8.in: Likewise.
14352 * localedata/nb_NO.UTF-8.in: Likewise.
14353 * localedata/om_KE.UTF-8.in: Likewise.
14354 * localedata/os_RU.UTF-8.in: Likewise.
14355 * localedata/ps_AF.UTF-8.in: Likewise.
14356 * localedata/ro_RO.UTF-8.in: Likewise.
14357 * localedata/ru_RU.UTF-8.in: Likewise.
14358 * localedata/sc_IT.UTF-8.in: Likewise.
14359 * localedata/se_NO.UTF-8.in: Likewise.
14360 * localedata/sq_AL.UTF-8.in: Likewise.
14361 * localedata/sv_SE.UTF-8.in: Likewise.
14362 * localedata/szl_PL.UTF-8.in: Likewise.
14363 * localedata/tg_TJ.UTF-8.in: Likewise.
14364 * localedata/tk_TM.UTF-8.in: Likewise.
14365 * localedata/tt_RU.UTF-8.in: Likewise.
14366 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14367 * localedata/ug_CN.UTF-8.in: Likewise.
14368 * localedata/uz_UZ.UTF-8.in: Likewise.
14369 * localedata/vi_VN.UTF-8.in: Likewise.
14370 * localedata/yi_US.UTF-8.in: Likewise.
14371 * localedata/yo_NG.UTF-8.in: Likewise.
14372 * localedata/zh_CN.UTF-8.in: Likewise.
14373 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14374 file and fix bugs in the collation.
14375 * localedata/locales/az_AZ: Likewise.
14376 * localedata/locales/be_BY: Likewise.
14377 * localedata/locales/ber_DZ: Likewise.
14378 * localedata/locales/ber_MA: Likewise.
14379 * localedata/locales/bg_BG: Likewise.
14380 * localedata/locales/br_FR: Likewise.
14381 * localedata/locales/br_FR@euro: Likewise.
14382 * localedata/locales/ca_ES: Likewise.
14383 * localedata/locales/cns11643_stroke: Likewise.
14384 * localedata/locales/crh_UA: Likewise.
14385 * localedata/locales/cs_CZ: Likewise.
14386 * localedata/locales/csb_PL: Likewise.
14387 * localedata/locales/cv_RU: Likewise.
14388 * localedata/locales/cy_GB: Likewise.
14389 * localedata/locales/da_DK: Likewise.
14390 * localedata/locales/dz_BT: Likewise.
14391 * localedata/locales/en_CA: Likewise.
14392 * localedata/locales/eo: Likewise.
14393 * localedata/locales/es_CU: Likewise.
14394 * localedata/locales/es_EC: Likewise.
14395 * localedata/locales/es_ES: Likewise.
14396 * localedata/locales/es_US: Likewise.
14397 * localedata/locales/et_EE: Likewise.
14398 * localedata/locales/fa_IR: Likewise.
14399 * localedata/locales/fi_FI: Likewise.
14400 * localedata/locales/fil_PH: Likewise.
14401 * localedata/locales/fur_IT: Likewise.
14402 * localedata/locales/gez_ER@abegede: Likewise.
14403 * localedata/locales/ha_NG: Likewise.
14404 * localedata/locales/hr_HR: Likewise.
14405 * localedata/locales/hsb_DE: Likewise.
14406 * localedata/locales/hu_HU: Likewise.
14407 * localedata/locales/ig_NG: Likewise.
14408 * localedata/locales/ik_CA: Likewise.
14409 * localedata/locales/is_IS: Likewise.
14410 * localedata/locales/iso14651_t1_pinyin: Likewise.
14411 * localedata/locales/kk_KZ: Likewise.
14412 * localedata/locales/ku_TR: Likewise.
14413 * localedata/locales/ky_KG: Likewise.
14414 * localedata/locales/ln_CD: Likewise.
14415 * localedata/locales/lt_LT: Likewise.
14416 * localedata/locales/lv_LV: Likewise.
14417 * localedata/locales/mi_NZ: Likewise.
14418 * localedata/locales/ml_IN: Likewise.
14419 * localedata/locales/mn_MN: Likewise.
14420 * localedata/locales/mr_IN: Likewise.
14421 * localedata/locales/mt_MT: Likewise.
14422 * localedata/locales/nb_NO: Likewise.
14423 * localedata/locales/om_KE: Likewise.
14424 * localedata/locales/os_RU: Likewise.
14425 * localedata/locales/pl_PL: Likewise.
14426 * localedata/locales/ps_AF: Likewise.
14427 * localedata/locales/ro_RO: Likewise.
14428 * localedata/locales/ru_RU: Likewise.
14429 * localedata/locales/ru_UA: Likewise.
14430 * localedata/locales/sc_IT: Likewise.
14431 * localedata/locales/se_NO: Likewise.
14432 * localedata/locales/si_LK: Likewise.
14433 * localedata/locales/sq_AL: Likewise.
14434 * localedata/locales/sv_FI: Likewise.
14435 * localedata/locales/sv_FI@euro: Likewise.
14436 * localedata/locales/sv_SE: Likewise.
14437 * localedata/locales/szl_PL: Likewise.
14438 * localedata/locales/tg_TJ: Likewise.
14439 * localedata/locales/ti_ER: Likewise.
14440 * localedata/locales/tk_TM: Likewise.
14441 * localedata/locales/tl_PH: Likewise.
14442 * localedata/locales/tr_TR: Likewise.
14443 * localedata/locales/tt_RU: Likewise.
14444 * localedata/locales/tt_RU@iqtelif: Likewise.
14445 * localedata/locales/ug_CN: Likewise.
14446 * localedata/locales/uk_UA: Likewise.
14447 * localedata/locales/uz_UZ: Likewise.
14448 * localedata/locales/uz_UZ@cyrillic: Likewise.
14449 * localedata/locales/vi_VN: Likewise.
14450 * localedata/locales/yi_US: Likewise.
14451 * localedata/locales/yo_NG: Likewise.
14452
14453 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14454
14455 * gen-locales.mk: Make test files which contain @ modifiers in their
14456 name work.
14457 * localedata/gen-locale.sh: Likewise.
14458
14459 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14460
14461 * posix/tst-fnmatch.input: Fix results for range expressions
14462 for non C locales.
14463 * posix/tst-regexloc.c: Do not use a range expression for
14464 de_DE.ISO-8859-1 locale.
14465
14466 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14467
14468 * posix/bug-regex5.c: Fix test case because with the new
14469 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14470 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14471 file.
14472
14473 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14474
14475 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14476 downloaded from ISO, the collation order of @-. and space has changed.
14477 Therefore, this test file needed to be adapted.
14478 * localedata/fr_CA.UTF-8.in: Likewise.
14479 * localedata/fr_FR.UTF-8.in: Likewise.
14480 * localedata/uk_UA.UTF-8.in: Likewise.
14481
14482 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14483
14484 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14485 order of ȥ in the new iso14651_t1_common file.
14486 * localedata/pl_PL.UTF-8.in: Likewise.
14487
14488 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14489
14490 * localedata/locales/iso14651_t1_common: Add sections for various
14491 scripts to the iso14651_t1_common file.
14492
14493 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14494
14495 * localedata/locales/iso14651_t1_common: Use the code point of a
14496 character in the fourth collation level instead of IGNORE for all
14497 entries which have IGNORE on all 4 levels.
14498
14499 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14500
14501 * localedata/locales/iso14651_t1_common: Add some convenient collation
14502 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14503 rules similar to those in CLDR.
14504
14505 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14506
14507 * localedata/locales/iso14651_t1_common: The new version of this
14508 file downloaded from ISO contained several syntax errors which
14509 are fixed by this patch.
14510
14511 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14512
14513 * localedata/locales/iso14651_t1_common: replace all <U.....>
14514 with <U000.....> because glibc understands only 4 digit or 8 digit
14515
14516 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14517
14518 * localedata/locales/iso14651_t1_common: Necessary changes
14519 to make the file downloaded from ISO usable by glibc.
14520
14521 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14522
14523 [BZ #14095]
14524 * localedata/locales/iso14651_t1_common: Update file to
14525 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14526
14527 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14528
14529 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14530 of <nptl/pthreadP.h>
14531 (thread_attr_compare): Move function to...
14532 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14533 * sysdeps/nptl/timer_routines.h: ... new header.
14534 * sysdeps/mach/hurd/gai_misc.h: New file.
14535
14536 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14537
14538 * string/strcoll_l.c: Include <libc-diag.h>.
14539 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14540 declarations of seq1 and seq2.
14541
14542 [BZ #15105]
14543 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14544 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14545
14546 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14547
14548 [BZ #22433]
14549 [BZ #22807]
14550 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14551 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14552 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14553 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14554 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14555 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14556
14557 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14558
14559 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14560 macros used in __ptrace_request.
14561
14562 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14563
14564 [BZ #22792]
14565 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14566 to $(CC).
14567 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14568 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14569 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14570 <tcb-offsets.h>.
14571
14572 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14573
14574 [BZ #15105]
14575 * ctype/ctype.c (tolower): Use libc_hidden_def.
14576 (toupper): Likewise.
14577 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14578 [!_ISOMAC] (toupper): Likewise.
14579
14580 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14581
14582 * localedata/Makefile: Remove --quiet argument when
14583 installing locales
14584
14585 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14586
14587 [BZ #17438]
14588 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14589 in d_fmt.
14590 * localedata/locales/pt_PT (LC_TIME): likewise
14591
14592 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14593
14594 [BZ #22646]
14595 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14596 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14597 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14598
14599 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14600
14601 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14602
14603 * nptl/Makefile (routines): Remove unregister-atfork.
14604 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14605 (fork_handler_alloc): Remove function.
14606 (fork_handlers, fork_handler_init): New variables.
14607 (__fork_lock): Rename to atfork_lock.
14608 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14609 to use a dynamic array to add/remove atfork handlers.
14610 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14611 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14612 Remove declaration.
14613 (fork_handler): Remove next, refcntr, and need_signal member.
14614 (__run_fork_handler_type): New enum.
14615 (__run_fork_handlers): New prototype.
14616 * nptl/register-atfork.c: Remove file.
14617 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14618
14619 * sysdeps/nptl/nptl-signals.h: Move to ...
14620 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14621 comments.
14622 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14623 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14624 unnecessary check for SIGTIMER.
14625 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14626 remove unnecessary removal of SIGTIMER.
14627 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14628 include-signals.h rename.
14629 * nptl/pthreadP.h: Likewise.
14630 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14631 __is_internal_signal instead of __nptl_is_internal_signal.
14632
14633 2018-02-22 Andrew Waterman <andrew@sifive.com>
14634
14635 [BZ # 22884]
14636 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14637 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14638 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14639 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14640
14641 2018-02-22 DJ Delorie <dj@delorie.com>
14642
14643 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14644
14645 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14646
14647 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14648 do_misaligned, not misaligned8.
14649
14650 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14651
14652 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14653 Add memcpy_thunderx2.
14654 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14655 Increment to 4.
14656 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14657 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14658 and IS_THUNDERX2PA checks.
14659 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14660 Use macro to set name appropriately.
14661 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14662 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14663 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14664 New macro.
14665 (IS_THUNDERX2): New macro.
14666
14667 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14668
14669 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14670
14671 2018-02-21 Zack Weinberg <zackw@panix.com>
14672
14673 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14674 Define here, unconditionally.
14675 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14676 * libio/libioP.h: Remove #if 0 blocks.
14677 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14678 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14679 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14680
14681 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14682 Assume weak_alias is always defined.
14683
14684 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14685 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14686 Remove #if 0 and #ifdef TODO blocks.
14687 Assume text_set_element is always defined.
14688
14689 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14690 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14691 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14692
14693 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14694 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14695 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14696 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14697 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14698 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14699 Reformat bit flags for _flags field to make occupancy clearer.
14700 Update commentary.
14701 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14702 Keep definitions consistent with those in libio/libio.h.
14703
14704 * libio/libio.h (_IO_file_flags): Remove macro.
14705 All uses changed to _flags.
14706
14707 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14708 (__HAVE_COLUMN, _IO_BE): Don't define.
14709 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14710 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14711 * libio/libioP.h (EOF): Don't define.
14712 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14713 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14714 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14715 testing _IO_UNIFIED_JUMPTABLES.
14716
14717 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14718 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14719 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14720 (_IO_size_t): Delete; all uses changed to size_t.
14721 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14722 (_IO_off_t): Delete; all uses changed to off_t.
14723 (_IO_off64_t): Delete; all uses changed to off64_t.
14724 (_IO_pid_t): Delete; all uses changed to pid_t.
14725 (_IO_uid_t): Delete; all uses changed to uid_t.
14726 (_IO_wint_t): Delete; all uses changed to wint_t.
14727 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14728 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14729 (_IO_cookie_io_functions_t): Delete; all uses changed to
14730 cookie_io_functions_t.
14731 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14732 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14733 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14734 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14735
14736 * libio/iofopncook.c: Remove unnecessary forward declarations.
14737 * libio/iolibio.h: Correct outdated commentary.
14738 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14739 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14740 Remove unnecessary casts.
14741 * stdio-common/getline.c: Use _IO_getdelim directly.
14742 Don't redefine ssize_t.
14743 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14744 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14745 Remove outdated comments.
14746 * stdio-common/vfscanf.c: Don't redefine va_list.
14747
14748 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14749 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14750 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14751 which are always true, and __cplusplus, which is always false.
14752
14753 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14754
14755 [BZ #15105]
14756 [BZ #19463]
14757 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14758 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14759 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14760 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14761 libc_hidden_proto.
14762 [!_ISOMAC] (putc_unlocked): Likewise.
14763 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14764 define inline if [__USE_EXTERN_INLINES].
14765 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14766 putc_unlocked.
14767
14768 [BZ #15105]
14769 [BZ #19463]
14770 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14771 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14772 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14773 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14774 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14775 getc_unlocked.
14776 * time/tzfile.c (__tzfile_read): Likewise.
14777
14778 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14779
14780 [BZ #22517]
14781 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14782
14783 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14784
14785 * io/fcntl.h: Fix a typo in a comment.
14786
14787 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14788
14789 [BZ #22862]
14790 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14791 define _DEFAULT_SOURCE.
14792 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14793
14794 2018-02-21 Florian Weimer <fweimer@redhat.com>
14795
14796 [BZ #20890]
14797 * elf/cache.c (save_cache): Call fsync on temporary file before
14798 renaming it.
14799 (save_aux_cache): Call fdatasync on temporary file before renaming
14800 it.
14801
14802 2018-02-21 Florian Weimer <fweimer@redhat.com>
14803
14804 [BZ #22787]
14805 * include/caller.h: Remove file.
14806 * elf/dl-caller.c: Likewise.
14807 * elf/Makefile (dl-routines): Remove dl-caller.
14808 (shared-only-routines): Do not add dl-caller.
14809 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14810 __check_caller.
14811 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14812 member.
14813 (dl_open_worker): Do not call __check_caller.
14814 (_dl_open): Do not set caller_dl_open member.
14815 * elf/rtld.c (_rtld_global_ro): Do not initialize
14816 _dl_check_caller member.
14817 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14818 _dl_check_caller member.
14819 (_dl_check_caller): Remove declaration.
14820 * sysdeps/unix/sysv/linux/dl-execstack.c
14821 (_dl_make_stack_executable): Do not call __check_caller.
14822
14823 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14824
14825 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14826 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14827
14828 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14829
14830 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14831 description.
14832
14833 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14834
14835 [BZ #16335]
14836 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
14837 of 199606L, 200112L, and 200809L.
14838 (_XOPEN_SOURCE): Document special values of 600 and 700.
14839 (_ISOC11_SOURCE): Document macro.
14840 (_ATFILE_SOURCE): Likewise.
14841 (_FORTIFY_SOURCE): Likewise.
14842
14843 2018-02-19 Joseph Myers <joseph@codesourcery.com>
14844
14845 [BZ #15105]
14846 [BZ #19463]
14847 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
14848 and define as weak alias of __ferror_unlocked. Use
14849 libc_hidden_weak.
14850 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
14851 libc_hidden_proto.
14852 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
14853 function if [__USE_EXTERN_INLINES].
14854 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
14855 ferror_unlocked.
14856
14857 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
14858
14859 [BZ #6889]
14860 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
14861
14862 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14863
14864 [BZ #22818]
14865 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
14866 the GLIBC_2.1 version.
14867
14868 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14869
14870 [BZ #21508]
14871 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
14872 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
14873 intl/tst-gettext-de.po from po/de.po by removing the
14874 POT-Creation-Date line.
14875 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
14876 ../po/de.po.
14877 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
14878 ../po/de.po.
14879
14880 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14881
14882 * mach/Makefile (headers): Add mach/param.h.
14883 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
14884 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
14885 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
14886 (__ptsname_r): Move implementation to...
14887 (__ptsname_internal): ... new function. Add filling the STP
14888 structure.
14889
14890 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
14891
14892 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
14893 idouble to 1 ULP.
14894
14895 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
14896
14897 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
14898 syntax.
14899
14900 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
14901
14902 * nptl/Makefile (tst-mutex8-ENV): Delete.
14903 * nptl/tst-mutex8.c (check_type):
14904 Add runtime check if mutex will be elided.
14905
14906 2018-02-15 Joseph Myers <joseph@codesourcery.com>
14907
14908 [BZ #20980]
14909 [BZ #21234]
14910 * manual/install.texi (Configuring and compiling): Describe
14911 passing CC and CFLAGS on configure command line, not as
14912 environment variables. Use @code markup on those variables.
14913 Specify what options go in CC and what go in CFLAGS. Note the
14914 requirement to compile with optimization.
14915 * INSTALL: Regenerated.
14916
14917 [BZ #18124]
14918 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
14919 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
14920 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
14921 __sigprocmask instead of sigprocmask.
14922 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
14923 Likewise.
14924 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
14925 __sigsetjmp and sigprocmask.
14926
14927 [BZ #15105]
14928 * include/argz.h (argz_next): Use libc_hidden_proto.
14929 (__argz_next): Likewise.
14930 * string-argz-next.c (__argz_next): Use libc_hidden_def.
14931 (argz_next): Use libc_hidden_weak.
14932
14933 [BZ #15105]
14934 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
14935 libc_hidden_proto.
14936 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
14937 libc_hidden_def.
14938
14939 [BZ #15105]
14940 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
14941 libc_hidden_proto.
14942 * libio/iofputs.c (fputs): Use libc_hidden_weak.
14943
14944 [BZ #15105]
14945 [BZ #19463]
14946 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
14947 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
14948 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
14949 (__feof_unlocked): New declaration, and inline function if
14950 [__USE_EXTERN_INLINES].
14951 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
14952 instead of feof_unlocked.
14953 * intl/localealias.c [_LIBC] (FEOF): Likewise.
14954 * nss/nsswitch.c (nss_parse_file): Likewise.
14955 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
14956 Likewise.
14957 * time/getdate.c (__getdate_r): Likewise.
14958 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
14959 Define as macro to call __feof_unlocked.
14960
14961 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
14962
14963 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
14964
14965 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
14966
14967 * math/Makefile: Remove mpexp.c and mplog.c
14968 * sysdeps/i386/fpu/mpexp.c: Delete file.
14969 * sysdeps/i386/fpu/mplog.c: Likewise.
14970 * sysdeps/ia64/fpu/mpexp.c: Likewise.
14971 * sysdeps/ia64/fpu/mplog.c: Likewise.
14972 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
14973 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
14974 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
14975 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
14976 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
14977 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
14978 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
14979 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
14980 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
14981 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14982 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
14983 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
14984 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14985 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
14986 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
14987 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14988
14989 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
14990
14991 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14992
14993 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14994
14995 * sysdeps/sh/libm-test-ulps: Update.
14996
14997 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14998
14999 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15000 idouble to 1 ULP.
15001
15002 2018-02-12 Zack Weinberg <zackw@panix.com>
15003
15004 [BZ #19239]
15005 * posix/sys/types.h: Don't include sys/sysmacros.h.
15006 * misc/sys/sysmacros.h: Remove the conditional deprecation
15007 warnings for the macros defined by this header.
15008
15009 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15010
15011 * manual/probes.texi: Remove slowexp probes.
15012 * math/Makefile: Remove slowexp.
15013 * sysdeps/generic/math_private.h (__slowexp): Remove.
15014 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15015 document error bounds.
15016 * sysdeps/i386/fpu/slowexp.c: Remove.
15017 * sysdeps/ia64/fpu/slowexp.c: Remove.
15018 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15019 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15020 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15021 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15022 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15023 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15024 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15025 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15026 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15027 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15028 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15029
15030 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15031
15032 [BZ #13932]
15033 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15034 * benchtests/pow-inputs: Update comment for slow path cases.
15035 * manual/probes.texi (slowpow_p10): Delete removed probe.
15036 (slowpow_p10): Likewise.
15037 * math/Makefile: Remove halfulp.c and slowpow.c.
15038 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15039 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15040 (__halfulp): Remove.
15041 (__slowpow): Remove.
15042 * sysdeps/i386/fpu/halfulp.c: Delete file.
15043 * sysdeps/i386/fpu/slowpow.c: Likewise.
15044 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15045 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15046 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15047 improve comments and add error analysis.
15048 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15049 (power1): Remove function:
15050 (log1): Remove error argument, add error analysis.
15051 (my_log2): Remove function.
15052 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15053 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15054 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15055 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15056 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15057 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15058 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15059 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15060 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15061 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15062 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15063 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15064 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15065 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15066
15067 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15068
15069 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15070 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15071
15072 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15073
15074 [BZ #22433]
15075 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15076 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15077 and PTRACE_SETHBPREGS.
15078
15079 2018-02-10 Zack Weinberg <zackw@panix.com>
15080
15081 [BZ #22830]
15082 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15083 correctly.
15084 * malloc/tst-malloc-stats-cancellation.c: New test case.
15085 * malloc/Makefile: Add new test case.
15086
15087 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15088
15089 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15090
15091 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15092
15093 * math/Makefile (libm-narrow-fns): Add add.
15094 (libm-test-funcs-narrow): Likewise.
15095 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15096 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15097 * math/gen-auto-libm-tests.c (test_functions): Add add.
15098 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15099 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15100 (NARROW_ADD_TRIVIAL): Likewise.
15101 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15102 macro.
15103 (__daddl): Likewise.
15104 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15105 dadd.
15106 (CFLAGS-nldbl-dadd.c): New variable.
15107 (CFLAGS-nldbl-fadd.c): Likewise.
15108 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15109 __nldbl_daddl.
15110 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15111 prototype.
15112 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15113 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15114 * math/auto-libm-test-in: Add tests of add.
15115 * math/auto-libm-test-out-narrow-add: New generated file.
15116 * math/libm-test-narrow-add.inc: New file.
15117 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15118 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15119 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15120 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15121 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15122 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15123 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15124 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15125 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15126 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15127 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15128 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15129 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15130 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15131 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15132 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15133 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15134 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15135 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15136 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15137 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15138 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15139 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15140 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15141 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15142 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15143 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15144 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15145 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15146 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15147 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15148 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15149 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15150 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15153 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15154 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15155 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15156 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15157 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15158 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15159 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15160 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15161 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15162 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15163
15164 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15165 (f128-pairs): New variable.
15166 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15167 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15168 to CFLAGS.
15169 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15170 Also make tests add $(f128-loader-link) to gnulib-tests.
15171
15172 2018-02-09 DJ Delorie <dj@redhat.com>
15173
15174 [BZ #22827]
15175 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15176 64-bit ELF type for 64-bit ELF objects.
15177
15178 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15179
15180 * math/libm-test-driver.c (snan_tests_arg): New variable.
15181 * math/libm-test-support.h (snan_tests_arg): New declaration.
15182 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15183
15184 * math/Makefile (test-type-pairs): New variable.
15185 (test-type-pairs-f64xf128-yes): Likewise.
15186 (tests): Add test-narrow-macros.
15187 (libm-test-funcs-narrow): New variable.
15188 (libm-test-c-narrow): Likewise.
15189 (generated): Add $(libm-test-c-narrow).
15190 (libm-tests-base-narrow): New variable.
15191 (libm-tests-narrow): Likewise.
15192 (libm-tests): Add $(libm-tests-narrow).
15193 (libm-tests-for-type): Handle $(libm-tests-narrow).
15194 (libm-test-c-narrow-obj): New variable.
15195 ($(libm-test-c-narrow-obj)): New rule.
15196 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15197 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15198 $(o-iterator) to set dependencies and CFLAGS.
15199 * math/gen-auto-libm-tests.c: Document use for narrowing
15200 functions.
15201 (output_for_one_input_case): Take argument NARROW.
15202 (generate_output): Likewise. Update call to
15203 output_for_one_input_case.
15204 (main): Take --narrow option. Update call to generate_output.
15205 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15206 (apply_lit): Update call to _apply_lit.
15207 (apply_arglit): New function.
15208 (parse_args): Handle "a" arguments.
15209 (parse_auto_input): Handle format names using ":".
15210 * math/README.libm-test: Document "a" parameter type.
15211 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15212 (ARG_TYPE_TRUE_MIN): Likewise.
15213 (ARG_TYPE_MAX): Likwise.
15214 (ARG_MIN_EXP): Likewise.
15215 (ARG_MAX_EXP): Likewise.
15216 (ARG_MANT_DIG): Likewise.
15217 (TEST_COND_arg_ibm128): Likewise.
15218 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15219 (TEST_COND_arg_fmt): New macro.
15220 (init_max_error): Update prototype.
15221 * math/libm-test-support.c (test_ibm128): New variable.
15222 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15223 instead of using [TEST_COND_ibm128] conditional.
15224 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15225 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15226 [TEST_NARROW] (TEST_MSG): New definition.
15227 (arg_plus_zero): New macro.
15228 (arg_minus_zero): Likewise.
15229 (arg_plus_infty): Likewise.
15230 (arg_minus_infty): Likewise.
15231 (arg_qnan_value_pl): Likewise.
15232 (arg_qnan_value): Likewise.
15233 (arg_snan_value_pl): Likewise.
15234 (arg_snan_value): Likewise.
15235 (arg_max_value): Likewise.
15236 (arg_min_value): Likewise.
15237 (arg_min_subnorm_value): Likewise.
15238 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15239 (RUN_TEST_LOOP_aa_f): New macro.
15240 (TEST_SUFF): New macro.
15241 (TEST_SUFF_STR): Likewise.
15242 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15243 (TEST_COND_any_ibm128): New macro.
15244 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15245 this_func. Update call to init_max_error.
15246 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15247 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15248 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15249 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15250 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15251 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15252 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15253 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15254 * math/test-math-vector.h (TEST_NARROW): Likewise.
15255 * math/test-arg-double.h: New file.
15256 * math/test-arg-float128.h: Likewise.
15257 * math/test-arg-float32x.h: Likewise.
15258 * math/test-arg-float64.h: Likewise.
15259 * math/test-arg-float64x.h: Likewise.
15260 * math/test-arg-ldouble.h: Likewise.
15261 * math/test-math-narrow.h: Likewise.
15262 * math/test-narrow-macros.c: Likewise.
15263 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15264 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15265 test-narrow-macros-ldbl-64.
15266 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15267
15268 * math/bits/mathcalls-narrow.h: New file.
15269 * include/bits/mathcalls-narrow.h: Likewise.
15270 * math/math-narrow.h: Likewise.
15271 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15272 (__MATHCALL_NARROW_ARGS_2): Likewise.
15273 (__MATHCALL_NARROW_ARGS_3): Likewise.
15274 (__MATHCALL_NARROW_NORMAL): Likewise.
15275 (__MATHCALL_NARROW_REDIR): Likewise.
15276 (__MATHCALL_NARROW): Likewise.
15277 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15278 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15279 defined.
15280 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15281 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15282 (libm-narrow-fns): New variable.
15283 (libm-narrow-types-basic): Likewise.
15284 (libm-narrow-types-ldouble-yes): Likewise.
15285 (libm-narrow-types-float128-yes): Likewise.
15286 (libm-narrow-types-float128-alias-yes): Likewise.
15287 (libm-narrow-types): Likewise.
15288 (libm-routines): Add narrowing functions.
15289 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15290 (libc_feholdexcept_setroundf128): New macro.
15291 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15292 * sysdeps/ieee754/float128/float128_private.h: Include
15293 <math/math-narrow.h>.
15294 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15295 Undefine and redefine.
15296 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15297 (libm_alias_float_ldouble): Undefine and redefine.
15298 (libm_alias_double_ldouble): Likewise.
15299
15300 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15301
15302 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15303
15304 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15305 FPCR/FPSR.
15306
15307 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15308
15309 * manual/creature.texi: Convert references to gcc.info to gcc.
15310 * manual/stdio.texi: Likewise.
15311 * manual/string.texi: Likewise.
15312
15313 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15314
15315 [BZ #17979]
15316 * posix/bits/types.h (__int_least8_t): New typedef.
15317 (__uint_least8_t): Likewise.
15318 (__int_least16_t): Likewise.
15319 (__uint_least16_t): Likewise.
15320 (__int_least32_t): Likewise.
15321 (__uint_least32_t): Likewise.
15322 (__int_least64_t): Likewise.
15323 (__uint_least64_t): Likewise.
15324 * sysdeps/generic/stdint.h (int_least8_t): Define using
15325 __int_least8_t.
15326 (int_least16_t): Define using __int_least16_t.
15327 (int_least32_t): Define using __int_least32_t.
15328 (int_least64_t): Define using __int_least64_t.
15329 (uint_least8_t): Define using __uint_least8_t.
15330 (uint_least16_t): Define using __uint_least16_t.
15331 (uint_least32_t): Define using __uint_least32_t.
15332 (uint_least64_t): Define using __uint_least64_t.
15333 * wcsmbs/uchar.h: Include <bits/types.h>.
15334 (char16_t): Define using __uint_least16_t conditional only on
15335 [!__USE_ISOCXX11].
15336 (char32_t): Define using __uint_least32_t conditional only on
15337 [!__USE_ISOCXX11].
15338 * wcsmbs/test-char-types.c: New file.
15339 * wcsmbs/Makefile (tests): Add test-char-types.
15340
15341 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15342 version to 4.0.1.
15343
15344 2018-02-07 Zack Weinberg <zackw@panix.com>
15345
15346 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15347 Delete all contents except for definitions of _G_HAVE_MMAP and
15348 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15349 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15350 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15351 change as above.
15352
15353 * libio/libio.h: Don't include bits/_G_config.h here.
15354 Include stddef.h with __need_wchar_t defined. Include
15355 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15356 Define _IO_iconv_t here, directly.
15357 Don't define _IO_HAVE_ST_BLKSIZE.
15358 * libio/libioP.h: Include _G_config.h here. Move include of
15359 shlib-compat.h up with rest of includes. Simplify conditionals
15360 controlling definition of _IO_JUMPS_OFFSET.
15361
15362 * csu/init.c: Remove always-true #if around entire file.
15363 Don't include stdio.h. Set _IO_stdin_used to hardwired
15364 constant 0x20001, and update commentary.
15365 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15366 Replace all uses of _G_va_list with __gnuc_va_list.
15367 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15368 instead of #if _IO_HAVE_ST_BLKSIZE.
15369 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15370 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15371 not #ifdef.
15372
15373 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15374 multiple-include guard to match.
15375 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15376 into this file.
15377 Remove preprocessor conditionals that are always true and/or
15378 redundant to other preprocessor conditionals in the same nest.
15379 Include shlib-compat.h unconditionally.
15380 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15381 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15382 defined after including stdio.h.
15383 Use __BEGIN_DECLS/__END_DECLS.
15384
15385 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15386 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15387 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15388
15389 2018-02-07 Zack Weinberg <zackw@panix.com>
15390
15391 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15392 New single-type headers split from _G_config.h.
15393 * libio/bits/types/cookie_io_functions_t.h
15394 * libio/bits/types/struct_FILE.h
15395 New single-type headers split from libio.h.
15396
15397 * libio/Makefile: Install the above new headers. Don't install
15398 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15399 bits/libio-ldbl.h.
15400 * libio/_G_config.h, libio/libio.h: Delete file.
15401
15402 * libio/bits/libio.h: Remove improper-inclusion guard.
15403 Include stdio.h and don't repeat anything that it does.
15404 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15405 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15406 __io_read_fn as cookie_read_function_t,
15407 __io_write_fn as cookie_write_function_t,
15408 __io_seek_fn as cookie_seek_function_t,
15409 __io_close_fn as cookie_close_function_t,
15410 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15411 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15412 here, in the "compatibility defines" section. Remove an #if 0
15413 block. Use the "body" macros from bits/types/struct_FILE.h to
15414 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15415 and _IO_ferror_unlocked.
15416 Move prototypes of __uflow and __overflow...
15417
15418 * libio/stdio.h: ...here. Don't include bits/libio.h.
15419 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15420 directly from stdarg.h. Include bits/types/__fpos_t.h,
15421 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15422 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15423 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15424 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15425 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15426 __ssize_t, not _IO_ssize_t. Unconditionally define
15427 BUFSIZ as 8192 and EOF as (-1).
15428
15429 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15430 macros from bits/types/struct_FILE.h instead of _IO_* macros
15431 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15432 instead of _IO_ssize_t.
15433 * libio/bits/stdio2.h: Similarly.
15434
15435 * libio/iolibio.h: Add multiple-include guard.
15436 Include bits/libio.h after stdio.h.
15437 * libio/libioP.h: Add multiple-include guard.
15438 Include stdio.h and bits/libio.h before iolibio.h.
15439
15440 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15441 * include/bits/types/cookie_io_functions_t.h
15442 * include/bits/types/struct_FILE.h: New wrappers.
15443
15444 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15445 Get definitions of _G_fpos_t and _G_fpos64_t from
15446 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15447 respectively. Remove improper-inclusion guards.
15448
15449 * conform/data/stdio.h-data: Update expectations of va_list.
15450 * scripts/check-installed-headers.sh: Remove special case for
15451 libio.h and _G_config.h.
15452
15453 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15454
15455 [BZ #15105]
15456 [BZ #19463]
15457 * include/sys/sysmacros.h [!_ISOMAC]
15458 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15459 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15460 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15461 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15462 libc_hidden_proto.
15463 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15464 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15465 Likewise.
15466 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15467 Undefine and redefine to add use __gnu_dev_ prefix.
15468 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15469 Likewise.
15470 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15471 and define as hidden inline function.
15472 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15473 Likewise.
15474 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15475 Likewise.
15476 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15477 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15478 (gnu_dev_minor): Likewise.
15479 (gnu_dev_makedev): Likewise.
15480 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15481 makedev.
15482 * posix/wordexp.c (exec_comm_child): Likewise.
15483 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15484 instead of minor and __gnu_dev_major instead of major.
15485 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15486 __gnu_dev_major instead of major.
15487 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15488 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15489 instead of gnu_dev_minor.
15490 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15491 (SLAVE_P): Likewise.
15492 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15493 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15494 instead of major.
15495
15496 [BZ #21313]
15497 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15498 in another place.
15499 * locale/weightwc.h (findidx): Likewise.
15500
15501 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15502
15503 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15504 (slowlog_inexact): Likewise
15505 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15506 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15507
15508 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15509
15510 [BZ #22797]
15511 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15512 missing second underscore to parameter name.
15513
15514 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15515
15516 [BZ #14508]
15517 [BZ #15512]
15518 [BZ #17082]
15519 [BZ #20530]
15520 * bits/byteswap.h: Update file comment. Do not include
15521 <bits/byteswap-16.h>.
15522 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15523 constant.
15524 (__bswap_16): Define as inline function.
15525 (__bswap_constant_32): Reformat definition.
15526 (__bswap_32): Always define as inline function, not macro, using
15527 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15528 otherwise __bswap_constant_32.
15529 (__bswap_constant_64): Reformat definition. Do not use
15530 __extension__ here.
15531 (__bswap_64): Always define as inline function, not macro. Use
15532 __extension__ on function definition. Use __builtin_bswap64 if
15533 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15534 * string/test-endian-file-scope.c: New file.
15535 * string/test-endian-sign-conversion.c: Likewise.
15536 * string/Makefile (headers): Remove bits/byteswap-16.h.
15537 (tests): Add test-endian-file-scope and
15538 test-endian-sign-conversion.
15539 (CFLAGS-test-endian-sign-conversion.c): New variable.
15540 * bits/byteswap-16.h: Remove file.
15541 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15542 * sysdeps/ia64/bits/byteswap.h: Likewise.
15543 * sysdeps/m68k/bits/byteswap.h: Likewise.
15544 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15545 * sysdeps/s390/bits/byteswap.h: Likewise.
15546 * sysdeps/tile/bits/byteswap.h: Likewise.
15547 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15548 * sysdeps/x86/bits/byteswap.h: Likewise.
15549
15550 [BZ #17721]
15551 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15552 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15553 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15554 199901L] (__restrict): Define to restrict.
15555
15556 [BZ #19667]
15557 * string/testcopy.c: Include <support/support.h>. Do not include
15558 <malloc.h>. Use <support/test-driver.c>.
15559 (main): Rename to do_test. Make static. Use xmalloc instead of
15560 malloc.
15561
15562 [BZ #13575]
15563 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15564 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15565 (SSIZE_MAX): Define to INT_MAX.
15566 * posix/test-ssize-max.c: New file.
15567 * posix/Makefile (tests): Add test-ssize-max.
15568
15569 [BZ #19668]
15570 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15571 <support/support.h>. Do not include <malloc.h>.
15572 (query_auxv): Use xmalloc instead of malloc.
15573
15574 [BZ #14553]
15575 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15576 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15577 instead of loff_t.
15578
15579 2018-02-06 Florian Weimer <fweimer@redhat.com>
15580
15581 [BZ #18023]
15582 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15583 Use scratch_buffer instead of extend_alloca.
15584
15585 2018-02-06 Zack Weinberg <zackw@panix.com>
15586
15587 * libio/stdio.h: Don't define getc or putc as macros.
15588 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15589 not _IO_getc and _IO_putc.
15590
15591 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15592 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15593
15594 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15595
15596 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15597 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15598
15599 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15600
15601 [BZ #14890]
15602 * elf/elf.h (NT_PRFPREG): New macro.
15603 (NT_S390_VXRS_LOW): Likewise.
15604 (NT_S390_VXRS_HIGH): Likewise.
15605 (NT_S390_GS_CB): Likewise.
15606 (NT_S390_GS_BC): Likewise.
15607 (NT_S390_RI_CB): Likewise.
15608
15609 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15610 (MAP_SYNC): New macro.
15611 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15612 Likewise.
15613 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15614 (MAP_SYNC): Likewise.
15615 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15616 (MAP_SYNC): Likewise.
15617 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15618 (MAP_SYNC): Likewise.
15619 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15620 (MAP_SYNC): Likewise.
15621 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15622 (MAP_SYNC): Likewise.
15623 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15624 (MAP_SYNC): Likewise.
15625 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15626 Likewise.
15627 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15628 Likewise.
15629
15630 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15631 (MAP_SHARED_VALIDATE): New macro.
15632 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15633 (MAP_SHARED_VALIDATE): Likewise.
15634
15635 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15636
15637 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15638 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15639 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15640
15641 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15642
15643 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15644 (DT_NUM): Updated to 35.
15645
15646 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15647
15648 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15649 __builtin_expect with __glibc_likely and __glibc_unlikely.
15650 (elf_machine_rela): Likewise.
15651 (elf_machine_lazy_rel): Likewise.
15652
15653 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15654
15655 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15656 __builtin_expect with __glibc_likely and __glibc_unlikely.
15657 (elf_machine_lazy_rel): Likewise.
15658
15659 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15660
15661 [BZ #22638]
15662 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15663 SHARED.
15664 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15665
15666 2018-02-05 Andreas Schwab <schwab@suse.de>
15667
15668 [BZ #22761]
15669 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15670 string.
15671
15672 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15673
15674 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15675 not check against PTHREAD_STACK_MIN.
15676
15677 2018-02-02 Sean McKean <smckean83@gmail.com>
15678
15679 [BZ #22735]
15680 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15681
15682 2018-02-02 Florian Weimer <fweimer@redhat.com>
15683
15684 [BZ #22753]
15685 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15686 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15687 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15688 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15689 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15690 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15691 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15692 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15693 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15694 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15695 * misc/tst-preadvwritev2.c (do_test): Call it.
15696 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15697
15698 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15699
15700 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15701
15702 * benchtests/bench-memcmp.c: Print json instead of plain text.
15703
15704 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15705 every test run.
15706
15707 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15708
15709 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15710 version to 4.15.
15711 (s390_sthyi): New syscall.
15712
15713 * sysdeps/generic/ldbl-classify-compat.h: New file.
15714 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15715 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15716 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15717 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15718 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15719 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15720 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15721 <ldbl-classify-compat.h>.
15722 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15723 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15724 <ldbl-classify-compat.h>.
15725 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15726 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15727 <ldbl-classify-compat.h>.
15728 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15729 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15730 <ldbl-classify-compat.h>.
15731 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15732 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15733 <ldbl-classify-compat.h>.
15734 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15735 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15736 <ldbl-classify-compat.h>.
15737 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15738 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15739 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15740 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15741 * sysdeps/microblaze/math_private.h: Likewise.
15742 * sysdeps/nios2/math_private.h: Likewise.
15743 * sysdeps/sh/math_private.h: Likewise.
15744
15745 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15746 * sysdeps/m68k/coldfire/math_private.h: ... here.
15747 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15748 * sysdeps/tile/math_private.h: Likewise.
15749 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15750 Remove macro.
15751 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15752 Likewise.
15753
15754 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15755 Remove macro.
15756 (libc_fetestexcept): Likewise.
15757 (libc_feupdateenv_test): Likewise.
15758 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15759 (libc_fetestexcept): Likewise.
15760 (libc_feupdateenv_test): Likewise.
15761 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15762 (libc_fetestexcept): Likewise.
15763 (libc_feupdateenv_test): Likewise.
15764 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15765 (libc_fetestexcept): Likewise.
15766 (libc_feupdateenv_test): Likewise.
15767
15768 * sysdeps/generic/math_private.h
15769 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15770 New inline function.
15771 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15772 Likewise.
15773
15774 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15775 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15776 * sysdeps/generic/math_private.h
15777 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15778 inline function.
15779 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15780 Likewise.
15781 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15782 Likewise.
15783 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15784 Likewise.
15785 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15786 Likewise.
15787 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15788 Likewise.
15789 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15790 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15791 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15792 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15793 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15794 (__fegetenv): Likewise.
15795 (fesetenv): Likewise.
15796 (__fesetenv): Likewise.
15797 (feupdateenv): Likewise.
15798 (__feupdateenv): Likewise.
15799 (fegetround): Likewise.
15800 (__fegetround): Likewise.
15801 (fesetround): Likewise.
15802 (__fesetround): Likewise.
15803
15804 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15805 (feraiseexcept): New macro.
15806 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15807 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15808 Remove macro.
15809 (__feraiseexcept): Likewise.
15810 (feclearexcept): Likewise.
15811 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15812 (__feraiseexcept): Likewise.
15813 (feclearexcept): Likewise.
15814 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15815 (__feraiseexcept): Likewise.
15816 (feclearexcept): Likewise.
15817 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15818 (__feraiseexcept): Likewise.
15819 (feclearexcept): Likewise.
15820 (fetestexcept): Likewise.
15821
15822 * sysdeps/m68k/coldfire/math-tests.h: New file.
15823
15824 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15825 * sysdeps/m68k/bits/fenv.h: ... here.
15826 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15827 not define.
15828 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15829 Likewise.
15830 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15831 Likewise.
15832 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15833 Likewise.
15834 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
15835 Likewise.
15836 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
15837 Define to 0.
15838 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
15839 (__FE_UNDEFINED): New enum constant.
15840 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
15841 Do not define.
15842 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
15843 Likewise.
15844 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
15845 Likewise.
15846 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
15847 to match generic bits/fenv.h.
15848 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
15849 Do not define.
15850
15851 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
15852 packed on bits.
15853 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
15854 * soft-fp/half.h (union _FP_UNION_H): Likewise.
15855 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
15856 * soft-fp/single.h (union _FP_UNION_S): Likewise.
15857
15858 2018-02-01 Carlos O'Donell <carlos@redhat.com>
15859 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
15860 Joseph Myers <joseph@codesourcery.com>
15861
15862 [BZ #21314]
15863 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
15864 (__log1p): Disable -Wmaybe-uninitialized for -Os around
15865 computation using c.
15866 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
15867 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
15868 computation using c.
15869
15870 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15871
15872 * version.h (RELEASE): Set to "development".
15873 (VERSION): Set to "2.27.9000".
15874 * NEWS (2.28): New section.
15875
15876 * version.h (RELEASE): Set to "stable".
15877 (VERSION): Set to "2.27".
15878 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
15879
15880 * NEWS: Add the list of bugs fixed in 2.27.
15881
15882 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15883
15884 * stdlib/test-atexit-race-common.c (do_test): Check stack size
15885 against PTHREAD_STACK_MIN.
15886
15887 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15888
15889 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
15890 New entries.
15891 (Rafal Luzynski, Andreas Schwab): Update.
15892
15893 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
15894
15895 [BZ #10871]
15896 * NEWS: List the languages which actually use the alternative
15897 months feature in this release. Also explain that "alt_mon" and
15898 "ab_alt_mon" are optional.
15899
15900 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
15901
15902 [BZ #22765]
15903 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
15904
15905 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
15906
15907 * manual/install.texi (Tools for Compilation): Update the newest
15908 versions of gcc, binutils, texinfo, gawk, bison, and sed.
15909 * INSTALL: Regenerated.
15910
15911 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
15912
15913 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
15914 instead of __builtin_expect.
15915
15916 2018-01-30 Florian Weimer <fweimer@redhat.com>
15917
15918 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
15919 data.
15920 * nss/tst-nss-getpwent.c (do_test): Likewise.
15921
15922 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
15923
15924 [BZ #10871]
15925 * localedata/locales/hr_HR (mon): Rename to...
15926 (alt_mon): This.
15927 (mon): Import from CLDR (genitive case).
15928 (d_t_fmt): Update the comment.
15929
15930 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
15931
15932 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
15933 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
15934 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
15935
15936 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
15937
15938 * mach/Versions: Fix version when __mach_host_self_ was added.
15939 * hurd/Versions: Fix version when _hurd_exec_paths was added.
15940 * sysdeps/mach/hurd/i386/ld.abilist: New file.
15941 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
15942 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
15943 * sysdeps/mach/hurd/i386/libc.abilist: New file.
15944 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
15945 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
15946 * sysdeps/mach/hurd/i386/libm.abilist: New file.
15947 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
15948 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
15949 * sysdeps/mach/hurd/i386/librt.abilist: New file.
15950 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
15951 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
15952 || to respect codestyle.
15953 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
15954 (do_test_bz20181): Rename accordingly.
15955 * malloc/malloc.c: Include <assert.h>.
15956 (assert): Do not define.
15957 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
15958 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
15959 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
15960 * sysdeps/mach/hurd/hp-timing.h: New file.
15961 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
15962
15963 2018-01-29 Darius Rad <darius@bluespec.com>
15964
15965 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
15966
15967 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
15968
15969 * sysdeps/init_array/crti.S (.section .init_array): Add
15970 PREINIT_FUNCTION when defined.
15971 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
15972 * config.h.in: Regenerate.
15973 * manual/platform.texi: Add RISC-V documenation for
15974 __riscv_flush_icache.
15975 * sysdeps/riscv/__longjmp.S: New file.
15976 * sysdeps/riscv/backtrace.c: Likewise.
15977 * sysdeps/riscv/bits/endian.h: Likewise.
15978 * sysdeps/riscv/bits/setjmp.h: Likewise.
15979 * sysdeps/riscv/bits/wordsize.h: Likewise.
15980 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
15981 * sysdeps/riscv/bsd-setjmp.c: Likewise.
15982 * sysdeps/riscv/dl-trampoline.S: Likewise.
15983 * sysdeps/riscv/gccframe.h: Likewise.
15984 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
15985 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
15986 * sysdeps/riscv/machine-gmon.h: Likewise.
15987 * sysdeps/riscv/memusage.h: Likewise.
15988 * sysdeps/riscv/setjmp.S: Likewise.
15989 * sysdeps/riscv/sys/asm.h: Likewise.
15990 * sysdeps/riscv/tls-macros.h: Likewise.
15991 * sysdeps/riscv/dl-tls.h: New file.
15992 * sysdeps/riscv/libc-tls.c: Likewise.
15993 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
15994 * sysdeps/riscv/nptl/tls.h: Likewise.
15995 * sysdeps/riscv/stackinfo.h: Likewise.
15996 * sysdeps/riscv/bits/fenv.h: New file.
15997 * sysdeps/riscv/e_sqrtl.c: Likewise.
15998 * sysdeps/riscv/fpu_control.h: Likewise.
15999 * sysdeps/riscv/math-tests.h: Likewise.
16000 * sysdeps/riscv/nofpu/Implies: Likewise.
16001 * sysdeps/riscv/sfp-machine.h: Likewise.
16002 * sysdeps/riscv/tininess.h: Likewise.
16003 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16004 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16005 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16006 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16007 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16008 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16009 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16010 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16011 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16012 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16013 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16014 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16015 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16016 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16017 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16018 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16019 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16020 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16021 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16022 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16023 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16024 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16025 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16026 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16027 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16028 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16029 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16030 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16031 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16032 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16033 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16034 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16035 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16036 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16037 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16038 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16039 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16040 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16041 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16042 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16043 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16044 * sysdeps/riscv/rvf/math_private.h: Likewise.
16045 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16046 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16047 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16048 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16049 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16050 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16051 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16052 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16053 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16054 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16055 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16056 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16057 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16058 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16059 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16060 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16061 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16062 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16063 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16064 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16065 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16066 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16067 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16068 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16069 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16070 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16071 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16072 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16073 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16074 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16075 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16076 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16077 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16078 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16079 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16080 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16081 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16082 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16083 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16084 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16085 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16086 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16087 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16088 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16089 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16090 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16091 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16092 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16093 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16094 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16095 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16096 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16097 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16098 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16099 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16100 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16101 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16102 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16103 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16104 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16105 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16106 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16107 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16108 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16109 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16110 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16111 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16112 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16113 * sysdeps/riscv/Implies: New file.
16114 * sysdeps/riscv/Makefile: Likewise.
16115 * sysdeps/riscv/configure: Likewise.
16116 * sysdeps/riscv/configure.ac: Likewise.
16117 * sysdeps/riscv/nptl/Makefile: Likewise.
16118 * sysdeps/riscv/preconfigure: Likewise.
16119 * sysdeps/riscv/rv64/Implies-after: Likewise.
16120 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16121 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16122 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16123 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16124 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16125 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16126 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16127 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16128 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16129 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16130 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16131 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16132 (Config): Likewise.
16133
16134 2018-01-29 Florian Weimer <fweimer@redhat.com>
16135
16136 [BZ #22701]
16137 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16138 libnsl_hidden_proto.
16139 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16140 libnsl_hidden_proto.
16141 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16142 * nis/Makefile (libnsl-routines): Add nss-default only for
16143 build-obsolete-nsl.
16144 * nis/nis_defaults.c (__nis_default_ttl): Add
16145 libnsl_hidden_nolink_def.
16146 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16147 declaration.
16148 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16149 * nis/ypclnt.c (yp_maplist): Likewise.
16150
16151 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16152
16153 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16154 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16155
16156 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16157
16158 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16159 clean -dxfq for git updates when replacing sources.
16160
16161 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16162 --disable-libcilkrts unconditionally, not just for the final GCC
16163 build for Hurd.
16164
16165 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16166 version to 4.15.
16167
16168 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16169
16170 [BZ #10871]
16171 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16172 case).
16173
16174 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16175
16176 [BZ #10871]
16177 * localedata/locales/be_BY (mon): Rename to...
16178 (alt_mon): This, then synchronize with CLDR (nominative case).
16179 (abmon): Rename to...
16180 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16181 (mon): Import from CLDR (genitive case).
16182 (abmon): Likewise.
16183 * localedata/locales/be_BY@latin (mon): Rename to...
16184 (alt_mon): This.
16185 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16186
16187 * localedata/locales/be_BY@latin (lang_name): Reworded to
16188 "biełaruskaja mova".
16189
16190 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16191
16192 [BZ #10871]
16193 * localedata/locales/el_CY (mon): Renamed to...
16194 (alt_mon): This.
16195 (mon): Import from CLDR (genitive case).
16196 * localedata/locales/el_GR: Likewise.
16197
16198 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16199
16200 [BZ #10871]
16201 * localedata/locales/ru_RU (mon): Rename to...
16202 (alt_mon): This.
16203 (abmon): Rename to...
16204 (ab_alt_mon): This.
16205 (mon): Import from CLDR (genitive case).
16206 (abmon): Copy from the old content except the 5th month which is
16207 now in the genitive case, even when abbreviated.
16208 * localedata/locales/ru_UA: Likewise.
16209 * time/tst-strptime.c (day_tests): Add an actual example of
16210 a difference between %b and %Ob in Russian.
16211
16212 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16213
16214 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16215 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16216 a `c' variable.
16217 * resolv/res-close.c: Include <stdlib.h>.
16218 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16219 <sys/wait.h>, <time.h>, <sys/uio.h>.
16220 (NOT_CANCEL_H): Add inclusion guard.
16221 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16222 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16223 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16224 return 0.
16225 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16226 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16227 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16228 instead of void *.
16229 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16230 timer_ptr2id to cast struct timer_node * to void *.
16231 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16232 --disable-libcilkrts to gcc configure.
16233 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16234 and make them the default for now.
16235 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16236 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16237 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16238 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16239 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16240 MACH_IPC_COMPAT.
16241 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16242 __task_terminate would ever return successfully.
16243 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16244 to global scope.
16245 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16246 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16247 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16248 critical section to make code simpler and avoid warning.
16249 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16250 critical section to make code simpler and avoid warning.
16251 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16252 const char * instead of char *.
16253 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16254 __hurd_file_name_split, hurd_file_name_split,
16255 __hurd_directory_name_split, hurd_directory_name_split,
16256 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16257 hurd_file_name_path_lookup): Make lookup function parameter take a
16258 const char *name instead of char *name.
16259 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16260 __hurd_directory_name_split): Likewise.
16261 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16262 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16263 * sysdeps/mach/hurd/check_native.c: New file.
16264 * sysdeps/mach/hurd/check_pf.c: New file.
16265 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16266 (__freeifaddrs): Define macro to freeifaddrs.
16267 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16268 * sysdeps/mach/libmachuser.abilist: New file.
16269 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16270 (do_test_bz20181): Rename accordingly.
16271 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16272 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16273 <sys/mount.h>.
16274 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16275 version only if __USE_EXTERN_INLINES is defined.
16276 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16277 __hurd_sockfail): Likewise.
16278 (_hurd_fd_get): Always declare functions, and provide inline versions
16279 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16280 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16281 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16282 _hurd_port_set): Always declare functions, and provide inline versions
16283 only if __USE_EXTERN_INLINES and _LIBC are defined and
16284 IS_IN(libc).
16285 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16286 _hurd_critical_section_unlock): Likewise.
16287 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16288 * __hurd_threadvar_location): Likewise.
16289 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16290 _hurd_userlink_clear): Likewise.
16291 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16292 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16293 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16294 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16295 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16296 __spin_lock_locked): Likewise.
16297 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16298 __spin_lock_locked): Likewise.
16299 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16300 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16301 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16302 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16303 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16304 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16305 _POSIX_NO_TRUNC): Define to 0.
16306 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16307 check size against PTHREAD_STACK_MIN.
16308 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16309 IS_IN(libpthread)]: Include <sigsetops.h>.
16310 * mach/Makefile (user-interfaces): Add mach/gnumach.
16311 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16312 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16313 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16314 instead of invalid -1.
16315 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16316 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16317 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16318 <net/ppp_defs.h>.
16319
16320 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16321
16322 * hurd/fcntl-internal.h: New file.
16323
16324 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16325
16326 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16327
16328 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16329
16330 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16331
16332 [BZ #22701]
16333 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16334 Build only shared objects.
16335
16336 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16337
16338 * README: Update for hppa.
16339
16340 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16341
16342 * sysdeps/sparc/fpu/libm-test-ulps: Update
16343 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16344
16345 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16346
16347 Revert:
16348
16349 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16350
16351 [BZ #22563]
16352 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16353 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16354 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16355 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16356 to feature_1.
16357
16358 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16359
16360 [BZ #22563]
16361 * bits/types/__cancel_jmp_buf_tag.h: New file.
16362 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16363 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16364 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16365 * nptl/Makefile (headers): Add
16366 bits/types/__cancel_jmp_buf_tag.h.
16367 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16368 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16369 * sysdeps/nptl/pthread.h: Include
16370 <bits/types/__cancel_jmp_buf_tag.h>.
16371 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16372 __cancel_jmp_buf.
16373 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16374
16375 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16376
16377 [BZ #10871]
16378 * localedata/locales/uk_UA (mon): Renamed to...
16379 (alt_mon): This.
16380 (alt_digits): "0" removed and then renamed to...
16381 (mon): This.
16382 (date_fmt): Definition changed not to use the alternative
16383 digits hack.
16384
16385 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16386
16387 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16388 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16389 * elf/elf.h (EF_RISCV_RVC): New define.
16390 (EF_RISCV_FLOAT_ABI): Likewise.
16391 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16392 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16393 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16394 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16395 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16396 define.
16397 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16398
16399 2018-01-25 Andreas Schwab <schwab@suse.de>
16400
16401 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16402 single quotes.
16403 * sysdeps/gnu/configure: Regenerate.
16404 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16405 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16407 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16408 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16409 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16410 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16411 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16412
16413 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16414
16415 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16416 URL, and run autoconf, make it the default for now.
16417
16418 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16419
16420 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16421 soft-float ColdFire configuration.
16422
16423 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16424 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16425 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16426
16427 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16428 MicroBlaze file.
16429
16430 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16431 ....
16432 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16433 ... here.
16434 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16435 New file.
16436
16437 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16438 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16439 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16440 file.
16441
16442 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16443
16444 [BZ #22742]
16445 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16446 Rename to __reserved and add comment.
16447 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16448 Rename to __reserved.
16449
16450 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16451
16452 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16453 i686-gnu configurations.
16454 (Context.run_builds): Include mig, gnumach and hurd in components
16455 considered.
16456 (Context.checkout): Add mig, gnumach and hurd to components.
16457 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16458 hurd.
16459 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16460 (Config.build): Install gnumach headers, build mig and install
16461 hurd headers for 'gnu' OS.
16462 (Config.install_gnumach_headers): New function.
16463 (Config.install_hurd_headers): Likewise.
16464 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16465 when building for 'gnu' OS.
16466
16467 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16468
16469 * manual/tunables.texi (Hardware Capability Tunables): Fix
16470 spelling.
16471
16472 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16473
16474 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16475 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16476 (ALTMON_11, ALTMON_12): Improve documentation.
16477 * manual/time.texi (strftime): Likewise.
16478
16479 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16480
16481 [BZ #10871]
16482 * localedata/locales/pl_PL: Alternative month names added,
16483 primary month names are genitive now.
16484 * time/tst-strptime.c (day_tests): Actually use a genitive case
16485 of a month name in Polish language.
16486
16487 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16488
16489 [BZ #10871]
16490 * manual/locale.texi: Document ALTMON_1..12 constants for
16491 nl_langinfo. Specify when to use ALTMON instead of MON.
16492 * manual/time.texi (strftime, strptime): Document GNU extension
16493 permitting O modifier with %B and %b. Specify when to use
16494 %OB instead of %B.
16495
16496 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16497
16498 [BZ #10871]
16499 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16500 names, define them as the same as abbreviated month names explicitly.
16501 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16502 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16503 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16504 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16505 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16506 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16507 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16508 _NL_WABALTMON_12): New enum constants.
16509 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16510 wab_alt_mon, and ab_alt_mon_defined members.
16511 (time_output): Output ab_alt_mon and wab_alt_mon members.
16512 (time_read): Read them, initialize them as copies of abmon and wabmon
16513 respectively if they are missing, initialize ab_alt_mon_defined.
16514 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16515 * locale/programs/locfile-kw.h: Regenerate.
16516 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16517 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16518 and ru_RU.UTF-8.
16519 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16520 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16521 (__strftime_internal): Handle %Ob and %Oh formats.
16522 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16523 (__strptime_internal): Handle %Ob and %Oh formats.
16524 * time/tst-strptime.c (day_tests): Add more tests to parse different
16525 forms of month names including the new %Ob format specifier.
16526
16527 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16528
16529 [BZ #10871]
16530 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16531 define them as the same as primary full month names explicitly.
16532 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16533 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16534 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16535 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16536 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16537 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16538 _NL_WALTMON_12): New enum constants.
16539 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16540 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16541 macros.
16542 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16543 walt_mon, and alt_mon_defined members.
16544 (time_output): Output alt_mon and walt_mon members.
16545 (time_read): Read them, initialize them as copies of mon and wmon
16546 respectively if they are missing, initialize alt_mon_defined.
16547 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16548 * locale/programs/locfile-kw.h: Regenerate.
16549 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16550 * localedata/tst-langinfo.c (map): Add tests for the new constants
16551 ALTMON_1 .. ALTMON_12.
16552 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16553 and pl_PL.UTF-8.
16554 * time/strftime_l.c (f_altmonth): New macro.
16555 (__strftime_internal): Handle %OB format.
16556 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16557 (__strptime_internal): Handle %OB format.
16558 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16559 of month names including the new %OB format specifier.
16560
16561 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16562
16563 [BZ #22685]
16564 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16565 from ABORT_TRANSACTION.
16566 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16567 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16568 ABORT_TRANSACTION_IMPL): Likewise.
16569 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16570 Linux code, but remove the code that aborts transactions.
16571
16572 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16573
16574 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16575
16576 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16577
16578 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16579 in date: "2004-14-09" should be "2004-09-14".
16580 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16581 "2003-15-09" should be "2003-09-15".
16582
16583 2018-01-18 Arjun Shankar <arjun@redhat.com>
16584
16585 [BZ #22343]
16586 [BZ #22774]
16587 CVE-2018-6485
16588 CVE-2018-6551
16589 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16590 after padding.
16591 (_int_memalign): check for integer overflow before calling
16592 _int_malloc.
16593 * malloc/tst-malloc-too-large.c: New test.
16594 * malloc/Makefile: Add tst-malloc-too-large.
16595
16596 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16597
16598 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16599 in date: "2017-24-07" should be "2017-07-24".
16600 * localedata/locales/mai_IN: Likewise.
16601 * localedata/locales/mai_NP: Likewise.
16602
16603 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16604
16605 * po/ru.po: Update translations.
16606
16607 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16608
16609 [BZ #22719]
16610 * sysdeps/hppa/backtrace.c: New file.
16611
16612 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16613
16614 [BZ #22715]
16615 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16616 align La_x86_64_retval to VEC_SIZE.
16617
16618 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16619
16620 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16621 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16622
16623 2018-01-16 Florian Weimer <fweimer@redhat.com>
16624
16625 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16626 Move tst-thread-exit-clobber ...
16627 [$(CXX)] (tests-unsupported): ... to here.
16628
16629 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16630
16631 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16632 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16633 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16634 (_dl_aarch64_cap_flags): Update.
16635 (_DL_HWCAP_COUNT): Update.
16636
16637 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16638
16639 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16640 (_DL_HWCAP_LAST): Remove.
16641 (_DL_HWCAP_COUNT): Move to ...
16642 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16643 (_DL_HWCAP_COUNT): ... here.
16644
16645 2018-01-16 Florian Weimer <fweimer@redhat.com>
16646
16647 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16648 mode with GNU extensions.
16649
16650 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16651
16652 * elf/elf.h (NT_ARM_SVE): Define.
16653
16654 2018-01-15 Florian Weimer <fweimer@redhat.com>
16655
16656 [BZ #22636]
16657 * nptl/tst-minstack-throw.cc: New file.
16658 * nptl/Makefile (tests): Add tst-minstack-throw.
16659 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16660 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16661
16662 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16663
16664 * scripts/build-many-glibcs.py (Context.checkout): Default
16665 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16666 version to 1.1.0.
16667
16668 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16669
16670 [BZ #22707]
16671 * elf/elf.h (DF_1_STUB): Define.
16672 (DF_1_PIE): Define.
16673
16674 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16675
16676 [BZ #22697]
16677 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16678 Do not add 0.5 to integer or out-of-range arguments.
16679
16680 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16681
16682 * po/bg.po: Update translations.
16683 * po/cs.po: Likewise.
16684 * po/de.po: Likewise.
16685 * po/ko.po: Likewise.
16686 * po/pl.po: Likewise.
16687 * po/sv.po: Likewise.
16688 * po/uk.po: Likewise.
16689 * po/vi.po: Likewise.
16690
16691 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16692
16693 * aarch64/start.S (_start): Use __wrap_main.
16694 (__wrap_main): New local symbol.
16695
16696 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16697
16698 [BZ #22679]
16699 CVE-2018-1000001
16700 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16701 generic_getcwd if the path returned by getcwd syscall is not absolute.
16702 * io/tst-getcwd-abspath.c: New test.
16703 * io/Makefile (tests): Add tst-getcwd-abspath.
16704
16705 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16706
16707 * malloc/malloc.c (malloc_consolidate): Add size check.
16708
16709 2018-01-12 Florian Weimer <fweimer@redhat.com>
16710
16711 * support/write_message.c (write_message): Preserve errno.
16712 * support/check.c (print_failure): Likewise.
16713 * support/support_test_verify_impl.c (support_test_verify_impl):
16714 Likewise.
16715 * support/support_test_compare_failure.c
16716 (support_test_compare_failure): Likewise.
16717
16718 2018-01-12 Florian Weimer <fweimer@redhat.com>
16719
16720 [BZ #22701]
16721 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16722 Prevent installation of libnsl.so.
16723 (libnsl-inhibit-o): Do not build (or install) static libraries.
16724
16725 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16726
16727 [BZ #22657]
16728 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16729 before the day number which may produce a double space.
16730 (date_fmt): Likewise.
16731
16732 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16733
16734 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16735 instead of fegetenv.
16736
16737 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16738
16739 [BZ #22702]
16740 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16741 comment to say exceptions are discarded.
16742 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16743 __fegetenv.
16744 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16745 be enabled.
16746
16747 2018-01-11 Florian Weimer <fweimer@redhat.com>
16748
16749 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16750 and error message.
16751
16752 2018-01-11 Florian Weimer <fweimer@redhat.com>
16753
16754 [BZ #22636]
16755 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16756 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16757
16758 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16759
16760 [BZ #22693]
16761 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16762 negative arguments in test for NaN or infinity argument.
16763
16764 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16765
16766 * po/libc.pot: Regenerate.
16767
16768 2018-01-10 Florian Weimer <fweimer@redhat.com>
16769
16770 [BZ #22636]
16771 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16772 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16773
16774 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16775
16776 * hurd/hurd/fd.h: Include <fcntl.h>
16777 (__hurd_at_flags): New function.
16778 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16779 with call to __hurd_at_flags.
16780 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16781 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16782 __faccessat
16783 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16784 (__access_noerrno): Use __faccessat_common instead of access_common.
16785 (__access): Likewise.
16786 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16787 with a call to __faccessat.
16788 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16789 (__faccessat_common): ... this. Move implementation of __access into it when
16790 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16791 reauthenticate_cwdir_at helper to implement AT mechanism.
16792 (__faccessat_noerrno): New function, just calls __faccessat_common.
16793 (__faccessat): New function, just calls __faccessat_common.
16794 (faccessat): Define weak alias.
16795
16796 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16797
16798 [BZ #22691]
16799 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16800 (CFLAGS-s_fmaxmagl.c): New variable.
16801 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16802
16803 [BZ #22690]
16804 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16805 long int for arguments of possibly overflowing addition or
16806 subtraction.
16807 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16808
16809 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16810
16811 [BZ #22688]
16812 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16813 (CFLAGS-e_remainderl.c): New variable.
16814
16815 [BZ #22687]
16816 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16817 variable.
16818 (CFLAGS-s_cacoshl.c): Likewise.
16819 (CFLAGS-s_casinhl.c): Likewise.
16820 (CFLAGS-s_catanl.c): Likewise.
16821 (CFLAGS-s_catanhl.c): Likewise.
16822 (CFLAGS-s_cexpl.c): Likewise.
16823 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16824 (CFLAGS-s_csinhl.c): Likewise.
16825 (CFLAGS-s_clogl.c): Likewise.
16826 (CFLAGS-s_clog10l.c): Likewise.
16827 (CFLAGS-s_csinl.c): Likewise.
16828 (CFLAGS-s_csqrtl.c): Likewise.
16829
16830 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16831 2017-01-09 Svante Signell <svante.signell@gmail.com>
16832
16833 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
16834 (_hurd_exec_paths): New function.
16835 * hurd/hurd.h (_hurd_exec): Deprecate function.
16836 (_hurd_exec_paths): Declare function.
16837 * hurd/Versions: Export _hurd_exec_paths.
16838 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
16839 (__execve): Use __getcwd to build absolute path, and use
16840 _hurd_exec_paths instead of _hurd_exec.
16841 * sysdeps/mach/hurd/spawni.c: Likewise.
16842 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
16843 _hurd_exec.
16844
16845 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
16846
16847 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
16848 test instead of failing in case of ENOENT returned by posix_openpt.
16849
16850 2018-01-08 Florian Weimer <fweimer@redhat.com>
16851
16852 resolv: Support binary labels in test framework.
16853 * support/resolv_test.c (struct to_be_freed): Remove.
16854 (struct compressed_name): New.
16855 (allocate_compressed_name, ascii_tolower)
16856 (compare_compressed_name): New functions.
16857 (struct resolv_response_builder): Update type of
16858 compression_offsets for use with tsearch. Rempve to_be_freed.
16859 (response_push_pointer_to_free): Remove function.
16860 (resolv_response_add_name): Rewrite using struct compressed_name
16861 and tsearch instead of hsearch_r.
16862 (response_builder_allocate): Remove initialization of
16863 compression_offsets.
16864 (response_builder_free): Update for removal of to_be_freed. Use
16865 tdestroy instead of hdestroy_r.
16866 * resolv/Makefile (tests): Add tst-resolv-binary.
16867 (tst-resolv-binary): Link with -lresolv -lpthread.
16868
16869 2018-01-08 Florian Weimer <fweimer@redhat.com>
16870
16871 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
16872 time. Pass positive flag instead of negative flag to
16873 support_test_compare_failure.
16874 (support_test_compare_failure): Change negative parameter to
16875 positive.
16876 * support/support_test_compare_failure.c (report)
16877 (support_test_compare_failure): Likewise.
16878 * support/tst-test_compare.c (return_ssize_t, return_int): New.
16879 (do_test): Check int/size_t, ssize_t/size_t comparisons.
16880
16881 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
16882
16883 [BZ #22637]
16884 * nptl/descr.h (stackblock, stackblock_size): Update comments.
16885 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
16886 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
16887 stacksize.
16888 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
16889
16890 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
16891
16892 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16893 Add s_sincosf-sse2 and s_sincosf-fma.
16894 (CFLAGS-s_sincosf-fma.c): New.
16895 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
16896 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
16897 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
16898 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
16899 __sincosf is defined.
16900
16901 2018-01-08 Florian Weimer <fweimer@redhat.com>
16902
16903 * nptl/tst-thread-exit-clobber.cc: New file.
16904 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
16905 C++11 mode.
16906 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
16907 (tests): Add tst-thread-exit-clobber.
16908 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
16909
16910 2018-01-08 Florian Weimer <fweimer@redhat.com>
16911
16912 * support/check.h (support_static_assert): Define.
16913 (TEST_COMPARE): Use it.
16914
16915 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
16916
16917 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
16918 [!__RLIM_T_MATCHES_RLIM64_T]
16919 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
16920 __getrlimit64. Add libc_hidden_weak.
16921
16922 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
16923
16924 * elf/elf.h (R_RISCV_NONE): New define.
16925 (R_RISCV_32): Likewise.
16926 (R_RISCV_64): Likewise.
16927 (R_RISCV_RELATIVE): Likewise.
16928 (R_RISCV_COPY): Likewise.
16929 (R_RISCV_JUMP_SLOT): Likewise.
16930 (R_RISCV_TLS_DTPMOD32): Likewise.
16931 (R_RISCV_TLS_DTPMOD64): Likewise.
16932 (R_RISCV_TLS_DTPREL32): Likewise.
16933 (R_RISCV_TLS_DTPREL64): Likewise.
16934 (R_RISCV_TLS_TPREL32): Likewise.
16935 (R_RISCV_TLS_TPREL64): Likewise.
16936 * Makerules (make-link-multidir): Make directories before linking into
16937 them.
16938 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
16939 define.
16940 (VDSO_HASH_LINUX_4_15): Likewise.
16941 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
16942 in subdirectories of lib.
16943 * nptl/Makefile (/librt.so): Always depend on
16944 "$(shared-thread-library)".
16945
16946 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16947
16948 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
16949 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
16950 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
16951 (___tls_get_addr).
16952 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
16953 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
16954 "-O2 -march=i686".
16955 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
16956 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
16957 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
16958 * sysdeps/gnu/glob-lstat-compat.c: New file.
16959 * sysdeps/gnu/glob64-lstat-compat.c: New file.
16960 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
16961
16962 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16963
16964 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
16965 Reserve 16 chars to reloc_addr before calling _itoa_word.
16966
16967 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
16968
16969 [BZ #22678]
16970 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
16971 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
16972
16973 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
16974 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
16975
16976 * resource/tst-getrlimit.c: Add copyright header.
16977
16978 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
16979 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16980
16981 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
16982 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
16983 Define __GI_getrlimit64 as weak alias of __getrlimit64.
16984 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
16985 instead.
16986 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
16987 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
16988 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
16989 RLIM64_INFINITY): Fix values to match the kernel ones.
16990 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
16991 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
16992 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
16993 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
16994 getrlimit64@@GLIBC_2_27.
16995 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
16996 and setrlimit64.
16997 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
16998 getrlimit, setrlimit, getrlimit64 and setrlimit64.
16999 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17000 setrlimit, getrlimit64 and setrlimit64.
17001
17002 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17003
17004 [BZ #22648]
17005 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17006 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17007
17008 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17009
17010 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17011 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17012 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17013
17014 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17015
17016 [BZ #15479]
17017 [BZ #22666]
17018 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17019 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17020
17021 [BZ #15479]
17022 [BZ #22665]
17023 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17024 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17025 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17026 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17027
17028 2018-01-04 Florian Weimer <fweimer@redhat.com>
17029
17030 [BZ #22667]
17031 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17032 Align the stack before calling exit.
17033 * stdlib/tst-makecontext-align.c: New file.
17034 * stdlib/Makefile (tests): Add tst-makecontext-align.
17035
17036 2018-01-04 Florian Weimer <fweimer@redhat.com>
17037
17038 Add support for calling dlvsym from libc.so.
17039 * include/dlfcn.h (__libc_dlvsym): Declare.
17040 * elf/Makefile (tests-static-internal): Add
17041 tst-libc_dlvsym-static.
17042 (tests-internal): Add tst-libc_dlvsym.
17043 (modules-names): Add tst-libc_dlvsym-dso.
17044 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17045 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17046 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17047 object tst-libc_dlvsym-dso.so needs to be built before running
17048 these tests.
17049 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17050 * elf/Versions: Export __libc_dlvsym.
17051 * elf/dl-libc.c (struct do_dlvsym_args): New.
17052 (do_dlvsym, __libc_dlvsym): New functions.
17053 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17054 (_dl_open_hook2): New variable.
17055 (__libc_register_dl_open_hook): Set it.
17056 * elf/tst-libc_dlvsym-dso.c: New file.
17057 * elf/tst-libc_dlvsym-static.c: Likewise.
17058 * elf/tst-libc_dlvsym.c: Likewise.
17059 * elf/tst-libc_dlvsym.h: Likewise.
17060
17061 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17062
17063 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17064 include <sys/mount.h>.
17065
17066 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17067
17068 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17069 Add __NO_MATH_ERRNO__ check.
17070
17071 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17072
17073 * sysdeps/mips/mips32/libm-test-ulps: Update.
17074 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17075
17076 2018-01-02 Florian Weimer <fweimer@redhat.com>
17077
17078 * misc/tst-pselect.c: Add copyright header.
17079
17080 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17081
17082 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17083 comment.
17084 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17085 comment.
17086 (settrlimit): Rename into setrlimit.
17087 (__sttrlimit): Rename into __setrlimit.
17088
17089 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17090 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17091 never defined in that case.
17092
17093 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17094
17095 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17096
17097 * sysdeps/arm/libm-test-ulps: Update.
17098
17099 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17100 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17101
17102 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17103
17104 * NEWS: Add cosf and sincosf to list of optimized functions.
17105
17106 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17107
17108 [BZ #22660]
17109 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17110 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17111 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17112 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17113
17114 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17115
17116 [BZ #22433]
17117 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17118
17119 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17120 making a copy of it.
17121
17122 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17123
17124 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17125 trailing whitespace removed.
17126 * scripts/config.guess: Update to version 2018-01-01.
17127 * scripts/config.sub: Update to version 2018-01-01.
17128 * scripts/move-if-change: Update from gnulib.
17129
17130 * NEWS: Update copyright dates.
17131 * catgets/gencat.c (print_version): Likewise.
17132 * csu/version.c (banner): Likewise.
17133 * debug/catchsegv.sh: Likewise.
17134 * debug/pcprofiledump.c (print_version): Likewise.
17135 * debug/xtrace.sh (do_version): Likewise.
17136 * elf/ldconfig.c (print_version): Likewise.
17137 * elf/ldd.bash.in: Likewise.
17138 * elf/pldd.c (print_version): Likewise.
17139 * elf/sotruss.sh: Likewise.
17140 * elf/sprof.c (print_version): Likewise.
17141 * iconv/iconv_prog.c (print_version): Likewise.
17142 * iconv/iconvconfig.c (print_version): Likewise.
17143 * locale/programs/locale.c (print_version): Likewise.
17144 * locale/programs/localedef.c (print_version): Likewise.
17145 * login/programs/pt_chown.c (print_version): Likewise.
17146 * malloc/memusage.sh (do_version): Likewise.
17147 * malloc/memusagestat.c (print_version): Likewise.
17148 * malloc/mtrace.pl: Likewise.
17149 * manual/libc.texinfo: Likewise.
17150 * nptl/version.c (banner): Likewise.
17151 * nscd/nscd.c (print_version): Likewise.
17152 * nss/getent.c (print_version): Likewise.
17153 * nss/makedb.c (print_version): Likewise.
17154 * posix/getconf.c (main): Likewise.
17155 * scripts/test-installation.pl: Likewise.
17156 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17157
17158 * All files with FSF copyright notices: Update copyright dates
17159 using scripts/update-copyrights.
17160 * locale/programs/charmap-kw.h: Regenerated.
17161 * locale/programs/locfile-kw.h: Likewise.
17162
17163 2017-12-31 Zack Weinberg <zackw@panix.com>
17164
17165 * libio/bits/libio-ldbl.h: Correct check for improper
17166 inclusion. Add own multiple include guard.
17167
17168 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17169 Dmitry V. Levin <ldv@altlinux.org>
17170
17171 [BZ #22625]
17172 CVE-2017-16997
17173 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17174 string token expansion. Check for NULL pointer or empty string possibly
17175 returned by expand_dynamic_string_token.
17176 (decompose_rpath): Check for empty path after dynamic string
17177 token expansion.
17178
17179 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17180
17181 [BZ #22433]
17182 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17183
17184 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17185 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17186 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17187 and PTRACE_SYSCALL.
17188 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17189 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17190 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17191 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17192 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17193 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17194
17195 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17196 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17197 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17198 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17199 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17200 bits/ptrace-shared.h.
17201 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17202 <bits/ptrace-shared.h>.
17203 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17204 __ptrace_peeksiginfo_flags, ptrace): Remove.
17205 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17206 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17207 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17208 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17209 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17210
17211 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17212
17213 [BZ #17804]
17214 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17215 end of the loop. Improve comments.
17216
17217 2017-12-29 Zack Weinberg <zackw@panix.com>
17218
17219 [BZ #22615]
17220 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17221 might be set on success.
17222
17223 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17224
17225 [BZ #22611]
17226 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17227 is unchanged on success.
17228
17229 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17230
17231 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17232 updated.
17233 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17234 expand_dynamic_string_token): Likewise.
17235 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17236 is_path argument.
17237
17238 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17239 contains ':'.
17240
17241 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17242 is set and name contains ':', and all code depending on these checks.
17243
17244 2017-12-24 Zack Weinberg <zackw@panix.com>
17245
17246 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17247 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17248 respectively.
17249 * libio/libio.h: Rename the original version of this file to
17250 libio/bits/libio.h. Error out if not included by stdio.h or the
17251 stub libio.h.
17252 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17253 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17254 if not included by bits/libio.h or the stub _G_config.h.
17255 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17256 sysdeps/unix/sysv/linux/bits. Error out if not included by
17257 bits/libio.h or the stub _G_config.h.
17258 * libio/stdio.h: Include bits/libio.h, not libio.h.
17259 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17260 well as libio.h and _G_config.h.
17261
17262 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17263 * libio/strfile.h, stdio-common/vfscanf.c
17264 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17265 Include stdio.h, not _G_config.h nor libio.h.
17266 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17267 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17268
17269 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17270
17271 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17272
17273 [BZ #22347]
17274 * stdlib/getrandom.c (getrandom): Fix comment.
17275 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17276
17277 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17278
17279 [BZ #21161]
17280 * manual/arith.texi (strtoul): Fix a typo.
17281
17282 [BZ #22596]
17283 * manual/arith.texi (finite): Fix the description of the return
17284 value.
17285
17286 2017-12-22 Eric Blake <ebb9@byu.net>
17287
17288 Avoid gcc warnings on cygwin
17289 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17290 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17291 Avoid unused variable.
17292
17293 2017-12-22 Florian Weimer <fweimer@redhat.com>
17294
17295 * io/Makefile (routines): Add copy_file_range.
17296 (tests): Add tst-copy_file_range.
17297 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17298 * io/Versions (GLIBC_2.27): Export copy_file_range.
17299 * io/copy_file_range-compat.c: New file.
17300 * io/copy_file_range.c: Likewise.
17301 * io/tst-copy_file_range-compat.c: Likewise.
17302 * io/tst-copy_file_range.c: Likewise.
17303 * manual/llio.texi (Copying File Data): New section.
17304 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17305 * support/Makefile (libsupport-routines): Add support-xfstat,
17306 xftruncate, xlseek.
17307 * support/support-xfstat.c: New file.
17308 * support/xftruncate.c: Likewise.
17309 * support/xlseek.c: Likewise.
17310 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17311 * sysdeps/unix/sysv/linux/**.abilist: Update.
17312 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17313
17314 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17315
17316 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17317 disable-multi-arch variant to aarch64-linux-gnu.
17318
17319 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17320
17321 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17322 trailing whitespace removed.
17323 * scripts/config.guess: Update to version 2017-12-17.
17324 * scripts/config.sub: Update to version 2017-11-23.
17325 * scripts/install-sh: Update to version 2017-09-23.17.
17326 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17327
17328 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17329
17330 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17331 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17332 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17333 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17334 * sysdeps/tile/crtn.S: Likewise.
17335 * sysdeps/tile/dl-start.S (_start): Likewise.
17336 * sysdeps/tile/dl-trampoline.S: Likewise.
17337 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17338 * sysdeps/tile/start.S (_start): Likewise.
17339 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17340 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17341 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17342 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17343 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17344 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17345 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17346
17347 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17348 comment.
17349 * sysdeps/tile/preconfigure: Remove tilegx folder.
17350 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17351 * sysdeps/tile/Implies: ... here.
17352 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17353 * sysdeps/tile/Makefile: ... here.
17354 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17355 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17356 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17357 * sysdeps/tile/bits/wordsize.h: ... here.
17358 * sysdeps/tile/tilegx/*: Move to ...
17359 * sysdeps/tile/*: ... here.
17360 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17361 * sysdeps/tile/tilegx32/Implies: ... here.
17362 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17363 * sysdeps/tile/tilegx64/Implies: ... here.
17364 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17365 to ...
17366 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17367 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17368 * sysdeps/unix/sysv/linux/tile/*: ... here.
17369 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17370 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17371 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17372 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17373
17374 * README: Remove tilepro-*-linux-gnu from supported architecture.
17375 * scripts/build-many-glibcs.py: Likewise.
17376 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17377 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17378 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17379 elf_machine_matches_host, elf_machine_dynamic,
17380 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17381 howto, elf_machine_rela): Likewise.
17382 * sysdeps/tile/dl-start.S (_start): Likewise.
17383 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17384 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17385 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17386 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17387 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17388 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17389 Likewise.
17390 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17391 * sysdeps/tile/preconfigure: Likewise.
17392 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17393 POINTER_CHK_GUARD): Likewise.
17394 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17395 * sysdeps/tile/start.S (_start): Likewise.
17396 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17397 Likewise.
17398 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17399 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17400 CMOVNEZ): Remove.
17401 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17402 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17403 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17404 Likewise.
17405 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17406 * sysdeps/tile/tilepro/Implies: Remove file.
17407 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17408 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17409 * sysdeps/tile/tilepro/memchr.c: Likewise.
17410 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17411 * sysdeps/tile/tilepro/memset.c: Likewise.
17412 * sysdeps/tile/tilepro/memusage.h: Likewise.
17413 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17414 * sysdeps/tile/tilepro/strchr.c: Likewise.
17415 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17416 * sysdeps/tile/tilepro/strlen.c: Likewise.
17417 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17418 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17419 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17420 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17421 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17422 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17423 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17424 Likewise.
17425 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17426 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17427 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17428 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17429 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17430 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17431 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17432 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17433 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17434 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17435 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17436 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17437 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17438 tilepro mention in comment.
17439
17440 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17441 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17442 * nptl/pthread_join_common.c: New file: common function used on
17443 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17444 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17445 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17446 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17447 (cleanup): Move definition to pthread_join_common.c.
17448 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17449 Remove superflous checks.
17450 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17451 Likewise.
17452
17453 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17454
17455 * sysdeps/aarch64/libm-test-ulps: Update.
17456
17457 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17458
17459 * sysdeps/aarch64/memset.S (MEMSET): Define.
17460
17461 2017-12-20 Florian Weimer <fweimer@redhat.com>
17462
17463 [BZ #22635]
17464 nptl: Provide full implementation of pthread_self in libc.so.
17465 * nptl/Makefile (routines): Add pthread_self.
17466 (libpthread-routines): Replace pthread_self with
17467 compat-pthread_self.
17468 * nptl/forward.c (pthread_self): Remove.
17469 * nptl/nptl-init.c (pthread_functions): Do not initialize
17470 ptr_pthread_self.
17471 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17472 * nptl/compat-pthread_self.c: New file.
17473 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17474 Remove ptr_pthread_self.
17475
17476 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17477
17478 * posix/regcomp.c: Fix spelling in comments.
17479 * posix/regex.h: Likewise.
17480 * posix/regex_internal.c: Likewise.
17481 * posix/regexec.c: Likewise.
17482
17483 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17484
17485 [BZ #22377]
17486 * math/Makefile [C++] (tests): Add test for iseqsig.
17487 * math/math.h [C++] (iseqsig): New implementation, which does
17488 not rely on __MATH_TG/__builtin_types_compatible_p.
17489 * math/test-math-iseqsig.cc: New file.
17490 * sysdeps/powerpc/powerpc64le/Makefile
17491 (CFLAGS-test-math-iseqsig.cc): New variable.
17492
17493 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17494
17495 * elf/dl-load.c (is_trusted_path): Remove.
17496 (fillin_rpath): Remove check_trusted argument and its use,
17497 all callers changed.
17498
17499 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17500
17501 [BZ #22630]
17502 * Makeconfig (link-pie-before-libc): Replace -pie with
17503 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17504 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17505 (tst-dlopen-aout-no-pie): New.
17506 (LDFLAGS-tst-prelink): Removed.
17507 (tst-prelink-no-pie): New.
17508 (LDFLAGS-tst-main1): Removed.
17509 (tst-main1-no-pie): New.
17510 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17511 (tst-gmon-no-pie): New.
17512
17513 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17514
17515 * manual/install.texi: Document that --enable-static-pie
17516 implies PIE.
17517 * INSTALL: Regenerated.
17518
17519 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17520
17521 [BZ #21309]
17522 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17523 unsigned.
17524
17525 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17526
17527 Revert:
17528
17529 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17530
17531 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17532
17533 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17534
17535 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17536 <errno.h>. Include "eexp.tbl".
17537 (half): New constant.
17538 (one): Likewise.
17539 (__ieee754_exp): Rewrite.
17540 (__slowexp): Remove prototype.
17541 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17542 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17543 * sysdeps/i386/fpu/slowexp.c: Likewise.
17544 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17545 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17546 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17547 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17548 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17549 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17550 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17551 comment.
17552 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17553 (CPPFLAGS-slowexp.c): Remove variable.
17554 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17555 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17556 (CFLAGS-slowexp-fma.c): Remove variable.
17557 (CFLAGS-slowexp-fma4.c): Likewise.
17558 (CFLAGS-slowexp-avx.c): Likewise.
17559 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17560 define as macro.
17561 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17562 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17563 * math/Makefile (type-double-routines): Remove slowexp.
17564 * manual/probes.texi (slowexp_p6): Remove.
17565 (slowexp_p32): Likewise.
17566
17567 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17568
17569 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17570 arithmetic.
17571
17572 * lib/glob.c (glob): Do not pass NULL to mempcpy.
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 James Clarke <jrtc27@jrtc27.com>
17614
17615 [BZ #22603]
17616 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17617 addition.
17618
17619 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17620
17621 [BZ #22605]
17622 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17623 code.
17624
17625 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17626
17627 [BZ #22563]
17628 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17629 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17630 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17631 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17632 to feature_1.
17633
17634 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17635
17636 [BZ #22563]
17637 * bits/types/__cancel_jmp_buf_tag.h: New file.
17638 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17639 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17640 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17641 * nptl/Makefile (headers): Add
17642 bits/types/__cancel_jmp_buf_tag.h.
17643 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17644 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17645 * sysdeps/nptl/pthread.h: Include
17646 <bits/types/__cancel_jmp_buf_tag.h>.
17647 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17648 __cancel_jmp_buf.
17649 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17650
17651 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17652
17653 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17654 --enable-static-pie variants to x86_64, x32 and i686.
17655
17656 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17657
17658 [BZ #22631]
17659 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17660 argument for attrubutes. All callers changed.
17661 (__inline_mathop1): Likewise. All callers changed.
17662 (__inline_mathop): Likewise. All callers changed.
17663 [__USE_MISC] (scalbn): Use __inline_forward instead of
17664 __inline_forward_c.
17665 [__USE_ISOC99] (scalbln): Likewise.
17666 [__USE_ISOC99] (nearbyint): Likewise.
17667 [__USE_ISOC99] (lrint): Likewise.
17668 [__USE_MISC] (scalbnf): Likewise.
17669 [__USE_ISOC99] (scalblnf): Likewise.
17670 [__USE_ISOC99] (nearbyintf): Likewise.
17671 [__USE_ISOC99] (lrintf): Likewise.
17672 [__USE_MISC] (scalbnl): Likewise.
17673 [__USE_ISOC99] (scalblnl): Likewise.
17674 [__USE_ISOC99] (nearbyintl): Likewise.
17675 [__USE_ISOC99] (lrintl): Likewise.
17676 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17677 __inline_mathop and __m81_defun changed.
17678
17679 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17680 CPU or FPU for ARM hard-float configurations.
17681
17682 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17683
17684 * nptl/tst-attr3.c: Include <libc-diag.h>.
17685 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17686
17687 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17688
17689 * string/tester.c (test_strncat): Also disable -Warray-bounds
17690 warnings for two tests.
17691
17692 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17693
17694 [BZ #22614]
17695 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17696 $(cc-pie-default) == yes.
17697 * config.make.in (cc-pie-default): New.
17698 * configure.ac (libc_cv_pie_default): Renamed to ...
17699 (libc_cv_cc_pie_default): This.
17700 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17701 * configure: Regenerated.
17702
17703 2017-12-18 Florian Weimer <fweimer@redhat.com>
17704
17705 [BZ #20204]
17706 ld.so: Harden dl-libc/libdl hooks.
17707 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17708 (rtld_active): New function.
17709 * dlfcn/dladdr.c (__dladdr): Call it.
17710 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17711 * dlfcn/dlclose.c (__dlcose): Likewise.
17712 * dlfcn/dlerror.c (__dlerror): Likewise.
17713 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17714 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17715 * dlfcn/dlopen.c (__dlopen): Likewise.
17716 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17717 * dlfcn/dlsym.c (__dlsym): Likewise.
17718 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17719 * libio/vtables.c (_IO_vtable_check): Likewise.
17720 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17721 (__libc_dlclose): Likewise.
17722 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17723 assignment.
17724
17725 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17726
17727 [BZ #22446]
17728 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17729 buffers for readlink input and output.
17730
17731 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17732
17733 [BZ #22624]
17734 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17735 inhibit_stack_protector.
17736
17737 [BZ #22624]
17738 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17739 inhibit_stack_protector.
17740
17741 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17742
17743 [BZ #22627]
17744 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17745 code and invocation.
17746
17747 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17748
17749 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17750
17751 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17752
17753 [BZ #22505]
17754 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17755
17756 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17757
17758 * sysdeps/s390/fpu/libm-test-ulps: Update.
17759
17760 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17761
17762 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17763
17764 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17765
17766 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17767 constants to s_sincosf.h file.
17768 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17769 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17770 implementation.
17771 * sysdeps/ieee754/flt-32/s_sincosf.h:
17772 New file.
17773
17774 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17775
17776 [BZ #14681]
17777 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17778 before mtrace.
17779
17780 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17781
17782 [BZ #19574]
17783 * INSTALL: Regenerated.
17784 * Makeconfig (real-static-start-installed-name): New.
17785 (pic-default): Updated for --enable-static-pie.
17786 (pie-default): New for --enable-static-pie.
17787 (default-pie-ldflag): Likewise.
17788 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17789 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17790 Replace $(static-start-installed-name) with
17791 $(real-static-start-installed-name).
17792 (+prectorT): Updated for --enable-static-pie.
17793 (+postctorT): Likewise.
17794 (CFLAGS-.o): Add $(pie-default).
17795 (CFLAGS-.op): Likewise.
17796 * NEWS: Mention --enable-static-pie.
17797 * config.h.in (ENABLE_STATIC_PIE): New.
17798 * configure.ac (--enable-static-pie): New configure option.
17799 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17800 (have-static-pie): Likewise.
17801 Enable static PIE if linker supports --no-dynamic-linker.
17802 (ENABLE_STATIC_PIE): New AC_DEFINE.
17803 (enable-static-pie): New LIBC_CONFIG_VAR.
17804 * configure: Regenerated.
17805 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17806 gr$(start-installed-name) for --enable-static-pie.
17807 (extra-objs): Likewise.
17808 (install-lib): Likewise.
17809 (extra-objs): Add static-reloc.o and static-reloc.os
17810 ($(objpfx)$(start-installed-name)): Also depend on
17811 $(objpfx)static-reloc.o.
17812 ($(objpfx)r$(start-installed-name)): New.
17813 ($(objpfx)g$(start-installed-name)): Also depend on
17814 $(objpfx)static-reloc.os.
17815 ($(objpfx)gr$(start-installed-name)): New.
17816 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17817 in libc.a.
17818 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17819 initimage.
17820 * csu/static-reloc.c: New file.
17821 * elf/Makefile (routines): Add dl-reloc-static-pie.
17822 (elide-routines.os): Likewise.
17823 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17824 (tst-tls1-static-non-pie-no-pie): New.
17825 * elf/dl-reloc-static-pie.c: New file.
17826 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17827 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17828 STATIC_PIE_BOOTSTRAP.
17829 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17830 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17831 (tests-static): Likewise.
17832 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17833 (tst-gmon-static-no-pie): New.
17834 (CFLAGS-tst-gmon-static-pie.c): Likewise.
17835 (CRT-tst-gmon-static-pie): Likewise.
17836 (tst-gmon-static-pie-ENV): Likewise.
17837 (tests-special): Likewise.
17838 ($(objpfx)tst-gmon-static-pie.out): Likewise.
17839 (clean-tst-gmon-static-pie-data): Likewise.
17840 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
17841 * gmon/tst-gmon-static-pie.c: New file.
17842 * manual/install.texi: Document --enable-static-pie.
17843 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
17844 (_dl_get_dl_main_map): Likewise.
17845 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
17846 * sysdeps/x86_64/configure.ac: Likewise.
17847 * sysdeps/i386/configure: Regenerated.
17848 * sysdeps/x86_64/configure: Likewise.
17849 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
17850 (ASFLAGS-.op): Likewise.
17851
17852 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17853
17854 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
17855 * posix/tst-mmap-offset.c (fname): Use /tmp.
17856 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
17857
17858 2017-12-15 Steve Ellcey <sellcey@cavium.com>
17859
17860 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
17861
17862 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
17863
17864 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
17865 errno.
17866
17867 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17868
17869 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
17870 --with-float=hard for arm-linux-gnueabihf configurations.
17871
17872 [BZ #14121]
17873 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
17874 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
17875 ($(mo-installed)): Use $(objpfx)%.mo.
17876 (realclean): Remove rule.
17877
17878 * po/Makefile (linguas): Remove rule and dependencies.
17879 (linguas.mo): Likewise.
17880 (.PHONY): Do not depend on linguas and linguas.mo.
17881 (podir): Remove variable.
17882 (pofiles): Likewise.
17883 [$(pofiles)] (%.po): Remove rule.
17884
17885 * sysdeps/sparc/sparc32/Makefile
17886 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
17887 start-of-line whitespace in argument of echo.
17888 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
17889 with whitespace. Generate __wrap_.udiv alias.
17890 * sysdeps/sparc/sparc32/rem.S: Regenerated.
17891 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
17892 * sysdeps/sparc/sparc32/udiv.S: Likewise.
17893 * sysdeps/sparc/sparc32/urem.S: Likewise.
17894
17895 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17896
17897 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
17898 for aligned inputs.
17899
17900 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
17901
17902 * benchtests/bench-strcmp.c: Print output in JSON format.
17903
17904 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
17905
17906 2017-12-14 Florian Weimer <fweimer@redhat.com>
17907
17908 [BZ #22607]
17909 CVE-2017-1000409
17910 * elf/dl-load.c (_dl_init_paths): Compute number of components in
17911 the expanded path string.
17912
17913 2017-12-14 Florian Weimer <fweimer@redhat.com>
17914
17915 [BZ #22606]
17916 CVE-2017-1000408
17917 * elf/dl-load.c (system_dirs): Update comment.
17918 (nsystem_dirs_len): Use array_length.
17919 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
17920
17921 2017-12-14 Florian Weimer <fweimer@redhat.com>
17922
17923 Simplify compiling most of support/ outside of glibc.
17924 * support/check_addrinfo.c: Include <string.h>.
17925 * support/check_dns_packet.c: Likewise.
17926 * support/check_hostent.c: Likewise.
17927 * support/support_can_chroot.c: Include <support/xunistd.h>.
17928 * support/support_format_addrinfo.c: Include <stdlib.h>
17929 * support/support_format_dns_packet.c: Include <stdbool.h>.
17930 * support/support_format_hostent.c: Include <stdlib.h>.
17931 * support/support_format_netent.c: Likewise.
17932 * support/support_write_string.c: Include <support/xunistd.h>.
17933 * support/xdlfcn.c: Include <stddef.h>.
17934
17935 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
17936
17937 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
17938
17939 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17940 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17941
17942 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17943 (sysdeps_routines): Add memset-niagara7.
17944 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
17945 Likewise.
17946 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
17947 file.
17948 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
17949 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
17950 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
17951 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
17952 Add niagara7 option.
17953 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
17954 memset.
17955
17956 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17957 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
17958 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
17959 Likewise.
17960 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
17961 New file.
17962 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
17963 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
17964 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
17965 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
17966 and __memmove_niagara7.
17967 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
17968 Add niagara7 option.
17969 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
17970 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
17971 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
17972 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
17973 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
17974
17975 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
17976
17977 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
17978 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
17979 * sysdeps/sparc/sparc64/memmove.S: Likewise.
17980 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
17981
17982 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
17983 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
17984 _dl_sparc_cap_flags array.
17985 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
17986
17987 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
17988
17989 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
17990 time whenever possible.
17991
17992 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17993
17994 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
17995 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
17996
17997 2017-12-12 Joseph Myers <joseph@codesourcery.com>
17998
17999 * soft-fp/fmadf4.c: Move to ....
18000 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18001 * soft-fp/fmasf4.c: Move to ....
18002 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18003 * soft-fp/fmatf4.c: Move to ....
18004 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18005 * sysdeps/ieee754/soft-fp/Makefile: New file.
18006 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18007 * sysdeps/arm/preconfigure: Regenerated.
18008 * sysdeps/arm/nofpu/Implies: New file.
18009 * sysdeps/arm/s_fma.c: Remove file.
18010 * sysdeps/arm/s_fmaf.c: Likewise.
18011 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18012 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18013 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18014 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18015 * sysdeps/microblaze/s_fma.c: Remove file.
18016 * sysdeps/microblaze/s_fmaf.c: Likewise.
18017 * sysdeps/mips/mips32/nofpu/Implies: New file.
18018 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18019 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18020 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18021 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18022 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18023 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18024 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18025 implementation.
18026 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18027 * sysdeps/nios2/s_fma.c: Remove file.
18028 * sysdeps/nios2/s_fmaf.c: Likewise.
18029 * sysdeps/sh/nofpu/Implies: New file.
18030 * sysdeps/sh/s_fma.c: Remove file.
18031 * sysdeps/sh/s_fmaf.c: Likewise.
18032 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18033 * sysdeps/tile/s_fma.c: Remove file.
18034 * sysdeps/tile/s_fmaf.c: Likewise.
18035
18036 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18037
18038 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18039 Add s_cosf-sse2 and s_cosf-fma.
18040 (CFLAGS-s_cosf-fma.c): New.
18041 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18042 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18043 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18044
18045 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18046
18047 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18048
18049 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18050
18051 * libio/Makefile (tests): Add tst-bz22415.
18052 (tst-bz22415-ENV): New rule.
18053 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18054 (tests-special): Add tst-bz22415-mem.out.
18055 ($(objpfx)tst-bz22415-mem.out): New rule.
18056 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18057 in case of a successful seek operation.
18058 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18059 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18060 buffer is required.
18061 * libio/tst-bz22415.c: New test.
18062
18063 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18064
18065 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18066
18067 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18068 __IPC_64 to 0 to avoid IPC_64 being set.
18069
18070 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18071
18072 [BZ #22593]
18073 * math/bits/mathcalls.h (nextafter): Remove const.
18074 (nexttoward): Likewise.
18075
18076 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18077
18078 * configure.ac (--with-fp): Remove configure option.
18079 (with_fp_cond): New variable.
18080 (libc_cv_with_fp): New configure test. Use this variable instead
18081 of with_fp.
18082 * configure: Regenerated.
18083 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18084 * manual/install.texi (Configuring and compiling): Remove
18085 --without-fp.
18086 * INSTALL: Regenerated.
18087 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18088 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18089 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18090 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18091 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18092 use --without-fp to configure glibc.
18093
18094 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18095
18096 * manual/locale.texi (nl_langinfo): Fix a typo.
18097
18098 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18099
18100 [BZ #22588]
18101 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18102
18103 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18104
18105 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18106 (CFLAGS-argp-parse.c): Likewise.
18107 (CFLAGS-argp-fmtstream.c): Likewise.
18108 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18109 (CPPFLAGS-sha512-crypt.c): Likewise.
18110 (CPPFLAGS-md5-crypt.c): Likewise.
18111 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18112 (CFLAGS-stack_chk_fail_local.c): Likewise.
18113 (CFLAGS-backtrace.c): Likewise.
18114 (CFLAGS-sprintf_chk.c): Likewise.
18115 (CFLAGS-snprintf_chk.c): Likewise.
18116 (CFLAGS-vsprintf_chk.c): Likewise.
18117 (CFLAGS-vsnprintf_chk.c): Likewise.
18118 (CFLAGS-asprintf_chk.c): Likewise.
18119 (CFLAGS-vasprintf_chk.c): Likewise.
18120 (CFLAGS-obprintf_chk.c): Likewise.
18121 (CFLAGS-dprintf_chk.c): Likewise.
18122 (CFLAGS-vdprintf_chk.c): Likewise.
18123 (CFLAGS-printf_chk.c): Likewise.
18124 (CFLAGS-fprintf_chk.c): Likewise.
18125 (CFLAGS-vprintf_chk.c): Likewise.
18126 (CFLAGS-vfprintf_chk.c): Likewise.
18127 (CFLAGS-gets_chk.c): Likewise.
18128 (CFLAGS-fgets_chk.c): Likewise.
18129 (CFLAGS-fgets_u_chk.c): Likewise.
18130 (CFLAGS-fread_chk.c): Likewise.
18131 (CFLAGS-fread_u_chk.c): Likewise.
18132 (CFLAGS-swprintf_chk.c): Likewise.
18133 (CFLAGS-vswprintf_chk.c): Likewise.
18134 (CFLAGS-wprintf_chk.c): Likewise.
18135 (CFLAGS-fwprintf_chk.c): Likewise.
18136 (CFLAGS-vwprintf_chk.c): Likewise.
18137 (CFLAGS-vfwprintf_chk.c): Likewise.
18138 (CFLAGS-fgetws_chk.c): Likewise.
18139 (CFLAGS-fgetws_u_chk.c): Likewise.
18140 (CFLAGS-read_chk.c): Likewise.
18141 (CFLAGS-pread_chk.c): Likewise.
18142 (CFLAGS-pread64_chk.c): Likewise.
18143 (CFLAGS-recv_chk.c): Likewise.
18144 (CFLAGS-recvfrom_chk.c): Likewise.
18145 (CFLAGS-tst-longjmp_chk.c): Likewise.
18146 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18147 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18148 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18149 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18150 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18151 (CFLAGS-tst-chk1.c): Likewise.
18152 (CFLAGS-tst-chk2.c): Likewise.
18153 (CFLAGS-tst-chk3.c): Likewise.
18154 (CFLAGS-tst-chk4.cc): Likewise.
18155 (CFLAGS-tst-chk5.cc): Likewise.
18156 (CFLAGS-tst-chk6.cc): Likewise.
18157 (CFLAGS-tst-lfschk1.c): Likewise.
18158 (CFLAGS-tst-lfschk2.c): Likewise.
18159 (CFLAGS-tst-lfschk3.c): Likewise.
18160 (CFLAGS-tst-lfschk4.cc): Likewise.
18161 (CFLAGS-tst-lfschk5.cc): Likewise.
18162 (CFLAGS-tst-lfschk6.cc): Likewise.
18163 (CFLAGS-tst-ssp-1.c): Likewise.
18164 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18165 (CFLAGS-scandir64.c): Likewise.
18166 (CFLAGS-scandir-tail.c): Likewise.
18167 (CFLAGS-scandir64-tail.c): Likewise.
18168 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18169 (CFLAGS-dl-tunables.c): Likewise.
18170 (CFLAGS-dl-runtime.c): Likewise.
18171 (CFLAGS-dl-lookup.c): Likewise.
18172 (CFLAGS-dl-iterate-phdr.c): Likewise.
18173 (CFLAGS-vismain.c): Likewise.
18174 (CFLAGS-tst-linkall-static.c): Likewise.
18175 (CFLAGS-tst-linkall-static.c): Likewise.
18176 (CPPFLAGS-dl-load.c): Likewise.
18177 (CFLAGS-ldconfig.c): Likewise.
18178 (CFLAGS-dl-cache.c): Likewise.
18179 (CFLAGS-cache.c): Likewise.
18180 (CFLAGS-rtld.c): Likewise.
18181 (CFLAGS-multiload.c): Likewise.
18182 (CFLAGS-filtmod1.c): Likewise.
18183 (CFLAGS-tst-align.c): Likewise.
18184 (CFLAGS-tst-align2.c): Likewise.
18185 (CFLAGS-tst-alignmod.c): Likewise.
18186 (CFLAGS-tst-alignmod2.c): Likewise.
18187 (CPPFLAGS-tst-execstack.c): Likewise.
18188 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18189 (CFLAGS-tst-latepthreadmod.c): Likewise.
18190 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18191 (CFLAGS-getgrnam_r.c): Likewise.
18192 (CFLAGS-getgrent_r.c): Likewise.
18193 (CFLAGS-getgrent.c): Likewise.
18194 (CFLAGS-fgetgrent.c): Likewise.
18195 (CFLAGS-fgetgrent_r.c): Likewise.
18196 (CFLAGS-putgrent.c): Likewise.
18197 (CFLAGS-initgroups.c): Likewise.
18198 (CFLAGS-getgrgid.c): Likewise.
18199 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18200 (CFLAGS-getsgent.c): Likewise.
18201 (CFLAGS-fgetsgent.c): Likewise.
18202 (CFLAGS-fgetsgent_r.c): Likewise.
18203 (CFLAGS-putsgent.c): Likewise.
18204 (CFLAGS-getsgnam.c): Likewise.
18205 (CFLAGS-getsgnam_r.c): Likewise.
18206 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18207 (CFLAGS-iconv_charmap.c): Likewise.
18208 (CFLAGS-dummy-repertoire.c): Likewise.
18209 (CFLAGS-charmap.c): Likewise.
18210 (CFLAGS-linereader.c): Likewise.
18211 (CFLAGS-simple-hash.c): Likewise.
18212 (CFLAGS-gconv_conf.c): Likewise.
18213 (CFLAGS-iconvconfig.c): Likewise.
18214 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18215 (CFLAGS-gethstbyad.c): Likewise.
18216 (CFLAGS-gethstbynm_r.c): Likewise.
18217 (CFLAGS-gethstbynm.c): Likewise.
18218 (CFLAGS-gethstbynm2_r.c): Likewise.
18219 (CFLAGS-gethstbynm2.c): Likewise.
18220 (CFLAGS-gethstent_r.c): Likewise.
18221 (CFLAGS-gethstent.c): Likewise.
18222 (CFLAGS-rcmd.c): Likewise.
18223 (CFLAGS-getnetbynm_r.c): Likewise.
18224 (CFLAGS-getnetbynm.c): Likewise.
18225 (CFLAGS-getnetbyad_r.c): Likewise.
18226 (CFLAGS-getnetbyad.c): Likewise.
18227 (CFLAGS-getnetent_r.c): Likewise.
18228 (CFLAGS-getnetent.c): Likewise.
18229 (CFLAGS-getaliasent_r.c): Likewise.
18230 (CFLAGS-getaliasent.c): Likewise.
18231 (CFLAGS-getrpcent_r.c): Likewise.
18232 (CFLAGS-getrpcent.c): Likewise.
18233 (CFLAGS-getservent_r.c): Likewise.
18234 (CFLAGS-getservent.c): Likewise.
18235 (CFLAGS-getprtent_r.c): Likewise.
18236 (CFLAGS-getprtent.c): Likewise.
18237 (CFLAGS-either_ntoh.c): Likewise.
18238 (CFLAGS-either_hton.c): Likewise.
18239 (CFLAGS-getnetgrent.c): Likewise.
18240 (CFLAGS-getnetgrent_r.c): Likewise.
18241 (CFLAGS-tst-checks-posix.c): Likewise.
18242 (CFLAGS-tst-sockaddr.c): Likewise.
18243 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18244 (CFLAGS-tst-translit.c): Likewise.
18245 (CFLAGS-tst-gettext2.c): Likewise.
18246 (CFLAGS-tst-codeset.c): Likewise.
18247 (CFLAGS-tst-gettext3.c): Likewise.
18248 (CFLAGS-tst-gettext4.c): Likewise.
18249 (CFLAGS-tst-gettext5.c): Likewise.
18250 (CFLAGS-tst-gettext6.c): Likewise.
18251 * io/Makefile (CFLAGS-open.c): Likewise.
18252 (CFLAGS-open64.c): Likewise.
18253 (CFLAGS-creat.c): Likewise.
18254 (CFLAGS-creat64.c): Likewise.
18255 (CFLAGS-fcntl.c): Likewise.
18256 (CFLAGS-poll.c): Likewise.
18257 (CFLAGS-ppoll.c): Likewise.
18258 (CFLAGS-lockf.c): Likewise.
18259 (CFLAGS-statfs.c): Likewise.
18260 (CFLAGS-fstatfs.c): Likewise.
18261 (CFLAGS-statvfs.c): Likewise.
18262 (CFLAGS-fstatvfs.c): Likewise.
18263 (CFLAGS-fts.c): Likewise.
18264 (CFLAGS-fts64.c): Likewise.
18265 (CFLAGS-ftw.c): Likewise.
18266 (CFLAGS-ftw64.c): Likewise.
18267 (CFLAGS-lockf.c): Likewise.
18268 (CFLAGS-posix_fallocate.c): Likewise.
18269 (CFLAGS-posix_fallocate64.c): Likewise.
18270 (CFLAGS-fallocate.c): Likewise.
18271 (CFLAGS-fallocate64.c): Likewise.
18272 (CFLAGS-read.c): Likewise.
18273 (CFLAGS-write.c): Likewise.
18274 (CFLAGS-test-stat.c): Likewise.
18275 (CFLAGS-test-lfs.c): Likewise.
18276 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18277 (CFLAGS-fputc.c): Likewise.
18278 (CFLAGS-fputwc.c): Likewise.
18279 (CFLAGS-freopen64.c): Likewise.
18280 (CFLAGS-freopen.c): Likewise.
18281 (CFLAGS-fseek.c): Likewise.
18282 (CFLAGS-fseeko64.c): Likewise.
18283 (CFLAGS-fseeko.c): Likewise.
18284 (CFLAGS-ftello64.c): Likewise.
18285 (CFLAGS-ftello.c): Likewise.
18286 (CFLAGS-fwide.c): Likewise.
18287 (CFLAGS-genops.c): Likewise.
18288 (CFLAGS-getc.c): Likewise.
18289 (CFLAGS-getchar.c): Likewise.
18290 (CFLAGS-getwc.c): Likewise.
18291 (CFLAGS-getwchar.c): Likewise.
18292 (CFLAGS-iofclose.c): Likewise.
18293 (CFLAGS-iofflush.c): Likewise.
18294 (CFLAGS-iofgetpos64.c): Likewise.
18295 (CFLAGS-iofgetpos.c): Likewise.
18296 (CFLAGS-iofgets.c): Likewise.
18297 (CFLAGS-iofgetws.c): Likewise.
18298 (CFLAGS-iofputs.c): Likewise.
18299 (CFLAGS-iofputws.c): Likewise.
18300 (CFLAGS-iofread.c): Likewise.
18301 (CFLAGS-iofsetpos64.c): Likewise.
18302 (CFLAGS-iofsetpos.c): Likewise.
18303 (CFLAGS-ioftell.c): Likewise.
18304 (CFLAGS-iofwrite.c): Likewise.
18305 (CFLAGS-iogetdelim.c): Likewise.
18306 (CFLAGS-iogetline.c): Likewise.
18307 (CFLAGS-iogets.c): Likewise.
18308 (CFLAGS-iogetwline.c): Likewise.
18309 (CFLAGS-ioputs.c): Likewise.
18310 (CFLAGS-ioseekoff.c): Likewise.
18311 (CFLAGS-ioseekpos.c): Likewise.
18312 (CFLAGS-iosetbuffer.c): Likewise.
18313 (CFLAGS-iosetvbuf.c): Likewise.
18314 (CFLAGS-ioungetc.c): Likewise.
18315 (CFLAGS-ioungetwc.c): Likewise.
18316 (CFLAGS-oldfileops.c): Likewise.
18317 (CFLAGS-oldiofclose.c): Likewise.
18318 (CFLAGS-oldiofgetpos64.c): Likewise.
18319 (CFLAGS-oldiofgetpos.c): Likewise.
18320 (CFLAGS-oldiofsetpos64.c): Likewise.
18321 (CFLAGS-oldiofsetpos.c): Likewise.
18322 (CFLAGS-peekc.c): Likewise.
18323 (CFLAGS-putc.c): Likewise.
18324 (CFLAGS-putchar.c): Likewise.
18325 (CFLAGS-putwc.c): Likewise.
18326 (CFLAGS-putwchar.c): Likewise.
18327 (CFLAGS-rewind.c): Likewise.
18328 (CFLAGS-wfileops.c): Likewise.
18329 (CFLAGS-wgenops.c): Likewise.
18330 (CFLAGS-oldiofopen.c): Likewise.
18331 (CFLAGS-iofopen.c): Likewise.
18332 (CFLAGS-iofopen64.c): Likewise.
18333 (CFLAGS-oldtmpfile.c): Likewise.
18334 (CFLAGS-tst_putwc.c): Likewise.
18335 * locale/Makefile (CFLAGS-md5.c): Likewise.
18336 (CFLAGS-charmap.c): Likewise.
18337 (CFLAGS-locfile.c): Likewise.
18338 (CFLAGS-charmap-dir.c): Likewise.
18339 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18340 (CFLAGS-getpt.c): Likewise.
18341 (CFLAGS-pt_chown.c): Likewise.
18342 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18343 (CFLAGS-obstack.c): Likewise.
18344 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18345 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18346 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18347 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18348 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18349 (CFLAGS-test-tgmath.c): Likewise.
18350 (CFLAGS-test-tgmath2.c): Likewise.
18351 (CFLAGS-test-tgmath-ret.c): Likewise.
18352 (CFLAGS-test-powl.c): Likewise.
18353 (CFLAGS-test-snan.c): Likewise.
18354 (CFLAGS-test-signgam-finite.c): Likewise.
18355 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18356 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18357 (CFLAGS-test-signgam-uchar.c): Likewise.
18358 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18359 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18360 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18361 (CFLAGS-test-signgam-uint.c): Likewise.
18362 (CFLAGS-test-signgam-uint-init.c): Likewise.
18363 (CFLAGS-test-signgam-uint-static.c): Likewise.
18364 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18365 (CFLAGS-test-signgam-ullong.c): Likewise.
18366 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18367 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18368 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18369 (CFLAGS-test-math-cxx11.cc): Likewise.
18370 (CFLAGS-test-math-isinff.cc): Likewise.
18371 (CFLAGS-test-math-iszero.cc): Likewise.
18372 (CFLAGS-test-math-issignaling.cc): Likewise.
18373 (CFLAGS-test-math-iscanonical.cc): Likewise.
18374 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18375 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18376 (CFLAGS-test-flt-eval-method.c): Likewise.
18377 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18378 (CFLAGS-test-finite-macros.c): Likewise.
18379 * misc/Makefile (CFLAGS-select.c): Likewise.
18380 (CFLAGS-tsearch.c): Likewise.
18381 (CFLAGS-lsearch.c): Likewise.
18382 (CFLAGS-pselect.c): Likewise.
18383 (CFLAGS-readv.c): Likewise.
18384 (CFLAGS-writev.c): Likewise.
18385 (CFLAGS-preadv.c): Likewise.
18386 (CFLAGS-preadv64.c): Likewise.
18387 (CFLAGS-pwritev.c): Likewise.
18388 (CFLAGS-pwritev64.c): Likewise.
18389 (CFLAGS-preadv2.c): Likewise.
18390 (CFLAGS-preadv64v2.c): Likewise.
18391 (CFLAGS-pwritev2.c): Likewise.
18392 (CFLAGS-pwritev64v2.c): Likewise.
18393 (CFLAGS-usleep.c): Likewise.
18394 (CFLAGS-syslog.c): Likewise.
18395 (CFLAGS-error.c): Likewise.
18396 (CFLAGS-getpass.c): Likewise.
18397 (CFLAGS-mkstemp.c): Likewise.
18398 (CFLAGS-mkstemp64.c): Likewise.
18399 (CFLAGS-getsysstats.c): Likewise.
18400 (CFLAGS-getusershell.c): Likewise.
18401 (CFLAGS-err.c): Likewise.
18402 (CFLAGS-tst-tsearch.c): Likewise.
18403 (CFLAGS-msync.c): Likewise.
18404 (CFLAGS-fdatasync.c): Likewise.
18405 (CFLAGS-fsync.c): Likewise.
18406 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18407 (CFLAGS-unwind.c): Likewise.
18408 (CFLAGS-unwind-forcedunwind.c): Likewise.
18409 (CFLAGS-pthread_cancel.c): Likewise.
18410 (CFLAGS-pthread_setcancelstate.c): Likewise.
18411 (CFLAGS-pthread_setcanceltype.c): Likewise.
18412 (CFLAGS-cancellation.c): Likewise.
18413 (CFLAGS-libc-cancellation.c): Likewise.
18414 (CFLAGS-pthread_exit.c): Likewise.
18415 (CFLAGS-forward.c): Likewise.
18416 (CFLAGS-pthread_testcancel.c): Likewise.
18417 (CFLAGS-pthread_join.c): Likewise.
18418 (CFLAGS-pthread_timedjoin.c): Likewise.
18419 (CFLAGS-pthread_once.c): Likewise.
18420 (CFLAGS-pthread_cond_wait.c): Likewise.
18421 (CFLAGS-sem_wait.c): Likewise.
18422 (CFLAGS-sem_timedwait.c): Likewise.
18423 (CFLAGS-fcntl.c): Likewise.
18424 (CFLAGS-lockf.c): Likewise.
18425 (CFLAGS-pread.c): Likewise.
18426 (CFLAGS-pread64.c): Likewise.
18427 (CFLAGS-pwrite.c): Likewise.
18428 (CFLAGS-pwrite64.c): Likewise.
18429 (CFLAGS-wait.c): Likewise.
18430 (CFLAGS-waitpid.c): Likewise.
18431 (CFLAGS-sigwait.c): Likewise.
18432 (CFLAGS-msgrcv.c): Likewise.
18433 (CFLAGS-msgsnd.c): Likewise.
18434 (CFLAGS-tcdrain.c): Likewise.
18435 (CFLAGS-open.c): Likewise.
18436 (CFLAGS-open64.c): Likewise.
18437 (CFLAGS-pause.c): Likewise.
18438 (CFLAGS-recv.c): Likewise.
18439 (CFLAGS-send.c): Likewise.
18440 (CFLAGS-accept.c): Likewise.
18441 (CFLAGS-sendto.c): Likewise.
18442 (CFLAGS-connect.c): Likewise.
18443 (CFLAGS-recvfrom.c): Likewise.
18444 (CFLAGS-recvmsg.c): Likewise.
18445 (CFLAGS-sendmsg.c): Likewise.
18446 (CFLAGS-close.c): Likewise.
18447 (CFLAGS-read.c): Likewise.
18448 (CFLAGS-write.c): Likewise.
18449 (CFLAGS-nanosleep.c): Likewise.
18450 (CFLAGS-sigsuspend.c): Likewise.
18451 (CFLAGS-msync.c): Likewise.
18452 (CFLAGS-fdatasync.c): Likewise.
18453 (CFLAGS-fsync.c): Likewise.
18454 (CFLAGS-pt-system.c): Likewise.
18455 (CFLAGS-tst-cleanup2.c): Likewise.
18456 (CFLAGS-tst-cleanupx2.c): Likewise.
18457 (CFLAGS-flockfile.c): Likewise.
18458 (CFLAGS-ftrylockfile.c): Likewise.
18459 (CFLAGS-funlockfile.c): Likewise.
18460 (CFLAGS-tst-initializers1.c): Likewise.
18461 (CFLAGS-tst-initializers1-c89.c): Likewise.
18462 (CFLAGS-tst-initializers1-c99.c): Likewise.
18463 (CFLAGS-tst-initializers1-c11.c): Likewise.
18464 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18465 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18466 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18467 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18468 (CFLAGS-nscd_getgr_r.c): Likewise.
18469 (CFLAGS-nscd_gethst_r.c): Likewise.
18470 (CFLAGS-nscd_getai.c): Likewise.
18471 (CFLAGS-nscd_initgroups.c): Likewise.
18472 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18473 (CFLAGS-pause.c): Likewise.
18474 (CFLAGS-pread.c): Likewise.
18475 (CFLAGS-pread64.c): Likewise.
18476 (CFLAGS-pwrite.c): Likewise.
18477 (CFLAGS-pwrite64.c): Likewise.
18478 (CFLAGS-sleep.c): Likewise.
18479 (CFLAGS-wait.c): Likewise.
18480 (CFLAGS-waitid.c): Likewise.
18481 (CFLAGS-waitpid.c): Likewise.
18482 (CFLAGS-getopt.c): Likewise.
18483 (CFLAGS-wordexp.c): Likewise.
18484 (CFLAGS-sysconf.c): Likewise.
18485 (CFLAGS-pathconf.c): Likewise.
18486 (CFLAGS-fpathconf.c): Likewise.
18487 (CFLAGS-spawn.c): Likewise.
18488 (CFLAGS-spawnp.c): Likewise.
18489 (CFLAGS-spawni.c): Likewise.
18490 (CFLAGS-glob.c): Likewise.
18491 (CFLAGS-glob64.c): Likewise.
18492 (CFLAGS-getconf.c): Likewise.
18493 (CFLAGS-nanosleep.c): Likewise.
18494 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18495 (CFLAGS-getpwent.c): Likewise.
18496 (CFLAGS-getpw.c): Likewise.
18497 (CFLAGS-fgetpwent_r.c): Likewise.
18498 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18499 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18500 (CFLAGS-mq_timedreceive.c): Likewise.
18501 (CFLAGS-mq_timedsend.c): Likewise.
18502 (CFLAGS-clock_nanosleep.c): Likewise.
18503 (CFLAGS-librt-cancellation.c): Likewise.
18504 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18505 (CFLAGS-getspent.c): Likewise.
18506 (CFLAGS-fgetspent.c): Likewise.
18507 (CFLAGS-fgetspent_r.c): Likewise.
18508 (CFLAGS-putspent.c): Likewise.
18509 (CFLAGS-getspnam.c): Likewise.
18510 (CFLAGS-getspnam_r.c): Likewise.
18511 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18512 (CFLAGS-sigsuspend.c): Likewise.
18513 (CFLAGS-sigtimedwait.c): Likewise.
18514 (CFLAGS-sigwait.c): Likewise.
18515 (CFLAGS-sigwaitinfo.c): Likewise.
18516 (CFLAGS-sigreturn.c): Likewise.
18517 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18518 (CFLAGS-vfwprintf.c): Likewise.
18519 (CFLAGS-tmpfile.c): Likewise.
18520 (CFLAGS-tmpfile64.c): Likewise.
18521 (CFLAGS-tempname.c): Likewise.
18522 (CFLAGS-psignal.c): Likewise.
18523 (CFLAGS-vprintf.c): Likewise.
18524 (CFLAGS-cuserid.c): Likewise.
18525 (CFLAGS-errlist.c): Likewise.
18526 (CFLAGS-siglist.c): Likewise.
18527 (CFLAGS-scanf15.c): Likewise.
18528 (CFLAGS-scanf17.c): Likewise.
18529 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18530 (CFLAGS-msort.c): Likewise.
18531 (CFLAGS-qsort.c): Likewise.
18532 (CFLAGS-system.c): Likewise.
18533 (CFLAGS-fmtmsg.c): Likewise.
18534 (CFLAGS-strfmon.c): Likewise.
18535 (CFLAGS-strfmon_l.c): Likewise.
18536 (CFLAGS-strfromd.c): Likewise.
18537 (CFLAGS-strfromf.c): Likewise.
18538 (CFLAGS-strfroml.c): Likewise.
18539 (CFLAGS-tst-bsearch.c): Likewise.
18540 (CFLAGS-tst-qsort.c): Likewise.
18541 (CFLAGS-tst-makecontext2.c): Likewise.
18542 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18543 (CFLAGS-xnlm_prot.c): Likewise.
18544 (CFLAGS-xrstat.c): Likewise.
18545 (CFLAGS-xyppasswd.c): Likewise.
18546 (CFLAGS-xklm_prot.c): Likewise.
18547 (CFLAGS-xrex.c): Likewise.
18548 (CFLAGS-xsm_inter.c): Likewise.
18549 (CFLAGS-xmount.c): Likewise.
18550 (CFLAGS-xrusers.c): Likewise.
18551 (CFLAGS-xspray.c): Likewise.
18552 (CFLAGS-xnfs_prot.c): Likewise.
18553 (CFLAGS-xrquota.c): Likewise.
18554 (CFLAGS-xkey_prot.c): Likewise.
18555 (CFLAGS-auth_unix.c): Likewise.
18556 (CFLAGS-key_call.c): Likewise.
18557 (CFLAGS-pmap_rmt.c): Likewise.
18558 (CFLAGS-clnt_perr.c): Likewise.
18559 (CFLAGS-openchild.c): Likewise.
18560 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18561 (CFLAGS-msgsnd.c): Likewise.
18562 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18563 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18564 (CFLAGS-tzset.c): Likewise.
18565 (CFLAGS-getdate.c): Likewise.
18566 (CFLAGS-test_time.c): Likewise.
18567 (CPPFLAGS-tst-tzname.c): Likewise.
18568 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18569 (CFLAGS-zic.c): Likewise.
18570 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18571 (CFLAGS-wcswidth.c): Likewise.
18572 (CFLAGS-wcstol.c): Likewise.
18573 (CFLAGS-wcstoul.c): Likewise.
18574 (CFLAGS-wcstoll.c): Likewise.
18575 (CFLAGS-wcstoull.c): Likewise.
18576 (CFLAGS-wcstod.c): Likewise.
18577 (CFLAGS-wcstold.c): Likewise.
18578 (CFLAGS-wcstof128.c): Likewise.
18579 (CFLAGS-wcstof.c): Likewise.
18580 (CFLAGS-wcstol_l.c): Likewise.
18581 (CFLAGS-wcstoul_l.c): Likewise.
18582 (CFLAGS-wcstoll_l.c): Likewise.
18583 (CFLAGS-wcstoull_l.c): Likewise.
18584 (CFLAGS-wcstod_l.c): Likewise.
18585 (CFLAGS-wcstold_l.c): Likewise.
18586 (CFLAGS-wcstof128_l.c): Likewise.
18587 (CFLAGS-wcstof_l.c): Likewise.
18588 (CPPFLAGS-tst-wchar-h.c): Likewise.
18589 (CPPFLAGS-wcstold_l.c): Likewise.
18590
18591 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18592
18593 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18594
18595 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18596 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18597
18598 * manual/tunables.texi (Hardware Capability Tunables): Document
18599 glibc.tune.cached_memopt.
18600 * sysdeps/powerpc/cpu-features.c: New file.
18601 * sysdeps/powerpc/cpu-features.h: New file.
18602 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18603 _dl_powerpc_cpu_features.
18604 * sysdeps/powerpc/dl-tunables.list: New file.
18605 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18606 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18607 (INIT_ARCH): Initialize use_aligned_memopt.
18608 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18609 IS_IN(rtld))]: Restrict dl_platform_init availability and
18610 initialize CPU features used by tunables.
18611 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18612 Add memcpy-power8-cached.
18613 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18614 __memcpy_power8_cached.
18615 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18616 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18617 New file.
18618
18619 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18620
18621 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18622 (CFLAGS-noinl-tester.c): Likewise.
18623 (CFLAGS-tst-strlen.c): Likewise.
18624 (CFLAGS-stratcliff.c): Likewise.
18625 (CFLAGS-test-ffs.c): Likewise.
18626 (CFLAGS-tst-inlcall.c): Likewise.
18627 (CFLAGS-tst-xbzero-opt.c): Likewise.
18628 (CFLAGS-memcpy.c): Likewise.
18629 (CFLAGS-wordcopy.c): Likewise.
18630
18631 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18632
18633 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18634 Store r15 on stack and add cfi rule.
18635 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18636 Likewise.
18637
18638 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18639
18640 [BZ #22577]
18641 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18642 call.
18643
18644 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18645
18646 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18647 Add s_sinf-sse2 and s_sinf-fma.
18648 (CFLAGS-s_sinf-fma.c): New.
18649 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18650 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18651 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18652
18653 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18654
18655 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18656
18657 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18658
18659 [BZ #22568]
18660 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18661 part of result to imaginary part of argument if it is zero and the
18662 real part of the argument is not finite.
18663 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18664 of result to real part of argument if it is zero and the imaginary
18665 part of the argument is not finite.
18666
18667 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18668
18669 [BZ #22524]
18670 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18671 and to the list of locales to be built for testing.
18672 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18673 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18674 and build the collation rules upon that.
18675
18676 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18677
18678 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18679 * manual/math.texi (Mathematics): Document support for _Float32.
18680 * math/Makefile (test-types): Add float32.
18681 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18682 * stdlib/Versions (GLIBC_2.27): Likewise.
18683 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18684 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18685 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18686 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18687 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18688 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18689 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18690 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18691 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18692 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18693 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18694 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18695 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18696 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18697 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18698 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18699 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18700 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18701 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18702 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18703 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18704 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18705 Likewise.
18706 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18707 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18708 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18709 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18710 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18711 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18712 Likewise.
18713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18714 Likewise.
18715 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18716 Likewise.
18717 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18718 Likewise.
18719
18720 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18721 Likewise.
18722 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18723 Likewise.
18724 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18725 Likewise.
18726 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18727 Likewise.
18728 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18729 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18730 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18731 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18732 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18733 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18734 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18735 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18736 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18737 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18738 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18739 Likewise.
18740 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18741 Likewise.
18742 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18743 Likewise.
18744 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18745 Likewise.
18746 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18747 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18748 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18749 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18750 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18751 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18752 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18753 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18754
18755 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18756
18757 * stdlib/strtof.c: Include <bits/floatn.h>
18758 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18759 and later undefine as macro. Define as weak alias if
18760 [!USE_WIDE_CHAR].
18761 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18762 and later undefine as macro. Define as weak alias if
18763 [USE_WIDE_CHAR].
18764 * stdlib/strtof_l.c: Include <bits/floatn.h>
18765 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18766 and later undefine as macro. Define as weak alias if
18767 [!USE_WIDE_CHAR].
18768 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18769 and later undefine as macro. Define as weak alias if
18770 [USE_WIDE_CHAR].
18771
18772 * stdlib/strfromf.c: Include <bits/floatn.h>.
18773 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18774 and later undefine as macro and define as weak alias.
18775
18776 * math/test-float32.h: New file.
18777
18778 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18779 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18780 (libm_alias_float_other_r): Create f32 alias.
18781 (libm_alias_float_r): Use semicolon before call to
18782 libm_alias_float_other_r.
18783
18784 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18785 second argument to libm_alias_float_other.
18786 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18787 second argument to libm_alias_float_other.
18788 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18789 argument to libm_alias_float_other.
18790
18791 [BZ #22561]
18792 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18793 real part of result for argument 0 + i * NaN.
18794 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18795 results for tests of 0 + i * NaN.
18796
18797 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18798
18799 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18800
18801 2017-12-06 David S. Miller <davem@davemloft.net>
18802
18803 * sysdeps/sparc/fpu/libm-test-ulps: Update
18804 exp_{downward,towardzero,upward} ulps.
18805
18806 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18807
18808 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18809 variables static.
18810
18811 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18812 (Y0_2D): Likewise.
18813 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18814 (Y0_2D): Likewise.
18815 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18816 (Y0_2D): Likewise.
18817 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18818 (Y0_2D): Likewise.
18819
18820 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18821
18822 [BZ #22515]
18823 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18824 and to the list of locales to be built for testing.
18825 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18826 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18827 and build the collation rules upon that.
18828
18829 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18830
18831 * NEWS: Add sinf to list of optimized functions.
18832
18833 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18834
18835 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
18836 (__HAVE_FLOAT32X): Likewise.
18837 * manual/math.texi (Mathematics): Document support for _Float64
18838 and _Float32x.
18839 * math/Makefile (test-types): Add float64 and float32x.
18840 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
18841 functions.
18842 * stdlib/Versions (GLIBC_2.27): Likewise.
18843 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18844 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18845 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18846 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18847 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18848 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18849 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18850 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18851 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18852 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18853 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18854 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18855 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18856 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18857 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18858 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18859 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18860 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18861 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18862 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18863 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18864 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18865 Likewise.
18866 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18867 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18868 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18869 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18870 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18871 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18872 Likewise.
18873 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18874 Likewise.
18875 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18876 Likewise.
18877 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18878 Likewise.
18879 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18880 Likewise.
18881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18882 Likewise.
18883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18884 Likewise.
18885 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18886 Likewise.
18887 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18888 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18889 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18890 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18891 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18892 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18893 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18894 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18895 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18896 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18897 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18898 Likewise.
18899 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18900 Likewise.
18901 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18902 Likewise.
18903 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18904 Likewise.
18905 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18906 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18907 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18908 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18909 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18910 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18911 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18912 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18913
18914 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18915
18916 * bits/floatn-common.h: Include <bits/long-double.h>.
18917 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18918 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
18919 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18920 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
18921 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18922 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
18923 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18924 (__builtin_huge_valf64): Use __builtin_huge_vall.
18925 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18926 (__builtin_inff64): Use __builtin_infl.
18927 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18928 (__builtin_nanf64): Use __builtin_nanl.
18929 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18930 (__builtin_nansf64): Use __builtin_nansl.
18931
18932 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
18933 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
18934 Carlos O'Donnell <carlos@redhat.com>
18935
18936 * elf/dl-tunables.list: Add elision parameters.
18937 * manual/tunables.texi: Add entries about elision tunable.
18938 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
18939 Add callback functions to dynamically enable/disable elision.
18940 Add multiple callbacks functions to set elision parameters.
18941 Deleted __libc_enable_secure check.
18942 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
18943 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
18944 * configure: Regenerated.
18945 * configure.ac: Option enable_lock_elision was deleted.
18946 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
18947 * config.make.in: Remove references to enable_lock_elision.
18948 * manual/install.texi: Elision configure option was removed.
18949 * INSTALL: Regenerated to remove enable_lock_elision.
18950 * nptl/Makefile:
18951 Disable elision so it can verify error case for destroying a mutex.
18952 * sysdeps/powerpc/nptl/elide.h:
18953 Cleanup ENABLE_LOCK_ELISION check.
18954 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
18955 * sysdeps/s390/configure: Regenerated.
18956 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
18957 * nptl/tst-mutex8.c:
18958 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
18959 * sysdeps/powerpc/powerpc32/sysdep.h:
18960 Deleted all ENABLE_LOCK_ELISION checks.
18961 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
18962 * sysdeps/powerpc/sysdep.h: Likewise.
18963 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
18964 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
18965 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
18966 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
18967 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
18968 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
18969 enable-lock-elision.
18970
18971 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18972
18973 * stdlib/strtod.c: Include <bits/floatn.h>.
18974 (BUILD_DOUBLE): New macro.
18975 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18976 (strtof64): Define and later undefine as macro. Define as weak
18977 alias if [!USE_WIDE_CHAR].
18978 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18979 (wcstof64): Define and later undefine as macro. Define as weak
18980 alias if [USE_WIDE_CHAR].
18981 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18982 (strtof32x): Define and later undefine as macro. Define as weak
18983 alias if [!USE_WIDE_CHAR].
18984 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18985 (wcstof32x): Define and later undefine as macro. Define as weak
18986 alias if [USE_WIDE_CHAR].
18987 * stdlib/strtod_l.c: Include <bits/floatn.h>.
18988 (BUILD_DOUBLE): New macro.
18989 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18990 (strtof64_l): Define and later undefine as macro. Define as weak
18991 alias if [!USE_WIDE_CHAR].
18992 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18993 (wcstof64_l): Define and later undefine as macro. Define as weak
18994 alias if [USE_WIDE_CHAR].
18995 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18996 (strtof32x_l): Define and later undefine as macro. Define as weak
18997 alias if [!USE_WIDE_CHAR].
18998 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18999 (wcstof32x_l): Define and later undefine as macro. Define as weak
19000 alias if [USE_WIDE_CHAR].
19001
19002 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19003
19004 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19005 (reduced): Use ones as double instead of integer.
19006
19007 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19008
19009 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19010
19011 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19012
19013 * stdlib/strfromd.c: Include <bits/floatn.h>.
19014 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19015 and later undefine as macro and define as weak alias.
19016 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19017 Likewise.
19018
19019 * math/test-float32x.h: New file.
19020 * math/test-float64.h: Likewise.
19021
19022 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19023 (libm_alias_double_other_r_f64): New macro.
19024 (libm_alias_double_other_r_f32x): Likewise.
19025 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19026 libm_alias_double_other_r_f32x.
19027 (libm_alias_double_r): Use semicolon before call to
19028 libm_alias_double_other_r.
19029 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19030 <bits/floatn.h>.
19031 (libm_alias_double_other_r_f64): New macro.
19032 (libm_alias_double_other_r_f32x): Likewise.
19033 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19034 libm_alias_double_other_r_f32x.
19035
19036 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19037
19038 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19039 int.
19040 (SINF_FUNC): Likewise. Replace floor with simple casts.
19041
19042 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19043
19044 [BZ #22517]
19045 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19046 and to the list of locales to be built for testing.
19047 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19048 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19049 and build the collation rules upon that.
19050
19051 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19052
19053 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19054 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19055 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19056 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19057 instead of __insn__xxx.
19058 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19059 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19060 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19061 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19062 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19063 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19064
19065 2017-12-05 Florian Weimer <fweimer@redhat.com>
19066
19067 Linux: Implement interfaces for memory protection keys
19068 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19069 xsignal, xsysconf.
19070 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19071 * support/xunistd.h (xsysconf): Declare.
19072 * support/xraise.c: New file.
19073 * support/xsigaction.c: Likewise.
19074 * support/xsignal.c: Likewise.
19075 * support/xsysconf.c: Likewise.
19076 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19077 pkey_set, pkey_get, pkey_mprotect.
19078 [misc] (tests): Add tst-pkey.
19079 (tst-pkey): Link with -lpthread.
19080 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19081 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19082 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19083 (PKEY_DISABLE_WRITE): Define.
19084 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19085 Declare.
19086 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19087 (SEGV_PKUERR): Add.
19088 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19089 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19090 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19091 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19092 Add.
19093 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19094 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19095 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19096 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19097 * sysdeps/unix/sysv/linux/**.abilist: Update.
19098
19099 2017-12-05 Florian Weimer <fweimer@redhat.com>
19100
19101 * support/tst-test_compare.c (subprocess): Use long long instead
19102 of long argument for consistent type width across 32-bit and
19103 64-bit architectures.
19104 (do_test): Adjust expected output.
19105
19106 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19107
19108 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19109 (cosf): Define using libm_alias_float.
19110 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19111 (fabsf): Define using libm_alias_float.
19112 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19113 (fmaf): Define using libm_alias_float.
19114 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19115 (rintf): Define using libm_alias_float.
19116 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19117 (sinf): Define using libm_alias_float.
19118 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19119 <libm-alias-float.h>.
19120 (modff): Define using libm_alias_float.
19121 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19122 <libm-alias-float.h>.
19123 (logbf): Define using libm_alias_float.
19124 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19125 <libm-alias-float.h>.
19126 (ceilf): Define using libm_alias_float.
19127 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19128 <libm-alias-float.h>.
19129 (copysignf): Define using libm_alias_float.
19130 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19131 <libm-alias-float.h>.
19132 (floorf): Define using libm_alias_float.
19133 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19134 <libm-alias-float.h>.
19135 (llrintf): Define using libm_alias_float.
19136 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19137 <libm-alias-float.h>.
19138 (llroundf): Define using libm_alias_float.
19139 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19140 <libm-alias-float.h>.
19141 (lrintf): Define using libm_alias_float.
19142 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19143 <libm-alias-float.h>.
19144 (lroundf): Define using libm_alias_float.
19145 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19146 <libm-alias-float.h>.
19147 (nearbyintf): Define using libm_alias_float.
19148 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19149 <libm-alias-float.h>.
19150 (rintf): Define using libm_alias_float.
19151 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19152 <libm-alias-float.h>.
19153 (roundf): Define using libm_alias_float.
19154 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19155 <libm-alias-float.h>.
19156 (truncf): Define using libm_alias_float.
19157 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19158 Include <libm-alias-float.h>.
19159 (ceilf): Define using libm_alias_float.
19160 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19161 Include <libm-alias-float.h>.
19162 (copysignf): Define using libm_alias_float.
19163 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19164 Include <libm-alias-float.h>.
19165 (floorf): Define using libm_alias_float.
19166 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19167 Include <libm-alias-float.h>.
19168 (llrintf): Define using libm_alias_float.
19169 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19170 Include <libm-alias-float.h>.
19171 (llroundf): Define using libm_alias_float.
19172 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19173 Include <libm-alias-float.h>.
19174 (logbf): Define using libm_alias_float.
19175 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19176 Include <libm-alias-float.h>.
19177 (lrintf): Define using libm_alias_float.
19178 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19179 Include <libm-alias-float.h>.
19180 (lroundf): Define using libm_alias_float.
19181 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19182 Include <libm-alias-float.h>.
19183 (modff): Define using libm_alias_float.
19184 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19185 Include <libm-alias-float.h>.
19186 (roundf): Define using libm_alias_float.
19187 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19188 Include <libm-alias-float.h>.
19189 (truncf): Define using libm_alias_float.
19190 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19191 <libm-alias-float.h>.
19192 (llrintf): Define using libm_alias_float.
19193 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19194 <libm-alias-float.h>.
19195 (llroundf): Define using libm_alias_float.
19196 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19197 <libm-alias-float.h>.
19198 (ceilf): Define using libm_alias_float.
19199 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19200 <libm-alias-float.h>.
19201 (floorf): Define using libm_alias_float.
19202 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19203 <libm-alias-float.h>.
19204 (llroundf): Define using libm_alias_float.
19205 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19206 <libm-alias-float.h>.
19207 (lroundf): Define using libm_alias_float.
19208 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19209 <libm-alias-float.h>.
19210 (roundf): Define using libm_alias_float.
19211 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19212 <libm-alias-float.h>.
19213 (truncf): Define using libm_alias_float.
19214 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19215 <libm-alias-float.h>.
19216 (copysignf): Define using libm_alias_float.
19217 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19218 <libm-alias-float.h>.
19219 (llrintf): Define using libm_alias_float.
19220 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19221 <libm-alias-float.h>.
19222 (llroundf): Define using libm_alias_float.
19223 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19224 <libm-alias-float.h>.
19225 (lrintf): Define using libm_alias_float.
19226 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19227 <libm-alias-float.h>.
19228 (lroundf): Define using libm_alias_float.
19229 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19230 <libm-alias-float.h>.
19231 (ceilf): Define using libm_alias_float.
19232 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19233 <libm-alias-float.h>.
19234 (copysignf): Define using libm_alias_float.
19235 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19236 <libm-alias-float.h>.
19237 (cosf): Define using libm_alias_float.
19238 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19239 <libm-alias-float.h>.
19240 (floorf): Define using libm_alias_float.
19241 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19242 <libm-alias-float.h>.
19243 (llrintf): Define using libm_alias_float.
19244 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19245 <libm-alias-float.h>.
19246 (llroundf): Define using libm_alias_float.
19247 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19248 <libm-alias-float.h>.
19249 (logbf): Define using libm_alias_float.
19250 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19251 <libm-alias-float.h>.
19252 (modff): Define using libm_alias_float.
19253 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19254 <libm-alias-float.h>.
19255 (roundf): Define using libm_alias_float.
19256 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19257 <libm-alias-float.h>.
19258 (sinf): Define using libm_alias_float.
19259 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19260 <libm-alias-float.h>.
19261 (truncf): Define using libm_alias_float.
19262 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19263 <libm-alias-float.h>.
19264 (ceilf): Define using libm_alias_float.
19265 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19266 <libm-alias-float.h>.
19267 (copysignf): Define using libm_alias_float.
19268 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19269 <libm-alias-float.h>.
19270 (floorf): Define using libm_alias_float.
19271 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19272 <libm-alias-float.h>.
19273 (llrintf): Define using libm_alias_float.
19274 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19275 <libm-alias-float.h>.
19276 (llroundf): Define using libm_alias_float.
19277 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19278 <libm-alias-float.h>.
19279 (nearbyintf): Define using libm_alias_float.
19280 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19281 <libm-alias-float.h>.
19282 (rintf): Define using libm_alias_float.
19283 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19284 <libm-alias-float.h>.
19285 (roundf): Define using libm_alias_float.
19286 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19287 <libm-alias-float.h>.
19288 (truncf): Define using libm_alias_float.
19289 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19290 <libm-alias-float.h>.
19291 (ceilf): Define using libm_alias_float.
19292 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19293 <libm-alias-float.h>.
19294 (floorf): Define using libm_alias_float.
19295 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19296 <libm-alias-float.h>.
19297 (llroundf): Define using libm_alias_float.
19298 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19299 <libm-alias-float.h>.
19300 (roundf): Define using libm_alias_float.
19301 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19302 <libm-alias-float.h>.
19303 (truncf): Define using libm_alias_float.
19304 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19305 <libm-alias-float.h>.
19306 (copysignf): Define using libm_alias_float.
19307 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19308 <libm-alias-float.h>.
19309 (llrintf): Define using libm_alias_float.
19310 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19311 <libm-alias-float.h>.
19312 (llroundf): Define using libm_alias_float.
19313 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19314 <libm-alias-float.h>.
19315 (cosf): Define using libm_alias_float.
19316 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19317 <libm-alias-float.h>.
19318 (llrintf): Define using libm_alias_float.
19319 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19320 <libm-alias-float.h>.
19321 (llroundf): Define using libm_alias_float.
19322 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19323 <libm-alias-float.h>.
19324 (sinf): Define using libm_alias_float.
19325
19326 2017-12-04 Florian Weimer <fweimer@redhat.com>
19327
19328 * support/check.h (TEST_COMPARE): Define.
19329 (support_test_compare_failure): Declare.
19330 * support/Makefile (libsupport-routines): Add
19331 support_test_compare_failure.
19332 (tests): Add tst-test_compare.
19333 * support /support_test_compare_failure.c: New file.
19334 * support/tst-test_compare.c: Likewise.
19335
19336 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19337
19338 [BZ #22527]
19339 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19340 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19341 available, this rewrite of the collation rules does reproduce
19342 the test file in the same order.
19343
19344 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19345
19346 [BZ #10580]
19347 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19348 digraphs in the month and day names. Using single code points for
19349 digraphs is deprecated. While there are dedicated Unicode
19350 codepoints, for the digraphs, these are included for backwards
19351 compatibility and modern texts use a sequence of Basic Latin
19352 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19353 This makes the month and day names agree exactly with CLDR now,
19354 CLDR does not use the single code points for the digraphs either.
19355
19356 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19357
19358 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19359
19360 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19361
19362 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19363 of floor.
19364
19365 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19366
19367 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19368 Define only for libc.so.
19369
19370 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19371
19372 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19373 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19374 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19375 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19376 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19377
19378 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19379
19380 [BZ #5997]
19381 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19382
19383 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19384
19385 [BZ libc/19170]
19386 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19387 PREINIT_FUNCTION_WEAK is nonzero.
19388 (gmon_initializer): New function. Put procedure label for it in
19389 .init_array section.
19390 (_init): Don't call PREINIT_FUNCTION.
19391 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19392 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19393 value when map argument is null.
19394
19395 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19396 depi instruction from PIC pc-relative sequence.
19397 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19398 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19399 (elf_machine_load_address): Likewise.
19400 (elf_machine_runtime_setup): Likewise.
19401
19402 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19403
19404 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19405 <libm-alias-double.h>.
19406 (logb): Define using libm_alias_double.
19407 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19408 <libm-alias-double.h>.
19409 (copysign): Define using libm_alias_double.
19410 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19411 <libm-alias-double.h>.
19412 (llrint): Define using libm_alias_double.
19413 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19414 <libm-alias-double.h>.
19415 (llround): Define using libm_alias_double.
19416 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19417 <libm-alias-double.h>.
19418 (lrint): Define using libm_alias_double.
19419 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19420 <libm-alias-double.h>.
19421 (lround): Define using libm_alias_double.
19422 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19423 Include <libm-alias-double.h>.
19424 (copysign): Define using libm_alias_double.
19425 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19426 Include <libm-alias-double.h>.
19427 (llrint): Define using libm_alias_double.
19428 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19429 Include <libm-alias-double.h>.
19430 (llround): Define using libm_alias_double.
19431 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19432 <libm-alias-double.h>.
19433 (logb): Define using libm_alias_double.
19434 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19435 Include <libm-alias-double.h>.
19436 (lrint): Define using libm_alias_double.
19437 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19438 Include <libm-alias-double.h>.
19439 (lround): Define using libm_alias_double.
19440 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19441 <libm-alias-double.h>.
19442 (llrint): Define using libm_alias_double.
19443 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19444 <libm-alias-double.h>.
19445 (llround): Define using libm_alias_double.
19446 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19447 <libm-alias-double.h>.
19448 (llround): Define using libm_alias_double.
19449 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19450 <libm-alias-double.h>.
19451 (lround): Define using libm_alias_double.
19452 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19453 <libm-alias-double.h>.
19454 (copysign): Define using libm_alias_double.
19455 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19456 <libm-alias-double.h>.
19457 (llrint): Define using libm_alias_double.
19458 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19459 <libm-alias-double.h>.
19460 (llround): Define using libm_alias_double.
19461 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19462 <libm-alias-double.h>.
19463 (lrint): Define using libm_alias_double.
19464 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19465 <libm-alias-double.h>.
19466 (lround): Define using libm_alias_double.
19467 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19468 <libm-alias-double.h>.
19469 (copysign): Define using libm_alias_double.
19470 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19471 <libm-alias-double.h>.
19472 (llrint): Define using libm_alias_double.
19473 (lrint): Likewise.
19474 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19475 <libm-alias-double.h>.
19476 (llround): Define using libm_alias_double.
19477 (lround): Likewise.
19478 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19479 <libm-alias-double.h>.
19480 (logb): Define using libm_alias_double.
19481 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19482 <libm-alias-double.h>.
19483 (copysign): Define using libm_alias_double.
19484 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19485 <libm-alias-double.h>.
19486 (llrint): Define using libm_alias_double.
19487 (lrint): Likewise.
19488 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19489 <libm-alias-double.h>.
19490 (llround): Define using libm_alias_double.
19491 (lround): Likewise.
19492 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19493 <libm-alias-double.h>.
19494 (llround): Define using libm_alias_double.
19495 (lround): Likewise.
19496 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19497 <libm-alias-double.h>.
19498 (copysign): Define using libm_alias_double.
19499 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19500 <libm-alias-double.h>.
19501 (llrint): Define using libm_alias_double.
19502 (lrint): Likewise.
19503 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19504 <libm-alias-double.h>.
19505 (llround): Define using libm_alias_double.
19506 (lround): Likewise.
19507 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19508 <libm-alias-double.h>.
19509 (llrint): Define using libm_alias_double.
19510 (lrint): Likewise.
19511 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19512 <libm-alias-double.h>.
19513 (llround): Define using libm_alias_double.
19514 (lround): Likewise.
19515
19516 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19517
19518 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19519 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19520 compat symbol based on llround.
19521
19522 * sysdeps/powerpc/power7/fpu/s_logb.c
19523 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19524 symbol based on __logb, not on logb.
19525 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19526 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19527 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19528 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19529
19530 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19531 (rint): Define using libm_alias_double.
19532 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19533 <libm-alias-double.h>.
19534 (modf): Define using libm_alias_double.
19535 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19536 <libm-alias-double.h>.
19537 (ceil): Define using libm_alias_double.
19538 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19539 <libm-alias-double.h>.
19540 (floor): Define using libm_alias_double.
19541 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19542 <libm-alias-double.h>.
19543 (nearbyint): Define using libm_alias_double.
19544 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19545 <libm-alias-double.h>.
19546 (rint): Define using libm_alias_double.
19547 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19548 <libm-alias-double.h>.
19549 (round): Define using libm_alias_double.
19550 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19551 <libm-alias-double.h>.
19552 (trunc): Define using libm_alias_double.
19553 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19554 <libm-alias-double.h>.
19555 (ceil): Define using libm_alias_double.
19556 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19557 Include <libm-alias-double.h>.
19558 (floor): Define using libm_alias_double.
19559 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19560 <libm-alias-double.h>.
19561 (modf): Define using libm_alias_double.
19562 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19563 Include <libm-alias-double.h>.
19564 (round): Define using libm_alias_double.
19565 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19566 Include <libm-alias-double.h>.
19567 (trunc): Define using libm_alias_double.
19568 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19569 <libm-alias-double.h>.
19570 (ceil): Define using libm_alias_double.
19571 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19572 <libm-alias-double.h>.
19573 (floor): Define using libm_alias_double.
19574 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19575 <libm-alias-double.h>.
19576 (round): Define using libm_alias_double.
19577 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19578 <libm-alias-double.h>.
19579 (trunc): Define using libm_alias_double.
19580 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19581 <libm-alias-double.h>.
19582 (ceil): Define using libm_alias_double.
19583 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19584 <libm-alias-double.h>.
19585 (floor): Define using libm_alias_double.
19586 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19587 <libm-alias-double.h>.
19588 (modf): Define using libm_alias_double.
19589 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19590 <libm-alias-double.h>.
19591 (round): Define using libm_alias_double.
19592 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19593 <libm-alias-double.h>.
19594 (trunc): Define using libm_alias_double.
19595 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19596 <libm-alias-double.h>.
19597 (ceil): Define using libm_alias_double.
19598 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19599 <libm-alias-double.h>.
19600 (floor): Define using libm_alias_double.
19601 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19602 <libm-alias-double.h>.
19603 (nearbyint): Define using libm_alias_double.
19604 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19605 <libm-alias-double.h>.
19606 (rint): Define using libm_alias_double.
19607 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19608 <libm-alias-double.h>.
19609 (round): Define using libm_alias_double.
19610 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19611 <libm-alias-double.h>.
19612 (trunc): Define using libm_alias_double.
19613 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19614 <libm-alias-double.h>.
19615 (ceil): Define using libm_alias_double.
19616 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19617 <libm-alias-double.h>.
19618 (floor): Define using libm_alias_double.
19619 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19620 <libm-alias-double.h>.
19621 (round): Define using libm_alias_double.
19622 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19623 <libm-alias-double.h>.
19624 (trunc): Define using libm_alias_double.
19625
19626 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19627 (fabs): Define using libm_alias_double.
19628 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19629 (fma): Define using libm_alias_double.
19630 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19631 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19632 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19633 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19634
19635 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19636
19637 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19638
19639 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19640 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19641 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19642
19643 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19644 due redirect macro.
19645
19646 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19647
19648 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19649
19650 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19651
19652 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19653 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19654 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19655 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19656
19657 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19658 (libm-sysdep_routines): Add s_nearbyintf-generic and
19659 s_nearbyint-generic.
19660 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19661 New file.
19662 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19663 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19664 Likewise.
19665 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19666 Likewise.
19667 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19668 file.
19669 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19670 Likewise.
19671
19672 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19673 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19674 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19675 file.
19676 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19677 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19678 Likewise.
19679 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19680 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19681 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19682
19683 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19684 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19685 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19686 file.
19687 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19688 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19689 Likewise.
19690 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19691 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19692 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19693
19694 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19695 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19696 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19697 file.
19698 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19699 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19700 Likewise.
19701 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19702 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19703 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19704
19705 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19706 (sysdep_calls): New rule.
19707 (sysdep_routines): Use sysdep_calls as base.
19708 (libm-sysdep_routines): Add generic rule for symbols shared with
19709 libc. Add s_copysign-generic and s_copysign-generic objects.
19710 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19711 New file.
19712 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19713 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19714 Likewise.
19715 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19716 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19717 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19718
19719 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19720
19721 [BZ #22519]
19722 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19723 the list of locales to be built for testing.
19724 * localedata/is_IS.UTF-8.in: New file.
19725 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19726 on iso14651_t1.
19727
19728 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19729
19730 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19731 <libm-alias-float.h>.
19732 (fabsf): Define using libm_alias_float.
19733
19734 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19735
19736 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19737
19738 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19739
19740 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19741 <libm-alias-float.h>.
19742 (fabsf): Define using libm_alias_float.
19743 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19744 <libm-alias-float.h>.
19745 (lrintf): Define using libm_alias_float.
19746 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19747 <libm-alias-float.h>.
19748 (rintf): Define using libm_alias_float.
19749
19750 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19751 <libm-alias-double.h>.
19752 (fabs): Define using libm_alias_double.
19753 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19754 <libm-alias-double.h>.
19755 (lrint): Define using libm_alias_double.
19756 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19757 <libm-alias-double.h>.
19758 (rint): Define using libm_alias_double.
19759
19760 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19761 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19762 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19763 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19764 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19765 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19766 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19767 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19768 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19769 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19770 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19771 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19772 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19773 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19774 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19775 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19776 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19777 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19778 s_atan_template.c.
19779 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19780 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19781 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19782 s_ceil_template.c.
19783 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19784 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19785 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19786 s_cos_template.c.
19787 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19788 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19789 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19790 s_expm1_template.c.
19791 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19792 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19793 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19794 s_fabs_template.c.
19795 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19796 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19797 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19798 s_floor_template.c.
19799 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19800 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19801 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19802 s_frexp_template.c.
19803 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19804 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19805 s_lrint_template.c.
19806 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19807 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19808 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19809 s_modf_template.c.
19810 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19811 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19812 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19813 s_nearbyint_template.c.
19814 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19815 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19816 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19817 s_remquo_template.c.
19818 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19819 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19820 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19821 s_rint_template.c.
19822 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19823 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19824 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19825 s_sin_template.c.
19826 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19827 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19828 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19829 s_sincos_template.c.
19830 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19831 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19832 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19833 s_tan_template.c.
19834 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
19835 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
19836 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
19837 s_tanh_template.c.
19838 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
19839 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
19840 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
19841 s_trunc_template.c.
19842 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
19843 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
19844 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
19845 s_atan.c instead of including s_atan.c.
19846 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
19847 s_atanf.c instead of including s_atanf.c.
19848 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
19849 s_atanl.c instead of including s_atanl.c.
19850 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
19851 instead of s_atan.c.
19852 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
19853 instead of s_atanf.c.
19854 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
19855 instead of s_atanl.c.
19856
19857 * scripts/update-copyrights: Do not handle intl/plural.c
19858 specially.
19859
19860 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
19861
19862 [BZ #22432]
19863 * configure.ac (BISON): Require to be present.
19864 * configure: Regenerated.
19865 * intl/Makefile (generated): Add plural.c.
19866 [$(BISON) != no]: Make code unconditional.
19867 (plural.c): Change rule to $(objpfx)plural.c.
19868 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
19869 * intl/plural.c: Remove.
19870 * manual/install.texi (Tools for Compilation): Document bison as
19871 required.
19872 * INSTALL: Regenerated.
19873
19874 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19875
19876 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
19877 <libm-alias-double.h>.
19878 (llrint): Define using libm_alias_double.
19879 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
19880 <libm-alias-float.h>.
19881 (llrintf): Define using libm_alias_float.
19882 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
19883 <libm-alias-ldouble.h>.
19884 (llrintl): Define using libm_alias_ldouble.
19885
19886 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
19887 declare_mgen_alias instead of weak_alias.
19888 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
19889 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
19890 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
19891
19892 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19893
19894 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19895 Add add_n-generic.
19896 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
19897 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
19898 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
19899
19900 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19901 Add submul_1-generic.
19902 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
19903 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
19904 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
19905
19906 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19907 Add addmul_1-generic.
19908 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
19909 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
19910 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
19911
19912 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19913 Add sub_n-generic.
19914 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
19915 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
19916 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
19917
19918 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19919 Add mul_1-generic.
19920 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
19921 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
19922 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
19923
19924 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19925
19926 According to CLDR, collation rules for Serbian and Bosnian
19927 should be the same as for Croatian.
19928
19929 [BZ #22534]
19930 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
19931 and to the list of locales to be built for testing.
19932 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19933 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19934 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
19935 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
19936
19937 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19938
19939 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
19940 to make test case pass.
19941 * localedata/hr_HR.UTF-8.in: Add more test strings.
19942
19943 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19944
19945 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
19946
19947 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
19948
19949 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
19950 the list of locales to built for testing.
19951 * localedata/hr_HR.UTF-8.in: New file.
19952
19953 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
19954
19955 [BZ #10580]
19956 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
19957 iso14651_t1.
19958 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
19959 CLDR (except use ligatures for the digraphs, CLDR does not use
19960 the ligatures), add first_workday, some fixes in the date and time
19961 formats.
19962 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
19963 for Đ and đ.
19964 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
19965 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
19966 Add int_p_cs_precedes and int_n_cs_precedes.
19967 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
19968 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
19969 LC_MONETARY now).
19970 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
19971 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
19972 name_miss.
19973 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
19974 and lang_lib. Change postal_fmt.
19975
19976 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19977
19978 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
19979 <setjmp.h>.
19980 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
19981 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
19982 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
19983 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
19984 * sysdeps/generic/setjmpP.h: New file.
19985 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
19986 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
19987 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
19988 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
19989 Add jmp_buf-ssp.sym.
19990 (tests): Add tst-saved_mask-1.
19991
19992 2017-11-30 Arjun Shankar <arjun@redhat.com>
19993
19994 [BZ #22375]
19995 CVE-2017-17426
19996 * malloc/malloc.c (__libc_malloc): Use checked_request2size
19997 instead of request2size.
19998
19999 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20000
20001 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20002 (__lllrint): Remove alias.
20003 (lllrint): Likewise.
20004 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20005 (__lllrintf): Likewise.
20006 (lllrintf): Likewise.
20007
20008 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20009 <libm-alias-float.h>.
20010 (copysignf): Define using libm_alias_float.
20011 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20012 <libm-alias-float.h>.
20013 (fabsf): Define using libm_alias_float.
20014 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20015 Include <libm-alias-float.h>.
20016 (copysignf): Define using libm_alias_float.
20017 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20018 <libm-alias-float.h>.
20019 (fabsf): Define using libm_alias_float.
20020 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20021 <libm-alias-float.h>.
20022 (fdimf): Define using libm_alias_float.
20023 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20024 <libm-alias-float.h>.
20025 (fmaf): Define using libm_alias_float.
20026 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20027 <libm-alias-float.h>.
20028 (llrintf): Define using libm_alias_float.
20029 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20030 Include <libm-alias-float.h>.
20031 (nearbyintf): Define using libm_alias_float.
20032 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20033 <libm-alias-float.h>.
20034 (rintf): Define using libm_alias_float.
20035 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20036 <libm-alias-float.h>.
20037 (llrintf): Define using libm_alias_float.
20038 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20039 <libm-alias-float.h>.
20040 (lrintf): Define using libm_alias_float.
20041 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20042 <libm-alias-float.h>.
20043 (nearbyintf): Define using libm_alias_float.
20044 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20045 <libm-alias-float.h>.
20046 (rintf): Define using libm_alias_float.
20047 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20048 <libm-alias-float.h>.
20049 (ceilf): Define using libm_alias_float.
20050 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20051 <libm-alias-float.h>.
20052 (floorf): Define using libm_alias_float.
20053 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20054 <libm-alias-float.h>.
20055 (fmaf): Define using libm_alias_float.
20056 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20057 <libm-alias-float.h>.
20058 (lrintf): Define using libm_alias_float.
20059 (llrintf): Likewise.
20060 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20061 <libm-alias-float.h>.
20062 (nearbyintf): Define using libm_alias_float.
20063 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20064 <libm-alias-float.h>.
20065 (rintf): Define using libm_alias_float.
20066 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20067 <libm-alias-float.h>.
20068 (truncf): Define using libm_alias_float.
20069 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20070 <libm-alias-float.h>.
20071 (copysignf): Define using libm_alias_float.
20072 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20073 <libm-alias-float.h>.
20074 (fabsf): Define using libm_alias_float.
20075 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20076 <libm-alias-float.h>.
20077 (lrintf): Define using libm_alias_float.
20078 (llrintf): Likewise.
20079 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20080 <libm-alias-float.h>.
20081 (nearbyintf): Define using libm_alias_float.
20082 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20083 <libm-alias-float.h>.
20084 (rintf): Define using libm_alias_float.
20085
20086 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20087
20088 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20089 <libm-alias-double.h>.
20090 (copysign): Define using libm_alias_double.
20091 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20092 <libm-alias-double.h>.
20093 (fabs): Define using libm_alias_double.
20094 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20095 Include <libm-alias-double.h>.
20096 (copysign): Define using libm_alias_double.
20097 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20098 <libm-alias-double.h>.
20099 (fabs): Define using libm_alias_double.
20100 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20101 <libm-alias-double.h>.
20102 (fdim): Define using libm_alias_double.
20103 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20104 <libm-alias-double.h>.
20105 (fma): Define using libm_alias_double.
20106 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20107 <libm-alias-double.h>.
20108 (llrint): Define using libm_alias_double.
20109 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20110 Include <libm-alias-double.h>.
20111 (nearbyint): Define using libm_alias_double.
20112 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20113 <libm-alias-double.h>.
20114 (rint): Define using libm_alias_double.
20115 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20116 <libm-alias-double.h>.
20117 (fabs): Define using libm_alias_double.
20118 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20119 <libm-alias-double.h>.
20120 (llrint): Define using libm_alias_double.
20121 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20122 <libm-alias-double.h>.
20123 (nearbyint): Define using libm_alias_double.
20124 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20125 <libm-alias-double.h>.
20126 (rint): Define using libm_alias_double.
20127 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20128 <libm-alias-double.h>.
20129 (ceil): Define using libm_alias_double.
20130 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20131 <libm-alias-double.h>.
20132 (floor): Define using libm_alias_double.
20133 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20134 <libm-alias-double.h>.
20135 (fma): Define using libm_alias_double.
20136 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20137 <libm-alias-double.h>.
20138 (lrint): Define using libm_alias_double.
20139 (llrint): Likewise.
20140 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20141 <libm-alias-double.h>.
20142 (nearbyint): Define using libm_alias_double.
20143 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20144 <libm-alias-double.h>.
20145 (rint): Define using libm_alias_double.
20146 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20147 <libm-alias-double.h>.
20148 (trunc): Define using libm_alias_double.
20149 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20150 <libm-alias-double.h>.
20151 (copysign): Define using libm_alias_double.
20152 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20153 <libm-alias-double.h>.
20154 (fabs): Define using libm_alias_double.
20155 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20156 <libm-alias-double.h>.
20157 (lrint): Define using libm_alias_double.
20158 (llrint): Likewise.
20159 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20160 <libm-alias-double.h>.
20161 (nearbyint): Define using libm_alias_double.
20162 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20163 <libm-alias-double.h>.
20164 (rint): Define using libm_alias_double.
20165
20166 [BZ #22229]
20167 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20168 <math_ldbl_opt.h>.
20169 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20170
20171 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20172 SPARC --disable-multi-arch glibc variants.
20173
20174 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20175 <libm-alias-float.h>.
20176 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20177 if [SHARED].
20178 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20179 <libm-alias-float.h>.
20180 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20181 if [SHARED].
20182 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20183 <libm-alias-float.h>.
20184 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20185 if [SHARED].
20186 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20187 <libm-alias-float.h>.
20188 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20189 if [SHARED].
20190 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20191 <libm-alias-float.h>.
20192 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20193 if [SHARED].
20194 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20195 <libm-alias-float.h>.
20196 (ceilf): Define using libm_alias_float.
20197 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20198 <libm-alias-float.h>.
20199 (floorf): Define using libm_alias_float.
20200 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20201 <libm-alias-float.h>.
20202 (fmaf): Define using libm_alias_float.
20203 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20204 <libm-alias-float.h>.
20205 (nearbyintf): Define using libm_alias_float.
20206 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20207 <libm-alias-float.h>.
20208 (rintf): Define using libm_alias_float.
20209 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20210 <libm-alias-float.h>.
20211 (truncf): Define using libm_alias_float.
20212 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20213 (copysignf): Define using libm_alias_float.
20214 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20215 (cosf): Define using libm_alias_float.
20216 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20217 (fabsf): Define using libm_alias_float.
20218 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20219 (fmaxf): Define using libm_alias_float.
20220 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20221 (fminf): Define using libm_alias_float.
20222 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20223 (llrintf): Define using libm_alias_float.
20224 [!__ILP32__] (lrintf): Likewise.
20225 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20226 (sincosf): Define using libm_alias_float.
20227 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20228 (sinf): Define using libm_alias_float.
20229 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20230 (lrintf): Define using libm_alias_float.
20231
20232 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20233 <libm-alias-double.h>.
20234 (atan): Define using libm_alias_double.
20235 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20236 <libm-alias-double.h>.
20237 (ceil): Define using libm_alias_double.
20238 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20239 <libm-alias-double.h>.
20240 (floor): Define using libm_alias_double.
20241 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20242 <libm-alias-double.h>.
20243 (fma): Define using libm_alias_double.
20244 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20245 <libm-alias-double.h>.
20246 (nearbyint): Define using libm_alias_double.
20247 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20248 <libm-alias-double.h>.
20249 (rint): Define using libm_alias_double.
20250 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20251 <libm-alias-double.h>.
20252 (sin): Define using libm_alias_double.
20253 (cos): Likewise.
20254 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20255 <libm-alias-double.h>.
20256 (tan): Define using libm_alias_double.
20257 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20258 <libm-alias-double.h>.
20259 (trunc): Define using libm_alias_double.
20260 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20261 (copysign): Define using libm_alias_double.
20262 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20263 (fabs): Define using libm_alias_double.
20264 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20265 (fmax): Define using libm_alias_double.
20266 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20267 (fmin): Define using libm_alias_double.
20268 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20269 (llrint): Define using libm_alias_double.
20270 [!__ILP32__] (lrint): Likewise.
20271 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20272 (lrint): Define using libm_alias_double.
20273
20274 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20275
20276 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20277 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20278 objects.
20279 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20280 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20281 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20282 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20283 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20284 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20285
20286 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20287 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20288 objects.
20289 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20290 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20291 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20292 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20293 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20294 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20295
20296 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20297 (libm-sysdep_routines): Add s_nearbyint-generic and
20298 s_nearbyintf-generic objects.
20299 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20300 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20301 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20302 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20303 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20304 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20305
20306 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20307 Add s_finitef-generic and s_finite-generic objects.
20308 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20309 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20310 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20311 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20312 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20313 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20314
20315 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20316 Add s_isinff-generic and s_isinf-generic objects.
20317 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20318 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20319 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20320 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20321 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20322 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20323
20324 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20325 Add s_isnanf-generic and s_isnan-generic objects.
20326 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20327 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20328 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20329 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20330 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20331 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20332
20333 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20334 macro.
20335 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20336 rule.
20337 (sysdep_routines): Use sysdep_calls as base.
20338 (libm-sysdep_routines): Add generic rule for symbols shared with
20339 libc. Add s_signbit-generic and s_signbitf-generic objects.
20340 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20341 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20342 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20343 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20344 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20345 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20346
20347 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20348
20349 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20350 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20351 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20352 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20353 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20354 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20355 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20356 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20357 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20358 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20359 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20360 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20361 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20362 libm_alias_float_r.
20363 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20364 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20365 (logf): Likewise.
20366 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20367 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20368 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20369 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20370 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20371 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20372 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20373 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20374 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20375 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20376 libm_alias_float.
20377 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20378 (cosf): Likewise.
20379 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20380 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20381 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20382 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20383 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20384 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20385 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20386 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20387 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20388 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20389 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20390 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20391 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20392 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20393 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20394 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20395 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20396 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20397 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20398 libm_alias_float.
20399 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20400 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20401 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20402 * sysdeps/ia64/fpu/w_lgammaf_main.c
20403 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20404 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20405
20406 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20407 Alexandre Oliva <aoliva@redhat.com>
20408
20409 [BZ #17750]
20410 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20411 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20412 accents sorting.
20413 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20414 sorting.
20415 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20416 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20417 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20418 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20419 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20420 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20421 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20422 instead of “ifdef DIACRIT_BACKWARD”.
20423
20424 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20425
20426 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20427 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20428 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20429 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20430 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20431 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20432 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20433 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20434 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20435 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20436 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20437 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20438 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20439 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20440 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20441 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20442 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20443 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20444 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20445 ($(have-as-vis3) == yes): Remove conditional.
20446 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20447 Likewise.
20448 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20449 file.
20450 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20451 file.
20452 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20453 file.
20454 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20455 file.
20456 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20457 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20458 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20459 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20460 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20461 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20462 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20463 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20464
20465 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20466
20467 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20468 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20469 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20470 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20471 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20472 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20473 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20474 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20475 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20476 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20477 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20478 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20479 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20480 libm_alias_double_r.
20481 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20482 (log): Likewise.
20483 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20484 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20485 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20486 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20487 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20488 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20489 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20490 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20491 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20492 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20493 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20494 libm_alias_double.
20495 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20496 (cos): Likewise.
20497 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20498 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20499 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20500 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20501 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20502 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20503 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20504 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20505 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20506 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20507 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20508 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20509 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20510 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20511 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20512 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20513 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20514 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20515 libm_alias_double.
20516 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20517 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20518 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20519 * sysdeps/ia64/fpu/w_lgamma_main.c
20520 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20521 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20522
20523 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20524
20525 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20526 address of $global$ into %dp register earlier. Use pc-relative
20527 instruction sequence for PIC case.
20528
20529 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20530
20531 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20532 (asinhf): Define using libm_alias_float.
20533 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20534 (atanf): Define using libm_alias_float.
20535 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20536 (cbrtf): Define using libm_alias_float.
20537 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20538 (ceilf): Define using libm_alias_float.
20539 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20540 (copysignf): Define using libm_alias_float.
20541 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20542 (expm1f): Define using libm_alias_float.
20543 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20544 (fabsf): Define using libm_alias_float.
20545 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20546 (floorf): Define using libm_alias_float.
20547 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20548 (fmaxf): Define using libm_alias_float.
20549 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20550 (fminf): Define using libm_alias_float.
20551 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20552 (frexpf): Define using libm_alias_float.
20553 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20554 (llrintf): Define using libm_alias_float.
20555 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20556 (logbf): Define using libm_alias_float.
20557 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20558 (lrintf): Define using libm_alias_float.
20559 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20560 (nearbyintf): Define using libm_alias_float.
20561 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20562 (remquof): Define using libm_alias_float.
20563 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20564 (rintf): Define using libm_alias_float.
20565 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20566 (truncf): Define using libm_alias_float.
20567 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20568 <libm-alias-float.h>.
20569 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20570 if [SHARED].
20571 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20572 <libm-alias-float.h>.
20573 (expf): Define using libm_alias_float, or libm_alias_float_other
20574 if [SHARED].
20575 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20576 <libm-alias-float.h>.
20577 (log2f): Define using libm_alias_float, or libm_alias_float_other
20578 if [SHARED].
20579 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20580 <libm-alias-float.h>.
20581 (logf): Define using libm_alias_float, or libm_alias_float_other
20582 if [SHARED].
20583 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20584 <libm-alias-float.h>.
20585 (powf): Define using libm_alias_float, or libm_alias_float_other
20586 if [SHARED].
20587 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20588 <libm-alias-float.h>.
20589 (cosf): Define using libm_alias_float.
20590 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20591 <libm-alias-float.h>.
20592 (sincosf): Define using libm_alias_float.
20593 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20594 <libm-alias-float.h>.
20595 (sinf): Define using libm_alias_float.
20596 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20597 (fmaxf): Define using libm_alias_float.
20598 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20599 (fminf): Define using libm_alias_float.
20600 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20601 <libm-alias-float.h>.
20602 (fmaf): Define using libm_alias_float.
20603
20604 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20605 (asinh): Define using libm_alias_double.
20606 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20607 (atan): Define using libm_alias_double.
20608 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20609 (cbrt): Define using libm_alias_double.
20610 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20611 (ceil): Define using libm_alias_double.
20612 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20613 (copysign): Define using libm_alias_double.
20614 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20615 (expm1): Define using libm_alias_double.
20616 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20617 (fabs): Define using libm_alias_double.
20618 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20619 (fdim): Define using libm_alias_double.
20620 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20621 (floor): Define using libm_alias_double.
20622 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20623 (fmax): Define using libm_alias_double.
20624 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20625 (fmin): Define using libm_alias_double.
20626 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20627 (frexp): Define using libm_alias_double.
20628 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20629 (llrint): Define using libm_alias_double.
20630 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20631 (logb): Define using libm_alias_double.
20632 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20633 (lrint): Define using libm_alias_double.
20634 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20635 (nearbyint): Define using libm_alias_double.
20636 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20637 (remquo): Define using libm_alias_double.
20638 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20639 (rint): Define using libm_alias_double.
20640 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20641 (trunc): Define using libm_alias_double.
20642 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20643 (fmax): Define using libm_alias_double.
20644 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20645 (fmin): Define using libm_alias_double.
20646 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20647 (fma): Define using libm_alias_double.
20648
20649 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20650
20651 [BZ #22370]
20652 * elf/dl-hwcaps.c (ROUND): Removed.
20653 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20654 and ELF_NOTE_NEXT_OFFSET.
20655 * elf/dl-load.c (ROUND): Removed.
20656 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20657 * elf/readelflib.c (ROUND): Removed.
20658 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20659 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20660 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20661 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20662
20663 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20664
20665 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20666 [!__fmaf] (fmaf): Define using libm_alias_float.
20667
20668 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20669 [!__fma] (fma): Define using libm_alias_double.
20670 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20671
20672 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20673
20674 [BZ #22336]
20675 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20676 and implement the collation rules for cs from CLDR on top of that.
20677 * Makefile: Add cs_CZ.UTF-8 to test-input.
20678 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20679
20680 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20681
20682 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20683
20684 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20685 Icarus Sparry <icarus.w.sparry@intel.com>
20686
20687 * benchtests/Makefile:Add BENCHSET to allow subsets of
20688 benchmarks to be run.
20689 * benchtests/README: Add documentation for: Running subsets of
20690 benchmarks.
20691
20692 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20693
20694 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20695 range of tests names.
20696
20697 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20698 result from property and remove "max", min" and "mean" from
20699 required properties based on benchtests/bench-skeleton.c.
20700
20701 2017-11-28 Florian Weimer <fweimer@redhat.com>
20702
20703 [BZ #20826]
20704 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20705 due to Internet requirement.
20706 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20707 tst-getaddrinfo5.
20708 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20709
20710 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20711
20712 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20713 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20714 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20715 (sysdep_routines): Add memset-ultra1.
20716 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20717 file.
20718 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20719 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20720 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20721 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20722 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20723 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20724 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20725 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20726
20727 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20728 file.
20729 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20730 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20731 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20732 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20733 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20734 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20735 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20736 macro.
20737 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20738 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20739 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20740 (sysdep_routines): Add memcpy-ultra1.
20741 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20742 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20743
20744 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20745
20746 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20747 (cfloat_versions): Take function argument without trailing 'f'.
20748 Call libm_alias_float_other.
20749 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20750 * sysdeps/alpha/fpu/cargf.c: Likewise.
20751 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20752 * sysdeps/alpha/fpu/conjf.c: Likewise.
20753 * sysdeps/alpha/fpu/crealf.c: Likewise.
20754 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20755 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20756 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20757 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20758 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20759 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20760 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20761 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20762 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20763 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20764 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20765 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20766 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20767 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20768 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20769 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20770 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20771 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20772 (clog10f): Use libm_alias_float_other.
20773 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20774 (ceilf): Define using libm_alias_float.
20775 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20776 (copysignf): Define using libm_alias_float.
20777 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20778 (fabsf): Define using libm_alias_float.
20779 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20780 (floorf): Define using libm_alias_float.
20781 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20782 (fmaxf): Define using libm_alias_float.
20783 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20784 (fminf): Define using libm_alias_float.
20785 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20786 (lrintf): Define using libm_alias_float.
20787 (llrintf): Likewise.
20788 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20789 (lroundf): Define using libm_alias_float.
20790 (llroundf): Likewise.
20791 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20792 (rintf): Define using libm_alias_float.
20793 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20794 (truncf): Define using libm_alias_float.
20795
20796 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20797 (ceilf): Define using libm_alias_float.
20798 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20799 (floorf): Define using libm_alias_float.
20800 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20801 (fmaf): Define using libm_alias_float.
20802 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20803 (fmaxf): Define using libm_alias_float.
20804 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20805 (fminf): Define using libm_alias_float.
20806 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20807 (llrintf): Define using libm_alias_float.
20808 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20809 (llroundf): Define using libm_alias_float.
20810 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20811 (lrintf): Define using libm_alias_float.
20812 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20813 (lroundf): Define using libm_alias_float.
20814 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20815 <libm-alias-float.h>.
20816 (nearbyintf): Define using libm_alias_float.
20817 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20818 (rintf): Define using libm_alias_float.
20819 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20820 (roundf): Define using libm_alias_float.
20821 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20822 (truncf): Define using libm_alias_float.
20823
20824 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20825 (ceil): Define using libm_alias_double.
20826 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20827 (copysign): Define using libm_alias_double.
20828 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20829 (fabs): Define using libm_alias_double.
20830 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20831 (floor): Define using libm_alias_double.
20832 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20833 (fmax): Define using libm_alias_double.
20834 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
20835 (fmin): Define using libm_alias_double.
20836 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
20837 (lrint): Define using libm_alias_double.
20838 (llrint): Likewise.
20839 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
20840 (lround): Define using libm_alias_double.
20841 (llround): Likewise.
20842 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
20843 (rint): Define using libm_alias_double.
20844 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
20845 (trunc): Define using libm_alias_double.
20846
20847 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
20848 (libm_alias_double_r): Add semicolon after weak_alias call.
20849
20850 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20851
20852 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
20853 (ceil): Define using libm_alias_double.
20854 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
20855 (floor): Define using libm_alias_double.
20856 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
20857 (fma): Define using libm_alias_double.
20858 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
20859 (fmax): Define using libm_alias_double.
20860 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
20861 (fmin): Define using libm_alias_double.
20862 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
20863 (llrint): Define using libm_alias_double.
20864 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
20865 (llround): Define using libm_alias_double.
20866 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
20867 (lrint): Define using libm_alias_double.
20868 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
20869 (lround): Define using libm_alias_double.
20870 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
20871 (nearbyint): Define using libm_alias_double.
20872 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
20873 (rint): Define using libm_alias_double.
20874 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
20875 (round): Define using libm_alias_double.
20876 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
20877 (trunc): Define using libm_alias_double.
20878
20879 2017-11-27 Florian Weimer <fweimer@redhat.com>
20880
20881 * sysdeps/unix/sysv/linux/mlock2.c: New file.
20882 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
20883 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
20884 (tests): Add tst-mlock2.
20885 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
20886 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
20887 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
20888 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
20889 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
20890 for mlock. Document mlock2.
20891
20892 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20893
20894 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
20895 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
20896 Likewise.
20897 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
20898 Likewise.
20899 * sysdeps/x86/Makeconfig: New file.
20900 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
20901 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20902 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
20903 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20904 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20905 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20906 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
20907 Likewise.
20908 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20909 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20910 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20911 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20912 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20913 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20914 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20915 * manual/math.texi (Mathematics): Document support for _Float64x.
20916 * math/Versions (GLIBC_2.27): Add _Float64x functions.
20917 * stdlib/Versions (GLIBC_2.27): Likewise.
20918 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20919 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20920 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20921 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20922 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20923 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20924 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20925 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20926 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20927 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20928 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20929 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20931 Likewise.
20932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20933 Likewise.
20934 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20935 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20936 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20937 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20938 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20939 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20940 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20941 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20942 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20943 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20944 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20945 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20946 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20947 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20948
20949 2017-11-27 Andreas Schwab <schwab@suse.de>
20950
20951 * elf/Makefile (dl-routines): Add dl-sort-maps.
20952 * elf/dl-sort-maps.c: New file.
20953 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
20954 (_dl_sort_maps): Declare.
20955 * elf/dl-fini.c (_dl_sort_fini): Remove.
20956 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
20957 * elf/dl-close.c (_dl_close_worker): Likewise.
20958 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
20959 open-coding it.
20960 * elf/dl-open.c (dl_open_worker): Likewise.
20961
20962 2017-11-24 Joseph Myers <joseph@codesourcery.com>
20963
20964 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
20965 using libm_alias_float128.
20966 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
20967 Likewise.
20968 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
20969 Likewise.
20970 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
20971 (setpayloadsigf128): Likewise.
20972 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
20973 Likewise.
20974 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
20975 Likewise.
20976
20977 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
20978 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
20979 -mfloat128 to CFLAGS.
20980 ($(foreach
20981 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
20982 Likewise.
20983 (CFLAGS-libm-test-support-float64x.c): New variable.
20984 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
20985 $(f128-loader-link) to gnulib-tests.
20986
20987 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
20988 (libm_alias_float128_other_r): If
20989 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
20990 alias.
20991 (libm_alias_float128_r): Add semicolon after weak_alias call.
20992 * sysdeps/generic/libm-alias-ldouble.h
20993 (libm_alias_ldouble_other_r_f128): New macro.
20994 (libm_alias_ldouble_other_r_f64x): Likewise.
20995 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
20996 and libm_alias_ldouble_other_r_f64x.
20997 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
20998 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
20999 (libm_alias_ldouble_other_r_f128): New macro.
21000 (libm_alias_ldouble_other_r_f64x): Likewise.
21001 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21002 and libm_alias_ldouble_other_r_f64x.
21003
21004 * stdlib/strfroml.c: Always include <stdlib.h>.
21005 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21006 undefine as macro and define as weak alias.
21007 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21008 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21009 <stdlib.h>.
21010 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21011 Define and later undefine as macro and define as weak alias.
21012
21013 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21014 Define and later undefine as macro. Define as weak alias if
21015 [!USE_WIDE_CHAR].
21016 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21017 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21018 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21019 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21020 Define and later undefine as macro. Define as weak alias if
21021 [!USE_WIDE_CHAR].
21022 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21023 Define and later undefine as macro. Define as weak alias if
21024 [USE_WIDE_CHAR].
21025 * sysdeps/ieee754/float128/strtof128_l.c
21026 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21027 Define and later undefine as macro. Define as weak alias if
21028 [!USE_WIDE_CHAR].
21029 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21030 Define and later undefine as macro. Define as weak alias if
21031 [USE_WIDE_CHAR].
21032 * sysdeps/ieee754/ldbl-128/strtold_l.c
21033 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21034 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21035 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21036 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21037 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21038 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21039 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21040 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21041 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21042 * sysdeps/ieee754/ldbl-96/strtold_l.c
21043 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21044 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21045 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21046 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21047
21048 * math/test-float64x.h: New file.
21049 * math/Makefile (type-float64x-yes): New variable.
21050 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21051
21052 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21053 function-like macro.
21054 (min_of_type_): Likewise.
21055 (min_of_type_l): Likewise.
21056 (min_of_type_f128): Likewise.
21057 (min_of_type): Pass () as last argument of __MATH_TG.
21058
21059 * stdlib/tst-strtod-round-skeleton.c
21060 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21061 headers.
21062
21063 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21064 for combinations of long double with _Float64 and _Float64x.
21065
21066 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21067 (__DECL_SIMD_cosf32): Likewise.
21068 (__DECL_SIMD_cosf64): Likewise.
21069 (__DECL_SIMD_cosf32x): Likewise.
21070 (__DECL_SIMD_cosf64x): Likewise.
21071 (__DECL_SIMD_cosf128x): Likewise.
21072 (__DECL_SIMD_sinf16): Likewise.
21073 (__DECL_SIMD_sinf32): Likewise.
21074 (__DECL_SIMD_sinf64): Likewise.
21075 (__DECL_SIMD_sinf32x): Likewise.
21076 (__DECL_SIMD_sinf64x): Likewise.
21077 (__DECL_SIMD_sinf128x): Likewise.
21078 (__DECL_SIMD_sincosf16): Likewise.
21079 (__DECL_SIMD_sincosf32): Likewise.
21080 (__DECL_SIMD_sincosf64): Likewise.
21081 (__DECL_SIMD_sincosf32x): Likewise.
21082 (__DECL_SIMD_sincosf64x): Likewise.
21083 (__DECL_SIMD_sincosf128x): Likewise.
21084 (__DECL_SIMD_logf16): Likewise.
21085 (__DECL_SIMD_logf32): Likewise.
21086 (__DECL_SIMD_logf64): Likewise.
21087 (__DECL_SIMD_logf32x): Likewise.
21088 (__DECL_SIMD_logf64x): Likewise.
21089 (__DECL_SIMD_logf128x): Likewise.
21090 (__DECL_SIMD_expf16): Likewise.
21091 (__DECL_SIMD_expf32): Likewise.
21092 (__DECL_SIMD_expf64): Likewise.
21093 (__DECL_SIMD_expf32x): Likewise.
21094 (__DECL_SIMD_expf64x): Likewise.
21095 (__DECL_SIMD_expf128x): Likewise.
21096 (__DECL_SIMD_powf16): Likewise.
21097 (__DECL_SIMD_powf32): Likewise.
21098 (__DECL_SIMD_powf64): Likewise.
21099 (__DECL_SIMD_powf32x): Likewise.
21100 (__DECL_SIMD_powf64x): Likewise.
21101 (__DECL_SIMD_powf128x): Likewise.
21102
21103 * stdlib/Versions (libc): Move entries for wcstof128 and
21104 wcstof128_l to ....
21105 * wcsmbs/Versions (libc): ... here.
21106 Include <float128-abi.h>.
21107
21108 2017-11-24 Florian Weimer <fweimer@redhat.com>
21109
21110 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21111 bits/mman-shared.h.
21112 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21113 <bits/mman-shared.h>.
21114 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21115 to ...
21116 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21117 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21118 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21119 <bits/mman-shared.h>.
21120
21121 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21122
21123 [BZ #22457]
21124 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21125 posix_memalign/free.
21126 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21127
21128 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21129
21130 [BZ #22469]
21131 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21132 and implement the collation rules for pl from CLDR on top of that.
21133 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21134 of locales to be built for testing.
21135 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21136
21137 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21138
21139 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21140 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21141 libm_alias_ldouble_other.
21142 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21143 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21144 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21145 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21146 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21147 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21148 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21149 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21150 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21151 libm_alias_ldouble_r.
21152 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21153 libm_alias_ldouble_other.
21154 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21155 (log10l): Likewise.
21156 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21157 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21158 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21159 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21160 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21161 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21162 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21163 (atan2l): Likewise.
21164 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21165 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21166 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21167 libm_alias_ldouble.
21168 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21169 (cosl): Likewise.
21170 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21171 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21172 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21173 (expl): Likewise.
21174 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21175 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21176 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21177 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21178 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21179 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21180 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21181 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21182 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21183 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21184 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21185 libm_alias_ldouble.
21186 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21187 libm_alias_ldouble_other.
21188 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21189 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21190 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21191 libm_alias_ldouble.
21192 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21193 libm_alias_ldouble_other.
21194 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21195 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21196 * sysdeps/ia64/fpu/w_lgammal_main.c
21197 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21198 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21199
21200 2017-11-23 Florian Weimer <fweimer@redhat.com>
21201
21202 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21203 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21204 alike. Remove freeres marker.
21205 * malloc/arena.c (arena_thread_freeres): Call
21206 tcache_thread_shutdown.
21207
21208 2017-11-23 Florian Weimer <fweimer@redhat.com>
21209
21210 [BZ #22459]
21211 Export nscd hash function as __nss_hash.
21212 * include/nss.h (__nss_hash): Declare.
21213 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21214 symbol.
21215 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21216 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21217 of __nscd_hash.
21218 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21219 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21220 * nss/Makefiles (routines): Add nss_hash.
21221 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21222 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21223 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21224 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21225
21226 2017-11-23 Florian Weimer <fweimer@redhat.com>
21227
21228 [BZ #22478]
21229 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21230 Return error code, not -1.
21231 * signal/tst-sigwait-eintr.c: New file.
21232 * signal/Makefile (tests): Add tst-sigwait-eintr.
21233
21234 2017-11-23 Florian Weimer <fweimer@redhat.com>
21235
21236 Linux: Add memfd_create system call wrapper
21237 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21238 tst-memfd_create.
21239 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21240 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21241 [__USE_GNU] (memfd_create): Declare.
21242 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21243 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21244 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21245 * sysdeps/unix/sysv/linux/**.abilist: Update.
21246 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21247
21248 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21249
21250 * localedata/gen-locale.sh: Fix typo in variable name.
21251
21252 * resolv/res_debug.c (p_secstodate): Condition definition on
21253 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21254 directly as __p_secstodate, and as a compat symbol. Do not use
21255 libresolv_hidden_def.
21256 * resolv/resolv.h (p_secstodate): Remove macro and function
21257 declaration.
21258 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21259 using p_secstodate.
21260 * include/resolv.h (__p_secstodate): Do not use
21261 libresolv_hidden_proto.
21262 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21263 (tests-internal): ... here.
21264 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21265 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21266 and declare and use __p_secstodate and use compat_symbol_reference
21267 in that case.
21268 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21269 implementation returning 77.
21270
21271 [BZ #22463]
21272 * resolv/res_debug.c: Include <libc-diag.h>.
21273 (p_secstodate): Assert time_t at least as wide as u_long. On
21274 overflow, use integer seconds since the epoch as output, or use
21275 "<overflow>" as output and set errno to EOVERFLOW if integer
21276 seconds since the epoch would be 14 or more characters.
21277 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21278 for sprintf call.
21279 * resolv/tst-p_secstodate.c: New file.
21280 * resolv/Makefile (tests): Add tst-p_secstodate.
21281 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21282
21283 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21284 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21285 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21286
21287 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21288
21289 * posix/regcomp.c (init_word_char): Add comments.
21290
21291 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21292
21293 [BZ #22447]
21294 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21295 strlen to compute length of ut_user and set trailing NUL byte of
21296 result explicitly.
21297
21298 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21299
21300 [BZ #15537]
21301 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21302 using “copy "iso14651_t1"” and then implementing the
21303 collation rules for lv from CLDR on top of that.
21304 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21305 of locales to be built for testing.
21306 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21307 sorting.
21308
21309 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21310
21311 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21312 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21313 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21314 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21315 [__USE_MISC] (MADV_HWPOISON): New macro.
21316 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21317
21318 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21319
21320 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21321 -Wmissing-braces on GCC 4.9.
21322
21323 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21324
21325 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21326 * sysdeps/s390/s390-32/start.S (_start): Likewise
21327 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21328 (thread_start): Likewise.
21329 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21330 (thread_start): Likewise.
21331 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21332 (__makecontext_ret): Likewise.
21333 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21334 (__makecontext_ret): Likewise.
21335
21336 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21337
21338 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21339 __wcschrnul): Remove attribute_hidden.
21340
21341 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21342
21343 regex: don't assume uint64_t or uint32_t
21344 This avoids -Werror=overflow errors for 32-bit systems in
21345 the 64-bit case. Problem reported by Joseph Myers in:
21346 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21347 Also, when this code is used in Gnulib it ports to platforms
21348 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21349 them, and on some 32-bit compilers there is no uint64_t.
21350 Problem reported by Gianluigi Tiesi in:
21351 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21352 * posix/regcomp.c (init_word_char): Don't assume that the types
21353 uint64_t and uint32_t exist. Adapted from Gnulib patch
21354 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21355 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21356
21357 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21358
21359 * sysdeps/aarch64/memset-reg.h: New file.
21360 * sysdeps/aarch64/memset.S: Use it.
21361 (__memset): Rename to MEMSET macro.
21362 [ZVA_MACRO]: Use zva_macro.
21363 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21364 Add memset_generic and memset_falkor.
21365 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21366 (__libc_ifunc_impl_list): Add memset ifuncs.
21367 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21368 local variable zva_size.
21369 * sysdeps/aarch64/multiarch/memset.c: New file.
21370 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21371 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21372 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21373 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21374 (DCZID_DZP_MASK): New macro.
21375 (DCZID_BS_MASK): Likewise.
21376 (init_cpu_features): Read and set zva_size.
21377 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21378 (struct cpu_features): New member zva_size.
21379
21380 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21381 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21382 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21383
21384 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21385 backwards. Fix timing computation.
21386 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21387 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21388 on memset by N at a time. Fix timing computation.
21389
21390 2017-11-20 Florian Weimer <fweimer@redhat.com>
21391
21392 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21393 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21394
21395 2017-11-19 Florian Weimer <fweimer@redhat.com>
21396
21397 manual: Document mprotect
21398 * manual/memory.texi (Memory Protection): New section.
21399 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21400 documentation of PROT_* flags and reference the Memory Protection
21401 section instead.
21402
21403 2017-11-19 Florian Weimer <fweimer@redhat.com>
21404
21405 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21406 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21407 (Scatter-Gather): ... to here. Remove misleading comment.
21408
21409 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21410
21411 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21412 style.
21413
21414 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21415 when /proc/<pid>/setgroups does not exist.
21416
21417 2017-11-18 Florian Weimer <fweimer@redhat.com>
21418
21419 * sysdeps/unix/sysv/linux/tst-ttyname.c
21420 (become_root_in_mount_ns): Remove.
21421 (do_in_chroot_1): Call support_enter_mount_namespace.
21422 (do_in_chroot_2): Likewise.
21423 (do_test): Call support_become_root early.
21424
21425 2017-11-18 Florian Weimer <fweimer@redhat.com>
21426
21427 * support/namespace.h (support_enter_mount_namespace): Declare.
21428 * support/support_enter_mount_namespace.c: New file.
21429 * support/Makefile (libsupport-routines): Add
21430 support_enter_mount_namespace.
21431
21432 2017-11-18 Florian Weimer <fweimer@redhat.com>
21433
21434 * support/temp_file.c (support_create_temp_directory): Use
21435 test_dir and do not rely on the presence of the XXXXXX suffix.
21436 * support/temp_file.h (support_create_temp_directory): Update
21437 comment.
21438 * support/tst-xreadlink.c (do_test): Adjust.
21439 * support/support_chroot.c (support_chroot_create): Likewise.
21440
21441 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21442
21443 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21444 macro.
21445 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21446 htm-no-suspend.
21447
21448 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21449
21450 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21451 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21452 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21453 (ceill): Define using libm_alias_ldouble.
21454 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21455 <libm-alias-ldouble.h>.
21456 (copysignl): Define using libm_alias_ldouble.
21457 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21458 (fabsl): Define using libm_alias_ldouble.
21459 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21460 (floorl): Define using libm_alias_ldouble.
21461 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21462 (fmaxl): Define using libm_alias_ldouble.
21463 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21464 (fminl): Define using libm_alias_ldouble.
21465 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21466 (llrintl): Define using libm_alias_ldouble.
21467 (lrintl): Likewise.
21468 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21469 <libm-alias-ldouble.h>.
21470 (nearbyintl): Define using libm_alias_ldouble.
21471 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21472 (truncl): Define using libm_alias_ldouble.
21473 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21474 <libm-alias-ldouble.h>.
21475 (lrintl): Define using libm_alias_ldouble.
21476
21477 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21478 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21479 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21480 (asinhl): Define using libm_alias_ldouble.
21481 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21482 (atanl): Define using libm_alias_ldouble.
21483 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21484 (cbrtl): Define using libm_alias_ldouble.
21485 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21486 (ceill): Define using libm_alias_ldouble.
21487 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21488 (copysignl): Define using libm_alias_ldouble.
21489 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21490 (fabsl): Define using libm_alias_ldouble.
21491 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21492 (floorl): Define using libm_alias_ldouble.
21493 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21494 (fmaxl): Define using libm_alias_ldouble.
21495 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21496 (fminl): Define using libm_alias_ldouble.
21497 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21498 (frexpl): Define using libm_alias_ldouble.
21499 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21500 (llrintl): Define using libm_alias_ldouble.
21501 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21502 (logbl): Define using libm_alias_ldouble.
21503 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21504 (lrintl): Define using libm_alias_ldouble.
21505 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21506 (nearbyintl): Define using libm_alias_ldouble.
21507 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21508 (nextafterl): Define using libm_alias_ldouble.
21509 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21510 (remquol): Define using libm_alias_ldouble.
21511 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21512 (rintl): Define using libm_alias_ldouble.
21513 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21514 (truncl): Define using libm_alias_ldouble.
21515 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21516 (fmaxl): Define using libm_alias_ldouble.
21517 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21518 (fminl): Define using libm_alias_ldouble.
21519
21520 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21521 to C syntax instead of availability and properties of types.
21522 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21523 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21524 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21525 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21526 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21527 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21528
21529 2017-11-17 Florian Weimer <fweimer@redhat.com>
21530
21531 support_become_root: Enable file creation in namespaces.
21532 * support/support_become_root.c (setup_mapping): New function.
21533 (support_become_root): Call it.
21534
21535 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21536
21537 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21538 macro.
21539
21540 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21541
21542 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21543 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21544
21545 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21546
21547 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21548
21549 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21550 version to 4.14.
21551
21552 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21553
21554 * INSTALL: Fix botched up regeneration.
21555
21556 * NEWS: Update sourceare link to https.
21557 * configure.ac: Likewise.
21558 * crypt/md5test-giant.c: Likewise.
21559 * dlfcn/bug-atexit1.c: Likewise.
21560 * dlfcn/bug-atexit2.c: Likewise.
21561 * localedata/README: Likewise.
21562 * malloc/tst-mallocfork.c: Likewise.
21563 * manual/install.texi: Likewise.
21564 * nptl/tst-pthread-getattr.c: Likewise.
21565 * stdio-common/tst-fgets.c: Likewise.
21566 * stdio-common/tst-fwrite.c: Likewise.
21567 * sunrpc/Makefile: Likewise.
21568 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21569 * wcsmbs/tst-mbrtowc2.c: Likewise.
21570 * configure: Regenerate.
21571 * INSTALL: Regenerate.
21572
21573 2017-11-15 Martin Sebor <msebor@redhat.com>
21574
21575 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21576 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21577 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21578
21579 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21580
21581 [BZ #22145]
21582 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21583 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21584
21585 [BZ #22145]
21586 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21587 Defer is_pty check until end of the function.
21588 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21589
21590 [BZ #22145]
21591 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21592 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21593 (ttyname): Likewise.
21594 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21595 (__ttyname_r): Likewise.
21596
21597 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21598 int to bool.
21599
21600 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21601
21602 * manual/terminal.texi (Is It a Terminal):
21603 Mention ENODEV for ttyname and ttyname_r.
21604
21605 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21606
21607 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21608 constant and macro.
21609
21610 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21611 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21612 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21613 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21614 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21615 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21616
21617 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21618
21619 * signal/sigrelse.c (sigrelse): Optimize implementation.
21620
21621 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21622 (__sigpause): Rely on __sigsuspend to implement single thread
21623 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21624
21625 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21626
21627 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21628 kernel version to 4.14.
21629
21630 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21631
21632 [BZ #22442]
21633 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21634 Check if ifname is too long.
21635
21636 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21637
21638 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21639
21640 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21641
21642 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21643 was accidentally lost.
21644
21645 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21646
21647 * localedata/locales/az_IR: Add standard copyright header.
21648
21649 2017-11-15 Florian Weimer <fweimer@redhat.com>
21650
21651 [BZ #22439]
21652 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21653 not just the top one. Output a new "subheaps" statistic.
21654
21655 2017-11-15 Florian Weimer <fweimer@redhat.com>
21656
21657 [BZ #22408]
21658 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21659 under the per-arena lock.
21660 * malloc/Makefile (tests): Add tst-malloc_info.
21661 (tst-malloc_info): Link with libpthread.
21662 * malloc/tst-malloc_info.c: New file.
21663
21664 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21665
21666 [BZ #21660]
21667 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21668 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21669 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21670 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21671 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21672 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21673 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21674 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21675 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21676 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21677 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21678 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21679 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21680 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21681 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21682 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21683 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21684 (__floating_type): Likewise.
21685 (__real_integer_type): Likewise.
21686 (__complex_integer_type): Likewise.
21687 (__expr_is_real): Likewise.
21688 (__tgmath_real_type_sub): Likewise.
21689 (__tgmath_real_type): Likewise.
21690 (__tgmath_complex_type_sub): Likewise.
21691 (__tgmath_complex_type): Likewise.
21692 (__TGMATH_F128): Likewise.
21693 (__TGMATH_CF128): Likewise.
21694 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21695 new macros.
21696 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21697 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21698 Likewise.
21699 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21700 Likewise.
21701 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21702 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21703 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21704 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21705 Likewise.
21706 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21707 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21708 Likewise.
21709 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21710 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21711 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21712 Likewise.
21713 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21714 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21715 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21716 (cimag): Likewise.
21717 (creal): Likewise.
21718
21719 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21720
21721 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21722 for stpncpy calls for GCC 8.
21723 (test_strncat): Disable -Wstringop-truncation warning for strncat
21724 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21725 strncat call for GCC 7.
21726 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21727 calls for GCC 8.
21728 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21729 trailing NUL.
21730
21731 * string/bug-strncat1.c: Include <libc-diag.h>.
21732 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21733
21734 2017-11-13 Claude Paroz <claude@2xlibre.net>
21735
21736 [BZ #22387]
21737 * localedata/locales/aa_DJ: Improved readibility by replacing
21738 <Uxxxx> sequences in the ASCII printable range by their ASCII
21739 character equivalents.
21740 * localedata/locales/aa_ER: Likewise.
21741 * localedata/locales/aa_ER@saaho: Likewise.
21742 * localedata/locales/aa_ET: Likewise.
21743 * localedata/locales/af_ZA: Likewise.
21744 * localedata/locales/agr_PE: Likewise.
21745 * localedata/locales/ak_GH: Likewise.
21746 * localedata/locales/am_ET: Likewise.
21747 * localedata/locales/anp_IN: Likewise.
21748 * localedata/locales/ar_AE: Likewise.
21749 * localedata/locales/ar_BH: Likewise.
21750 * localedata/locales/ar_DZ: Likewise.
21751 * localedata/locales/ar_EG: Likewise.
21752 * localedata/locales/ar_IN: Likewise.
21753 * localedata/locales/ar_IQ: Likewise.
21754 * localedata/locales/ar_JO: Likewise.
21755 * localedata/locales/ar_KW: Likewise.
21756 * localedata/locales/ar_LB: Likewise.
21757 * localedata/locales/ar_LY: Likewise.
21758 * localedata/locales/ar_MA: Likewise.
21759 * localedata/locales/ar_OM: Likewise.
21760 * localedata/locales/ar_QA: Likewise.
21761 * localedata/locales/ar_SA: Likewise.
21762 * localedata/locales/ar_SD: Likewise.
21763 * localedata/locales/ar_SS: Likewise.
21764 * localedata/locales/ar_SY: Likewise.
21765 * localedata/locales/ar_TN: Likewise.
21766 * localedata/locales/ar_YE: Likewise.
21767 * localedata/locales/as_IN: Likewise.
21768 * localedata/locales/ast_ES: Likewise.
21769 * localedata/locales/ayc_PE: Likewise.
21770 * localedata/locales/az_AZ: Likewise.
21771 * localedata/locales/az_IR: Likewise.
21772 * localedata/locales/be_BY: Likewise.
21773 * localedata/locales/be_BY@latin: Likewise.
21774 * localedata/locales/bem_ZM: Likewise.
21775 * localedata/locales/ber_DZ: Likewise.
21776 * localedata/locales/ber_MA: Likewise.
21777 * localedata/locales/bg_BG: Likewise.
21778 * localedata/locales/bhb_IN: Likewise.
21779 * localedata/locales/bho_IN: Likewise.
21780 * localedata/locales/bi_VU: Likewise.
21781 * localedata/locales/bn_BD: Likewise.
21782 * localedata/locales/bn_IN: Likewise.
21783 * localedata/locales/bo_CN: Likewise.
21784 * localedata/locales/bo_IN: Likewise.
21785 * localedata/locales/br_FR: Likewise.
21786 * localedata/locales/brx_IN: Likewise.
21787 * localedata/locales/bs_BA: Likewise.
21788 * localedata/locales/byn_ER: Likewise.
21789 * localedata/locales/ca_AD: Likewise.
21790 * localedata/locales/ca_ES: Likewise.
21791 * localedata/locales/ca_FR: Likewise.
21792 * localedata/locales/ca_IT: Likewise.
21793 * localedata/locales/ce_RU: Likewise.
21794 * localedata/locales/chr_US: Likewise.
21795 * localedata/locales/cmn_TW: Likewise.
21796 * localedata/locales/crh_UA: Likewise.
21797 * localedata/locales/cs_CZ: Likewise.
21798 * localedata/locales/csb_PL: Likewise.
21799 * localedata/locales/cv_RU: Likewise.
21800 * localedata/locales/cy_GB: Likewise.
21801 * localedata/locales/da_DK: Likewise.
21802 * localedata/locales/de_AT: Likewise.
21803 * localedata/locales/de_BE: Likewise.
21804 * localedata/locales/de_CH: Likewise.
21805 * localedata/locales/de_DE: Likewise.
21806 * localedata/locales/de_IT: Likewise.
21807 * localedata/locales/de_LI: Likewise.
21808 * localedata/locales/de_LU: Likewise.
21809 * localedata/locales/doi_IN: Likewise.
21810 * localedata/locales/dv_MV: Likewise.
21811 * localedata/locales/dz_BT: Likewise.
21812 * localedata/locales/el_CY: Likewise.
21813 * localedata/locales/el_GR: Likewise.
21814 * localedata/locales/en_AG: Likewise.
21815 * localedata/locales/en_AU: Likewise.
21816 * localedata/locales/en_BW: Likewise.
21817 * localedata/locales/en_CA: Likewise.
21818 * localedata/locales/en_DK: Likewise.
21819 * localedata/locales/en_GB: Likewise.
21820 * localedata/locales/en_HK: Likewise.
21821 * localedata/locales/en_IE: Likewise.
21822 * localedata/locales/en_IL: Likewise.
21823 * localedata/locales/en_IN: Likewise.
21824 * localedata/locales/en_NG: Likewise.
21825 * localedata/locales/en_NZ: Likewise.
21826 * localedata/locales/en_PH: Likewise.
21827 * localedata/locales/en_SG: Likewise.
21828 * localedata/locales/en_US: Likewise.
21829 * localedata/locales/en_ZA: Likewise.
21830 * localedata/locales/en_ZM: Likewise.
21831 * localedata/locales/en_ZW: Likewise.
21832 * localedata/locales/eo: Likewise.
21833 * localedata/locales/es_AR: Likewise.
21834 * localedata/locales/es_BO: Likewise.
21835 * localedata/locales/es_CL: Likewise.
21836 * localedata/locales/es_CO: Likewise.
21837 * localedata/locales/es_CR: Likewise.
21838 * localedata/locales/es_CU: Likewise.
21839 * localedata/locales/es_DO: Likewise.
21840 * localedata/locales/es_EC: Likewise.
21841 * localedata/locales/es_ES: Likewise.
21842 * localedata/locales/es_GT: Likewise.
21843 * localedata/locales/es_HN: Likewise.
21844 * localedata/locales/es_MX: Likewise.
21845 * localedata/locales/es_NI: Likewise.
21846 * localedata/locales/es_PA: Likewise.
21847 * localedata/locales/es_PE: Likewise.
21848 * localedata/locales/es_PR: Likewise.
21849 * localedata/locales/es_PY: Likewise.
21850 * localedata/locales/es_SV: Likewise.
21851 * localedata/locales/es_US: Likewise.
21852 * localedata/locales/es_UY: Likewise.
21853 * localedata/locales/es_VE: Likewise.
21854 * localedata/locales/et_EE: Likewise.
21855 * localedata/locales/eu_ES: Likewise.
21856 * localedata/locales/eu_ES@euro: Likewise.
21857 * localedata/locales/fa_IR: Likewise.
21858 * localedata/locales/ff_SN: Likewise.
21859 * localedata/locales/fi_FI: Likewise.
21860 * localedata/locales/fil_PH: Likewise.
21861 * localedata/locales/fo_FO: Likewise.
21862 * localedata/locales/fr_BE: Likewise.
21863 * localedata/locales/fr_CA: Likewise.
21864 * localedata/locales/fr_CH: Likewise.
21865 * localedata/locales/fr_FR: Likewise.
21866 * localedata/locales/fr_LU: Likewise.
21867 * localedata/locales/fur_IT: Likewise.
21868 * localedata/locales/fy_DE: Likewise.
21869 * localedata/locales/fy_NL: Likewise.
21870 * localedata/locales/ga_IE: Likewise.
21871 * localedata/locales/gd_GB: Likewise.
21872 * localedata/locales/gez_ER: Likewise.
21873 * localedata/locales/gez_ET: Likewise.
21874 * localedata/locales/gl_ES: Likewise.
21875 * localedata/locales/gu_IN: Likewise.
21876 * localedata/locales/gv_GB: Likewise.
21877 * localedata/locales/ha_NG: Likewise.
21878 * localedata/locales/hak_TW: Likewise.
21879 * localedata/locales/he_IL: Likewise.
21880 * localedata/locales/hi_IN: Likewise.
21881 * localedata/locales/hif_FJ: Likewise.
21882 * localedata/locales/hne_IN: Likewise.
21883 * localedata/locales/hr_HR: Likewise.
21884 * localedata/locales/hsb_DE: Likewise.
21885 * localedata/locales/ht_HT: Likewise.
21886 * localedata/locales/hu_HU: Likewise.
21887 * localedata/locales/hy_AM: Likewise.
21888 * localedata/locales/i18n: Likewise.
21889 * localedata/locales/ia_FR: Likewise.
21890 * localedata/locales/id_ID: Likewise.
21891 * localedata/locales/ig_NG: Likewise.
21892 * localedata/locales/ik_CA: Likewise.
21893 * localedata/locales/is_IS: Likewise.
21894 * localedata/locales/it_CH: Likewise.
21895 * localedata/locales/it_IT: Likewise.
21896 * localedata/locales/iu_CA: Likewise.
21897 * localedata/locales/ja_JP: Likewise.
21898 * localedata/locales/ka_GE: Likewise.
21899 * localedata/locales/kk_KZ: Likewise.
21900 * localedata/locales/kl_GL: Likewise.
21901 * localedata/locales/kn_IN: Likewise.
21902 * localedata/locales/ko_KR: Likewise.
21903 * localedata/locales/kok_IN: Likewise.
21904 * localedata/locales/ks_IN: Likewise.
21905 * localedata/locales/ks_IN@devanagari: Likewise.
21906 * localedata/locales/ku_TR: Likewise.
21907 * localedata/locales/kw_GB: Likewise.
21908 * localedata/locales/ky_KG: Likewise.
21909 * localedata/locales/lb_LU: Likewise.
21910 * localedata/locales/lg_UG: Likewise.
21911 * localedata/locales/li_BE: Likewise.
21912 * localedata/locales/li_NL: Likewise.
21913 * localedata/locales/lij_IT: Likewise.
21914 * localedata/locales/ln_CD: Likewise.
21915 * localedata/locales/lo_LA: Likewise.
21916 * localedata/locales/lt_LT: Likewise.
21917 * localedata/locales/lv_LV: Likewise.
21918 * localedata/locales/lzh_TW: Likewise.
21919 * localedata/locales/mag_IN: Likewise.
21920 * localedata/locales/mai_IN: Likewise.
21921 * localedata/locales/mg_MG: Likewise.
21922 * localedata/locales/mhr_RU: Likewise.
21923 * localedata/locales/mi_NZ: Likewise.
21924 * localedata/locales/mk_MK: Likewise.
21925 * localedata/locales/ml_IN: Likewise.
21926 * localedata/locales/mn_MN: Likewise.
21927 * localedata/locales/mni_IN: Likewise.
21928 * localedata/locales/mr_IN: Likewise.
21929 * localedata/locales/ms_MY: Likewise.
21930 * localedata/locales/mt_MT: Likewise.
21931 * localedata/locales/my_MM: Likewise.
21932 * localedata/locales/nan_TW: Likewise.
21933 * localedata/locales/nan_TW@latin: Likewise.
21934 * localedata/locales/nb_NO: Likewise.
21935 * localedata/locales/nds_DE: Likewise.
21936 * localedata/locales/nds_NL: Likewise.
21937 * localedata/locales/ne_NP: Likewise.
21938 * localedata/locales/nhn_MX: Likewise.
21939 * localedata/locales/niu_NU: Likewise.
21940 * localedata/locales/niu_NZ: Likewise.
21941 * localedata/locales/nl_AW: Likewise.
21942 * localedata/locales/nl_BE: Likewise.
21943 * localedata/locales/nl_NL: Likewise.
21944 * localedata/locales/nn_NO: Likewise.
21945 * localedata/locales/nr_ZA: Likewise.
21946 * localedata/locales/nso_ZA: Likewise.
21947 * localedata/locales/oc_FR: Likewise.
21948 * localedata/locales/om_ET: Likewise.
21949 * localedata/locales/om_KE: Likewise.
21950 * localedata/locales/or_IN: Likewise.
21951 * localedata/locales/os_RU: Likewise.
21952 * localedata/locales/pa_IN: Likewise.
21953 * localedata/locales/pa_PK: Likewise.
21954 * localedata/locales/pap_AW: Likewise.
21955 * localedata/locales/pap_CW: Likewise.
21956 * localedata/locales/pl_PL: Likewise.
21957 * localedata/locales/ps_AF: Likewise.
21958 * localedata/locales/pt_BR: Likewise.
21959 * localedata/locales/pt_PT: Likewise.
21960 * localedata/locales/quz_PE: Likewise.
21961 * localedata/locales/raj_IN: Likewise.
21962 * localedata/locales/ro_RO: Likewise.
21963 * localedata/locales/ru_RU: Likewise.
21964 * localedata/locales/ru_UA: Likewise.
21965 * localedata/locales/rw_RW: Likewise.
21966 * localedata/locales/sa_IN: Likewise.
21967 * localedata/locales/sat_IN: Likewise.
21968 * localedata/locales/sc_IT: Likewise.
21969 * localedata/locales/sd_IN: Likewise.
21970 * localedata/locales/sd_IN@devanagari: Likewise.
21971 * localedata/locales/se_NO: Likewise.
21972 * localedata/locales/sgs_LT: Likewise.
21973 * localedata/locales/shs_CA: Likewise.
21974 * localedata/locales/si_LK: Likewise.
21975 * localedata/locales/sid_ET: Likewise.
21976 * localedata/locales/sk_SK: Likewise.
21977 * localedata/locales/sl_SI: Likewise.
21978 * localedata/locales/sm_WS: Likewise.
21979 * localedata/locales/so_DJ: Likewise.
21980 * localedata/locales/so_ET: Likewise.
21981 * localedata/locales/so_KE: Likewise.
21982 * localedata/locales/so_SO: Likewise.
21983 * localedata/locales/sq_AL: Likewise.
21984 * localedata/locales/sq_MK: Likewise.
21985 * localedata/locales/sr_ME: Likewise.
21986 * localedata/locales/sr_RS: Likewise.
21987 * localedata/locales/sr_RS@latin: Likewise.
21988 * localedata/locales/ss_ZA: Likewise.
21989 * localedata/locales/st_ZA: Likewise.
21990 * localedata/locales/sv_FI: Likewise.
21991 * localedata/locales/sv_SE: Likewise.
21992 * localedata/locales/sw_KE: Likewise.
21993 * localedata/locales/sw_TZ: Likewise.
21994 * localedata/locales/szl_PL: Likewise.
21995 * localedata/locales/ta_IN: Likewise.
21996 * localedata/locales/ta_LK: Likewise.
21997 * localedata/locales/tcy_IN: Likewise.
21998 * localedata/locales/te_IN: Likewise.
21999 * localedata/locales/tg_TJ: Likewise.
22000 * localedata/locales/th_TH: Likewise.
22001 * localedata/locales/the_NP: Likewise.
22002 * localedata/locales/ti_ER: Likewise.
22003 * localedata/locales/ti_ET: Likewise.
22004 * localedata/locales/tig_ER: Likewise.
22005 * localedata/locales/tk_TM: Likewise.
22006 * localedata/locales/tl_PH: Likewise.
22007 * localedata/locales/tn_ZA: Likewise.
22008 * localedata/locales/to_TO: Likewise.
22009 * localedata/locales/tpi_PG: Likewise.
22010 * localedata/locales/tr_CY: Likewise.
22011 * localedata/locales/tr_TR: Likewise.
22012 * localedata/locales/ts_ZA: Likewise.
22013 * localedata/locales/tt_RU: Likewise.
22014 * localedata/locales/tt_RU@iqtelif: Likewise.
22015 * localedata/locales/ug_CN: Likewise.
22016 * localedata/locales/uk_UA: Likewise.
22017 * localedata/locales/unm_US: Likewise.
22018 * localedata/locales/ur_IN: Likewise.
22019 * localedata/locales/ur_PK: Likewise.
22020 * localedata/locales/uz_UZ: Likewise.
22021 * localedata/locales/uz_UZ@cyrillic: Likewise.
22022 * localedata/locales/ve_ZA: Likewise.
22023 * localedata/locales/vi_VN: Likewise.
22024 * localedata/locales/wa_BE: Likewise.
22025 * localedata/locales/wae_CH: Likewise.
22026 * localedata/locales/wal_ET: Likewise.
22027 * localedata/locales/wo_SN: Likewise.
22028 * localedata/locales/xh_ZA: Likewise.
22029 * localedata/locales/yi_US: Likewise.
22030 * localedata/locales/yo_NG: Likewise.
22031 * localedata/locales/yue_HK: Likewise.
22032 * localedata/locales/yuw_PG: Likewise.
22033 * localedata/locales/zh_CN: Likewise.
22034 * localedata/locales/zh_HK: Likewise.
22035 * localedata/locales/zh_SG: Likewise.
22036 * localedata/locales/zh_TW: Likewise.
22037 * localedata/locales/zu_ZA: Likewise.
22038
22039 2017-11-13 Florian Weimer <fweimer@redhat.com>
22040
22041 * support/next_to_fault.h, support/next_to_fault.c: New files.
22042 * support/Makefile (libsupport-routines): Add next_to_fault.
22043 * resolv/tst-inet_pton.c (struct next_to_fault)
22044 (next_to_fault_allocate, next_to_fault_free): Remove.
22045 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22046
22047 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22048
22049 * elf/dl-support.c: Include <dl-procruntime.c>.
22050 * include/link.h: Include <link_map.h>.
22051 * sysdeps/generic/dl-procruntime.c: New file.
22052 * sysdeps/generic/link_map.h: Likewise.
22053 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22054 the writable ld.so namespace.
22055
22056 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22057
22058 timezone: pacify GCC -Wstringop-truncation
22059 Problem reported by Martin Sebor in:
22060 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22061 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22062
22063 2017-11-12 Florian Weimer <fweimer@redhat.com>
22064
22065 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22066 tst-xreadlink.
22067 (tests): Add tst-xreadlink.
22068 * support/support.h (xstrndup): Declare.
22069 * support/xunistd.h (xunlink, xreadlink): Declare.
22070 * support/temp_file.h (support_create_temp_directory): Declare.
22071 * support/temp_file.c (support_create_temp_directory): New function.
22072 * support/support_chroot.c (support_chroot_create): Use it.
22073 * support/xreadlink.c: New file.
22074 * support/xstrndup.c: Likewise.
22075 * support/xunlink.c: Likewise.
22076 * support/tst-xreadlink.c: Likewise.
22077
22078 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22079
22080 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22081
22082 2017-11-11 Florian Weimer <fweimer@redhat.com>
22083
22084 [BZ #22409]
22085 [BZ #22412]
22086 * resolv/res_comp.c (printable_string, binary_hnok)
22087 (binary_leading_dash): New functions.
22088 (res_hnok): Reimplement using these functions and ns_name_pton.
22089 (res_ownok): Likewise.
22090 (res_mailok): Reimplement using printable_string, ns_name_pton and
22091 binary_hnok.
22092 (res_dnok): Reimplement using printable_string and ns_name_pton.
22093 * resolv/tst-res_hnok.c (tests): Add additional tests.
22094 (LETTERDIGITS, PRINTABLE): Define.
22095 (do_test): Adjust one_char results.
22096
22097 2017-11-11 Florian Weimer <fweimer@redhat.com>
22098
22099 [BZ #22413]
22100 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22101 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22102
22103 2017-11-11 Florian Weimer <fweimer@redhat.com>
22104
22105 * resolv/tst-ns_name_pton.c: New file.
22106 * resolv/Makefile (tests): Add tst-ns_name_pton.
22107 (tst-ns_name_pton): Link against libresolv.
22108
22109 2017-11-11 Florian Weimer <fweimer@redhat.com>
22110
22111 * resolv/tst-res_hnok.c: New file.
22112 * resolv/Makefile (tests): Add tst-res_hnok.
22113 (tst-res_hnok): Link against libresolv.
22114
22115 2017-11-11 Florian Weimer <fweimer@redhat.com>
22116
22117 * resolv/tst-resolv-network.c: Use test framework instead explicit
22118 main function.
22119
22120 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22121
22122 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22123 <jmp_buf-macros.h>.
22124 [!_ISOMAC] (STR_HELPER): New.
22125 [!_ISOMAC] (STR): Likewise.
22126 [!_ISOMAC] (TEST_SIZE): Likewise.
22127 [!_ISOMAC] (TEST_ALIGN): Likewise.
22128 [!_ISOMAC] (TEST_OFFSET): Likewise.
22129 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22130 field offsets of jmp_buf as well as sigjmp_buf.
22131 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22132 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22133 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22134 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22135 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22136 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22137 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22138 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22139 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22140 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22141 Likewise.
22142 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22143 Likewise.
22144 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22146 Likewise.
22147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22148 Likewise.
22149 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22150 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22151 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22152 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22153 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22154 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22155 Likewise.
22156 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22157 Likewise.
22158 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22159 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22160 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22161
22162 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22163
22164 * include/float.h
22165 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22166 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22167 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22168 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22169 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22170 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22171 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22172 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22173 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22174 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22175 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22176 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22177 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22178 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22179 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22180 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22181 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22182 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22183 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22184 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22185 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22186 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22187 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22188 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22189 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22190 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22191 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22192 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22193 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22194 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22195 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22196 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22197 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22198 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22199 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22200 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22201 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22202 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22203 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22204 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22205 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22206 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22207 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22208 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22209 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22210 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22211 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22212 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22213 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22214 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22215 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22216 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22217 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22218 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22219 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22220 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22221 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22222 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22223 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22224 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22225 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22226 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22227 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22228 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22229 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22230 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22231 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22232 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22233 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22234 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22235 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22236 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22237 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22238 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22239 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22240 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22241 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22242 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22243 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22244 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22245 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22246 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22247 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22248 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22249 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22250 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22251 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22252 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22253
22254 * stdlib/tst-strtod.h (F16): New macro.
22255 (F32): Likewise.
22256 (F64): Likewise.
22257 (F32X): Likewise.
22258 (F64X): Likewise.
22259 (F128X): Likewise.
22260 (IF_FLOAT16): Likewise.
22261 (IF_FLOAT32): Likewise.
22262 (IF_FLOAT64): Likewise.
22263 (IF_FLOAT32X): Likewise.
22264 (IF_FLOAT64X): Likewise.
22265 (IF_FLOAT128X): Likewise.
22266 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22267 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22268 (STRTOD_TEST_FOREACH): Likewise.
22269 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22270 (CHOOSE_f64): Likewise.
22271 (CHOOSE_f32x): Likewise.
22272 (CHOOSE_f64x): Likewise.
22273
22274 2017-11-07 Andreas Schwab <schwab@suse.de>
22275
22276 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22277
22278 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22279
22280 [BZ #22403]
22281 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22282 to be escaped.
22283 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22284 to be escaped.
22285
22286 2017-11-07 Claude Paroz <claude@2xlibre.net>
22287
22288 [BZ #22403]
22289 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22290 to be escaped.
22291 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22292 to be escaped.
22293 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22294 to be escaped.
22295
22296 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22297
22298 [BZ #22298]
22299 * nptl/allocatestack.c (allocate_stack): Check if
22300 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22301 __PTHREAD_MUTEX_HAVE_PREV is defined.
22302 * nptl/descr.h (pthread): Likewise.
22303 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22304 Likewise.
22305 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22306 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22307 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22308 * sysdeps/nptl/bits/thread-shared-types.h
22309 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22310 defines.
22311 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22312 of __WORDSIZE for internal layout.
22313 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22314 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22315 instead of __WORDSIZE whether to use an union for __spins and __list
22316 fields.
22317 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22318 case.
22319 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22320 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22321 defines.
22322 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22323 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22324 Likewise.
22325 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22326 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22327 Likewise.
22328 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22329 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22330 Likewise.
22331 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22332 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22333 Likewise.
22334 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22335 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22336 Likewise.
22337 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22338 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22339 Likewise.
22340 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22341 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22342 Likewise.
22343 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22344 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22345 Likewise.
22346 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22347 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22348 Likewise.
22349 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22350 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22351 Likewise.
22352 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22353 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22354 Likewise.
22355 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22356 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22357 Likewise.
22358 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22359 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22360 Likewise.
22361 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22362 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22363 Likewise.
22364
22365 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22366 New macros.
22367 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22368 checks for expected input type size.
22369 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22370 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22371 Likewise.
22372 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22373 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22374 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22375 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22376 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22377 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22378 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22379 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22380 superflous runtime assert check.
22381 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22382 Likewise.
22383 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22384 Likewise.
22385 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22386 Likewise.
22387 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22388 Likewise.
22389 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22390 Likewise.
22391 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22392 Likewise.
22393 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22394 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22395 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22396 Likewise.
22397 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22398 Likewise.
22399 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22400 Likewise.
22401 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22402 Likewise.
22403 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22404 Likewise.
22405 * nptl/pthread_attr_setinheritsched.c
22406 (__pthread_attr_setinheritsched): Likewise.
22407 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22408 Likewise.
22409 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22410 Likewise.
22411 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22412 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22413 __old_pthread_attr_setstack): Likewise.
22414 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22415 Likewise.
22416 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22417 Likewise.
22418 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22419 Likewise.
22420 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22421 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22422 Likewise.
22423 * nptl/tst-typesizes.c: Remove file.
22424
22425 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22426 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22427 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22428 checks for internal pthread_mutex_t offsets.
22429 * sysdeps/aarch64/nptl/pthread-offsets.h
22430 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22431 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22432 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22433 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22434 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22435 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22436 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22437 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22438 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22439 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22440 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22441 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22442 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22443 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22444 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22445 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22446 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22447 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22448
22449 2017-11-07 Florian Weimer <fweimer@redhat.com>
22450
22451 * bits/mman-linux.h: Move ...
22452 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22453 comment.
22454 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22455 outdated comment.
22456
22457 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22458
22459 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22460 Redefine STRNLEN as __strnlen_power8.
22461
22462 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22463
22464 * signal/sighold.c (sighold): Optimize implementation.
22465
22466 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22467 __NR_rt_sigqueueinfo.
22468
22469 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22470 __sigtimedwait.
22471 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22472 assume __NR_rt_sigtimedwait.
22473 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22474 and add LIBC_CANCEL_HANDLED for cancellation marking.
22475 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22476
22477 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22478 (sysdeps_routines): Add memchr_noneon.
22479 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22480 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22481 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22482 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22483 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22484 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22485 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22486
22487 * sysdeps/arm/arm-ifunc.h: New file.
22488 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22489 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22490 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22491 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22492 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22493 (__memcpy_neon): Avoid create hidden alias.
22494 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22495 (__memcpy_vfp): Likewise.
22496 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22497 (sysdep_routines): Add memcpy_arm.
22498 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22499
22500 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22501
22502 [BZ #22362]
22503 * Makerules (make-link-multidir): New.
22504 * config.make.in (multidir): New.
22505 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22506 * configure: Regenerated.
22507 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22508 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22509 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22510 New target.
22511
22512 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22513
22514 [BZ #22402]
22515 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22516 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22517
22518 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22519
22520 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22521 to be escaped.
22522
22523 2017-11-04 Florian Weimer <fweimer@redhat.com>
22524
22525 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22526
22527 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22528
22529 * math/math.h [__HAVE_DISTINCT_FLOAT16
22530 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22531 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22532 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22533 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22534 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22535 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22536 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22537 (__MATH_TG_F32): New macro.
22538 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22539 (__MATH_TG_F64X): Likewise.
22540 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22541 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22542
22543 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22544
22545 * po/de.po: Update translations.
22546 * po/ru.po: Likewise.
22547
22548 2017-11-03 Florian Weimer <fweimer@redhat.com>
22549
22550 * manual/filesys.texi (Hard Links): Document linkat.
22551
22552 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22553
22554 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22555 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22556 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22557 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22558 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22559 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22560 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22561 the same as _Float128.
22562 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22563 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22564 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22565
22566 * stdlib/stdlib.h
22567 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22568 Declare.
22569 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22570 Likewise.
22571 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22572 Likewise.
22573 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22574 (strtof32x): Likewise.
22575 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22576 (strtof64x): Likewise.
22577 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22578 (strtof128x): Likewise.
22579 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22580 (strfromf16): Likewise.
22581 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22582 (strfromf32): Likewise.
22583 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22584 (strfromf64): Likewise.
22585 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22586 (strfromf32x): Likewise.
22587 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22588 (strfromf64x): Likewise.
22589 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22590 (strfromf128x): Likewise.
22591 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22592 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22593 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22594 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22595 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22596 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22597
22598 2017-11-03 Richard Henderson <rth@twiddle.net>
22599
22600 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22601
22602 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22603
22604 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22605
22606 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22607
22608 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22609 DT_TLSDESC_GOT initialization.
22610 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22611 (_dl_tlsdesc_resolve_hold): Likewise.
22612 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22613 (_dl_tlsdesc_resolve_hold): Likewise.
22614 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22615 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22616
22617 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22618
22619 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22620
22621 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22622
22623 [BZ #18572]
22624 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22625 non-lazily for R_ARM_TLS_DESC.
22626
22627 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22628
22629 [BZ #17078]
22630 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22631 R_ARM_TLS_DESC case.
22632 (elf_machine_lazy_rel): Remove the prelink check.
22633
22634 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22635
22636 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22637 DT_TLSDESC_GOT initialization.
22638 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22639 (_dl_tlsdesc_resolve_rela): Likewise.
22640 (_dl_tlsdesc_resolve_hold): Likewise.
22641 (_dl_tlsdesc_undefweak): Remove ldar.
22642 (_dl_tlsdesc_dynamic): Likewise.
22643 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22644 (_dl_tlsdesc_resolve_rela): Likewise.
22645 (_dl_tlsdesc_resolve_hold): Likewise.
22646 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22647 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22648 (_dl_tlsdesc_resolve_rela): Likewise.
22649 (_dl_tlsdesc_resolve_hold): Likewise.
22650
22651 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22652
22653 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22654 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22655
22656 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22657
22658 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22659 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22660
22661 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22662
22663 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22664 Declare.
22665 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22666 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22667 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22668 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22669 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22670 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22671 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22672 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22673 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22674 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22675 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22676
22677 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22678
22679 [BZ #22382]
22680 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22681 * localedata/locales/tpi_PG: Add standard header.
22682
22683 2017-11-02 Florian Weimer <fweimer@redhat.com>
22684
22685 test-errno-linux: quotactl can fail with EPERM in containers.
22686 * sysdeps/unix/sysv/linux/test-errno-linux.c
22687 (LIST, LIST_FORWARD): New macros.
22688 (check_error_in_list): New function.
22689 (test_wrp_rv): Accept list of permitted error codes.
22690 (test_wrp_rv2): Remove.
22691 (test_wrp): Call test_wrp_rv with list of error codes.
22692 (test_wrp2): Accept list of error codes.
22693 (do_test): Adjust. Allow EPERM for quotactl.
22694
22695 2017-11-02 Florian Weimer <fweimer@redhat.com>
22696
22697 * stdio-common/bug16.c (do_test): Use array_length.
22698 * stdio-common/errlist.c (_sys_nerr): Likewise.
22699 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22700 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22701 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22702 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22703 (do_test): Use array_length.
22704 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22705 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22706 * stdio-common/tst-printf-round.c (do_test): Likewise.
22707 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22708 (CHECK): Use array_length.
22709 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22710 * stdio-common/tstscanf.c (main): Likewise.
22711 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22712
22713 2017-11-02 Florian Weimer <fweimer@redhat.com>
22714
22715 Add array_length and array_end macros.
22716 * include/array_length.h: New file.
22717
22718 2017-11-02 Florian Weimer <fweimer@redhat.com>
22719
22720 [BZ #22332]
22721 * posix/tst-glob-tilde.c (do_noescape): New variable.
22722 (one_test): Process it.
22723 (do_test): Set do_noescape. Add unescaping test case.
22724
22725 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22726
22727 * math/complex.h
22728 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22729 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22730 with appropriate macros defined and undefined.
22731 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22732 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22733 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22734 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22735 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22736 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22737 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22738 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22739 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22740 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22741
22742 * math/complex.h
22743 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22744 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22745 that for long double. Do not condition define and undefine of
22746 _Mdouble_complex_ on [__CFLOAT128].
22747
22748 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22749
22750 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22751 of <sysdeps/generic/sysdep.h>.
22752 (ALIGNARG): Removed.
22753 (ASM_SIZE_DIRECTIVE): Likewise.
22754 (ENTRY): Likewise.
22755 (END): Likewise.
22756 (ENTRY_CHK): Likewise.
22757 (END_CHK): Likewise.
22758 (syscall_error): Likewise.
22759 (mcount): Likewise.
22760 (PSEUDO_END): Likewise.
22761 (L): Likewise.
22762 (atom_text_section): Likewise.
22763 * sysdeps/x86/sysdep.h: New file.
22764 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22765 of <sysdeps/generic/sysdep.h>.
22766 (ALIGNARG): Removed.
22767 (ASM_SIZE_DIRECTIVE): Likewise.
22768 (ENTRY): Likewise.
22769 (END): Likewise.
22770 (ENTRY_CHK): Likewise.
22771 (END_CHK): Likewise.
22772 (syscall_error): Likewise.
22773 (mcount): Likewise.
22774 (PSEUDO_END): Likewise.
22775 (L): Likewise.
22776 (atom_text_section): Likewise.
22777
22778 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22779
22780 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22781 category of LC_CTYPE set to "i18n:2012".
22782 * localedata/locales/i18n_ctype: Regenerate.
22783
22784 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22785
22786 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22787 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22788 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22789 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22790
22791 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22792 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22793 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22794 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22795
22796 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22797
22798 * math/complex.h
22799 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22800 New macro.
22801 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22802 Likewise.
22803 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22804 Likewise.
22805 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22806 (CMPLXF32X): Likewise.
22807 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22808 (CMPLXF64X): Likewise.
22809 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22810 (CMPLXF128X): Likewise.
22811
22812 * math/math.h
22813 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22814 (__MATH_EVAL_FMT2): Define to add 0.0f.
22815
22816 2017-10-31 Alan Modra <amodra@gmail.com>
22817
22818 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22819 include sysdep.h.
22820 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22821 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22822 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22823 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22824 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22825 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22826 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22827 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22828 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22829 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22830 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22831 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22832 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22833 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
22834 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
22835 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
22836 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
22837 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
22838 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
22839 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
22840 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
22841 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
22842 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
22843 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
22844 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
22845 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
22846 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
22847 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
22848 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
22849 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
22850 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
22851 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
22852 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
22853 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
22854 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
22855 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
22856 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
22857 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
22858 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
22859 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
22860 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
22861 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
22862 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
22863 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
22864 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
22865 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
22866 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
22867 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
22868 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22869 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
22870 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
22871 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
22872 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
22873 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
22874 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
22875 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
22876 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
22877 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
22878 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22879 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22880 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
22881 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
22882 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
22883 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
22884 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
22885 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
22886 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
22887 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
22888 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
22889
22890 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
22891 include sysdep.h and math_ldbl_opt.h.
22892
22893 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
22894 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
22895 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
22896 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
22897 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
22898 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
22899 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
22900 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
22901 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
22902 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
22903 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
22904 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
22905 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
22906 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
22907 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
22908 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
22909 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
22910 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
22911 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
22912 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
22913 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
22914 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
22915 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
22916 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
22917 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
22918 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
22919
22920 2017-10-31 Alan Modra <amodra@gmail.com>
22921
22922 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
22923 string/strncase_l.c, not string/strncase.c.
22924 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
22925 (libc_hidden_def): Redefine.
22926
22927 2017-10-31 Alan Modra <amodra@gmail.com>
22928
22929 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
22930 (__STRCMP, STRCMP, __strcasecmp_l): Define.
22931 (__strcasecmp): Don't define.
22932
22933 2017-10-31 Alan Modra <amodra@gmail.com>
22934
22935 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
22936 IS_IN (libc).
22937 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22938 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22939 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22940
22941 2017-10-31 Alan Modra <amodra@gmail.com>
22942
22943 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
22944 USE_AS_STPNCPY.
22945
22946 2017-10-31 Alan Modra <amodra@gmail.com>
22947
22948 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
22949 Redefine only when SHARED.
22950
22951 2017-10-30 Joseph Myers <joseph@codesourcery.com>
22952
22953 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
22954 Include <bits/math-finite.h> with appropriate macros defined and
22955 undefined.
22956 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
22957 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
22958 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
22959 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
22960 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
22961
22962 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
22963 [!_Mlong_double_] (_Mlong_double_): Likewise.
22964 [!_Mfloat16_] (_Mfloat16_): Likewise.
22965 [!_Mfloat32_] (_Mfloat32_): Likewise.
22966 [!_Mfloat64_] (_Mfloat64_): Likewise.
22967 [!_Mfloat128_] (_Mfloat128_): Likewise.
22968 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
22969 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
22970 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
22971 (_Mdouble_): Define without indirection through those macros.
22972 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
22973 [!_Mfloat128_] (_Mfloat128_): Likewise.
22974 [_Mlong_double_] (_Mlong_double_): Likewise.
22975 (_Mdouble_): Define without indirection through those macros.
22976 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
22977 not add -D_Mlong_double_=double.
22978 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
22979 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
22980
22981 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
22982
22983 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
22984
22985 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
22986
22987 * sysdeps/x86/libc-start.c: Reformat.
22988
22989 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
22990
22991 [BZ #22353]
22992 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
22993 (1): Renamed to ...
22994 (L(Src0)): This.
22995 (L(Src1)): New.
22996 (L(Src2)): Likewise.
22997 (L(1)): Renamed to ...
22998 (L(Src3)): This.
22999
23000 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23001
23002 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23003 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23004 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23005 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23006 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23007 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23008 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23009 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23010 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23011 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23012 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23013 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23014 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23015 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23016 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23017 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23018 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23019 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23020 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23021 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23022 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23023 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23024 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23025 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23026 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23027 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23028 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23029 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23030 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23031 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23032 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23033 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23034 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23035 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23036 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23037 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23038 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23039 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23040 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23041 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23042 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23043 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23044 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23045 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23046 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23047 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23048 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23049 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23050 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23051 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23052 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23053 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23054 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23055 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23056 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23057 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23058 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23059 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23060 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23061 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23062 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23063 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23064 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23065 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23066 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23067 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23068
23069 2017-10-30 Florian Weimer <fweimer@redhat.com>
23070
23071 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23072 always defined.
23073 * io/tst-mkdirat.c (do_test): Likewise.
23074 * io/tst-mkfifoat.c (do_test): Likewise.
23075 * io/tst-mknodat.c (do_test): Likewise.
23076 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23077 * locale/programs/locale.c (select_dirs): Likewise.
23078 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23079 * posix/bug-glob2.c (my_readdir): Likewise.
23080 * posix/tst-dir.c (main): Likewise.
23081 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23082 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23083
23084 2017-10-30 Florian Weimer <fweimer@redhat.com>
23085
23086 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23087 just __USE_GNU.
23088
23089 2017-10-30 Florian Weimer <fweimer@redhat.com>
23090
23091 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23092 Convert to support/test-driver.c.
23093 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23094 New macro parameters.
23095 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23096 * posix/tst-gnuglob.c: New file.
23097 * posix/tst-gnuglob64.c: Likewise.
23098 * posix/Makefile (tests): Add tst-gnuglob64.
23099
23100 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23101
23102 [BZ #19485]
23103 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23104 and use a better translation for March in “mon”.
23105 * localedata/locales/csb_PL: Use more ASCII to improve the
23106 readability of the source.
23107
23108 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23109
23110 [BZ #13953]
23111 * localedata/locales/km_KH: Use ASCII as much
23112 as possible for better readability of the source and
23113 remove useless comments.
23114 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23115 was commented out and apparently wrong anyway because it was
23116 using Lao characters. If Buddhist era should be used
23117 for km_KH, a native speaker should write the correct formaat
23118 for Khmer.
23119 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23120 (According to CLDR, the first weekday for Cambodia is Sunday).
23121 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23122 (These were using Lao characters which must be wrong. If we get
23123 the correct data from a native speaker, we could add it back, until
23124 then it is better not to have name_mr and name_mrs at all than
23125 having it wrong).
23126
23127 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23128
23129 * locale/loadlocale.c: Correct size of
23130 _nl_value_type_LC_<category> arrays.
23131
23132 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23133
23134 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23135 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23136 with appropriate macros defined and undefined.
23137 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23138 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23139 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23140 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23141 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23142
23143 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23144
23145 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23146 "-O2 -march=i586".
23147
23148 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23149
23150 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23151 with lowercase letters to make it agree with CLDR.
23152
23153 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23154
23155 [BZ #15260]
23156 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23157 first letters of yesstr and nostr in yesexpr and noexpr,
23158 not for the full words.
23159 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23160 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23161 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23162 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23163 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23164 first letters of yesstr and nostr in yesexpr and noexpr,
23165 until now only English was matched in yesexpr and noexpr.
23166 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23167 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23168 fil but not for tl. As tl and fil are very similar, using fil
23169 is probably better than using English.
23170
23171 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23172
23173 [BZ #21706]
23174 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23175 in yesstr and nostr.
23176
23177 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23178
23179 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23180 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23181 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23182 Likewise.
23183 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23184 Likewise.
23185 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23186 Likewise.
23187 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23188 Likewise.
23189 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23190 (SNANF128X): Likewise.
23191
23192 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23193 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23194 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23195 (HUGE_VAL_F32): Likewise.
23196 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23197 (HUGE_VAL_F64): Likewise.
23198 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23199 (HUGE_VAL_F32X): Likewise.
23200 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23201 (HUGE_VAL_F64X): Likewise.
23202 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23203 (HUGE_VAL_F128X): Likewise.
23204
23205 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23206
23207 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23208 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23209 for the br_FR locale.
23210
23211 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23212
23213 [BZ #21706]
23214 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23215
23216 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23217
23218 * locale/programs/record-status.h: Define globals, and function
23219 prototypes. Move function bodies...
23220 * locale/programs/record-status.c: ... to here. New file.
23221 * iconv/Makefile (iconv_prog-modules): Add record-status.
23222 * locale/Makefile (lib-modules): Likewise.
23223 * iconv/iconv_prog.c: Remove verbose.
23224 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23225 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23226 record a warning about ASCII compatibility.
23227 * locale/programs/ld-monetary.c (monetary_finish): If
23228 warn_int_curr_symbol is true then record a warning about the symbol
23229 not being in our ISO 4217 list.
23230 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23231 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23232 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23233 (OPT_NO_WARN): Define.
23234 (OPT_WARN): Define.
23235 (options): Add entry for --no-warnings, and --warnings.
23236 (set_warnings): New function to enable/disable warnings.
23237 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23238 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23239 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23240 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23241 Pass flags to generate_locale.
23242 (generate_locale): Accept new flag argument and pass it to localedef
23243 invocation.
23244 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23245 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23246
23247 * localedata/Makefile (test-input-data): Use full file name.
23248 * localedata/da_DK.in: Rename to...
23249 * localedata/da_DK.ISO-8859-1.in: ...this.
23250 * localedata/de_DE.in: Rename to...
23251 * localedata/de_DE.ISO-8859-1.in: ...this.
23252 * localedata/en_US.in: Rename to...
23253 * localedata/en_US.ISO-8859-1.in: ...this.
23254 * localedata/fr_FR.in: Rename to...
23255 * localedata/fr_FR.UTF-8.in: ... this.
23256 * localedata/hr_HR.in: Rename to...
23257 * localedata/hr_HR.ISO-8859-2.in: ...this.
23258 * localedata/hu_HU.in: Rename to...
23259 * localedata/hu_HU.UTF-8.in: ...this.
23260 * localedata/si_LK.in: Rename to...
23261 * localedata/si_LK.UTF-8.in: ...this.
23262 * localedata/sv_SE.in: Rename to...
23263 * localedata/sv_SE.ISO-8859-1.in: ...this.
23264 * localedata/tr_TR.in: Rename to...
23265 * localedata/tr_TR.UTF-8.in: ...this.
23266 * localedata/uk_UA.in: Rename to...
23267 * localedata/uk_UA.UTF-8.in: ...this.
23268 * localedata/sort-test.sh: Test file is locale name with the
23269 suffix.
23270
23271 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23272 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23273 file.
23274 * localedata/locales/i18n_ctype: Regenerate.
23275 * localedata/locales/tr_TR: Likewise.
23276 * localedata/locales/translit_circle: Likewise.
23277 * localedata/locales/translit_cjk_compat: Likewise.
23278 * localedata/locales/translit_combining: Likewise.
23279 * localedata/locales/translit_compat: Likewise.
23280 * localedata/locales/translit_font: Likewise.
23281 * localedata/locales/translit_fraction: Likewise.
23282
23283 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23284
23285 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23286 lxvd2x/stxvd2x with lvx/stvx.
23287 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23288
23289 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23290
23291 * include/alloc_buffer.h: Replace "if if " with "if " in
23292 comments.
23293 * sysdeps/mips/memcpy.S: Likkewise.
23294 * sysdeps/mips/memset.S: Likewise.
23295 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23296 Likewise.
23297 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23298 Likewise.
23299 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23300 Likewise.
23301
23302 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23303
23304 [BZ #15261]
23305 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23306 yesexpr and noexpr.
23307 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23308 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23309 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23310 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23311 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23312 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23313 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23314
23315 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23316
23317 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23318 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23319 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23320 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23321 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23322 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23323 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23324 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23325 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23326 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23327 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23328 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23329
23330 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23331
23332 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23333 as possible for better readability of the source.
23334 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23335 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23336 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23337 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23338 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23339 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23340 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23341 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23342 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23343 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23344 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23345 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23346 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23347 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23348 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23349 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23350 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23351 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23352 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23353 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23354 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23355 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23356 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23357 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23358 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23359 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23360 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23361 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23362 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23363 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23364 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23365 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23366 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23367 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23368 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23369 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23370 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23371 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23372 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23373 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23374 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23375 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23376 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23377 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23378 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23379 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23380 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23381 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23382 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23383 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23384 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23385 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23386 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23387 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23388 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23389 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23390 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23391 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23392 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23393 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23394 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23395 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23396 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23397 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23398 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23399 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23400 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23401 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23402 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23403 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23404 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23405 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23406 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23407 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23408 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23409 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23410 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23411 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23412 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23413 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23414 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23415 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23416 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23417 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23418 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23419 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23420 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23421 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23422 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23423 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23424 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23425 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23426 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23427 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23428 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23429 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23430 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23431 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23432 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23433 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23434 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23435 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23436 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23437 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23438 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23439 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23440 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23441 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23442 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23443 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23444 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23445 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23446 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23447 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23448 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23449 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23450 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23451 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23452 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23453 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23454 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23455 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23456 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23457 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23458 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23459 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23460 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23461 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23462 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23463 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23464 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23465 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23466 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23467 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23468 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23469 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23470 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23471 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23472 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23473 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23474 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23475 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23476 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23477 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23478 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23479 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23480 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23481 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23482 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23483 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23484 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23485 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23486 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23487 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23488 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23489 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23490 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23491 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23492 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23493 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23494 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23495 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23496 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23497 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23498 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23499 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23500 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23501 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23502 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23503 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23504 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23505 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23506 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23507 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23508
23509 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23510
23511 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23512 (Use first letters of yesstr and nostr correctly instead of using
23513 full words).
23514
23515 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23516
23517 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23518 (Use first letters of yesstr and nostr correctly).
23519
23520 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23521
23522 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23523 also check for the first characters of yesstr and nostr.
23524 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23525 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23526
23527 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23528
23529 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23530 also check for Chinese characters.
23531
23532 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23533
23534 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23535 match also for the contents of yesstr and nostr. As the first letter
23536 of yesstr and nostr is equal, checking only for the first letter
23537 is not enough.
23538
23539 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23540
23541 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23542 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23543
23544 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23545
23546 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23547 of main contributor.
23548
23549 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23550
23551 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23552 instead of using English.
23553
23554 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23555
23556 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23557 by including the first letters of nostr and yesexpr in the regexp.
23558 Also make it more readable by using ASCII where possible.
23559
23560 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23561
23562 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23563 the first letter of nostr in the regexp. It agrees with CLDR now.
23564 Also make it more readable by using ASCII where possible.
23565
23566 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23567
23568 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23569 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23570 these strings contain a U+17D6 (which somewhat looks like a colon)
23571 instead of a real colon to separate the full words for “yes”
23572 and “no” from the single letter responses.
23573
23574 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23575
23576 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23577 it agree with CLDR (include the first letter of yesstr).
23578 Also make it more readable by using ASCII where possible.
23579
23580 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23581
23582 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23583 and improve yesexpr and noexpr. The yesstr and nostr apparently
23584 came from CLDR. And CLDR has a bug there: these strings contain
23585 a U+0903 (which looks like a colon) instead of a real colon
23586 to separate the full words for “yes” and “no” from the single
23587 letter responses.
23588
23589 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23590
23591 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23592 letters of the full yesstr and nostr in yesexpr and noexpr.
23593
23594 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23595
23596 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23597 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23598 * localedata/locales/an_ES: Make source more readable by using ASCII
23599 where possible.
23600
23601 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23602
23603 [BZ #20952]
23604 * localedata/locales/yuw_PG: New file.
23605 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23606 * locale/iso-639.def: Add Yau (Uruwa).
23607
23608 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23609
23610 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23611
23612 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23613
23614 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23615 (__libc_realloc): Likewise.
23616 (_mid_memalign): Likewise.
23617 (__libc_calloc): Likewise.
23618
23619 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23620
23621 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23622 by adding the generic +1 and -0 as in all other locales.
23623 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23624 day names and make it more readable by using ASCII where possible.
23625
23626 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23627
23628 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23629 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23630
23631 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23632
23633 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23634 WNOHANG in waitpid call.
23635
23636 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23637
23638 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23639 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23640
23641 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23642 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23643 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23644 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23645 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23646 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23647 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23648 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23649 variables.
23650
23651 2017-10-23 Michael Collison <michael.collison@arm.com>
23652
23653 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23654 with __builtin_sqrt.
23655 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23656 with __builtin_sqrtf.
23657 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23658 with __builtin_ceil.
23659 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23660 with __builtin_ceilf.
23661 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23662 with __builtin_floor.
23663 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23664 with __builtin_floorf.
23665 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23666 with __builtin_fma.
23667 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23668 with __builtin_fmaf.
23669 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23670 with __builtin_fmax.
23671 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23672 with __builtin_fmaxf.
23673 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23674 with __builtin_fmin.
23675 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23676 with __builtin_fminf.
23677 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23678 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23679 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23680 with builtin_rint and conversion to int.
23681 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23682 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23683 with builtin_llround.
23684 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23685 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23686 with builtin_rint and conversion to long int.
23687 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23688 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23689 with builtin_lround.
23690 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23691 with builtin_lroundf.
23692 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23693 statements with __builtin_nearbyint.
23694 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23695 statements with __builtin_nearbyintf.
23696 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23697 with __builtin_rint.
23698 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23699 with __builtin_rintf.
23700 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23701 with __builtin_round.
23702 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23703 with __builtin_roundf.
23704 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23705 with __builtin_trunc.
23706 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23707 with __builtin_truncf.
23708 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23709 and s_l[l]round[f].c too.
23710
23711 2017-10-23 Alan Modra <amodra@gmail.com>
23712
23713 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23714 Adjust stack after restoring regs. Add missing LR cfi_restore.
23715
23716 2017-10-23 Alan Modra <amodra@gmail.com>
23717
23718 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23719 Move LR save and frame setup/teardown and LR restore to
23720 immediately around memset call. Provide cfi.
23721
23722 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23723
23724 * sysdeps/i386/fpu/e_powf.S: Removed.
23725 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23726 * sysdeps/i386/fpu/w_powf.c: Likewise.
23727 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23728 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23729 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23730 Add e_powf-sse2.
23731 (CFLAGS-e_powf-sse2.c): New.
23732 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23733 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23734
23735 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23736
23737 * sysdeps/i386/fpu/e_log2f.S: Removed.
23738 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23739 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23740 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23741 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23742 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23743 Add e_log2f-sse2.
23744 (CFLAGS-e_log2f-sse2.c): New.
23745 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23746 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23747
23748 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23749
23750 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23751 Add e_powf-fma.
23752 (CFLAGS-e_powf-fma.c): New.
23753 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23754 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23755
23756 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23757
23758 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23759 Add e_log2f-fma.
23760 (CFLAGS-e_log2f-fma.c): New.
23761 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23762 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23763
23764 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23765
23766 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23767 Add e_logf-fma.
23768 (CFLAGS-e_logf-fma.c): New.
23769 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23770 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23771
23772 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23773
23774 * sysdeps/i386/fpu/e_logf.S: Removed.
23775 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23776 * sysdeps/i386/fpu/w_logf.c: Likewise.
23777 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23778 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23779 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23780 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23781 Add e_logf-sse2.
23782 (CFLAGS-e_logf-sse2.c): New.
23783 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23784 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23785
23786 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23787
23788 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23789 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23790 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23791 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23792 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23793 Add e_exp2f-sse2.
23794 (CFLAGS-e_exp2f-sse2.c): New.
23795 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23796 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23797
23798 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23799
23800 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23801 Add e_exp2f-fma.
23802 (CFLAGS-e_exp2f-fma.c): New.
23803 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23804 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23805
23806 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23807
23808 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23809 * sysdeps/i386/fpu/e_expf.S: Likewise.
23810 * sysdeps/i386/fpu/math_errf.c: Likewise.
23811 * sysdeps/i386/fpu/w_expf.c: Likewise.
23812 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23813 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23814 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23815 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23816 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23817 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23818 Remove e_expf-ia32.
23819 (CFLAGS-e_expf-sse2.c): New.
23820 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23821 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23822
23823 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23824
23825 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23826 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23827 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23828 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23829 e_expf.c.
23830 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23831 New.
23832 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23833 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
23834 Renamed to ...
23835 (__redirect_expf): This.
23836 (SYMBOL_NAME): Changed to expf.
23837 (__ieee754_expf): Renamed to ...
23838 (__expf): This.
23839 (__GI___expf): This.
23840 (__ieee754_expf): Add strong_alias.
23841 (__expf_finite): Likewise.
23842 (__expf): New.
23843 Include <sysdeps/ieee754/flt-32/e_expf.c>.
23844
23845 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
23846
23847 [BZ #22332]
23848 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
23849 unescaping.
23850
23851 2017-10-21 Florian Weimer <fweimer@redhat.com>
23852
23853 * posix/Makefile (tests): Add tst-glob-tilde.
23854 (tests-special): Add tst-glob-tilde-mem.out
23855 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
23856 (tst-glob-tilde-mem.out): Add mtrace check.
23857 * posix/tst-glob-tilde.c: New file.
23858
23859 2017-10-20 Joseph Myers <joseph@codesourcery.com>
23860
23861 * bits/floatn-common.h: New file.
23862 * math/Makefile (headers): Add bits/floatn-common.h.
23863 * bits/floatn.h: Include <bits/floatn-common.h>.
23864 * sysdeps/ia64/bits/floatn.h: Likewise.
23865 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
23866 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
23867 * sysdeps/powerpc/bits/floatn.h: Likewise.
23868 * sysdeps/x86/bits/floatn.h: Likewise.
23869
23870 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23871
23872 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
23873 indicates whether compiler emits an warning for alias for
23874 functions with incompatible types.
23875
23876 [BZ #22273]
23877 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
23878 the auxiliary process is terminated by a signal before calling _exit
23879 or execve.
23880
23881 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23882
23883 [BZ #21265]
23884 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
23885 New.
23886 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
23887 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
23888 and bit_arch_XSAVEC_Usable if needed.
23889 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
23890 and bit_arch_Use_dl_runtime_resolve_opt.
23891 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
23892 Removed.
23893 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
23894 (bit_arch_Prefer_No_AVX512): Updated.
23895 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
23896 (bit_arch_XSAVEC_Usable): New.
23897 (STATE_SAVE_OFFSET): Likewise.
23898 (STATE_SAVE_MASK): Likewise.
23899 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
23900 (cpu_features): Add xsave_state_size and xsave_state_full_size.
23901 (index_arch_Use_dl_runtime_resolve_opt): Removed.
23902 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
23903 (index_arch_XSAVEC_Usable): New.
23904 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
23905 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
23906 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
23907 is enabled.
23908 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
23909 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
23910 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
23911 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
23912 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
23913 _dl_runtime_resolve_xsavec.
23914 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
23915 Removed.
23916 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
23917 instead of VEC_SIZE.
23918 (REGISTER_SAVE_BND0): Removed.
23919 (REGISTER_SAVE_BND1): Likewise.
23920 (REGISTER_SAVE_BND3): Likewise.
23921 (REGISTER_SAVE_RAX): Always defined to 0.
23922 (VMOV): Removed.
23923 (_dl_runtime_resolve_avx): Likewise.
23924 (_dl_runtime_resolve_avx_slow): Likewise.
23925 (_dl_runtime_resolve_avx_opt): Likewise.
23926 (_dl_runtime_resolve_avx512): Likewise.
23927 (_dl_runtime_resolve_avx512_opt): Likewise.
23928 (_dl_runtime_resolve_sse): Likewise.
23929 (_dl_runtime_resolve_sse_vex): Likewise.
23930 (USE_FXSAVE): New.
23931 (_dl_runtime_resolve_fxsave): Likewise.
23932 (USE_XSAVE): Likewise.
23933 (_dl_runtime_resolve_xsave): Likewise.
23934 (USE_XSAVEC): Likewise.
23935 (_dl_runtime_resolve_xsavec): Likewise.
23936 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
23937 Removed.
23938 (_dl_runtime_resolve_avx512_opt): Likewise.
23939 (_dl_runtime_resolve_avx): Likewise.
23940 (_dl_runtime_resolve_avx_opt): Likewise.
23941 (_dl_runtime_resolve_sse): Likewise.
23942 (_dl_runtime_resolve_sse_vex): Likewise.
23943 (_dl_runtime_resolve_fxsave): New.
23944 (_dl_runtime_resolve_xsave): Likewise.
23945 (_dl_runtime_resolve_xsavec): Likewise.
23946
23947 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
23948
23949 [BZ #22320]
23950 CVE-2017-15670
23951 * posix/glob.c (__glob): Fix one-byte overflow.
23952
23953 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
23954
23955 * malloc/malloc.c (sysdep-cancel.h): Add include.
23956
23957 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
23958
23959 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
23960
23961 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
23962
23963 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
23964 (tests): Remove $(objpfx)ga_test depdendency.
23965 * resolv/ga_test.c: Remove file.
23966
23967 2017-10-20 Mike FABIAN <mfabian@redhat.com>
23968
23969 [BZ #18812]
23970 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
23971 * localedata/locales/kab_DZ: New file.
23972
23973 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23974
23975 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
23976 _dl_relocate_static_pie instead of _dl_start to compute load
23977 address in static PIE.
23978
23979 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23980
23981 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
23982
23983 2017-10-20 Mike FABIAN <mfabian@redhat.com>
23984
23985 [BZ #13605]
23986 * localedata/SUPPORTED: Add shn_MM/UTF-8.
23987 * localedata/locales/shn_MM: New file.
23988
23989 2017-10-20 Florian Weimer <fweimer@redhat.com>
23990
23991 [BZ #22321]
23992 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
23993 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
23994 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
23995 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
23996 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
23997 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
23998
23999 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24000
24001 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24002
24003 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24004
24005 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24006
24007 [BZ #22322]
24008 * sysdeps/mips/bits/long-double.h: Move to ....
24009 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24010
24011 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24012
24013 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24014
24015 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24016 H.J. Lu <hongjiu.lu@intel.com>
24017
24018 [BZ #22299]
24019 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24020 GLRO(dl_platform) to NULL.
24021 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24022 (modules-names): Add tst-platformmod-1 and
24023 x86_64/tst-platformmod-2.
24024 (CFLAGS-tst-platform-1.c): New.
24025 (CFLAGS-tst-platformmod-1.c): Likewise.
24026 (CFLAGS-tst-platformmod-2.c): Likewise.
24027 (LDFLAGS-tst-platformmod-2.so): Likewise.
24028 ($(objpfx)tst-platform-1): Likewise.
24029 ($(objpfx)tst-platform-1.out): Likewise.
24030 (tst-platform-1-ENV): Likewise.
24031 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24032 * sysdeps/x86_64/tst-platform-1.c: New file.
24033 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24034 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24035
24036 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24037
24038 [BZ #13994]
24039 * locale/iso-639.def: Add Karbi.
24040 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24041 * localedata/locales/mjw_IN: New file.
24042
24043 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24044
24045 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24046 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24047 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24048 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24049 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24050 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24051 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24052 <bits/floatn.h>.
24053 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24054 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24055 * manual/math.texi (Mathematics): Document additional architecture
24056 support for _Float128.
24057 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24058 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24059 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24060 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24061 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24062 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24063 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24064 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24065 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24066 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24067 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24068 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24069 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24070 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24071 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24072
24073 2017-10-18 Renlin Li <renlin.li@arm.com>
24074
24075 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24076 _DYNAMIC symbol to calculate load address.
24077
24078 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24079
24080 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24081 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24082 summary bits.
24083 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24084 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24085
24086 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24087
24088 [BZ #16777]
24089 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24090 and improve readability by using more ASCII.
24091 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24092 and improve readability by using more ASCII.
24093
24094 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24095
24096 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24097 not all targets support atomics on bool.
24098
24099 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24100
24101 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24102 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24103 __f128.
24104 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24105 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24106 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24107 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24108 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24109 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24110
24111 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24112
24113 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24114 defines.
24115
24116 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24117
24118 [BZ #22159]
24119 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24120 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24121 (do_check_remalloced_chunk): Fix build bug.
24122 (do_check_malloc_state): Add assert that checks arena->top.
24123 (malloc_consolidate): Remove initialization.
24124 (int_mallinfo): Remove call to malloc_consolidate.
24125 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24126
24127 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24128
24129 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24130 (have_fastchunks): Remove.
24131 (clear_fastchunks): Remove.
24132 (set_fastchunks): Remove.
24133 (malloc_state): Add have_fastchunks.
24134 (malloc_init_state): Use have_fastchunks.
24135 (do_check_malloc_state): Remove incorrect invariant checks.
24136 (_int_malloc): Use have_fastchunks.
24137 (_int_free): Likewise.
24138 (malloc_consolidate): Likewise.
24139
24140 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24141
24142 * malloc/malloc.c (tcache_put): Inline.
24143 (tcache_get): Inline.
24144
24145 2017-10-17 Jordi Mallach <jordi@gnu.org>
24146
24147 Aurelien Jarno <aurelien@aurel32.net>
24148 [BZ #2522]
24149 * localedata/locales/ca_ES@valencia: New file.
24150 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24151
24152 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24153
24154 [BZ #22296]
24155 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24156 < 6.x
24157
24158 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24159
24160 * scripts/build-many-glibcs.py (Context.add_all_configs):
24161 Add arm-linux-gnueabihf multiarch extra_glibcs.
24162
24163 * sysdeps/generic/ifunc-init.h: New file.
24164 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24165
24166 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24167
24168 [BZ #22019]
24169 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24170 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24171 * stdlib/tst-strfmon_l.c: adapt test case.
24172
24173 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24174
24175 * sysdeps/generic/float128-abi.h: New file.
24176 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24177 non-__prefixed symbols to ....
24178 * math/Versions: ... here. Include <float128-abi.h>.
24179 * stdlib/Versions ... and here. Include <float128-abi.h>
24180
24181 2017-10-16 Florian Weimer <fweimer@redhat.com>
24182
24183 * version.h (VERSION): Switch to ".9000" as the development
24184 version suffix.
24185
24186 2017-10-16 Florian Weimer <fweimer@redhat.com>
24187
24188 [BZ #22050]
24189 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24190 compat_symbol_reference to access non-default version.
24191
24192 2017-10-16 Florian Weimer <fweimer@redhat.com>
24193
24194 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24195
24196 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24197
24198 * include/shlib-compat.h (compat_symbol_reference): Update
24199 comment.
24200
24201 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24202
24203 * math/Makefile (test-types): Add
24204 $(type-float128-$(float128-alias-fcts)).
24205 * math/test-float128.h (TYPE_STR): Define conditional on
24206 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24207 (ULP_IDX): Likewise.
24208 (ULP_I_IDX): Likewise.
24209
24210 * stdlib/strtold.c: Include <bits/floatn.h>
24211 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24212 and later undefine as macro. Define as weak alias if
24213 [!USE_WIDE_CHAR].
24214 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24215 and later undefine as macro. Define as weak alias if
24216 [USE_WIDE_CHAR].
24217 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24218 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24219 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24220 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24221 Define and later undefine as macro. Define as weak alias if
24222 [USE_WIDE_CHAR].
24223 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24224 <bits/floatn.h>.
24225 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24226 Define and later undefine as macro. Define as weak alias if
24227 [!USE_WIDE_CHAR].
24228 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24229 Define and later undefine as macro. Define as weak alias if
24230 [USE_WIDE_CHAR].
24231
24232 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24233
24234 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24235 record_verbose messages.
24236
24237 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24238
24239 [BZ #22052]
24240 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24241 to silence -O3 -Wall warning with GCC 7.
24242
24243 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24244
24245 * Makeconfig (+link-static-before-libc): Use the first of
24246 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24247 * gmon/Makefile (tests): Add tst-gmon-static.
24248 (tests-static): Likewise.
24249 (CFLAGS-tst-gmon-static.c): New.
24250 (CRT-tst-gmon-static): Likewise.
24251 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24252 (tst-gmon-static-ENV): Likewise.
24253 (tests-special): Likewise.
24254 ($(objpfx)tst-gmon-static.out): Likewise.
24255 (clean-tst-gmon-static-data): Likewise.
24256 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24257 * gmon/tst-gmon-static-gprof.sh: New file.
24258 * gmon/tst-gmon-static.c: Likewise.
24259
24260 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24261
24262 [BZ #22295]
24263 * locale/programs/linereader.c (get_string): Don't warn on
24264 non-symbolic character.
24265
24266 [BZ #22294]
24267 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24268 int_curr_symbol.
24269
24270 [BZ #22292]
24271 * locale/programs/record-status.h: New file
24272 * locale/programs/locale.c: Add comment.
24273 * locale/programs/charmap-dir.c: Don't include error.h.
24274 (charmap_opendir): Use record_error.
24275 * locale/programs/charmap.c: Don't include error.h.
24276 (charmap_read): Use record_error, and record_warning.
24277 (parse_charmap): Likewise.
24278 * locale/programs/ld-address.c: Don't include error.h.
24279 (address_finish): Use record_error, and record_warning.
24280 * locale/programs/ld-collate.c: Don't include error.h.
24281 (collate_finish): Use record_error, and record_error_at_line.
24282 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24283 (ctype_class_new): Likewise.
24284 (ctype_map_new): Likewise.
24285 (set_one_default): Likewise.
24286 (set_class_defaults): Likewise.
24287 (translit_flatten): Likewise.
24288 (allocate_arrays): Use record_error, and record_verbose.
24289 * locale/programs/ld-identification.c: Don't include error.h.
24290 (indentation_finish): Use record_error and record_warning.
24291 * locale/programs/ld-measurement.c: Don't include error.h.
24292 (measurement_finish): Use record_error.
24293 * locale/programs/ld-messages.c
24294 (message_finish): Likewise.
24295 * locale/programs/ld-monetary.c
24296 (monetary_finish): Likewise.
24297 * locale/programs/ld-name.c (name_finish): Use record_error
24298 and record_warning.
24299 * locale/programs/ld-numeric.c
24300 (numeric_finish): Use record_error.
24301 * locale/programs/ld-paper.c: Don't include error.h.
24302 (paper_finish): Use record_error.
24303 * locale/programs/ld-telephone.c: Don't include error.h.
24304 (telephone_finish): Use record_error.
24305 * locale/programs/ld-time.c (time_finish): Likewise.
24306 * locale/programs/linereader.h (lr_error): Make inline func.
24307 * locale/programs/localedef.c: Define recorded_warning_count,
24308 and recorded_error_count.
24309 (main): Use record_error. Use recorded_error_count and
24310 recorded_warning_count to issue correct error returns.
24311 (add_to_readlist): Use record_error.
24312 (find_locale): Likewise.
24313 (load_locale): Likewise.
24314 * locale/programs/localedef.h: Remove be_quiet
24315 and WITH_CUR_LOCALE.
24316 * locale/programs/locarchive.c (compare_from_file): Use
24317 record_error.
24318 * locale/programs/locfile.c (write_locale_data): Use
24319 record_error.
24320 * locale/programs/repertoire.c: Dont include error.h.
24321 (repertoire_complain): Use record_error.
24322 * localedata/tst-fmon.sh: Expect failures from localedef.
24323 * localedata/tst-locale.sh: Likewise.
24324 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24325
24326 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24327 (REPORTS): Likewise.
24328 (check): Likewise.
24329 (i18n): Rename to...
24330 (i18n_ctype): ...this.
24331 (i18n-report): Rename to...
24332 (i18n_ctype-report): ...this.
24333 * localedata/locales/i18n_ctype: Regenerate.
24334 * localedata/locales/i18n: copy i18n_ctype.
24335
24336 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24337
24338 * stdlib/strfroml.c: Include <bits/floatn.h>.
24339 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24340 Define before include of <stdlib.h> and undefine afterwards, then
24341 define as weak alias.
24342
24343 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24344 Undefine and restore default definition. Use
24345 libm_alias_ldouble_other.
24346
24347 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24348
24349 [BZ #22153]
24350 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24351 in coredumps.
24352
24353 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24354
24355 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24356 Assign sym_map to be map for local symbols, as TLS relocations
24357 use sym_map to determine whether the symbol is defined and to
24358 extract the TLS information.
24359 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24360 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24361
24362 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24363
24364 [BZ #22189]
24365 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24366 (math_force_eval): Add powerpc version.
24367
24368 [BZ #22142]
24369 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24370 -DBL_MAX.
24371 (do_test): Likewise.
24372 * stdio-common/tst-printf.sh: Likewise.
24373 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24374 ifdef clause in order to set the carry bit right. Replace r0 by
24375 0 without changing the behavior.
24376
24377 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24378
24379 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24380 <libm-alias-ldouble.h>.
24381 (fabsl): Define using libm_alias_ldouble.
24382 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24383 <libm-alias-ldouble.h>.
24384 (fabsl): Define using libm_alias_ldouble.
24385
24386 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24387 Remove conditional code.
24388
24389 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24390 Rename to __clog10_internal_l.
24391 (__clog10_internal_l): Define aliases using
24392 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24393 with __clog10.
24394
24395 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24396
24397 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24398 * benchtests/sincosf-inputs: New file.
24399 * benchtests/cosf-inputs: New file.
24400 * benchtests/sinf-inputs: New file.
24401
24402 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24403
24404 * posix/tst-spawn.c (do_test): Wait for both children.
24405
24406 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24407
24408 [BZ #22284]
24409 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24410 tests-pie): Add tst-gmon-pie.
24411 (CFLAGS-tst-gmon-pie.c): New.
24412 (CRT-tst-gmon-pie): Likewise.
24413 (tst-gmon-pie-ENV): Likewise.
24414 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24415 ($(objpfx)tst-gmon-pie.out): Likewise.
24416 (clean-tst-gmon-pie-data): Likewise.
24417 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24418 * gmon/gmon.c [PIC]: Include <link.h>.
24419 [PIC] (callback): New function.
24420 (write_hist): Add an argument for load address. Subtract load
24421 address from PCs.
24422 (write_call_graph): Likewise.
24423 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24424 it to write_hist and write_call_graph.
24425 * gmon/tst-gmon-pie.c: New file.
24426
24427 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24428
24429 * math/Makefile (test-types-basic): New variable.
24430 (test-types): Likewise.
24431 (libm-test-support): Use $(test-types) instead of $(types).
24432 (libm-tests-base-normal): Likewise.
24433 (libm-tests-base-finite): Likewise.
24434 (libm-tests-base-inline): Likewise.
24435 (generated): Likewise.
24436 ($(objpfx)libm-test-support-$(t).c): Likewise.
24437 (libm-tests-for-type iterator): Likewise.
24438 (libm-test-support iterator): Likewise.
24439 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24440 (ulp_idx): Use ULP_IDX.
24441 * math/test-ldouble.h: Include <float.h>.
24442 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24443 (ULP_IDX): New macro.
24444 (ULP_I_IDX): Likewise.
24445 * math/test-double.h (ULP_IDX): Likewise.
24446 (ULP_I_IDX): Likewise.
24447 * math/test-float.h (ULP_IDX): Likewise.
24448 (ULP_I_IDX): Likewise.
24449 * math/test-float128.h (ULP_IDX): Likewise.
24450 (ULP_I_IDX): Likewise.
24451
24452 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24453
24454 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24455 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24456 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24457 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24458 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24459 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24460 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24461 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24462 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24463 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24464 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24465 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24466 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24467 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24468 (SINGLE_THREAD_BY_GLOBAL): Define.
24469 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24470 Likewise.
24471 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24472 Likewise.
24473 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24474 Likewise.
24475 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24476 Likewise.
24477 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24478 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24479 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24480 Likewise.
24481
24482 2017-10-11 Andreas Schwab <schwab@suse.de>
24483
24484 * nis/Makefile (aux): Remove.
24485 * nscd/Makefile (aux): Add nscd_hash.
24486 (nscd-modules): Likewise.
24487 ($(objpfx)nscd): Don't depend on libnsl.
24488 * nscd/nscd_hash.c: New file.
24489 * nscd/nscd_hash.h: Likewise.
24490 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24491 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24492 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24493 instead of <nis/rpcsvc/nis.h>.
24494 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24495
24496 2017-10-11 Florian Weimer <fweimer@redhat.com>
24497
24498 [BZ #22078]
24499 Avoid large NSS buffers with many addresses, aliases.
24500 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24501 using dynarrays and struct alloc_buffer.
24502 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24503 (tst-nss-files-hosts-multi): Link with -ldl.
24504 * nss/tst-nss-files-hosts-multi.c: New file.
24505
24506 2017-10-11 Florian Weimer <fweimer@redhat.com>
24507
24508 [BZ #18023]
24509 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24510 scratch_buffer. Eliminate gotos.
24511
24512 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24513
24514 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24515 libm_alias_ldouble_other.
24516 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24517 undefine and redefine.
24518 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24519 (exp10l): Do not define here.
24520 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24521 (weak_alias): Undefine and redefine.
24522 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24523 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24524 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24525 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24526
24527 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24528 [!__fma] (fma): Define using libm_alias_double.
24529 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24530 [!__fmaf] (fmaf): Define using libm_alias_float.
24531 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24532 (fmal): Define using libm_alias_ldouble.
24533
24534 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24535
24536 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24537 New macro.
24538 (libm_alias_double_other): Likewise.
24539 (libm_alias_double_r): Use libm_alias_double_other_r.
24540 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24541 New macro.
24542 (libm_alias_float_other): Likewise.
24543 (libm_alias_float_r): Use libm_alias_float_other_r.
24544 * sysdeps/generic/libm-alias-float128.h
24545 (libm_alias_float128_other_r): New macro.
24546 (libm_alias_float128_other): Likewise.
24547 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24548 * sysdeps/generic/libm-alias-ldouble.h
24549 (libm_alias_ldouble_other_r): New macro.
24550 (libm_alias_ldouble_other): Likewise.
24551 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24552 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24553 (libm_alias_double_other_r): New macro.
24554 (libm_alias_double_other): Likewise.
24555 (libm_alias_double_r): Use libm_alias_double_other_r.
24556 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24557 (libm_alias_ldouble_other_r): New macro.
24558 (libm_alias_ldouble_other): Likewise.
24559 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24560 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24561 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24562 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24563 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24564 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24565 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24566 * math/w_exp2f.c: Use libm_alias_float_other.
24567 * math/w_expf.c: Likewise.
24568 * math/w_log2f.c: Likewise.
24569 * math/w_logf.c: Likewise.
24570 * math/w_powf.c: Likewise.
24571 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24572 [!__exp2f]: Use libm_alias_float_other.
24573 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24574 [!__expf]: Use libm_alias_float_other.
24575 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24576 [!__log2f]: Use libm_alias_float_other.
24577 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24578 [!__logf]: Use libm_alias_float_other.
24579 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24580 [!__powf]: Use libm_alias_float_other.
24581
24582 2017-10-10 Florian Weimer <fweimer@redhat.com>
24583
24584 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24585 function.
24586 (_nss_files_gethostbyname3_r): Call it.
24587
24588 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24589
24590 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24591 error. Remove default definition of declare_mgen_alias.
24592 [!declare_mgen_alias_r]: Likewise.
24593 * sysdeps/generic/math-type-macros-double.h
24594 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24595 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24596 (declare_mgen_alias_r): Likewise.
24597 * sysdeps/generic/math-type-macros-float128.h
24598 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24599 * sysdeps/generic/math-type-macros-ldouble.h
24600 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24601 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24602 macro.
24603 (declare_mgen_alias_r_s): Likewise.
24604 (declare_mgen_alias_r): Likewise.
24605 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24606 (lgamma_r): Define using libm_alias_double_r.
24607 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24608 (lgammaf_r): Define using libm_alias_float_r.
24609 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24610 (lgammal_r): Define using libm_alias_ldouble_r.
24611 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24612 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24613
24614 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24615
24616 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24617 extern declaration.
24618
24619 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24620
24621 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24622
24623 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24624
24625 [BZ #21326]
24626 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24627 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24628 * math/Makefile (test-math-cxx11): New test.
24629 * math/test-math-cxx11.cc: New file.
24630
24631 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24632
24633 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24634
24635 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24636 call to allocate the slave pty file descriptor.
24637
24638 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24639
24640 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24641 [!__fma] (fma): Define using libm_alias_double.
24642 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24643 [!__fma] (fma): Define using libm_alias_double.
24644
24645 * sysdeps/ieee754/float128/float128_private.h: Include
24646 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24647 (libm_alias_ldouble_r): Undefine and redefine.
24648 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24649 <libm-alias-ldouble.h>.
24650 (asinhl): Define using libm_alias_ldouble.
24651 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24652 <libm-alias-ldouble.h>.
24653 (atanl): Define using libm_alias_ldouble.
24654 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24655 <libm-alias-ldouble.h>.
24656 (cbrtl): Define using libm_alias_ldouble.
24657 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24658 <libm-alias-ldouble.h>.
24659 (ceill): Define using libm_alias_ldouble.
24660 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24661 <libm-alias-ldouble.h>.
24662 (copysignl): Define using libm_alias_ldouble.
24663 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24664 <libm-alias-ldouble.h>.
24665 (cosl): Define using libm_alias_ldouble.
24666 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24667 <libm-alias-ldouble.h>.
24668 (erfl): Define using libm_alias_ldouble.
24669 (erfcl): Likewise.
24670 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24671 <libm-alias-ldouble.h>.
24672 (expm1l): Define using libm_alias_ldouble.
24673 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24674 <libm-alias-ldouble.h>.
24675 (fabsl): Define using libm_alias_ldouble.
24676 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24677 <libm-alias-ldouble.h>.
24678 (floorl): Define using libm_alias_ldouble.
24679 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24680 <libm-alias-ldouble.h>.
24681 (fmal): Define using libm_alias_ldouble.
24682 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24683 <libm-alias-ldouble.h>.
24684 (frexpl): Define using libm_alias_ldouble.
24685 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24686 libm_alias_ldouble.
24687 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24688 <libm-alias-ldouble.h>.
24689 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24690 libm_alias_ldouble.
24691 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24692 <libm-alias-ldouble.h>.
24693 (getpayloadl): Define using libm_alias_ldouble.
24694 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24695 <libm-alias-ldouble.h>.
24696 (llrintl): Define using libm_alias_ldouble.
24697 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24698 <libm-alias-ldouble.h>.
24699 (llroundl): Define using libm_alias_ldouble.
24700 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24701 <libm-alias-ldouble.h>.
24702 (logbl): Define using libm_alias_ldouble.
24703 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24704 <libm-alias-ldouble.h>.
24705 (lrintl): Define using libm_alias_ldouble.
24706 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24707 <libm-alias-ldouble.h>.
24708 (lroundl): Define using libm_alias_ldouble.
24709 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24710 <libm-alias-ldouble.h>.
24711 (modfl): Define using libm_alias_ldouble.
24712 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24713 <libm-alias-ldouble.h>.
24714 (nearbyintl): Define using libm_alias_ldouble.
24715 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24716 <libm-alias-ldouble.h>.
24717 (nextafterl): Define using libm_alias_ldouble.
24718 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24719 <libm-alias-ldouble.h>.
24720 (nextupl): Define using libm_alias_ldouble.
24721 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24722 <libm-alias-ldouble.h>.
24723 (remquol): Define using libm_alias_ldouble.
24724 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24725 <libm-alias-ldouble.h>.
24726 (rintl): Define using libm_alias_ldouble.
24727 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24728 <libm-alias-ldouble.h>.
24729 (roundevenl): Define using libm_alias_ldouble.
24730 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24731 <libm-alias-ldouble.h>.
24732 (roundl): Define using libm_alias_ldouble.
24733 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24734 using libm_alias_ldouble.
24735 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24736 <libm-alias-ldouble.h>.
24737 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24738 Define using libm_alias_ldouble.
24739 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24740 <libm-alias-ldouble.h>.
24741 (sincosl): Define using libm_alias_ldouble.
24742 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24743 <libm-alias-ldouble.h>.
24744 (sinl): Define using libm_alias_ldouble.
24745 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24746 <libm-alias-ldouble.h>.
24747 (tanhl): Define using libm_alias_ldouble.
24748 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24749 <libm-alias-ldouble.h>.
24750 (tanl): Define using libm_alias_ldouble.
24751 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24752 <libm-alias-ldouble.h>.
24753 (totalorderl): Define using libm_alias_ldouble.
24754 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24755 <libm-alias-ldouble.h>.
24756 (totalordermagl): Define using libm_alias_ldouble.
24757 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24758 <libm-alias-ldouble.h>.
24759 (truncl): Define using libm_alias_ldouble.
24760 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24761 libm_alias_ldouble.
24762 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24763 libm_alias_ldouble.
24764 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24765 <libm-alias-ldouble.h>.
24766 (weak_alias): Do not undefine and redefine.
24767 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24768 (copysignl): Define with long_double_symbol only if [IS_IN
24769 (libc)].
24770 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24771 <libm-alias-ldouble.h>.
24772 (weak_alias): Do not undefine and redefine.
24773 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24774 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24775 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24776 <libm-alias-ldouble.h>.
24777 (weak_alias): Do not undefine and redefine.
24778 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24779 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24780 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24781 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24782 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24783 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24784 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24785 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24786 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24787 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24788 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24789 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24790 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24791 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24792 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24793 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24794 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24795 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24796 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24797 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24798 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24799 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24800 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24801 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24802 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24803 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24804
24805 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24806
24807 [BZ #22111]
24808 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24809 (tcache_thread_freeres): Set tcache_shutting_down before
24810 freeing the tcache.
24811 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24812 * malloc/tst-malloc-tcache-leak.c: New file.
24813
24814 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24815
24816 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24817 back to powerpc32 file.
24818 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24819 (memrchr): Add __memrchr_power8 to ifunc list.
24820 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24821 extra bytes for unaligned inputs.
24822
24823 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24824
24825 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24826 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24827 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24828 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24829 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24830
24831 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24832
24833 * sysdeps/arm/libm-test-ulps: Update.
24834
24835 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
24836 <libm-alias-ldouble.h>.
24837 (asinhl): Define using libm_alias_ldouble.
24838 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
24839 <libm-alias-ldouble.h>.
24840 (cbrtl): Define using libm_alias_ldouble.
24841 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
24842 <libm-alias-ldouble.h>.
24843 (copysignl): Define using libm_alias_ldouble.
24844 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
24845 <libm-alias-ldouble.h>.
24846 (cosl): Define using libm_alias_ldouble.
24847 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
24848 <libm-alias-ldouble.h>.
24849 (erfl): Define using libm_alias_ldouble.
24850 (erfcl): Likewise.
24851 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
24852 <libm-alias-ldouble.h>.
24853 (fmal): Define using libm_alias_ldouble.
24854 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
24855 <libm-alias-ldouble.h>.
24856 (frexpl): Define using libm_alias_ldouble.
24857 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
24858 libm_alias_ldouble.
24859 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
24860 <libm-alias-ldouble.h>.
24861 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
24862 libm_alias_ldouble.
24863 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
24864 <libm-alias-ldouble.h>.
24865 (getpayloadl): Define using libm_alias_ldouble.
24866 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
24867 <libm-alias-ldouble.h>.
24868 (llrintl): Define using libm_alias_ldouble.
24869 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
24870 <libm-alias-ldouble.h>.
24871 (llroundl): Define using libm_alias_ldouble.
24872 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
24873 <libm-alias-ldouble.h>.
24874 (lrintl): Define using libm_alias_ldouble.
24875 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
24876 <libm-alias-ldouble.h>.
24877 (lroundl): Define using libm_alias_ldouble.
24878 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
24879 <libm-alias-ldouble.h>.
24880 (modfl): Define using libm_alias_ldouble.
24881 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
24882 <libm-alias-ldouble.h>.
24883 (nextupl): Define using libm_alias_ldouble.
24884 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
24885 <libm-alias-ldouble.h>.
24886 (remquol): Define using libm_alias_ldouble.
24887 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
24888 <libm-alias-ldouble.h>.
24889 (roundevenl): Define using libm_alias_ldouble.
24890 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
24891 <libm-alias-ldouble.h>.
24892 (roundl): Define using libm_alias_ldouble.
24893 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
24894 using libm_alias_ldouble.
24895 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
24896 <libm-alias-ldouble.h>.
24897 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
24898 <libm-alias-ldouble.h>.
24899 (setpayloadsigl): Define using libm_alias_ldouble.
24900 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
24901 <libm-alias-ldouble.h>.
24902 (sincosl): Define using libm_alias_ldouble.
24903 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
24904 <libm-alias-ldouble.h>.
24905 (sinl): Define using libm_alias_ldouble.
24906 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
24907 <libm-alias-ldouble.h>.
24908 (tanhl): Define using libm_alias_ldouble.
24909 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
24910 <libm-alias-ldouble.h>.
24911 (tanl): Define using libm_alias_ldouble.
24912 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
24913 <libm-alias-ldouble.h>.
24914 (totalorderl): Define using libm_alias_ldouble.
24915 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
24916 <libm-alias-ldouble.h>.
24917 (totalordermagl): Define using libm_alias_ldouble.
24918 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
24919 libm_alias_ldouble.
24920 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
24921 libm_alias_ldouble.
24922
24923 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
24924
24925 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
24926 memmove_falkor.
24927 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24928 (__libc_ifunc_impl_list): Likewise.
24929 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
24930 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
24931
24932 * benchtests/bench-memmove-walk.c: New file.
24933 * benchtests/Makefile (string-benchset): Add it.
24934
24935 * benchtests/bench-memset-walk.c: New file.
24936 * benchtests/Makefile (string-benchset): Add it.
24937
24938 * benchtests/bench-memcpy-walk.c: New file.
24939 * benchtests/Makefile (string-benchset): Add it.
24940
24941 2017-10-05 Florian Weimer <fweimer@redhat.com>
24942
24943 nscd: Eliminate compilation time dependency in the build output.
24944 * nscd/nscd_stat.c (STATDATA_VERSION)
24945 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
24946 (STATDATA_VERSION_FULL): New macro definitions.
24947 (compilation): Remove.
24948 (struct statdata): Adjust version member.
24949 (send_stats): Set version from STATDATA_VERSION_FULL.
24950 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
24951
24952 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24953
24954 * configure.ac (--enable-add-ons): Remove option.
24955 (machine): Do not mention add-ons in comment.
24956 (LIBC_PRECONFIGURE): Likewise.
24957 (add_ons): Remove variable and sanity checks and logic to locate
24958 add-ons.
24959 (add_ons_automatic): Remove variable.
24960 (configured_add_ons): Likewise.
24961 (add_ons_sfx): Likewise.
24962 (add_ons_pfx): Likewise.
24963 (add_on_subdirs): Likewise.
24964 (sysnames_add_ons): Likewise. Remove loop over add-ons and
24965 consideration of add-ons in Implies handling.
24966 (sysdeps_add_ons): Likewise.
24967 * configure: Regenerated.
24968 * libidn/configure.ac: Remove.
24969 * libidn/configure: Likewise.
24970 * sysdeps/unix/inet/configure.ac: New file.
24971 * sysdeps/unix/inet/configure: New generated file.
24972 * sysdeps/unix/inet/Subdirs: Add libidn.
24973 * Makeconfig (sysdeps-srcdirs): Remove variable.
24974 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
24975 ($(common-objpfx)config.status): Do not depend on add-on files.
24976 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
24977 comment.
24978 (all-subdirs): Do not include $(add-on-subdirs).
24979 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
24980 * config.make.in (add-ons): Remove variable.
24981 (add-on-subdirs): Likewise.
24982 (sysdeps-add-ons): Likewise.
24983 * manual/Makefile (add-chapters): Remove.
24984 ($(objpfx)texis): Do not depend on $(add-chapters).
24985 (nonexamples): Do not handle $(add-chapters).
24986 (examples): Do not handle $(add-ons).
24987 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
24988 libc-texinfo.sh.
24989 * manual/install.texi (Installation): Do not mention add-ons.
24990 (--enable-add-ons): Do not document configure option.
24991 * INSTALL: Regenerated.
24992 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
24993 * manual/maint.texi (Hierarchy Conventions): Do not mention
24994 add-ons.
24995 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
24996 --enable-add-ons.
24997 * scripts/gen-sorted.awk: Do not handle Subdirs files from
24998 add-ons.
24999 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25000 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25001
25002 2017-10-05 Andreas Schwab <schwab@suse.de>
25003
25004 [BZ #15142]
25005 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25006 (_IO_flush_all_lockp): Always lock list_all_lock.
25007 (_IO_flush_all_linebuffered): Likewise.
25008 (_IO_unbuffer_all): Likewise.
25009
25010 2017-10-05 Florian Weimer <fweimer@redhat.com>
25011
25012 [BZ #15436]
25013 Do not flush stdio streams on abort.
25014 * stdlib/abort.c (fflush): Remove macro definition.
25015 (abort): Remove stages related to stdio flushing.
25016
25017 2017-10-05 Florian Weimer <fweimer@redhat.com>
25018
25019 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25020
25021 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25022
25023 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25024
25025 2017-10-05 Florian Weimer <fweimer@redhat.com>
25026
25027 * support/support_format_hostent.c (support_format_hostent): Add
25028 more error information for NETDB_INTERNAL.
25029
25030 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25031
25032 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25033 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25034 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25035 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25036 AC_DEFINE if multi-arch is enabled.
25037 * sysdeps/i386/configure: Regenerated.
25038
25039 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25040
25041 * Makeconfig (+link-static-before-libc): Use
25042 $(DEFAULT-LDFLAGS-$(@F)).
25043 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25044 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25045 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25046
25047 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25048
25049 * elf/Makefile (tests): Add tst-main1.
25050 (modules-names): Add tst-main1mod.
25051 ($(objpfx)tst-main1): New.
25052 (CRT-tst-main1): Likewise.
25053 (LDFLAGS-tst-main1): Likewise.
25054 (LDLIBS-tst-main1): Likewise.
25055 (tst-main1mod.so-no-z-defs): Likewise.
25056 * elf/tst-main1.c: New file.
25057 * elf/tst-main1mod.c: Likewise.
25058
25059 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25060
25061 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25062
25063 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25064
25065 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25066 (fma): Define using libm_alias_double.
25067 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25068 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25069 <math_ldbl_opt.h>.
25070 (fmal): Do not define as compat symbol here.
25071 * sysdeps/alpha/fpu/s_fma.c: New file.
25072
25073 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25074
25075 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25076
25077 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25078
25079 [BZ #22229]
25080 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25081 <math_ldbl_opt.h>
25082 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25083 and libc.
25084 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25085 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25086 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25087 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25088 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25089 Include <math_ldbl_opt.h>
25090 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25091 and libc.
25092 (compat_symbol): Undefine and redefine.
25093 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25094 <math_ldbl_opt.h>
25095 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25096 (compat_symbol): Undefine and redefine.
25097 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25098 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25099 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25100 GLIBC_2_1 for libm.
25101 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25102 GLIBC_2.0 copysignl symbol.
25103 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25104 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25105
25106 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25107
25108 2017-10-04 Florian Weimer <fweimer@redhat.com>
25109
25110 * scripts/check-local-headers.sh: Ignore nspr4 header file
25111 directory in addition to nspr.
25112
25113 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25114
25115 [BZ #17956]
25116 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25117 * configure: Regenerate.
25118 * crypt/Makefile (nss-cpp-flags): New variable.
25119 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25120 (CPPFLAGS-md5-crypt.c): Use it.
25121 * scripts/check-local-headers.sh: Ignore nspr header file
25122 directory.
25123
25124 2017-10-04 Andreas Schwab <schwab@suse.de>
25125
25126 * nis/Makefile (services): Remove compat.
25127 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25128 ($(objpfx)libnss_compat.so): Remove rule.
25129 * nis/Versions (libnss_compat): Remove.
25130 * nss/Makefile (services): Add compat.
25131 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25132 * nss/Versions (libnss_compat): Define.
25133 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25134 Don't include <rpc/types.h>. Replace bool_t by bool.
25135 * nss/nss_compat/compat-initgroups.c: Likewise.
25136 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25137 instead of <rpcsrv/ypclnt.h>.
25138 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25139 yp_get_default_domain.
25140 * nss/nss_compat/compat-pwd.c: Likewise.
25141 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25142 yp_get_default_domain.
25143 * nss/nss_compat/nisdomain.c: New file.
25144 * nss/nss_compat/nisdomain.h: Likewise.
25145
25146 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25147
25148 [BZ #22244]
25149 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25150 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25151
25152 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25153
25154 [BZ #22243]
25155 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25156 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25157
25158 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25159
25160 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25161 "movl main@GOTOFF(%ebx), %eax".
25162
25163 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25164
25165 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25166 allow undefined _DYNAMIC in PIE libc.a.
25167 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25168 Likewse.
25169
25170 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25171
25172 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25173 check _DYNAMIC.
25174
25175 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25176
25177 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25178 check _DYNAMIC.
25179
25180 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25181
25182 * math/test-math-iscanonical.cc (error): Replace bool with int.
25183
25184 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25185
25186 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25187 (modf): Define using libm_alias_double, only if [!__modf].
25188 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25189 <libm-alias-double.h>.
25190 (modf): Define using libm_alias_double, only if [!__modf].
25191 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25192 compat symbol here.
25193 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25194 (weak_alias): Do not undefine and redefine.
25195 (strong_alias): Likewise.
25196 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25197 (weak_alias): Likewise.
25198 (strong_alias): Likewise.
25199
25200 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25201 (logb): Define using libm_alias_double, only if [!__logb].
25202 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25203 <libm-alias-double.h>.
25204 (logb): Define using libm_alias_double, only if [!__logb].
25205 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25206 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25207 (weak_alias): Do not undefine and redefine.
25208 (strong_alias): Likewise.
25209 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25210 (weak_alias): Likewise.
25211 (strong_alias): Likewise.
25212
25213 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25214
25215 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25216 Check SHARED instead PIC.
25217
25218 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25219
25220 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25221 [!__fmaf] (fmaf): Define using libm_alias_float.
25222
25223 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25224 (frexp): Define using libm_alias_double.
25225 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25226 <libm-alias-double.h>.
25227 (frexp): Define using libm_alias_double.
25228 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25229 compat symbol here.
25230
25231 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25232
25233 [BZ #22235]
25234 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25235 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25236 (CFLAGS-test-math-iscanonical.cc): New variable.
25237 * math/test-math-iscanonical.cc: New file.
25238 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25239 Provide a C++ implementation based on function overloading,
25240 rather than using __MATH_TG, which uses C-only builtins.
25241 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25242 Likewise.
25243 * sysdeps/powerpc/powerpc64le/Makefile
25244 (CFLAGS-test-math-iscanonical.cc): New variable.
25245
25246 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25247
25248 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25249 (ceil): Define using libm_alias_double.
25250 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25251 (floor): Define using libm_alias_double.
25252 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25253 <libm-alias-double.h>.
25254 (llround): Define using libm_alias_double.
25255 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25256 <libm-alias-double.h>.
25257 (lround): Define using libm_alias_double.
25258 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25259 <libm-alias-double.h>.
25260 (nearbyint): Define using libm_alias_double.
25261 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25262 <libm-alias-double.h>.
25263 (remquo): Define using libm_alias_double.
25264 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25265 (rint): Define using libm_alias_double.
25266 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25267 (round): Define using libm_alias_double.
25268 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25269 (trunc): Define using libm_alias_double.
25270 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25271 <libm-alias-double.h>.
25272 (ceil): Define using libm_alias_double.
25273 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25274 <libm-alias-double.h>.
25275 (floor): Define using libm_alias_double.
25276 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25277 <libm-alias-double.h>.
25278 (llround): Define using libm_alias_double.
25279 [_LP64] (lround): Likewise.
25280 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25281 <libm-alias-double.h>.
25282 [!_LP64] (lround): Define using libm_alias_double.
25283 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25284 <libm-alias-double.h>.
25285 (nearbyint): Define using libm_alias_double.
25286 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25287 <libm-alias-double.h>.
25288 (remquo): Define using libm_alias_double.
25289 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25290 <libm-alias-double.h>.
25291 (rint): Define using libm_alias_double.
25292 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25293 <libm-alias-double.h>.
25294 (round): Define using libm_alias_double.
25295 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25296 <libm-alias-double.h>.
25297 (trunc): Define using libm_alias_double.
25298 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25299 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25300 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25301 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25302 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25303 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25304 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25305 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25306 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25307
25308 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25309
25310 * math/w_remainder.c: New file.
25311 * math/w_remainderf.c: New file.
25312 * math/w_remainderl.c: New file.
25313
25314 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25315
25316 * elf/rtld.c (BOOTSTRAP_MAP): New.
25317 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25318 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25319 Likewise.
25320 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25321 Likewise.
25322 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25323 Likewise.
25324
25325 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25326
25327 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25328 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25329 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25330 rtld_hidden_data_ver): Define to empty.
25331 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25332 __assert_perror_fail): Likewise.
25333 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25334 (__rewinddir): Likewise.
25335 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25336 (__profile_frequency): Likewise.
25337 * include/setjmp.h (__sigsetjmp): Likewise.
25338 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25339 __libc_sigaction): Likewise.
25340 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25341 not set hidden attribute.
25342 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25343 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25344 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25345 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25346 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25347 __fxstatat64): Likewise.
25348 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25349 (__uname): Likewise.
25350 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25351 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25352 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25353 (NO_RTLD_HIDDEN): Set.
25354 * sysdeps/mach/hurd/configure: Refresh.
25355 * config.h.in: Refresh.
25356
25357 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25358
25359 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25360 (atan): Define using libm_alias_double.
25361 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25362 (tan): Define using libm_alias_double.
25363 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25364 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25365
25366 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25367 define as weak alias of __atan. Do not define any aliases if
25368 [__atan].
25369 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25370 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25371 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25372 as weak alias of __tan. Do not define any aliases if [__tan].
25373 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25374 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25375 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25376 __atan.
25377 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25378 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25379 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25380 and define as weak alias of __atan.
25381 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25382 __atan.
25383 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25384 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25385 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25386 define as weak alias of __tan.
25387
25388 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25389
25390 * math/w_lgamma.c: New file.
25391 * math/w_lgammaf.c: New file.
25392 * math/w_lgammal.c: New file.
25393
25394 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25395
25396 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25397 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25398 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25399 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25400 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25401 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25402 * sysdeps/i386/fpu/w_log2f.c: New file.
25403 * sysdeps/i386/fpu/w_logf.c: New file.
25404 * sysdeps/i386/fpu/w_powf.c: New file.
25405 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25406 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25407 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25408
25409 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25410 H.J. Lu <hongjiu.lu@intel.com>
25411
25412 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25413 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25414 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25415 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25416 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25417 the new expf code.
25418 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25419 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25420 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25421 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25422 * sysdeps/i386/fpu/w_exp2f.c: New file.
25423 * sysdeps/i386/fpu/w_expf.c: New file.
25424 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25425 * sysdeps/x86_64/fpu/w_expf.c: New file.
25426
25427 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25428
25429 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25430 (log2f): Likewise.
25431 (powf): Likewise.
25432 * math/w_log2f.c: New file.
25433 * math/w_logf.c: New file.
25434 * math/w_powf.c: New file.
25435 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25436 * math/w_logf_compat.c (__logf_compat): Likewise.
25437 * math/w_powf_compat.c (__powf_compat): Likewise.
25438 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25439 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25440 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25441 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25442 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25443 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25444 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25445 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25446 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25447 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25448 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25449 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25450 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25451 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25452 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25453 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25454 Likewise.
25455 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25456 Likewise.
25457 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25458 Likewise.
25459 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25460 Likewise.
25461 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25462 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25463 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25464 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25465 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25466 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25467 Likewise.
25468 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25469 Likewise.
25470 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25471 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25472 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25473
25474 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25475
25476 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25477 (sysdep_routines): Add memrchr_power8.
25478 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25479 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25480 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25481 New file.
25482 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25483 (memrchr): Add __memrchr_power8 to ifunc list.
25484 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25485
25486 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25487
25488 [BZ #18822]
25489 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25490 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25491 libc_hidden_def.
25492 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25493 (__posix_fallocate64_l64): Likewise.
25494
25495 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25496
25497 [BZ #18822]
25498 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25499 (__sched_setaffinity_new): Add libc_hidden_proto and
25500 libc_hidden_def.
25501
25502 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25503
25504 [BZ #18822]
25505 * include/glob.h (__glob64): Add libc_hidden_proto.
25506 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25507 libc_hidden_def.
25508
25509 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25510
25511 [BZ #18822]
25512 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25513 attribute_hidden.
25514
25515 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25516
25517 [BZ #18822]
25518 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25519
25520 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25521
25522 [BZ #18822]
25523 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25524 libc_hidden_def.
25525
25526 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25527
25528 [BZ #18822]
25529 * csu/version.c (__libc_print_version): Add attribute_hidden.
25530
25531 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25532
25533 [BZ #18822]
25534 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25535
25536 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25537
25538 [BZ #18822]
25539 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25540
25541 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25542
25543 [BZ #18822]
25544 * nscd/nscd_helper.c (__nis_hash): New prototype.
25545
25546 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25547
25548 [BZ #18822]
25549 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25550 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25551 libc_hidden_def.
25552 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25553 * termios/tcgetattr.c (__tcgetattr): Likewise.
25554
25555 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25556
25557 [BZ #18822]
25558 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25559 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25560 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25561 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25562 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25563
25564 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25565
25566 [BZ #18822]
25567 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25568
25569 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25570
25571 [BZ #18822]
25572 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25573 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25574
25575 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25576
25577 [BZ #18822]
25578 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25579
25580 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25581
25582 [BZ #18822]
25583 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25584 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25585
25586 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25587
25588 [BZ #18822]
25589 * include/ifreq.h: New file.
25590 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25591 (__ifreq): Likewise.
25592 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25593 (__ifreq): Likewise.
25594
25595 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25596
25597 [BZ #18822]
25598 * include/idna.h: New file.
25599 * inet/getnameinfo.c: Include <idna.h> instead of
25600 <libidn/idna.h>.
25601 (__idna_to_unicode_lzlz): Removed.
25602 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25603 <libidn/idna.h>.
25604 (__idna_to_ascii_lz): Removed.
25605 (__idna_to_unicode_lzlz): Likewise.
25606
25607 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25608
25609 [BZ #18822]
25610 * include/plural-exp.h: New file.
25611 * intl/plural-exp.c: Include <plural-exp.h> instead of
25612 "plural-exp.h".
25613
25614 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25615
25616 [BZ #18822]
25617 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25618 "getsourcefilter.h".
25619 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25620 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25621 "getsourcefilter.h".
25622 (__get_sol): Removed.
25623
25624 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25625
25626 [BZ #18822]
25627 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25628 to ...
25629 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25630
25631 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25632
25633 [BZ #18822]
25634 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25635 attribute_hidden.
25636
25637 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25638
25639 [BZ #18822]
25640 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25641
25642 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25643
25644 [BZ #18822]
25645 * include/search.h (__tdestroy): Add libc_hidden_proto.
25646 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25647
25648 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25649
25650 [BZ #18822]
25651 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25652
25653 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25654
25655 [BZ #18822]
25656 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25657 attribute_hidden.
25658
25659 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25660
25661 [BZ #18822]
25662 * include/signal.h (__kill): Add libc_hidden_proto.
25663 (__sigblock): Likewise.
25664 (__sigprocmask): Likewise.
25665 (__sigaltstack): Likewise.
25666 * signal/kill.c (__kill): Add libc_hidden_def.
25667 * signal/sigblock.c (__sigblock): Likewise.
25668 * signal/sigprocmask.c (__sigprocmask): Likewise.
25669 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25670 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25671 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25672 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25673 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25674 Likewise.
25675 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25676 Likewise.
25677 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25678 (__sigprocmask): Likewise.
25679 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25680 Likewise.
25681 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25682 (__sigprocmask): Likewise.
25683 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25684 Likewise.
25685
25686 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25687
25688 [BZ #18822]
25689 * include/string.h (__strsep): Add libc_hidden_proto.
25690 * string/strsep.c (__strsep): Add libc_hidden_def.
25691
25692 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25693
25694 [BZ #18822]
25695 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25696 attribute_hidden.
25697 (__spawni): Likewise.
25698
25699 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25700
25701 [BZ #18822]
25702 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25703 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25704 libc_hidden_def.
25705
25706 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25707
25708 [BZ #18822]
25709 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25710
25711 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25712
25713 [BZ #18822]
25714 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25715 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25716 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25717 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25718 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25719 Likewise.
25720 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25721 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25722
25723 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25724
25725 [BZ #18822]
25726 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25727 (__dcigettext): Likewise.
25728
25729 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25730
25731 [BZ #18822]
25732 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25733 libc_hidden_proto.
25734 (__get_nprocs): Likewise.
25735 (__get_phys_pages): Likewise.
25736 (__get_avphys_pages): Likewise.
25737 (__get_child_max): Add attribute_hidden.
25738 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25739 (__get_nprocs): Likewise.
25740 (__get_phys_pages): Likewise.
25741 (__get_avphys_pages): Likewise.
25742 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25743 libc_hidden_def.
25744 (__get_nprocs): Likewise.
25745 (__get_phys_pages): Likewise.
25746 (__get_avphys_pages): Likewise.
25747 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25748 libc_hidden_def.
25749 (__get_nprocs_conf): Likewise.
25750 (__get_phys_pages): Likewise.
25751 (__get_avphys_pages): Likewise.
25752
25753 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25754
25755 [BZ #18822]
25756 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25757 attribute_hidden.
25758 (__netlink_close): Likewise.
25759 (__netlink_free_handle): Likewise.
25760 (__netlink_request): Likewise.
25761
25762 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25763
25764 [BZ #18822]
25765 * include/rpc/rpc.h (__rpc_thread_variables): Add
25766 attribute_hidden.
25767 (__rpc_thread_svc_cleanup): Likewise.
25768 (__rpc_thread_clnt_cleanup): Likewise.
25769 (__rpc_thread_key_cleanup): Likewise.
25770
25771 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25772
25773 [BZ #18822]
25774 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25775 (__writev): Likewise.
25776 * misc/readv.c (__readv): Add libc_hidden_def.
25777 * misc/writev.c (__writev): Likewise.
25778 * sysdeps/posix/readv.c (__readv): Likewise.
25779 * sysdeps/posix/writev.c (__writev): Likewise.
25780 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25781 (__readv): Likewise.
25782 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25783 (__writev): Likewise.
25784
25785 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25786
25787 [BZ #18822]
25788 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25789 (__regcomp): Add libc_hidden_proto.
25790 (__regexec): Likewise.
25791 (__regfree): Likewise.
25792 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25793 (__regfree): Likewise.
25794 * posix/regexec.c (__regexec): Likewise.
25795
25796 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25797
25798 [BZ #18822]
25799 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25800 (__getutent): Likewise.
25801 (__getutid): Likewise.
25802 (__getutline): Likewise.
25803 (__pututline): Likewise.
25804 (__getutent_r): Likewise.
25805 (__getutid_r): Likewise.
25806 (__getutline_r): Likewise.
25807 (__utmpname): Add attribute_hidden.
25808 (__setutent): Likewise.
25809 (__endutent): Likewise.
25810 * login/getutent.c (__getutent): Add libc_hidden_def.
25811 * login/getutent_r.c (__getutent_r): Likewise.
25812 (__pututline): Likewise.
25813 * login/getutid.c (__getutid): Likewise.
25814 * login/getutid_r.c (__getutid_r): Likewise.
25815 * login/getutline.c (__getutline): Likewise.
25816 * login/getutline_r.c (__getutline_r): Likewise.
25817 * login/updwtmp.c (__updwtmp): Likewise.
25818
25819 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25820
25821 [BZ #18822]
25822 * include/dirent.h (__opendir): Always add attribute_hidden.
25823 (__fdopendir): Likewise.
25824 (__closedir): Likewise.
25825 (__readdir): Likewise.
25826 (__readdir64): Add libc_hidden_proto.
25827 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25828 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25829 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25830 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25831 New alias.
25832
25833 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25834
25835 [BZ #18822]
25836 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
25837 * include/netdb.h (__gethostbyaddr_r): Likewise.
25838 (__gethostbyname_r): Likewise.
25839 (__gethostbyname2_r): Likewise.
25840 (__getnetbyaddr_r): Likewise.
25841 (__getnetbyname_r): Likewise.
25842 (__getservbyname_r): Likewise.
25843 (__getservbyport_r): Likewise.
25844 (__getprotobyname_r): Likewise.
25845 (__getprotobynumber_r): Likewise.
25846 (__getnetgrent_r): Likewise.
25847 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
25848 (__getrpcbynumber_r): Likewise.
25849 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
25850
25851 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25852
25853 [BZ #18822]
25854 * include/stdio.h (__fcloseall): Add attribute_hidden.
25855 (__getline): Likewise.
25856 (__path_search): Likewise.
25857 (__gen_tempname): Likewise.
25858 (__libc_message): Likewise.
25859 (__flockfile): Likewise.
25860 (__funlockfile): Likewise.
25861 (__fxprintf): Likewise.
25862 (__fxprintf_nocancel): Likewise.
25863
25864 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25865
25866 [BZ #18822]
25867 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
25868 (__sgetsgent_r): Likewise.
25869
25870 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25871
25872 [BZ #18822]
25873 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
25874 (__statfs64): Likewise.
25875 (__fstatfs64): Likewise.
25876 * include/sys/statvfs.h (__statvfs64): Likewise.
25877 (__fstatvfs64): Likewise.
25878 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
25879 (__statfs_filesize_max): Likewise.
25880 (__statfs_symlinks): Likewise.
25881 (__statfs_chown_restricted): Likewise.
25882
25883 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25884
25885 [BZ #18822]
25886 * include/time.h (__tzstring): Add attribute_hidden.
25887 (__tzfile_read): Likewise.
25888 (__tzfile_compute): Likewise.
25889 (__tzfile_default): Likewise.
25890 (__tzset_parse_tz): Likewise.
25891 (__offtime): Likewise.
25892 (__asctime_r): Likewise.
25893 (__tzset): Likewise.
25894 (__tz_convert): Likewise.
25895 (__getdate_r): Likewise.
25896 (__getclktck): Likewise.
25897
25898 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25899
25900 [BZ #18822]
25901 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
25902 (__nscd_unmap): Likewise.
25903 (__nscd_cache_search): Likewise.
25904 (__nscd_get_nl_timestamp): Likewise.
25905 (__nscd_getpwnam_r): Likewise.
25906 (__nscd_getpwuid_r): Likewise.
25907 (__nscd_getgrnam_r): Likewise.
25908 (__nscd_getgrgid_r): Likewise.
25909 (__nscd_gethostbyname_r): Likewise.
25910 (__nscd_gethostbyname2_r): Likewise.
25911 (__nscd_gethostbyaddr_r): Likewise.
25912 (__nscd_getai): Likewise.
25913 (__nscd_getgrouplist): Likewise.
25914 (__nscd_getservbyname_r): Likewise.
25915 (__nscd_getservbyport_r): Likewise.
25916 (__nscd_innetgr): Likewise.
25917 (__nscd_setnetgrent): Likewise.
25918
25919 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25920
25921 [BZ #18822]
25922 * include/gmp.h: Declare internal functions only if _ISOMAC is
25923 undefined.
25924 (__mpn_extract_double): Add attribute_hidden.
25925 (__mpn_extract_long_double): Likewise.
25926 (__mpn_extract_float128): Likewise.
25927 (__mpn_construct_float): Likewise.
25928 (__mpn_construct_double): Likewise.
25929 (__mpn_construct_long_double): Likewise.
25930 (__mpn_construct_float128): Likewise.
25931 (mpn_add_1): Likewise.
25932 (mpn_addmul_1): Likewise.
25933 (mpn_add_n): Likewise.
25934 (mpn_cmp): Likewise.
25935 (mpn_divrem): Likewise.
25936 (mpn_lshift): Likewise.
25937 (mpn_mul): Likewise.
25938 (mpn_mul_1): Likewise.
25939 (mpn_rshift): Likewise.
25940 (mpn_sub_1): Likewise.
25941 (mpn_submul_1): Likewise.
25942 (mpn_sub_n): Likewise.
25943
25944 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25945
25946 [BZ #18822]
25947 * include/wchar.h (__wcsnlen): Add attribute_hidden.
25948 (__wcscat): Likewise.
25949 (__btowc): Likewise.
25950 (__wcrtomb): Likewise.
25951 (__mbsrtowcs): Likewise.
25952 (__wcsrtombs): Likewise.
25953 (__mbsnrtowcs): Likewise.
25954 (__wcsnrtombs): Likewise.
25955 (__wcsncpy): Likewise.
25956 (__wcpncpy): Likewise.
25957 (__wmemcpy): Likewise.
25958 (__wmempcpy): Likewise.
25959 (__wmemmove): Likewise.
25960 (__wcschrnul): Likewise.
25961 (__vfwscanf): Likewise.
25962 (__vswprintf): Likewise.
25963 (__fwprintf): Likewise.
25964 (__vfwprintf): Likewise.
25965
25966 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25967
25968 [BZ #18822]
25969 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
25970 (__getgrgid_r): Likewise.
25971 (__getgrnam_r): Likewise.
25972 * include/pwd.h (__getpwuid_r): Likewise.
25973 (__getpwnam_r): Likewise.
25974 (__fgetpwent_r): Likewise.
25975 * include/shadow.h (__getspnam_r): Likewise.
25976 (__sgetspent_r): Likewise.
25977 (__fgetspent_r): Likewise.
25978
25979 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25980
25981 [BZ #18822]
25982 * include/unistd.h (__access): Add attribute_hidden.
25983 (__lseek64): Likewise.
25984 (__libc_pread64): Likewise.
25985 (__pipe2): Likewise.
25986 (__sleep): Likewise.
25987 (__chdir): Likewise.
25988 (__fchdir): Likewise.
25989 (__getcwd): Likewise.
25990 (__rmdir): Likewise.
25991 (__execvpe): Likewise.
25992 (__execve): Likewise.
25993 (__setsid): Likewise.
25994 (__getuid): Likewise.
25995 (__geteuid): Likewise.
25996 (__getgid): Likewise.
25997 (__getegid): Likewise.
25998 (__getgroups): Likewise.
25999 (__group_member): Likewise.
26000 (__ttyname_r): Likewise.
26001 (__isatty): Likewise.
26002 (__readlink): Likewise.
26003 (__unlink): Likewise.
26004 (__gethostname): Likewise.
26005 (__profil): Likewise.
26006 (__getdtablesize): Likewise.
26007 (__brk): Likewise.
26008 (__ftruncate): Likewise.
26009 (__ftruncate64): Likewise.
26010
26011 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26012
26013 [BZ #18822]
26014 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26015 * argp/argp-fs-xinl.c: Likewise.
26016 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26017 * argp/argp-parse.c: Include <argp.h>.
26018 * argp/argp-xinl.c: Likewise.
26019 * include/argp-fmtstream.h: New file.
26020 * include/argp.h (__argp_error): Add attribute_hidden.
26021 (__argp_failure): Likewise.
26022 (__argp_input): Likewise.
26023 (__argp_state_help): Likewise.
26024
26025 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26026
26027 [BZ #18822]
26028 * include/wchar.h (____wcstof_l_internal): New prototype.
26029 (____wcstod_l_internal): Likewise.
26030 (____wcstold_l_internal): Likewise.
26031 (____wcstol_l_internal): Likewise.
26032 (____wcstoul_l_internal): Likewise.
26033 (____wcstoll_l_internal): Likewise.
26034 (____wcstoull_l_internal): Likewise.
26035 (____wcstof128_l_internal): Likewise.
26036 * sysdeps/ieee754/float128/wcstof128.c
26037 (____wcstof128_l_internal): Removed.
26038 * sysdeps/ieee754/float128/wcstof128_l.c
26039 (____wcstof128_l_internal): Likewise.
26040 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26041 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26042 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26043 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26044 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26045 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26046 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26047 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26048 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26049 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26050
26051 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26052
26053 [BZ #18822]
26054 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26055 instead of <sys/statvfs.h>.
26056 (__internal_statvfs): Removed.
26057 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26058 instead of <sys/statvfs.h>.
26059 (__internal_statvfs64): Removed.
26060 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26061 "internal_statvfs.h" instead of <sys/statvfs.h>.
26062 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26063 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26064 instead of <sys/statvfs.h>.
26065 (__internal_statvfs): Removed.
26066 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26067 instead of <sys/statvfs.h>.
26068 (__internal_statvfs64): Removed.
26069
26070 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26071
26072 [BZ #18822]
26073 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26074 (__gconv_close): Likewise.
26075 (__gconv): Likewise.
26076 (__gconv_find_transform): Likewise.
26077 (__gconv_lookup_cache): Likewise.
26078 (__gconv_compare_alias_cache): Likewise.
26079 (__gconv_load_cache): Likewise.
26080 (__gconv_get_path): Likewise.
26081 (__gconv_close_transform): Likewise.
26082 (__gconv_release_cache): Likewise.
26083 (__gconv_find_shlib): Likewise.
26084 (__gconv_release_shlib): Likewise.
26085 (__gconv_get_builtin_trans): Likewise.
26086 (__gconv_compare_alias): Likewise.
26087 * include/dlfcn.h (_dlerror_run): Likewise.
26088 * include/stdio.h (__fortify_fail_abort): Likewise.
26089 * include/time.h (__tz_compute): Likewise.
26090 (__strptime_internal): Likewise.
26091 * intl/gettextP.h (_nl_find_domain): Likewise.
26092 (_nl_load_domain): Likewise.
26093 (_nl_find_msg): Likewise.
26094 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26095 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26096 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26097 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26098 (__gai_find_request): Likewise.
26099 (__gai_remove_request): Likewise.
26100 (__gai_notify): Likewise.
26101 (__gai_notify_only): Likewise.
26102 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26103 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26104 (_dl_non_dynamic_init): Likewise.
26105 (_dl_aux_init): Likewise.
26106 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26107 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26108 Likewise.
26109 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26110 (__wcsmbs_clone_conv): Likewise.
26111 (__wcsmbs_named_conv): Likewise.
26112
26113 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26114
26115 [BZ #18822]
26116 * include/stdlib.h (__random): Add attribute_hidden.
26117 (__random_r): Likewise.
26118 (__srandom_r): Likewise.
26119 (__initstate_r): Likewise.
26120 (__setstate_r): Likewise.
26121 (__erand48_r): Likewise.
26122 (__nrand48_r): Likewise.
26123 (__jrand48_r): Likewise.
26124 (__srand48_r): Likewise.
26125 (__seed48_r): Likewise.
26126 (__lcong48_r): Likewise.
26127 (__drand48_iterate): Likewise.
26128 (__setenv): Likewise.
26129 (__unsetenv): Likewise.
26130 (__clearenv): Likewise.
26131 (__ptsname_r): Likewise.
26132 (__posix_openpt): Likewise.
26133 (__add_to_environ): Likewise.
26134 (__realpath): Add libc_hidden_proto.
26135 (__ecvt_r): Likewise.
26136 (__fcvt_r): Likewise.
26137 (__qecvt_r): Likewise.
26138 (__qfcvt_r): Likewise.
26139 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26140 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26141
26142 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26143
26144 [BZ #18822]
26145 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26146 * include/time.h (__mktime_internal): Likewise.
26147 * libio/iolibio.h (__fopen_internal): Likewise.
26148
26149 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26150
26151 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26152 pointer in frame.
26153 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26154 Correct offset used to restore PIC register.
26155
26156 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26157
26158 [BZ libc/22165]
26159 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26160 code to load address of __getcontext_ret when generating PIC code.
26161
26162 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26163
26164 * elf/Makefile (tests-static-internal): Add
26165 tst-tls1-static-non-pie.
26166 (LDFLAGS-tst-tls1-static-non-pie): New.
26167 * elf/tst-tls1-static-non-pie.c: New file.
26168
26169 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26170
26171 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26172 (asinh): Define using libm_alias_double.
26173 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26174 (cbrt): Define using libm_alias_double.
26175 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26176 <libm-alias-double.h>.
26177 (copysign): Define using libm_alias_double.
26178 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26179 (erf): Define using libm_alias_double.
26180 (erfc): Likewise.
26181 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26182 (expm1): Define using libm_alias_double.
26183 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26184 (fabs): Define using libm_alias_double.
26185 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26186 libm_alias_double.
26187 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26188 <libm-alias-double.h>.
26189 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26190 libm_alias_double.
26191 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26192 <libm-alias-double.h>.
26193 (getpayload): Define using libm_alias_double.
26194 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26195 <libm-alias-double.h>.
26196 (llrint): Define using libm_alias_double.
26197 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26198 (lrint): Define using libm_alias_double.
26199 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26200 <libm-alias-double.h>.
26201 (nextup): Define using libm_alias_double.
26202 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26203 <libm-alias-double.h>.
26204 (roundeven): Define using libm_alias_double.
26205 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26206 libm_alias_double.
26207 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26208 <libm-alias-double.h>.
26209 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26210 using libm_alias_double.
26211 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26212 (cos): Define using libm_alias_double.
26213 (sin): Likewise.
26214 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26215 <libm-alias-double.h>.
26216 (sincos): Define using libm_alias_double.
26217 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26218 (tanh): Define using libm_alias_double.
26219 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26220 <libm-alias-double.h>.
26221 (totalorder): Define using libm_alias_double.
26222 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26223 <libm-alias-double.h>.
26224 (totalordermag): Define using libm_alias_double.
26225 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26226 libm_alias_double.
26227 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26228 libm_alias_double.
26229 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26230 <libm-alias-double.h>.
26231 (getpayload): Define using libm_alias_double.
26232 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26233 <libm-alias-double.h>.
26234 (roundeven): Define using libm_alias_double.
26235 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26236 <libm-alias-double.h>.
26237 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26238 <libm-alias-double.h>.
26239 (totalorder): Define using libm_alias_double.
26240 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26241 <libm-alias-double.h>.
26242 (totalordermag): Define using libm_alias_double.
26243 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26244 libc compat symbol here.
26245 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26246 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26247 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26248 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26249 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26250 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26251 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26252 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26253 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26254 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26255
26256 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26257
26258 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26259 _dl_relocate_static_pie instead of _dl_start to compute load
26260 address in static PIE. Return 0 if _DYNAMIC is undefined for
26261 static executable.
26262
26263 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26264
26265 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26266 _DYNAMIC is undefined for static executable.
26267
26268 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26269
26270 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26271
26272 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26273
26274 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26275
26276 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26277
26278 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26279 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26280 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26281 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26282 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26283 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26284 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26285 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26286 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26287 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26288 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26289 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26290 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26291 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26292 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26293 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26294 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26295
26296 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26297
26298 * math/bits/cmathcalls.h (cimag): Remove inline.
26299 (creal): Remove inline.
26300 (conj): Remove inline.
26301
26302 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26303
26304 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26305 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26306 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26307 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26308 (issignalingf_inline): Likewise.
26309 (POWF_LOG2_TABLE_BITS): Likewise.
26310 (POWF_LOG2_POLY_ORDER): Likewise.
26311 (POWF_SCALE_BITS): Likewise.
26312 (POWF_SCALE): Likewise.
26313 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26314 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26315 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26316
26317 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26318
26319 * math/Makefile (type-float-routines): Add e_log2f_data.
26320 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26321 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26322 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26323 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26324 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26325 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26326 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26327
26328 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26329
26330 * math/Makefile (type-float-routines): Add e_logf_data.
26331 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26332 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26333 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26334 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26335 * sysdeps/i386/fpu/e_logf_data.c: New file.
26336 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26337 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26338
26339 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26340
26341 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26342 undefined _DYNAMIC in PIE libc.a.
26343 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26344 Likewse.
26345
26346 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26347
26348 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26349 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26350 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26351 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26352 (__signbit): Remove.
26353 (__signbitl): Remove.
26354 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26355 (__signbit): Remove.
26356 (__signbitl): Remove.
26357 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26358 (__signbit): Remove.
26359 (__signbitl): Remove.
26360 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26361 (__signbit): Remove.
26362 (__signbitl): Remove.
26363 * sysdeps/tile/bits/mathinline.h: Delete file.
26364 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26365 (__signbit): Remove.
26366 (__signbitl): Remove.
26367
26368 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26369
26370 * math/math.h: Improve handling of C99 isgreater macros.
26371 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26372 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26373 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26374 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26375 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26376
26377 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26378
26379 * sysdeps/aarch64/libm-test-ulps: Update.
26380
26381 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26382
26383 [BZ #22225]
26384 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26385 math_opt_barrier on argument when doing arithmetic on it.
26386 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26387 Likewise. Use math_force_eval not math_opt_barrier after
26388 arithmetic.
26389 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26390 math_opt_barrier on argument when doing arithmetic on it.
26391 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26392 Likewise.
26393
26394 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26395
26396 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26397 libc_hidden_def.
26398 (__freeifaddrs): Likewise.
26399
26400 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26401
26402 * include/dirent.h (__dirfd): New declaration.
26403 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26404 alias.
26405 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26406 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26407 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26408 * include/unistd.h (__revoke): New declaration.
26409 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26410 alias.
26411 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26412 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26413 revoke.
26414 * include/dirent.h (__seekdir): New declaration.
26415 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26416 redefine as weak alias.
26417 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26418 of seekdir.
26419 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26420 and use libc_hidden_def on them.
26421 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26422 them.
26423 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26424 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26425 instead of getifaddrs and freeifaddrs.
26426
26427 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26428
26429 [BZ #18822]
26430 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26431 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26432 (__dso_handle): Remove declaration.
26433 * dlfcn/tstatexit.c (__dso_handle): Removed.
26434 (main): Don't check __dso_handle.
26435 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26436 (main): Don't check __dso_handle.
26437 * include/dso_handle.h: New file.
26438 * malloc/mtrace.c: Include <dso_handle.h>.
26439 (mtrace): Pass __dso_handle directly.
26440 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26441 (__dso_handle): Remove declaration.
26442 (__pthread_atfork): Pass __dso_handle directly.
26443 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26444 (__dso_handle): Removed.
26445 * posix/wordexp-test.c: Include <dso_handle.h>.
26446 (__dso_handle): Remove declaration.
26447 (__app_register_atfork): Pass __dso_handle directly.
26448 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26449 (__dso_handle): Remove declaration.
26450 (at_quick_exit): Pass __dso_handle directly.
26451 * stdlib/atexit.c: Include <dso_handle.h>.
26452 (__dso_handle): Remove declaration.
26453 (atexit): Pass __dso_handle directly.
26454 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26455 (__dso_handle): Removed.
26456
26457 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26458
26459 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26460 using VDSO.
26461
26462 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26463
26464 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26465 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26466 values to correct default value for given type.
26467
26468 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26469
26470 [BZ #22101]
26471 * elf/Makefile (tests): Add tst-debug1.
26472 ($(objpfx)tst-debug1): New.
26473 ($(objpfx)tst-debug1.out): Likewise.
26474 ($(objpfx)tst-debug1mod1.so): Likewise.
26475 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26476 with p_filesz == 0.
26477 * elf/tst-debug1.c: New file.
26478
26479 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26480
26481 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26482 Define using __ifunc.
26483
26484 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26485
26486 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26487 exp2f() values.
26488
26489 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26490
26491 [BZ #22156]
26492 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26493
26494 2017-09-26 Florian Weimer <fweimer@redhat.com>
26495
26496 * resolv/Makefile (tests-internal): Fix typo in comment.
26497
26498 2017-09-26 Florian Weimer <fweimer@redhat.com>
26499
26500 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26501
26502 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26503
26504 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26505 Use an union instead of a max_align_t array for __space,
26506 so that __space is the same size on all platforms.
26507 * malloc/scratch_buffer_grow_preserve.c
26508 (__libc_scratch_buffer_grow_preserve): Likewise.
26509
26510 [BZ #22183]
26511 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26512 version to 2.
26513 * posix/Makefile (routines): Add glob-lstat-compat and
26514 glob64-lstat-compat.
26515 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26516 * posix/glob-lstat-compat.c: New file.
26517 * posix/glob64-lstat-compat.c: Likewise.
26518 * posix/tst-glob_lstat_compat.c: Likewise.
26519 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26520 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26521 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26522 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26523 Likewise.
26524 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26525 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26526 * posix/glob.c (glob_lstat): New function.
26527 (glob): Rename to __glob and add versioned symbol to 2.27.
26528 (glob_in_dir): Use glob_lstat.
26529 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26530 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26531 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26532 2.27.
26533 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26534 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26535 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26536 gl_lstat on glob call.
26537 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26538 and glob64 symbols.
26539 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26540 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26541 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26542 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26543 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26544 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26545 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26546 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26547 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26548 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26549 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26550 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26551 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26552 Likewise.
26553 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26554 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26555 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26556 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26557 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26558 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26559 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26560 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26561 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26562 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26563 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26564 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26565
26566 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26567
26568 * configure.ac (AS): Require binutils 2.25 or later.
26569 * configure: Regenerated.
26570
26571 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26572
26573 [BZ #22207]
26574 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26575 VM size.
26576
26577 2017-09-25 DJ Delorie <dj@redhat.com>
26578
26579 [BZ #22161]
26580 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26581 resetting timeout.
26582
26583 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26584
26585 * sysdeps/ieee754/dbl-64/sincos32.h
26586 [SINCCOS32_H]: Remove define.
26587 [SINCOS32_H]: Define.
26588
26589 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26590
26591 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26592 (exp2f): Likewise.
26593 * math/w_exp2f.c: New file.
26594 * math/w_expf.c: New file.
26595 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26596 * math/w_expf_compat.c (__expf_compat): Likewise.
26597 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26598 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26599 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26600 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26601 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26602 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26603 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26604 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26605 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26606 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26607 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26608 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26609 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26610 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26612 Likewise.
26613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26614 Likewise.
26615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26616 Likewise.
26617 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26618 Likewise.
26619 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26620 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26621 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26622 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26623 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26624 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26625 Likewise.
26626 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26627 Likewise.
26628 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26629 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26630 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26631
26632 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26633
26634 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26635 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26636 (roundtoint, converttoint): Likewise.
26637 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26638 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26639 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26640 * sysdeps/ieee754/flt-32/math_config.h: New file.
26641 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26642 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26643 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26644 * sysdeps/i386/fpu/math_errf.c: New file.
26645 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26646 * sysdeps/ia64/fpu/math_errf.c: New file.
26647 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26648 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26649
26650 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26651
26652 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26653 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26654 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26655 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26656 to make sure that these symbols are defined.
26657 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26658 of <limits.h>
26659 (__need_NULL): Do not define.
26660 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26661 alignment.
26662 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26663 CMGROUP_MAX, cmsgcred): Do not define.
26664 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26665 NULL.
26666 * bits/socket.h: Likewise.
26667 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26668 __gettimeofday instead of gettimeofday.
26669 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26670 instead of settimeofday.
26671
26672 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26673
26674 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26675 (asinhf): Define using libm_alias_float.
26676 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26677 (atanf): Define using libm_alias_float.
26678 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26679 (cbrtf): Define using libm_alias_float.
26680 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26681 (ceilf): Define using libm_alias_float.
26682 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26683 <libm-alias-float.h>.
26684 (copysignf): Define using libm_alias_float.
26685 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26686 (cosf): Define using libm_alias_float.
26687 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26688 (erff): Define using libm_alias_float.
26689 (erfcf): Likewise.
26690 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26691 (expm1f): Define using libm_alias_float.
26692 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26693 (fabsf): Define using libm_alias_float.
26694 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26695 (floorf): Define using libm_alias_float.
26696 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26697 (frexpf): Define using libm_alias_float.
26698 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26699 libm_alias_float.
26700 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26701 <libm-alias-float.h>.
26702 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26703 libm_alias_float.
26704 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26705 <libm-alias-float.h>.
26706 (getpayloadf): Define using libm_alias_float.
26707 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26708 <libm-alias-float.h>.
26709 (llrintf): Define using libm_alias_float.
26710 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26711 <libm-alias-float.h>.
26712 (llroundf): Define using libm_alias_float.
26713 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26714 (logbf): Define using libm_alias_float.
26715 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26716 (lrintf): Define using libm_alias_float.
26717 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26718 (lroundf): Define using libm_alias_float.
26719 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26720 (modff): Define using libm_alias_float.
26721 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26722 <libm-alias-float.h>.
26723 (nearbyintf): Define using libm_alias_float.
26724 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26725 <libm-alias-float.h>.
26726 (nextafterf): Define using libm_alias_float.
26727 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26728 <libm-alias-float.h>.
26729 (nextupf): Define using libm_alias_float.
26730 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26731 <libm-alias-float.h>.
26732 (remquof): Define using libm_alias_float.
26733 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26734 (rintf): Define using libm_alias_float.
26735 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26736 <libm-alias-float.h>.
26737 (roundevenf): Define using libm_alias_float.
26738 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26739 (roundf): Define using libm_alias_float.
26740 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26741 using libm_alias_float.
26742 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26743 <libm-alias-float.h>.
26744 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26745 Define using libm_alias_float.
26746 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26747 <libm-alias-float.h>.
26748 (sincosf): Define using libm_alias_float.
26749 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26750 (sinf): Define using libm_alias_float.
26751 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26752 (tanf): Define using libm_alias_float.
26753 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26754 (tanhf): Define using libm_alias_float.
26755 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26756 <libm-alias-float.h>.
26757 (totalorderf): Define using libm_alias_float.
26758 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26759 <libm-alias-float.h>.
26760 (totalordermagf): Define using libm_alias_float.
26761 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26762 (truncf): Define using libm_alias_float.
26763 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26764 libm_alias_float.
26765 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26766 libm_alias_float.
26767
26768 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26769
26770 [BZ #22146]
26771 math/math.h: Let fpclassify use the builtin in C++ mode, even
26772 when optimazing for size.
26773
26774 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26775
26776 * csu/Makefile (generated): Do not add version-info.h.
26777 (before-compile): Likewise.
26778 (all-Banner-files): Remove variable.
26779 ($(objpfx)version-info.h): Remove rule.
26780 * csu/version.c (banner): Do not include "version-info.h".
26781 * libidn/Banner: Remove.
26782 * manual/contrib.texi (Simon Josefsson): New entry.
26783
26784 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26785
26786 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26787 Remove conditionals on LDBL_MANT_DIG.
26788 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26789 (__ieee754_lgammal_r): Likewise.
26790
26791 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26792
26793 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26794 _Float128 and L().
26795 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26796 _Float128 and L(). Replace _Float128 with long double and L(x)
26797 with xL, throughout the file.
26798 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26799 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26800 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26801 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26802
26803 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26804
26805 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26806 sysdeps/ieee754/ldbl-128ibm.
26807 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26808 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26809 of including it. Keep _Float128 and L() intact. These will be
26810 reviewed by a separate patch.
26811 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26812 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26813 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26814 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26815
26816 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26817
26818 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26819 (__finitef128): Define to __redirect___finitef128.
26820 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26821 (__isinff128): Define to __redirect___isinff128.
26822 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26823 (__isnanf128): Define to __redirect___isnanf128.
26824
26825 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26826
26827 * sysdeps/powerpc/powerpc64le/Makefile
26828 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26829 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26830
26831 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26832 Carlos O'Donell <carlos@redhat.com>
26833
26834 [BZ #22180]
26835 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
26836 * stdlib/test-dlclose-exit-race.c: New file.
26837 * stdlib/test-dlclose-exit-race-helper.c: New file.
26838 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
26839
26840 2017-09-21 Joseph Myers <joseph@codesourcery.com>
26841
26842 * crypt/Banner: Remove file.
26843 * nptl/Banner: Likewise.
26844 * resolv/Banner: Likewise.
26845 * soft-fp/Banner: Likewise.
26846 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
26847 ($(objpfx)version.d): Remove dependency on banner.h.
26848 ($(objpfx)version.os): Likewise.
26849 * nptl/version.c (banner): Do not include banner.h.
26850 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
26851 Jelinek and BIND code.
26852
26853 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26854 Carlos O'Donell <carlos@redhat.com>
26855
26856 * support/xdlfcn.h: New file.
26857 * support/xdlfcn.c: New file.
26858 * support/Makefile (libsupport-routines): Add xdlfcn.
26859 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
26860
26861 2017-09-20 Joseph Myers <joseph@codesourcery.com>
26862
26863 [BZ #20142]
26864 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26865 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
26866 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
26867 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
26868 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
26869 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
26870 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
26871 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
26872
26873 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26874 Ricky Zhou <rickyz@google.com>
26875 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26876
26877 [BZ #14333]
26878 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
26879 Remove atomics.
26880 (__new_exitfn): Fail registration when we finished at_exit processing.
26881 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
26882 * stdlib/on_exit.c (__on_exit): Likewise.
26883 * stdlib/exit.c (__exit_funcs_done): New variable.
26884 (__run_exit_handlers): Use __exit_funcs_lock.
26885 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
26886 declarations.
26887 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
26888 (test-cxa_atexit-race, test-on_exit-race): New tests.
26889 * stdlib/test-atexit-race-common.c: New file.
26890 * stdlib/test-atexit-race.c: New file.
26891 * stdlib/test-at_quick_exit-race.c: New file.
26892 * stdlib/test-cxa_atexit-race.c: New file.
26893 * stdlib/test-on_exit-race.c: New file.
26894
26895 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
26896
26897 * benchtests/Makefile: Add exp2f and log2f benchmarks.
26898 * benchtests/exp2f-inputs: Copy of expf-inputs.
26899 * benchtests/log2f-inputs: Copy of logf-inputs.
26900
26901 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26902
26903 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
26904 Explicitly take address of first element of array arguments in
26905 call to INLINE_SYSCALL.
26906
26907 2017-09-19 Andreas Schwab <schwab@suse.de>
26908
26909 [BZ #22134]
26910 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
26911 execveat first.
26912 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
26913 unimplemented.
26914 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
26915 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
26916 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
26917 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
26918 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26919 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26920 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
26921 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26922 * posix/Makefile (tests): Add tst-fexecve.
26923 * posix/tst-fexecve.c: New file.
26924
26925 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26926
26927 * benchtests/Makefile: Add logf benchmark.
26928 * benchtests/logf-inputs: Add reduced trace from wrf_r.
26929
26930 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26931
26932 * benchtests/Makefile: Add expf benchmark.
26933 * benchtests/expf-inputs: Add reduced trace from wrf_r.
26934
26935 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26936
26937 * csu/Makefile: Add -funwind-tables to libc-start.c.
26938 * debug/Makefile: Add -funwind-tables to backtrace.c.
26939 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
26940 * sysdeps/arm/Makefile: Likewise.
26941 * sysdeps/i386/Makefile: Likewise.
26942 * sysdeps/m68k/Makefile: Likewise.
26943 * sysdeps/mips/Makefile: Likewise.
26944 * sysdeps/nios2/Makefile: Likewise.
26945 * sysdeps/sh/Makefile: Likewise.
26946 * sysdeps/sparc/Makefile: Likewise.
26947
26948 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26949
26950 * benchtests/Makefile (bench-math): Add trunc and truncf.
26951 (CFLAGS-bench-trunc.c): New variable.
26952 (CFLAGS-bench-truncf.c): Likewise.
26953 * benchtests/trunc-inputs: New file.
26954 * benchtests/truncf-inputs: Likewise.
26955
26956 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26957
26958 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
26959
26960 2017-09-18 Joseph Myers <joseph@codesourcery.com>
26961
26962 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
26963 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
26964 redefine.
26965 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
26966 (exp10l): Define as weak alias.
26967 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
26968 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
26969 and redefine.
26970 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
26971 (remainderl): Define as weak alias.
26972
26973 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
26974 (fmal): Define using libm_alias_ldouble.
26975 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
26976 (acoshl): Define using libm_alias_ldouble.
26977 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
26978 (acosl): Define using libm_alias_ldouble.
26979 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
26980 (asinl): Define using libm_alias_ldouble.
26981 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
26982 (atan2l): Define using libm_alias_ldouble.
26983 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
26984 (atanhl): Define using libm_alias_ldouble.
26985 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
26986 (coshl): Define using libm_alias_ldouble.
26987 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
26988 (exp10l): Define using libm_alias_ldouble.
26989 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
26990 (exp2l): Define using libm_alias_ldouble.
26991 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
26992 (expl): Define using libm_alias_ldouble.
26993 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
26994 (fmodl): Define using libm_alias_ldouble.
26995 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
26996 (hypotl): Define using libm_alias_ldouble.
26997 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
26998 (j0l): Define using libm_alias_ldouble.
26999 (y0l): Likewise.
27000 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27001 (j1l): Define using libm_alias_ldouble.
27002 (y1l): Likewise.
27003 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27004 (jnl): Define using libm_alias_ldouble.
27005 (ynl): Likewise.
27006 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27007 (log10l): Define using libm_alias_ldouble.
27008 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27009 (log2l): Define using libm_alias_ldouble.
27010 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27011 (logl): Define using libm_alias_ldouble.
27012 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27013 (powl): Define using libm_alias_ldouble.
27014 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27015 (remainderl): Define using libm_alias_ldouble.
27016 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27017 (sinhl): Define using libm_alias_ldouble.
27018 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27019 (sqrtl): Define using libm_alias_ldouble.
27020 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27021 (tgammal): Define using libm_alias_ldouble.
27022 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27023 (exp10l): Do not use long_double_symbol here.
27024 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27025 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27026 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27027 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27028 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27029 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27030 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27031 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27032 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27033 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27034 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27035 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27036 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27037 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27038 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27039 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27040 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27041 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27042 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27043 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27044 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27045 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27046
27047 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27048
27049 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27050 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27051
27052 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27053
27054 * io/read.c (read): Add libc_hidden_weak.
27055 * sysdeps/mach/hurd/read.c (read): Likewise.
27056 * io/write.c (write): Likewise.
27057 * sysdeps/mach/hurd/write.c (write): Likewise.
27058 * io/pread64.c (__pread64): Likewise.
27059 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27060 * posix/pread64.c (__pread64): Add libc_hidden_def.
27061
27062 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27063
27064 * benchtests/scripts/compare_strings.py: New option -g.
27065 (draw_graph): Print a message that a graph is being generated.
27066 (process_results): Generate graph only if -g is passed.
27067 (main): Process option -g.
27068
27069 * benchtests/scripts/compare_strings.py (process_results):
27070 Better spacing for output.
27071
27072 * benchtests/scripts/compare_strings.py: Use argparse.
27073 * benchtests/README: Document existence of compare_strings.py.
27074
27075 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27076
27077 * math/s_fma.c: Include <libm-alias-double.h>.
27078 (fma): Define using libm_alias_double.
27079 * math/s_nextafter.c: Include <libm-alias-double.h>.
27080 (nextafter): Define using libm_alias_double.
27081 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27082 (acos): Define using libm_alias_double.
27083 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27084 (aocsh): Define using libm_alias_double.
27085 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27086 (asin): Define using libm_alias_double.
27087 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27088 (atan2): Define using libm_alias_double.
27089 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27090 (atanh): Define using libm_alias_double.
27091 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27092 (cosh): Define using libm_alias_double.
27093 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27094 (exp10): Define using libm_alias_double.
27095 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27096 (exp2): Define using libm_alias_double.
27097 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27098 (exp): Define using libm_alias_double.
27099 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27100 (fmod): Define using libm_alias_double.
27101 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27102 (hypot): Define using libm_alias_double.
27103 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27104 (j0): Define using libm_alias_double.
27105 (y0): Likewise.
27106 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27107 (j1): Define using libm_alias_double.
27108 (y1): Likewise.
27109 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27110 (jn): Define using libm_alias_double.
27111 (yn): Likewise.
27112 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27113 (log10): Define using libm_alias_double.
27114 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27115 (log2): Define using libm_alias_double.
27116 * math/w_log_compat.c: Include <libm-alias-double.h>.
27117 (log): Define using libm_alias_double.
27118 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27119 (pow): Define using libm_alias_double.
27120 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27121 (remainder): Define using libm_alias_double.
27122 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27123 (sinh): Define using libm_alias_double.
27124 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27125 (sqrt): Define using libm_alias_double.
27126 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27127 (tgamma): Define using libm_alias_double.
27128 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27129 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27130 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27131 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27132 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27133 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27134 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27135 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27136 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27137 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27138 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27139 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27140 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27141 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27142 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27143 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27144 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27145 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27146 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27147 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27148 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27149 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27150 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27151 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27152 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27153
27154 * math/e_acoshl.c: Remove.
27155 * math/e_acosl.c: Likewise.
27156 * math/e_asinl.c: Likewise.
27157 * math/e_atan2l.c: Likewise.
27158 * math/e_atanhl.c: Likewise.
27159 * math/e_coshl.c: Likewise.
27160 * math/e_expl.c: Likewise.
27161 * math/e_fmodl.c: Likewise.
27162 * math/e_gammal_r.c: Likewise.
27163 * math/e_hypotl.c: Likewise.
27164 * math/e_j0l.c: Likewise.
27165 * math/e_j1l.c: Likewise.
27166 * math/e_jnl.c: Likewise.
27167 * math/e_lgammal_r.c: Likewise.
27168 * math/e_log10l.c: Likewise.
27169 * math/e_log2l.c: Likewise.
27170 * math/e_logl.c: Likewise.
27171 * math/e_powl.c: Likewise.
27172 * math/e_rem_pio2l.c: Likewise.
27173 * math/e_sinhl.c: Likewise.
27174 * math/e_sqrtf128.c: Likewise.
27175 * math/e_sqrtl.c: Likewise.
27176 * math/k_cosl.c: Likewise.
27177 * math/k_sinl.c: Likewise.
27178 * math/k_tanl.c: Likewise.
27179 * math/s_asinhl.c: Likewise.
27180 * math/s_atanl.c: Likewise.
27181 * math/s_cbrtl.c: Likewise.
27182 * math/s_erfl.c: Likewise.
27183 * math/s_expm1l.c: Likewise.
27184 * math/s_log1pl.c: Likewise.
27185 * math/s_tanhl.c: Likewise.
27186
27187 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27188
27189 [BZ #21745]
27190 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27191 [$(subdir) = math] (sysdep_calls): New variable. Has the
27192 previous contents of sysdep_routines, but re-sorted..
27193 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27194 sysdep_calls.
27195 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27196 defined in sysdep_calls and replace by the respective m_* names.
27197 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27198 (compat_symbol): Undefine to avoid duplicated compat symbols in
27199 libc.
27200
27201 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27202
27203 * math/s_fmaf.c: Include <libm-alias-float.h>.
27204 (fmaf): Define using libm_alias_float.
27205 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27206 (acosf): Define using libm_alias_float.
27207 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27208 (acoshf): Define using libm_alias_float.
27209 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27210 (asinf): Define using libm_alias_float.
27211 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27212 (atan2f): Define using libm_alias_float.
27213 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27214 (atanhf): Define using libm_alias_float.
27215 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27216 (coshf): Define using libm_alias_float.
27217 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27218 (exp10f): Define using libm_alias_float.
27219 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27220 (fmodf): Define using libm_alias_float.
27221 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27222 (hypotf): Define using libm_alias_float.
27223 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27224 (j0f): Define using libm_alias_float.
27225 (y0f): Likewise.
27226 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27227 (j1f): Define using libm_alias_float.
27228 (y1f): Likewise.
27229 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27230 (jnf): Define using libm_alias_float.
27231 (ynf): Likewise.
27232 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27233 (log10f): Define using libm_alias_float.
27234 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27235 (log2f): Define using libm_alias_float.
27236 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27237 (logf): Define using libm_alias_float.
27238 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27239 (powf): Define using libm_alias_float.
27240 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27241 (remainderf): Define using libm_alias_float.
27242 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27243 (sinhf): Define using libm_alias_float.
27244 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27245 (sqrtf): Define using libm_alias_float.
27246 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27247 (tgammaf): Define using libm_alias_float.
27248
27249 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27250
27251 * include/math.h (roundeven): Change hidden_proto call to
27252 __roundeven.
27253 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27254 alias.
27255 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27256 (y0): Rename to __y0 and define as weak alias.
27257 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27258 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27259 alias.
27260 (y0f): Rename to __y0f and define as weak alias.
27261 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27262 alias.
27263 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27264 (y1): Rename to __y1 and define as weak alias.
27265 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27266 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27267 alias.
27268 (y1f): Rename to __y1f and define as weak alias.
27269 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27270 alias.
27271 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27272 (yn): Rename to __yn and define as weak alias.
27273 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27274 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27275 alias.
27276 (ynf): Rename to __ynf and define as weak alias.
27277 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27278 (fromfp): Define as weak alias.
27279 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27280 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27281 (fromfpx): Define as weak alias.
27282 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27283 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27284 __getpayload and define as weak alias.
27285 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27286 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27287 __roundeven and define as weak alias.
27288 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27289 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27290 __setpayload.
27291 (setpayload): Define as weak alias.
27292 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27293 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27294 __setpayloadsig.
27295 (setpayloadsig): Define as weak alias.
27296 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27297 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27298 __totalorder and define as weak alias.
27299 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27300 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27301 to __totalordermag and define as weak alias.
27302 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27303 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27304 (ufromfp): Define as weak alias.
27305 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27306 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27307 __ufromfpx.
27308 (ufromfpx): Define as weak alias.
27309 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27310 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27311 Rename to __getpayload and define as weak alias.
27312 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27313 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27314 Rename to __roundeven and define as weak alias.
27315 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27316 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27317 Rename to __totalorder and define as weak alias.
27318 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27319 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27320 (totalordermag): Rename to __totalordermag and define as weak
27321 alias.
27322 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27323 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27324 macro.
27325 (__roundevenl): Likewise.
27326 (__totalorderl): Likewise.
27327 (__totalordermagl): Likewise
27328 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27329 __fromfpf128.
27330 (fromfpf128): Define as weak alias.
27331 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27332 __fromfpxf128.
27333 (fromfpxf128): Define as weak alias.
27334 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27335 __setpayloadf128.
27336 (setpayloadf128): Define as weak alias.
27337 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27338 __setpayloadsigf128.
27339 (setpayloadsigf128): Define as weak alias.
27340 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27341 __ufromfpf128.
27342 (ufromfpf128): Define as weak alias.
27343 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27344 __ufromfpxf128.
27345 (ufromfpxf128): Define as weak alias.
27346 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27347 (fromfpf): Define as weak alias.
27348 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27349 __fromfpxf.
27350 (fromfpxf): Define as weak alias.
27351 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27352 __getpayloadf and define as weak alias.
27353 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27354 __roundevenf and define as weak alias.
27355 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27356 __setpayloadf.
27357 (setpayloadf): Define as weak alias.
27358 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27359 __setpayloadsigf.
27360 (setpayloadsigf): Define as weak alias.
27361 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27362 __totalorderf and define as weak alias.
27363 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27364 Rename to __totalordermagf and define as weak alias.
27365 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27366 __ufromfpf.
27367 (ufromfpf): Define as weak alias.
27368 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27369 __ufromfpxf.
27370 (ufromfpxf): Define as weak alias.
27371 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27372 __fromfpl.
27373 (fromfpl): Define as weak alias.
27374 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27375 __fromfpxl.
27376 (fromfpxl): Define as weak alias.
27377 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27378 to __getpayloadl and define as weak alias.
27379 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27380 __roundevenl and define as weak alias.
27381 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27382 __setpayloadl.
27383 (setpayloadl): Define as weak alias.
27384 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27385 __setpayloadsigl.
27386 (setpayloadsigl): Define as weak alias.
27387 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27388 to __totalorderl and define as weak alias.
27389 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27390 Rename to __totalordermagl and define as weak alias.
27391 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27392 __ufromfpl.
27393 (ufromfpl): Define as weak alias.
27394 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27395 __ufromfpxl.
27396 (ufromfpxl): Define as weak alias.
27397 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27398 __fromfpl.
27399 (fromfpl): Define as weak alias.
27400 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27401 __fromfpxl.
27402 (fromfpxl): Define as weak alias.
27403 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27404 Rename to __getpayloadl and define as weak alias.
27405 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27406 to __roundevenl and define as weak alias. Call __roundeven
27407 instead of roundeven.
27408 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27409 __setpayloadl.
27410 (setpayloadl): Define as weak alias.
27411 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27412 __setpayloadsigl.
27413 (setpayloadsigl): Define as weak alias.
27414 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27415 Rename to __totalorderl and define as weak alias.
27416 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27417 Rename to __totalordermagl and define as weak alias.
27418 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27419 __ufromfpl.
27420 (ufromfpl): Define as weak alias.
27421 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27422 __ufromfpxl.
27423 (ufromfpxl): Define as weak alias.
27424 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27425 __fromfpl.
27426 (fromfpl): Define as weak alias.
27427 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27428 __fromfpxl.
27429 (fromfpxl): Define as weak alias.
27430 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27431 __getpayloadl and define as weak alias.
27432 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27433 __roundevenl and define as weak alias.
27434 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27435 __setpayloadl.
27436 (setpayloadl): Define as weak alias.
27437 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27438 __setpayloadsigl.
27439 (setpayloadsigl): Define as weak alias.
27440 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27441 __totalorderl and define as weak alias.
27442 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27443 Rename to __totalordermagl and define as weak alias.
27444 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27445 __ufromfpl.
27446 (ufromfpl): Define as weak alias.
27447 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27448 __ufromfpxl.
27449 (ufromfpxl): Define as weak alias.
27450
27451 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27452
27453 * benchtests/bench-string.h (realloc_bufs): New function.
27454 (test_init): Call it.
27455 * benchtests/bench-memset-large.c (do_test): Likewise.
27456 * benchtests/bench-memset.c (do_test): Likewise.
27457
27458 * benchtests/bench-memset-large.c: Print output in JSON
27459 format.
27460 * benchtests/bench-memset.c: Likewise.
27461
27462 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27463
27464 [BZ #21084]
27465 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27466 * iconvdata/Makefile: Add IBM858.
27467 * iconvdata/gconv-modules: Likewise.
27468 * iconvdata/tst-tables.sh: Likewise.
27469 * iconvdata/ibm858.c: New file.
27470 * localedata/charmaps/IBM858: Likewise.
27471
27472 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27473
27474 [BZ #22023]
27475 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27476 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27477
27478 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27479
27480 [BZ #22112]
27481 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27482 and add tel_int_fmt.
27483
27484 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27485
27486 * sysdeps/generic/libm-alias-float128.h: New file.
27487 * sysdeps/generic/math-type-macros-float128.h: Include
27488 <libm-alias-float128.h>.
27489 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27490
27491 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27492
27493 * sysdeps/generic/libm-alias-ldouble.h: New file.
27494 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27495 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27496 * sysdeps/generic/math-type-macros-ldouble.h: Include
27497 <libm-alias-ldouble.h>.
27498 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27499 libm_alias_ldouble.
27500
27501 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27502
27503 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27504 * math/w_exp_compat.c: ... here.
27505 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27506 * math/w_expf_compat.c: ... here.
27507 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27508 * math/w_expl_compat.c: ... here.
27509 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27510 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27511 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27512 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27513
27514 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27515
27516 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27517 redefine.
27518 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27519 macro.
27520 (ldexpl): Only define as compat symbol for libc, not libm.
27521 (scalbnl): Define as compat symbol for libc here.
27522 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27523 define for [IS_IN (libc)].
27524 (__ldexpl_2): Remove alias.
27525 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27526 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27527 name in long_double_symbol call.
27528 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27529 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27530 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27531 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27532 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27533 Remove macro.
27534 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27535 Define as compat symbol.
27536
27537 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27538
27539 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27540 * sysdeps/unix/sysv/linux/alpha/Makefile
27541 [$(subdir) = csu] (sysdep_routines): Remove rule.
27542
27543 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27544
27545 * sysdeps/generic/libm-alias-double.h: New file.
27546 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27547 * sysdeps/generic/math-type-macros-double.h: Include
27548 <libm-alias-double.h>.
27549 [declare_mgen_alias] (declare_mgen_alias): Define to use
27550 libm_alias_double.
27551 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27552 (M_LIBM_NEED_COMPAT): Remove macro.
27553 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27554 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27555 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27556 code.
27557 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27558 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27559 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27560 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27561 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27562 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27563 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27564 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27565 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27566 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27567 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27568 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27569 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27570 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27571 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27572 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27573 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27574 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27575 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27576 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27577 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27578 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27579 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27580 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27581 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27582 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27583 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27584 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27585 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27586 macro.
27587 (declare_mgen_alias): New macro.
27588 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27589 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27590 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27591 (M_LIBM_NEED_COMPAT): Remove macro.
27592 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27593 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27594 <first-versions.h>.
27595 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27596 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27597
27598 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27599
27600 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27601 (declare_mgen_alias_2): Remove.
27602 * sysdeps/generic/math-type-macros-double.h
27603 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27604 Likewise.
27605 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27606 alias.
27607 (ldexp): Define with declare_mgen_alias.
27608 (scalbn): Likewise.
27609
27610 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27611
27612 * grp/initgroups.c: Include config.h.
27613 (DEFAULT_CONFIG): New macro.
27614 (internal_getgrouplist): Use DEFAULT_CONFIG.
27615 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27616 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27617 (DEFAULT_DEFCONFIG): New macro.
27618 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27619 * nss/grp-lookup.c: Include config.h
27620 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27621 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27622 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27623 * manual/nss.texi: Update default values section.
27624
27625 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27626
27627 [BZ #21967]
27628 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27629 New.
27630 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27631 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27632 Handle MathVec_Prefer_No_AVX512.
27633 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27634 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27635 is set.
27636
27637 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27638
27639 * posix/sched_primax.c (__sched_get_priority_max): Add
27640 libc_hidden_def.
27641 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27642 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27643 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27644 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27645 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27646 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27647 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27648 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27649 Add aliases.
27650
27651 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27652
27653 * sysdeps/generic/libm-alias-float.h: New file.
27654 * sysdeps/generic/math-type-macros-float.h: Include
27655 <libm-alias-float.h>.
27656 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27657
27658 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27659
27660 [BZ #22093]
27661 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27662 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27663 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27664 (HWCAP_IMPORTANT): Likewise.
27665 (HWCAP_X86_64): New enum.
27666 (HWCAP_X86_AVX512_1): Updated.
27667 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27668 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27669 (modules-names): Add x86_64/tst-x86_64mod-1.
27670 (LDFLAGS-tst-x86_64mod-1.so): New.
27671 ($(objpfx)tst-x86_64-1): Likewise.
27672 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27673 (tst-x86_64-1-clean): Likewise.
27674 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27675 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27676
27677 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27678
27679 * po/sv.po: Update translations.
27680 * po/fr.po: Likewise.
27681
27682 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27683
27684 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27685 seconds.
27686 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27687 seconds.
27688 * elf/rtld-Rules: Fix $(error) use.
27689
27690 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27691
27692 [BZ #14925]
27693 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27694 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27695 * localedata/locales/bn_BD: “Bengali” was still used in some
27696 comments. Change it to “Bangla”.
27697
27698 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27699
27700 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27701
27702 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27703
27704 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27705 thunderx2t99p1 to list of cpu names.
27706 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27707 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27708
27709 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27710
27711 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27712 Use strcmp instead of tunable_is_name.
27713
27714 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27715
27716 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27717 (F_GET_RW_HINT): New macro.
27718 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27719 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27720 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27721 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27722 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27723 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27724 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27725 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27726 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27727
27728 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27729 (F_ADD_SEALS): New macro.
27730 [__USE_GNU] (F_GET_SEALS): Likewise.
27731 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27732 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27733 [__USE_GNU] (F_SEAL_GROW): Likewise.
27734 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27735
27736 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27737
27738 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27739 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27740 * posix/glob_internal.h (__glob_pattern_type):
27741 * posix/glob.c (glob):
27742 * posix/glob_pattern_p.c (__glob_pattern_p):
27743 Use them.
27744
27745 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27746 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27747 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27748 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27749 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27750 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27751 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27752 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27753 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27754 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27755 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27756 * sysdeps/wordsize-64/glob.c: Likewise.
27757 * sysdeps/wordsize-64/glob64.c: Likewise.
27758 * sysdeps/wordsize-64/globfree.c: Likewise.
27759 * sysdeps/wordsize-64/globfree64.c: Likewise.
27760 * sysdeps/unix/sysv/linux/glob.c: New file.
27761 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27762 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27763 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27764 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27765 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27766 adds !GLOB_NO_OLD_VERSION as an extra condition.
27767 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27768 using relative path instead of absolute one.
27769 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27770 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27771 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27772 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27773 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27774 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27775
27776 [BZ #1062]
27777 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27778 (glob): Use the same scratch buffer for both getlogin_r and
27779 getpwnam_r. Don’t require preallocation of the login name. This
27780 simplifies storage allocation, and corrects the handling of
27781 long login names.
27782
27783 [BZ #1062]
27784 * posix/glob.c (glob): Port recent patches to platforms
27785 lacking getpwnam_r.
27786 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27787 returns an error number rather than setting errno.
27788
27789 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27790 instead of GCC extension.
27791 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27792 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27793 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27794
27795 [BZ #866]
27796 [BZ #1062]
27797 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27798 * posix/bug-glob1.c: Remove file.
27799 * posix/tst-glob_symlinks.c: New file.
27800 * posix/glob.c (__lstat64): New macro.
27801 (is_dir): New function.
27802 (glob, glob_in_dir): Match symlinks even if they are dangling.
27803 (link_stat, link_exists_p): Remove. All uses removed.
27804
27805 [BZ #1062]
27806 [BZ #19971]
27807 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27808 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27809 All uses removed.
27810
27811 [BZ #1062]
27812 CVE-2017-15671
27813 * posix/Makefile (routines): Add globfree, globfree64, and
27814 glob_pattern_p.
27815 * posix/flexmember.h: New file.
27816 * posix/glob_internal.h: Likewise.
27817 * posix/glob_pattern_p.c: Likewise.
27818 * posix/globfree.c: Likewise.
27819 * posix/globfree64.c: Likewise.
27820 * sysdeps/gnu/globfree64.c: Likewise.
27821 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27822 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27823 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27824 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27825 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27826 * sysdeps/wordsize-64/globfree.c: Likewise.
27827 * sysdeps/wordsize-64/globfree64.c: Likewise.
27828 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27829 [NDEBUG): Remove comments.
27830 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27831 (dirent_type): New type. Use uint_fast8_t not
27832 uint8_t, as C99 does not require uint8_t.
27833 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
27834 (struct readdir_result): Use dirent_type. Do not define skip_entry
27835 unless it is needed; this saves a byte on platforms lacking d_ino.
27836 (readdir_result_type, readdir_result_skip_entry):
27837 New functions, replacing ...
27838 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
27839 these functions, which were removed. This makes the callers
27840 easier to read. All callers changed.
27841 (D_INO_TO_RESULT): Now empty if there is no d_ino.
27842 (size_add_wrapv, glob_use_alloca): New static functions.
27843 (glob, glob_in_dir): Check for size_t overflow in several places,
27844 and fix some size_t checks that were not quite right.
27845 Remove old code using SHELL since Bash no longer
27846 uses this.
27847 (glob, prefix_array): Separate MS code better.
27848 (glob_in_dir): Remove old Amiga and VMS code.
27849 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
27850 separate files.
27851 (glob_in_dir): Do not rely on undefined behavior in accessing
27852 struct members beyond their bounds. Use a flexible array member
27853 instead
27854 (link_stat): Rename from link_exists2_p and return -1/0 instead of
27855 0/1. Caller changed.
27856 (glob): Fix memory leaks.
27857 * posix/glob64 (globfree64): Move to separate file.
27858 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
27859 (globfree64): Remove hidden alias.
27860 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
27861 oldglob.
27862 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
27863 separate file.
27864 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
27865 define.
27866 Move compat code to separate file.
27867 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
27868 separate file.
27869
27870 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
27871
27872 * resolv/tst-resolv-qtypes.c (domain): Changed to
27873 "const char domain[] =".
27874
27875 2017-09-07 Joseph Myers <joseph@codesourcery.com>
27876
27877 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
27878 version to 3.1.6.
27879
27880 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
27881 (TCP_MD5SIG_EXT): Likewise.
27882 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
27883 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
27884 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
27885
27886 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
27887
27888 2017-09-07 Mike FABIAN <mfabian@redhat.com>
27889
27890 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
27891
27892 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
27893
27894 [BZ #22100]
27895 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
27896
27897 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
27898
27899 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
27900 before assuming that the file is empty. Avoid testing buffer content
27901 when nread == 0.
27902
27903 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27904
27905 [BZ #18858]
27906 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27907 Remove define.
27908 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
27909 Likewise.
27910 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
27911 Likewise.
27912 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
27913 Likewise.
27914 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27915 Likewise.
27916 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
27917 Likewise.
27918 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
27919 Likewise.
27920
27921 2017-09-06 Florian Weimer <fweimer@redhat.com>
27922
27923 * malloc/dynarray_emplace_enlarge.c
27924 (__libc_dynarray_emplace_enlarge): Add missing else.
27925
27926 2017-09-06 Florian Weimer <fweimer@redhat.com>
27927
27928 [BZ #22096]
27929 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
27930 case of failure to obtain the global conf object.
27931
27932 2017-09-06 Florian Weimer <fweimer@redhat.com>
27933
27934 [BZ #22095]
27935 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
27936 dynarray allocation failure.
27937
27938 2017-09-06 Florian Weimer <fweimer@redhat.com>
27939
27940 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
27941 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
27942 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
27943 New functions.
27944 (response): Call them. Add 'p', '6' flag processing.
27945 (test_reverse): New function.
27946 (test_get2_any): Call it.
27947 (test_no_inet6): Add 'p' test.
27948 (test_inet6): Likewise.
27949
27950 2017-09-06 Florian Weimer <fweimer@redhat.com>
27951
27952 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
27953 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
27954 the QNAME.
27955 (test_gai): Adjust query names. Add additional tests.
27956 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
27957 test_get2. Adjust query names. Add additional tests.
27958 (test_no_inet6): New function, extracted from threadfunc.
27959 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
27960 Add additional tests.
27961
27962 2017-09-06 Mike FABIAN <mfabian@redhat.com>
27963
27964 [BZ #22070]
27965 * localedata/unicode-gen/utf8_gen.py: Set the width for
27966 characters with Prepended_Concatenation_Mark property to 1
27967 * localedata/charmaps/UTF-8: Updated using the improved script.
27968
27969 2017-09-06 Mike FABIAN <mfabian@redhat.com>
27970
27971 [BZ #21750]
27972 * localedata/unicode-gen/utf8_gen.py: Improve the script to
27973 use the range notation for all ranges of neighbouring characters
27974 with the same width.
27975
27976 2017-09-05 Joseph Myers <joseph@codesourcery.com>
27977
27978 * sysdeps/generic/math-type-macros-double.h: Include
27979 <math-svid-compat.h>.
27980 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
27981 * sysdeps/generic/math-type-macros-float.h: Include
27982 <math-svid-compat.h>.
27983 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
27984 * sysdeps/generic/math-type-macros-ldouble.h: Include
27985 <math-svid-compat.h>.
27986 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
27987 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
27988 condition.
27989 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
27990 * math/w_acosf_compat.c: Likewise.
27991 * math/w_acosh_compat.c: Likewise.
27992 * math/w_acoshf_compat.c: Likewise.
27993 * math/w_acoshl_compat.c: Likewise.
27994 * math/w_acosl_compat.c: Likewise.
27995 * math/w_asin_compat.c: Likewise.
27996 * math/w_asinf_compat.c: Likewise.
27997 * math/w_asinl_compat.c: Likewise.
27998 * math/w_atan2_compat.c: Likewise.
27999 * math/w_atan2f_compat.c: Likewise.
28000 * math/w_atan2l_compat.c: Likewise.
28001 * math/w_atanh_compat.c: Likewise.
28002 * math/w_atanhf_compat.c: Likewise.
28003 * math/w_atanhl_compat.c: Likewise.
28004 * math/w_cosh_compat.c: Likewise.
28005 * math/w_coshf_compat.c: Likewise.
28006 * math/w_coshl_compat.c: Likewise.
28007 * math/w_exp10_compat.c: Likewise.
28008 * math/w_exp10f_compat.c: Likewise.
28009 * math/w_exp10l_compat.c: Likewise.
28010 * math/w_exp2_compat.c: Likewise.
28011 * math/w_exp2f_compat.c: Likewise.
28012 * math/w_exp2l_compat.c: Likewise.
28013 * math/w_fmod_compat.c: Likewise.
28014 * math/w_fmodf_compat.c: Likewise.
28015 * math/w_fmodl_compat.c: Likewise.
28016 * math/w_hypot_compat.c: Likewise.
28017 * math/w_hypotf_compat.c: Likewise.
28018 * math/w_hypotl_compat.c: Likewise.
28019 * math/w_j0_compat.c: Likewise.
28020 * math/w_j0f_compat.c: Likewise.
28021 * math/w_j0l_compat.c: Likewise.
28022 * math/w_j1_compat.c: Likewise.
28023 * math/w_j1f_compat.c: Likewise.
28024 * math/w_j1l_compat.c: Likewise.
28025 * math/w_jn_compat.c: Likewise.
28026 * math/w_jnf_compat.c: Likewise.
28027 * math/w_jnl_compat.c: Likewise.
28028 * math/w_lgamma_r_compat.c: Likewise.
28029 * math/w_lgammaf_r_compat.c: Likewise.
28030 * math/w_lgammal_r_compat.c: Likewise.
28031 * math/w_log10_compat.c: Likewise.
28032 * math/w_log10f_compat.c: Likewise.
28033 * math/w_log10l_compat.c: Likewise.
28034 * math/w_log2_compat.c: Likewise.
28035 * math/w_log2f_compat.c: Likewise.
28036 * math/w_log2l_compat.c: Likewise.
28037 * math/w_log_compat.c: Likewise.
28038 * math/w_logf_compat.c: Likewise.
28039 * math/w_logl_compat.c: Likewise.
28040 * math/w_pow_compat.c: Likewise.
28041 * math/w_powf_compat.c: Likewise.
28042 * math/w_powl_compat.c: Likewise.
28043 * math/w_remainder_compat.c: Likewise.
28044 * math/w_remainderf_compat.c: Likewise.
28045 * math/w_remainderl_compat.c: Likewise.
28046 * math/w_sinh_compat.c: Likewise.
28047 * math/w_sinhf_compat.c: Likewise.
28048 * math/w_sinhl_compat.c: Likewise.
28049 * math/w_sqrt_compat.c: Likewise.
28050 * math/w_sqrtf_compat.c: Likewise.
28051 * math/w_sqrtl_compat.c: Likewise.
28052 * math/w_tgamma_compat.c: Likewise.
28053 * math/w_tgammaf_compat.c: Likewise.
28054 * math/w_tgammal_compat.c: Likewise.
28055 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28056 [LIBM_SVID_COMPAT].
28057 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28058 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28059 [LIBM_SVID_COMPAT].
28060 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28061 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28062 [LIBM_SVID_COMPAT].
28063 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28064 * sysdeps/i386/fpu/w_sqrt.c: New file.
28065 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28066 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28067 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28068 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28069 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28070 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28071 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28072 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28073 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28074 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28075 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28076 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28077 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28078 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28079 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28080 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28081 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28082 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28083 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28084 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28085 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28086 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28087 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28088 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28089 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28090 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28091 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28092 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28093 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28094 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28095 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28096 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28097 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28098 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28099 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28100 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28101 * sysdeps/ia64/fpu/w_log.c: Likewise.
28102 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28103 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28104 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28105 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28106 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28107 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28108 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28109 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28110 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28111 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28112 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28113 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28114 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28115 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28116 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28117 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28118 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28119 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28120 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28121 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28122 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28123 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28124 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28125 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28126 [LIBM_SVID_COMPAT].
28127 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28128 * sysdeps/ieee754/k_standard.c: Likewise.
28129 * sysdeps/ieee754/k_standardf.c: Likewise.
28130 * sysdeps/ieee754/k_standardl.c: Likewise.
28131 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28132 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28133 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28134 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28135 long_double_symbol call on [LIBM_SVID_COMPAT].
28136 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28137 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28138 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28139 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28140 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28141 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28142 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28143 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28144 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28145 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28146 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28147 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28148 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28149 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28150 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28151 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28152 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28153 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28154 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28155 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28156 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28157 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28158
28159 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28160
28161 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28162 * malloc/tst-mallocstate.c: Convert from test-skeleton
28163 to test-driver. Ifdef code using TEST_COMPAT macro.
28164 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28165 * math/test-matherr.c: Likewise.
28166
28167 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28168
28169 [BZ #22086]
28170 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28171 comparing word with byte-swapped constant.
28172
28173 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28174
28175 [BZ #20498]
28176 * locale/iso-639.def: add Miskito.
28177 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28178 * localedata/locales/miq_NI: New file.
28179
28180 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28181
28182 [BZ #18822]
28183 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28184 (__mkdir): Likewise.
28185 * io/chmod.c (__chmod): Add libc_hidden_def.
28186 * io/mkdir.c (__mkdir): Likewise.
28187 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28188 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28189 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28190 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28191
28192 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28193
28194 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28195 version to 4.13.
28196
28197 [BZ #22082]
28198 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28199 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28200
28201 2017-09-04 Florian Weimer <fweimer@redhat.com>
28202
28203 * math/math.h: Issue warning if log is defined.
28204
28205 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28206
28207 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28208 kernel version to 4.13.
28209
28210 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28211
28212 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28213 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28214 parameter.
28215 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28216 just <bits/types.h>.
28217 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28218 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28219 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28220 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28221 * misc/preadv2.c: Include <errno.h>.
28222 * misc/preadv64v2.c: Include <errno.h>.
28223 * misc/pwritev2.c: Include <errno.h>.
28224 * misc/pwritev64v2.c: Include <errno.h>.
28225 * sysdeps/posix/preadv2.c: Include <errno.h>.
28226 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28227 Fix <unistd.h> inclusion.
28228 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28229 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28230 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28231 __strtoul_internal): New functions.
28232 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28233 * sysdeps/posix/system.c: Include <sigsetops.h>.
28234 * sysdeps/mach/hurd/i386/Makefile
28235 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28236 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28237 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28238 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28239 __feraiseexcept_renamed to feraiseexcept instead of
28240 __GI_feraiseexcept.
28241 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28242 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28243 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28244 RWF_NOWAIT): Define to 0 if undefined already.
28245 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28246 boils down to 0.
28247 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28248 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28249
28250 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28251
28252 * manual/math.texi (pow10): Do not document.
28253 (pow10f): Likewise.
28254 (pow10l): Likewise.
28255 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28256 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28257 * math/libm-test-exp10.inc (pow10_test): Remove.
28258 (do_test): Do not call pow10.
28259 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28260 [NO_LONG_DOUBLE] (pow10l): Likewise.
28261 * math/w_exp10f_compat.c (pow10f): Likewise.
28262 * math/w_exp10l_compat.c (pow10l): Likewise.
28263 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28264 (pow10): Make into compat symbol.
28265 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28266 (pow10f): Make into compat symbol.
28267 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28268 (pow10l): Make into compat symbol.
28269 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28270 pow10.
28271 (CFLAGS-nldbl-pow10.c): Remove variable..
28272 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28273 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28274 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28275 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28276 Undefine and redefine.
28277 (pow10l): Make into compat symbol.
28278 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28279 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28280 * sysdeps/arm/libm-test-ulps: Likewise.
28281 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28282 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28283 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28284 * sysdeps/microblaze/libm-test-ulps: Likewise.
28285 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28286 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28287 * sysdeps/nios2/libm-test-ulps: Likewise.
28288 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28289 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28290 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28291 * sysdeps/sh/libm-test-ulps: Likewise.
28292 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28293 * sysdeps/tile/libm-test-ulps: Likewise.
28294 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28295
28296 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28297
28298 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28299
28300 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28301
28302 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28303 "../ChangeLog.old/ChangeLog.8".
28304 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28305 "../ChangeLog.old/ChangeLog.14".
28306
28307 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28308
28309 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28310 Threads Library.
28311
28312 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28313
28314 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28315
28316 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28317
28318 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28319 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28320
28321 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28322
28323 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28324 32 atexit handlers.
28325
28326 2017-09-01 Zack Weinberg <zackw@panix.com>
28327
28328 * math/math.h (HUGE_VAL): Improve commentary.
28329
28330 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28331 Andreas Schwab <schwab@suse.de>
28332
28333 [BZ #21530]
28334 * include/stdio.h (__gen_tempfd): New function.
28335 * stdio-common/Makefile (routines): Add gentempfd.
28336 * stdio-common/gentempfd.c: New file.
28337 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28338 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28339 unnamed file first.
28340
28341 2017-09-01 Florian Weimer <fweimer@redhat.com>
28342
28343 [BZ #21915]
28344 [BZ #21922]
28345 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28346 result to determine success or failure, not the errno value.
28347 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28348 (tst-nss-files-hosts-erange): Link with -ldl.
28349 * nss/tst-nss-files-hosts-erange.c: New file.
28350 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28351 (do_test): Add NO_DATA tests.
28352 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28353 (do_test): Call it.
28354
28355 2017-09-01 Florian Weimer <fweimer@redhat.com>
28356
28357 [BZ #21922]
28358 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28359 coming from gethostbyname2_r.
28360
28361 2017-09-01 Florian Weimer <fweimer@redhat.com>
28362
28363 * support/namespace.h (struct support_chroot_configuration): Add
28364 hosts, host_conf.
28365 (struct support_chroot): Add path_hosts, path_host_conf.
28366 * support/support_chroot.c (write_file): New function.
28367 (support_chroot_create): Call it to process /etc/resolv.conf,
28368 /etc/hosts, /etc/host.conf.
28369 (support_chroot_free): Update.
28370
28371 2017-09-01 Florian Weimer <fweimer@redhat.com>
28372
28373 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28374 status indicates it is set.
28375
28376 2017-09-01 Florian Weimer <fweimer@redhat.com>
28377
28378 [BZ #20532]
28379 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28380 function lookup failures more reliable.
28381
28382 2017-09-01 Florian Weimer <fweimer@redhat.com>
28383
28384 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28385 (getcanonname): Likewise.
28386 (gaih_inet): Likewise.
28387
28388 2017-09-01 Florian Weimer <fweimer@redhat.com>
28389
28390 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28391 (getcanonname): Likewise.
28392 (gaih_inet): Likewise.
28393
28394 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28395 Richard Henderson <rth@twiddle.net>
28396
28397 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28398 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28399 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28400 (IREG_SIZE, OREG_SIZE): New macros.
28401 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28402 (IREG_SIZE, OREG_SIZE): New macros.
28403 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28404 (IREG_SIZE): New macro.
28405 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28406 (IREG_SIZE): New macro.
28407 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28408 New includes.
28409 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28410 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28411 (__CONCATX): Handle exceptions correctly on large values that may
28412 set FE_INVALID.
28413 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28414 Initialize if not already set.
28415 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28416
28417 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28418
28419 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28420 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28421 Likewise.
28422 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28423 Likewise.
28424 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28425 Likewise.
28426 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28427 Likewise.
28428 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28429 Likewise.
28430 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28431 Likewise.
28432 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28433 Likewise.
28434 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28435 (NO_CANCELLATION): Likewise.
28436 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28437 Likewise.
28438 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28439 Likewise.
28440 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28441 Likewise.
28442 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28443 (NO_CANCELLATION): Likewise.
28444 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28445 (NO_CANCELLATION): Likewise.
28446 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28447 Likewise
28448 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28449 Likewise.
28450 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28451 Likewise.
28452 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28453 Likewise.
28454 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28455 hidden prototype.
28456 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28457 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28458
28459 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28460
28461 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28462 in resolver call.
28463
28464 2017-08-31 Florian Weimer <fweimer@redhat.com>
28465
28466 * include/libc-symbols.h (internal_function): Remove.
28467
28468 2017-08-31 Florian Weimer <fweimer@redhat.com>
28469
28470 * stdlib/fmtmsg.c (internal_addseverity): Remove
28471 internal_function.
28472
28473 2017-08-31 Florian Weimer <fweimer@redhat.com>
28474
28475 * stdio-common/printf_fp.c (group_number): Remove
28476 internal_function.
28477 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28478
28479 2017-08-31 Florian Weimer <fweimer@redhat.com>
28480
28481 * posix/fnmatch.c (internal_function): Remove definition.
28482 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28483 * posix/regcomp.c (peek_token, init_word_char)
28484 (duplicate_node_closure, fetch_token, peek_token)
28485 (peek_token_bracket, build_range_exp, build_collating_symbol):
28486 Likewise.
28487 * posix/regex_internal.c (re_string_construct_common)
28488 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28489 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28490 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28491 (re_string_translate_buffer, re_string_reconstruct)
28492 (re_string_peek_byte_case, re_string_fetch_byte_case)
28493 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28494 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28495 (re_node_set_add_intersect, re_node_set_init_union)
28496 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28497 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28498 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28499 (re_acquire_state_context): Likewise.
28500 * posix/regex_internal.h (internal_function): Remove definition.
28501 (re_string_realloc_buffers, build_wcs_buffer)
28502 (build_wcs_upper_buffer, build_upper_buffer)
28503 (re_string_translate_buffer, re_string_context_at)
28504 (re_string_char_size_at, re_string_wchar_at)
28505 (re_string_elem_size_at): Likewise.
28506 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28507 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28508 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28509 (re_search_internal, re_search_2_stub, re_search_stub)
28510 (re_copy_regs, prune_impossible_nodes, check_matching)
28511 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28512 (free_fail_stack_return, sift_states_iter_mb)
28513 (sift_states_backward, build_sifted_states)
28514 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28515 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28516 (check_subexp_limits, sift_states_bkref, merge_state_array)
28517 (find_recover_state, transit_state, merge_state_with_log)
28518 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28519 (transit_state_mb, transit_state_bkref, get_subexp)
28520 (get_subexp_sub, find_subexp_node, check_arrival)
28521 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28522 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28523 (check_node_accept_bytes, find_collation_sequence_value)
28524 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28525 (acquire_init_state_context, check_halt_node_context)
28526 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28527 (sub_epsilon_src_nodes): Likewise.
28528 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28529 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28530 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28531 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28532 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28533 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28534 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28535 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28536 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28537 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28538 (PREADV): Likewise.
28539 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28540 (PREADV): Likewise.
28541 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28542 (PWRITEV): Likewise.
28543 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28544 (PWRITEV): Likewise.
28545 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28546 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28547
28548 2017-08-31 Florian Weimer <fweimer@redhat.com>
28549
28550 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28551 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28552 Remove internal_function.
28553 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28554 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28555 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28556 (__deallocate_stack, __libc_pthread_init)
28557 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28558 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28559 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28560 Likewise.
28561 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28562 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28563 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28564 Likewise.
28565 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28566 (__pthread_mutex_unlock_usercnt): Likewise.
28567
28568 2017-08-31 Florian Weimer <fweimer@redhat.com>
28569
28570 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28571 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28572 (fts_safe_changedir): Remove internal_function.
28573 * io/ftw.c (internal_function): Remove definition.
28574 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28575
28576 2017-08-31 Florian Weimer <fweimer@redhat.com>
28577
28578 * inet/deadline.c (__deadline_current_time)
28579 (__deadline_from_timeval, __deadline_to_ms): Remove
28580 internal_function.
28581 * inet/getnameinfo.c (nrl_domainname): Likewise.
28582 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28583 * inet/inet6_option.c (add_pad): Likewise.
28584 * inet/net-internal.h (__deadline_current_time)
28585 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28586 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28587 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28588 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28589
28590 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28591
28592 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28593 include <bits/nan.h>.
28594 * math/Makefile (headers): Remove bits/nan.h.
28595 * bits/nan.h: Remove.
28596 * sysdeps/ieee754/bits/nan.h: Likewise.
28597 * sysdeps/mips/bits/nan.h: Likewise.
28598
28599 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28600 not include <bits/inf.h>.
28601 * math/Makefile (headers): Remove bits/inf.h.
28602 * bits/inf.h: Remove.
28603 * sysdeps/ieee754/bits/inf.h: Likewise.
28604
28605 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28606 bits/huge_vall.h or bits/huge_val_flt128.h.
28607 (HUGE_VAL): Define directly here.
28608 [__USE_ISOC99] (HUGE_VALF): Likewise.
28609 [__USE_ISOC99] (HUGE_VALL): Likewise.
28610 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28611 (HUGE_VAL_F128): Likewise.
28612 * math/Makefile (headers): Remove bits/huge_val.h,
28613 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28614 * bits/huge_val.h: Remove.
28615 * bits/huge_val_flt128.h: Likewise.
28616 * bits/huge_valf.h: Likewise.
28617 * bits/huge_vall.h: Likewise.
28618 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28619 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28620 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28621 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28622 * sysdeps/sh/bits/huge_val.h: Likewise.
28623 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28624 * sysdeps/x86/bits/huge_vall.h: Likewise.
28625
28626 2017-08-31 Florian Weimer <fweimer@redhat.com>
28627
28628 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28629 internal_function.
28630 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28631 Likewise.
28632 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28633 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28634 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28635 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28636 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28637 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28638 * elf/dl-libc.c (dlerror_run): Likewise.
28639 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28640 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28641 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28642 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28643 Likewise.
28644 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28645 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28646 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28647 * elf/dl-profile.c (_dl_start_profile): Likewise.
28648 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28649 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28650 Likewise.
28651 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28652 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28653 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28654 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28655 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28656 (_dl_allocate_tls_storage): Likewise.
28657 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28658 (_dl_check_all_versions): Likewise.
28659 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28660 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28661 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28662 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28663 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28664 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28665 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28666 internal_function from __dl_start.
28667 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28668 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28669 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28670 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28671 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28672 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28673 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28674 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28675 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28676 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28677 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28678 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28679 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28680 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28681 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28682 Likewise.
28683 (struct rtld_global_ro): Remove internal_function from the
28684 _dl_lookup_symbol_x member.
28685 (_dl_symbol_value): Remove. No longer defined anywhere.
28686 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28687 internal_function.
28688 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28689 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28690 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28691 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28692 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28693 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28694 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28695 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28696 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28697 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28698 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28699 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28700
28701 2017-08-31 Florian Weimer <fweimer@redhat.com>
28702
28703 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28704 Remove internal_function.
28705 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28706 Likewise.
28707 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28708 Likewise.
28709
28710 2017-08-31 Florian Weimer <fweimer@redhat.com>
28711
28712 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28713 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28714 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28715
28716 2017-08-31 Florian Weimer <fweimer@redhat.com>
28717
28718 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28719 (__gai_enqueue_request): Remove internal_function.
28720 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28721 (__gai_remove_request, __gai_notify, __gai_notify_only)
28722 (__gai_sigqueue): Likewise.
28723 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28724 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28725 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28726 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28727 Likewise.
28728
28729 2017-08-31 Florian Weimer <fweimer@redhat.com>
28730
28731 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28732 * include/dirent.h (__opendirat, __getdents, __getdents64)
28733 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28734 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28735 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28736 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28737 Likewise.
28738 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28739
28740 2017-08-31 Florian Weimer <fweimer@redhat.com>
28741
28742 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28743 internal_function.
28744 (GETCWD_RETURN_TYPE): Likewise.
28745
28746 2017-08-31 Florian Weimer <fweimer@redhat.com>
28747
28748 * include/time.h (__tz_compute, __strptime_internal): Remove
28749 internal_function.
28750 * time/strptime_l.c (__strptime_internal): Likewise.
28751 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28752
28753 2017-08-31 Florian Weimer <fweimer@redhat.com>
28754
28755 * iconv/gconv.c (__gconv): Remove internal_function.
28756 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28757 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28758 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28759 (__gconv_release_cache): Likewise.
28760 * iconv/gconv_close.c (__gconv_close): Likewise.
28761 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28762 (read_conf_file, __gconv_get_path): Likewise.
28763 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28764 (__gconv_release_step, gen_steps, increment_counter)
28765 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28766 (__gconv_close_transform, free_modules_db): Likewise.
28767 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28768 Likewise.
28769 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28770 (__gconv_find_transform, __gconv_lookup_cache)
28771 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28772 (__gconv_close_transform, __gconv_release_cache)
28773 (__gconv_loaded_object, __gconv_release_shlib)
28774 (__gconv_compare_alias): Likewise.
28775 * iconv/gconv_open.c (__gconv_open): Likewise.
28776 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28777 * iconv/iconvconfig.c (add_module): Likewise.
28778 * intl/dcigettext.c (plural_lookup, guess_category_value)
28779 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28780 * intl/eval-plural.h (plural_eval): Likewise.
28781 * intl/finddomain.c (_nl_find_domain): Likewise.
28782 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28783 (_nl_load_domain, _nl_find_msg): Likewise.
28784 (internal_function): Remove definition.
28785 * intl/loadinfo.h (internal_function): Likewise.
28786 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28787 internal_function.
28788 * intl/localealias.c (internal_function): Remove definition.
28789 (read_alias_file): Remove internal_function.
28790 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28791 * intl/plural-exp.h (internal_function): Remove definition.
28792 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28793 internal_function.
28794 * intl/plural.c: Regenerate.
28795 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28796 * locale/coll-lookup.c (__collidx_table_lookup)
28797 (__collseq_table_lookup): Likewise.
28798 * locale/coll-lookup.h (__collidx_table_lookup)
28799 (__collseq_table_lookup): Likewise.
28800 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28801 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28802 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28803 (_nl_unload_locale): Likewise.
28804 * locale/localeinfo.h (struct __locale_data): Remove
28805 internal_function from cleanup member.
28806 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28807 (_nl_remove_locale, _nl_load_locale_from_archive)
28808 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28809 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28810 (_nl_cleanup_time): Remove internal_function.
28811 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28812 (_nl_parse_alt_digit): Likewise.
28813 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28814 (_nl_select_era_entry): Likewise.
28815 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28816 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28817 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28818 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28819 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28820
28821 2017-08-31 Florian Weimer <fweimer@redhat.com>
28822
28823 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28824 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28825 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28826 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28827 Likewise.
28828 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28829 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28830 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28831 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28832 Likewise.
28833 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
28834
28835 2017-08-31 Florian Weimer <fweimer@redhat.com>
28836
28837 * misc/getttyent.c (skip, value): Remove internal_function.
28838 * misc/syslog.c (openlog_internal): Likewise.
28839 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
28840
28841 2017-08-31 Florian Weimer <fweimer@redhat.com>
28842
28843 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
28844 (__nss_rewrite_field): Remove internal_function.
28845 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
28846 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
28847 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
28848 * nss/nsswitch.c (nss_parse_file, nss_getline)
28849 (nss_parse_service_list, nss_new_service): Likewise.
28850 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
28851 * nss/valid_field.c (__nss_valid_field): Likewise.
28852 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
28853
28854 2017-08-31 Florian Weimer <fweimer@redhat.com>
28855
28856 * malloc/arena.c (__malloc_fork_lock_parent)
28857 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
28858 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
28859 internal_function from defintions.
28860 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
28861 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
28862 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
28863 internal_function from declarations.
28864 * malloc/malloc.c (internal_function): Do not define.
28865 (mem2mem_check): Remove internal_function from declaration.
28866 (munmap_chunk, mremap_chunk): Remove internal_function.
28867 * malloc/mtrace.c (tr_where): Likewise.
28868
28869 2017-08-31 Florian Weimer <fweimer@redhat.com>
28870
28871 * include/rpc/pmap_clnt.h (__get_socket): Remove
28872 internal_function.
28873 * sunrpc/auth_des.c (synchronize): Likewise.
28874 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
28875 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
28876 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
28877 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
28878 (key_call): Likewise.
28879 * sunrpc/pm_getport.c (__get_socket): Likewise.
28880 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
28881 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
28882 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
28883 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
28884 (invalidate): Likewise.
28885 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
28886 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
28887 (set_input_fragment, get_input_bytes): Likewise.
28888
28889 2017-08-31 Florian Weimer <fweimer@redhat.com>
28890
28891 * malloc/malloc.c (_int_free): Remove locked variable and related
28892 asserts.
28893
28894 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
28895
28896 [BZ #22051]
28897 * Makerules (build-module-helper-objlist): Filter out
28898 $(elf-objpfx)sofini.os.
28899 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
28900 needed.
28901
28902 2017-08-31 Florian Weimer <fweimer@redhat.com>
28903
28904 * libio/fcloseall.c: Assume weak_alias is defined.
28905 * libio/feof.c: Likewise.
28906 * libio/fileno.c: Likewise.
28907 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
28908 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
28909 definitions.
28910 (_IO_file_open): Call __open directly.
28911 (_IO_new_file_sync): Assume ESPIPE is defined.
28912 (_IO_file_seekoff_maybe_mmap): Call __read directly.
28913 (_IO_new_file_write): Call __write directly.
28914 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
28915 * libio/ftello64.c (__ftello64): Assume EIO is defined.
28916 * libio/genops.c: Assume _LIBC is defined.
28917 (save_for_backup): Remove internal_function.
28918 * libio/getc.c: Assume weak_alias is defined.
28919 * libio/getwc.c: Likewise.
28920 * libio/iofclose.c: Assume _LIBC is defined.
28921 * libio/iofdopen.c: Likewise.
28922 (_IO_fcntl): Remove macro definition.
28923 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
28924 Call __fcntl directly.
28925 * libio/iofflush.c: Assume weak_alias is defined.
28926 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
28927 defined.
28928 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
28929 * libio/iofgets.c: Likewise.
28930 * libio/iofopen.c: Assume _LIBC is defined.
28931 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
28932 * libio/iofputs.c: Assume weak_alias is defined.
28933 * libio/iofread.c: Likewise.
28934 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
28935 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
28936 * libio/ioftell.c: Assume weak_alias is defined.
28937 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
28938 * libio/iofwide.c: Assume _LIBC is defined.
28939 (_IO_fwide): Drop SHARED conditional because it is implied by
28940 SHLIB_COMPAT.
28941 * libio/iofwrite.c: Assume weak_alias is defined.
28942 * libio/iogetdelim.c: Likewise.
28943 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
28944 * libio/iogetwline.c (wmemcpy): Remove macro definition.
28945 (_IO_getwline): Call __wmemcpy directly.
28946 * libio/iopopen.c: Assume _LIBC is defined.
28947 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
28948 (_IO_close): Remove macro definitions.
28949 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
28950 _exit directly.
28951 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
28952 directly.
28953 * libio/ioputs.c: Assume weak_alias is defined.
28954 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
28955 * libio/iosetbuffer.c: Assume weak_alias is defined.
28956 * libio/iosetvbuf.c: Likewise.
28957 * libio/ioungetc.c: Likewise.
28958 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
28959 libc_hidden_def, libc_hidden_weak, NULL are defined.
28960 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
28961 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
28962 defined.
28963 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
28964 definitions.
28965 (_IO_old_file_init_internal): Drop SHARED conditional because it
28966 is implied by SHLIB_COMPAT.
28967 (_IO_old_file_fopen): Call __open directly.
28968 (_IO_old_file_sync): Assume ESPIPE is defined.
28969 (_IO_old_file_write): Call __write directly.
28970 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
28971 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
28972 Call __fcntl directly.
28973 * libio/oldiofgetpos.c: Assume weak_alias is defined.
28974 (_IO_old_fgetpos): Assume EIO is defined.
28975 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
28976 (_IO_old_fgetpos64): Assume EIO is defined.
28977 * libio/oldiofsetpos.c: Assume weak_alias is defined.
28978 (_IO_old_fsetpos): Assume EIO is defined.
28979 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
28980 (_IO_old_fsetpos64): Assume EIO is defined.
28981 * libio/oldiopopen.c: Assume _LIBC is defined.
28982 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
28983 (_IO_close): Remove macro definitions.
28984 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
28985 directly.
28986 (_IO_old_proc_close): Call __close, __waitpid directly.
28987 * libio/put.c: Assume weak_alias is defined.
28988 * libio/stdfiles.c: Assume _LIBC is defined.
28989 * libio/stdio.c: Likewise.
28990 * libio/wfileops.c: Likewise.
28991 (_IO_wfile_sync): Assume ESPIPE is defined.
28992 * libio/wgenops.c: Assume _LIBC is defined.
28993 (save_for_wbackup): Remove internal_function.
28994
28995 2017-08-31 Florian Weimer <fweimer@redhat.com>
28996
28997 * malloc/malloc.c (top_check): Change return type to void. Remove
28998 internal_function.
28999 * malloc/hooks.c (top_check): Likewise.
29000 (malloc_check, realloc_check, memalign_check): Adjust.
29001
29002 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29003
29004 [BZ #21457]
29005 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29006 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29007 sigcontext and namespace requirements.
29008 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29009 * sysdeps/m68k/sys/ucontext.h: Likewise.
29010 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29011 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29012 <bits/sigcontext.h>.
29013 (__ctx): Define earlier.
29014 (mcontext_t): Define structure contents rather than using struct
29015 sigcontext.
29016 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29017 __glibc_reserved1 instead of __reserved.
29018 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29019 <bits/sigcontext.h>.
29020 (__ctx): Define earlier.
29021 (mcontext_t): Define structure contents rather than using struct
29022 sigcontext.
29023 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29024 mcontext_t instead of struct sigcontext.
29025 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29026 <bits/sigcontext.h>.
29027 (__ctx): Define earlier.
29028 (mcontext_t): Define structure contents rather than using struct
29029 sigcontext.
29030 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29031 <bits/sigcontext.h>.
29032 (__ctx): Define earlier.
29033 (mcontext_t): Define structure contents rather than using struct
29034 sigcontext.
29035 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29036 mcontext_t instead of struct sigcontext.
29037 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29038 mcontext_t instead of struct sigcontext.
29039 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29040 <bits/sigcontext.h>.
29041 (__ctx): New macro.
29042 (struct __ia64_fpreg_mcontext): New type.
29043 (mcontext_t): Define structure contents rather than using struct
29044 sigcontext.
29045 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29046 (uc_sigmask): Define using __ctx.
29047 (uc_stack): Likewise.
29048 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29049 <bits/sigcontext.h>.
29050 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29051 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29052 <bits/sigcontext.h>.
29053 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29054 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29055 <bits/sigcontext.h>.
29056 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29057 <bits/sigcontext.h>.
29058 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29059 <bits/sigcontext.h>.
29060 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29061 <bits/sigcontext.h>.
29062 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29063 <bits/sigcontext.h>.
29064 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29065 <bits/sigcontext.h>.
29066 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29067 <bits/sigcontext.h>.
29068 (__ctx): Define earlier.
29069 (mcontext_t): Define structure contents rather than using struct
29070 sigcontext.
29071 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29072 <bits/sigcontext.h>. Include <bits/types.h>.
29073 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29074 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29075 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29076 (test-xfail-UNIX98/signal.h/conform): Likewise.
29077 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29078 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29079 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29080 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29081 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29082 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29083 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29084 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29085 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29086
29087 2017-08-30 Florian Weimer <fweimer@redhat.com>
29088
29089 * malloc/dynarray_emplace_enlarge.c
29090 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29091 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29092 * malloc/tst-dynarray.c (test_long_overflow): New function.
29093 (do_test): Call it.
29094
29095 2017-08-30 Florian Weimer <fweimer@redhat.com>
29096
29097 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29098 (set_arena_corrupt): Remove definitions.
29099 (mtrim): Do not check for corrupt arena.
29100 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29101 Likewise.
29102
29103 2017-08-30 Florian Weimer <fweimer@redhat.com>
29104
29105 [BZ #21754]
29106 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29107 check_action.
29108 (ptmalloc_init): Do not set or use check_action.
29109 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29110 call to malloc_printerr. Remove return statement.
29111 (free_check): Likewise. Remove arena unlock.
29112 (top_check): Update comment. Adjust call to malloc_printerr.
29113 Remove heap repair code.
29114 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29115 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29116 (sysmalloc): Adjust call to malloc_printerr.
29117 (munmap_chunk, __libc_realloc): Likewise. Remove return
29118 statement.
29119 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29120 Remove errout label and corresponding gotos.
29121 (_int_free): Likewise. Remove arena unlock.
29122 (do_set_mallopt_check): Do not set check_action.
29123 (malloc_printerr): Adjust parameter list. Do not mark arena as
29124 corrupt.
29125 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29126 comment.
29127 * manual/probes.texi (Memory Allocation Probes): Remove
29128 memory_mallopt_check_action.
29129
29130 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29131
29132 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29133 Use pointer to uint64_t instead of long int for sp.
29134
29135 2017-08-30 Florian Weimer <fweimer@redhat.com>
29136
29137 [BZ #21754]
29138 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29139 without printing a backtrace. Do not leak any information in the
29140 error message.
29141 * manual/memory.texi (Heap Consistency Checking): Update.
29142 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29143
29144 2017-08-30 Florian Weimer <fweimer@redhat.com>
29145
29146 Do not scale NPTL tests with available number of CPUs.
29147 * nptl/tst-cond16.c (count): Set to constant value of 8.
29148 * nptl/tst-cond18.c (count): Likewise.
29149
29150 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29151
29152 [BZ #22035]
29153 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29154 Define to take a second argument that is a macro that
29155 concatentates a suffix, not the suffix itself.
29156 (__CONCAT_d): New macro.
29157 (__CONCAT_f): Likewise.
29158 (__CONCAT_l): Likewise.
29159
29160 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29161
29162 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29163 by child.
29164
29165 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29166 Aurelien Jarno <aurelien@aurel32.net>
29167 Maciej W. Rozycki <macro@imgtec.com>
29168
29169 [BZ #21956]
29170 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29171 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29172 `mips16-syscall6' and `mips16-syscall7'.
29173 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29174 (CFLAGS-mips16-syscall7.c): Remove.
29175 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29176 Remove `__mips16_syscall5', `__mips16_syscall6' and
29177 `__mips16_syscall7'.
29178 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29179 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29180 `__mips_syscall_return'.
29181 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29182 (__mips16_syscall1): Likewise.
29183 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29184 (__mips16_syscall2): Likewise.
29185 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29186 (__mips16_syscall3): Likewise.
29187 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29188 (__mips16_syscall4): Likewise.
29189 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29190 Remove.
29191 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29192 Remove.
29193 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29194 Remove.
29195 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29196 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29197 `__mips16_syscall5'. Remove prototype.
29198 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29199 `__mips16_syscall6'. Remove prototype.
29200 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29201 `__mips16_syscall7'. Remove prototype.
29202 (__nomips16, __mips16_syscall_return): Move to...
29203 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29204 (__nomips16, __mips_syscall_return): ... here.
29205 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29206 `__mips16_syscall_return' to `__mips_syscall_return'.
29207 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29208 `internal_syscall##nr'.
29209 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29210 `internal_syscall##nr'.
29211 (FORCE_FRAME_POINTER): Remove.
29212 (__mips_syscall5): New prototype.
29213 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29214 (__mips_syscall6): New prototype.
29215 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29216 (__mips_syscall7): New prototype.
29217 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29218 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29219 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29220 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29221 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29222 (sysdep_routines): Add libc-do-syscall.
29223 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29224 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29225
29226 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29227
29228 [BZ #21672]
29229 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29230 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29231 (advise_stack_range): New function.
29232 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29233 stack non required to advise_stack_range at allocatestack.c
29234
29235 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29236
29237 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29238
29239 2017-08-29 Florian Weimer <fweimer@redhat.com>
29240
29241 [BZ #22026]
29242 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29243 __end_fct. Mangle __end_fct after setting it to NULL.
29244 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29245 (modules-names, modules-names-tests): Add
29246 tst-gconv-init-failure-mod.
29247 (gconv-modules): New target.
29248 (tst-gconv-init-failure-mod.so): Link against libsupport.
29249 (tst-gconv-init-failure): Depend on gconv-modules,
29250 tst-gconv-init-failure-mod.so.
29251 * iconv/tst-gconv-init-failure-mod.c: New file.
29252 * iconv/tst-gconv-init-failure.c: Likewise.
29253 * iconv/test-gconv-modules: Likewise.
29254
29255 2017-08-29 Florian Weimer <fweimer@redhat.com>
29256
29257 [BZ #22025]
29258 * iconv/gconv_db.c (free_derivation): Remove redundant
29259 parentheses.
29260 (gen_steps): Unconditionally mangle __btowc_fct after
29261 initialization.
29262 (increment_counter): Likewise. Do not call init_fct for internal
29263 modules.
29264
29265 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29266
29267 [BZ #22028]
29268 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29269 (_MSUF_): Remove macro.
29270 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29271 Likewise.
29272 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29273 (__REDIRFROM_X): New macro.
29274 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29275 Likewise.
29276 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29277 (__REDIRTO_X): Likewise.
29278 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29279 arguments.
29280 (__MATH_REDIRCALL_2): Likewise.
29281 (__MATH_REDIRCALL_INTERNAL): Likewise.
29282 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29283 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29284 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29285 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29286 * math/test-finite-macros.c: New file.
29287 * math/Makefile (tests): Add test-finite-macros.
29288 (CFLAGS-test-finite-macros.c): New variable.
29289
29290 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29291 Jeff Law <law@redhat.com>
29292
29293 [BZ #22025]
29294 Mangle NULL pointers in iconv/gconv.
29295 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29296 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29297 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29298 is non-NULL before demangling the end_fct. Check for NULL
29299 end_fct after demangling.
29300 (__gconv_release_step): Demangle the end_fct before checking
29301 it for NULL. Remove assert on __shlibc_handle != NULL.
29302 (gen_steps): Don't check btowc_fct for NULL before mangling.
29303 Demangle init_fct before checking for NULL.
29304 (increment_counter): Likewise.
29305 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29306 end_fct for NULL before mangling.
29307 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29308 for NULL.
29309
29310 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29311
29312 [BZ #21971]
29313 * locale/iso-639.def: add Morisyen.
29314
29315 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29316
29317 [BZ #21930]
29318 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29319 (iszero): New C++ implementation that does not use
29320 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29321 signaling nans are enabled, since __builtin_types_compatible_p
29322 is a C-only feature.
29323 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29324 defined, include ieee754_float128.h for access to the union and
29325 member ieee854_float128.ieee.
29326 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29327 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29328 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29329 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29330 options of test-math-zero on powerpc64le.
29331
29332 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29333
29334 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29335 Change double to float.
29336
29337 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29338
29339 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29340 unconditional.
29341 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29342 conditional code; define contents only for [LIBM_SVID_COMPAT].
29343
29344 2017-08-28 Florian Weimer <fweimer@redhat.com>
29345
29346 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29347 (abi-lp64_be-options): Remove.
29348 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29349 (abi-hard-options): Likewise.
29350 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29351 (abi-o32_hard-options, abi-o32_soft_2008-options)
29352 (abi-o32_hard_2008-options, abi-n32_soft-options)
29353 (abi-n32_hard-options, abi-n32_soft_2008-options)
29354 (abi-n32_hard_2008-options, abi-n64_soft-options)
29355 (abi-n64_hard-options, abi-n64_soft_2008-options)
29356 (abi-n64_hard_2008-options): Likewise.
29357 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29358 (abi-64-v1-options, abi-64-v2-options): Likewise.
29359 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29360 (abi-64-options): Likewise.
29361 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29362 (abi-64-options): Likewise.
29363 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29364 (abi-64-options): Likewise.
29365 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29366 (abi-64-options, abi-x32-options): Likewise.
29367
29368 2017-08-28 Florian Weimer <fweimer@redhat.com>
29369
29370 Store supported list of SYS_* system calls in the source tree.
29371 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29372 (bits/syscall.h): Generate from list file.
29373 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29374 [$(subdir) = misc] (tests): Add tst-syscall-list.
29375 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29376 [$(subdir) = misc] (tst-syscall-list-macros.list)
29377 [$(subdir) = misc] (tst-syscall-list-nr.list)
29378 (tst-syscall-list-sys.list): Helper targets for new
29379 tst-syscall-list test.
29380 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29381 tst-syscall-list.sh.
29382 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29383 target. Do not include bits/syscall.d.
29384 [$(subdir) = misc] (generated): Do not update.
29385 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29386 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29387 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29388 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29389
29390 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29391
29392 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29393 (tst-cxa_atexit, tst-on_exit): Likewise.
29394 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29395 tst-cxa_atexit, and tst-on_exit.
29396 * stdlib/tst-atexit-common.c: New file.
29397 * stdlib/tst-atexit.c: New file.
29398 * stdlib/tst-at_quick_exit.c: New file.
29399 * stdlib/tst-cxa_atexit.c: New file.
29400 * stdlib/tst-on_exit.c: New file.
29401
29402 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29403
29404 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29405 * mach/stack_chk_fail_local.c: New file.
29406 * hurd/stack_chk_fail_local.c: New file.
29407 * mach/Machrules ($(interface-library)-routines): Add
29408 stack_chk_fail_local.
29409 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29410 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29411 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29412 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29413 * hurd/Makefile (CFLAGS-hurdstartup.o,
29414 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29415
29416 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29417
29418 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29419 (index_cpu_*, index_arch_*): Removed.
29420
29421 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29422
29423 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29424 Use uint64_t instead of unsigned long.
29425
29426 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29427
29428 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29429 [__HAVE_DISTINCT_FLOAT128].
29430
29431 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29432 of <bits/math-finite.h>.
29433 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29434 inclusion of <bits/math-finite.h>.
29435 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29436 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29437 __NO_LONG_DOUBLE_MATH].
29438 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29439 (__MATH_REDIRCALL_2): Likewise.
29440 (__MATH_REDIRCALL_INTERNAL): Likewise.
29441 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29442 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29443 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29444
29445 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29446 Remove file.
29447 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29448 Likewise.
29449 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29450 Likewise.
29451 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29452 Likewise.
29453 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29454 Likewise.
29455 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29456 Likewise.
29457 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29458 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29459 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29460 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29461 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29462 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29463 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29464 w_sqrtf_compat-ppc32.
29465
29466 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29467
29468 * math/math.h [defined __cplusplus] (issignaling): In the long
29469 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29470 is not defined. Call __issignaling, otherwise.
29471
29472 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29473
29474 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29475 syscall definitions and replace __builtin_expect with __glibc_likely.
29476 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29477 syscall.
29478 (SYSCALL_CANCELLABLE): Removedefinition
29479 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29480 definition.
29481 (PSEUDO_END): Likewise.
29482 [IS_IN (libpthread)] (CENABLE): Likewise.
29483 [IS_IN (libpthread)] (CDISABLE): Likewise.
29484 [IS_IN (libc)] (CENABLE): Likewise.
29485 [IS_IN (libc)] (CENABLE): Likewise.
29486 [IS_IN (librt)] (CDISABLE): Likewise.
29487 [IS_IN (librt)] (CDISABLE): Likewise.
29488 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29489 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29490 definition.
29491 (PSEUDO_END): Likewise.
29492 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29493 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29494 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29495 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29496 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29497 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29498 (CENABLE): Likewise.
29499 (CDISABLE): Likewise.
29500 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29501 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29502 defintion.
29503 (PSEUDO_END): Likewise.
29504 [IS_IN (libpthread)] (CENABLE): Likewise.
29505 [IS_IN (libpthread)] (CDISABLE): Likewise.
29506 [IS_IN (libc)] (CENABLE): Likewise.
29507 [IS_IN (libc)] (CENABLE): Likewise.
29508 [IS_IN (librt)] (CDISABLE): Likewise.
29509 [IS_IN (librt)] (CDISABLE): Likewise.
29510 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29511 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29512 definition.
29513 (PSEUDO_END): Likewise.
29514 [IS_IN (libpthread)] (CENABLE): Likewise.
29515 [IS_IN (libpthread)] (CDISABLE): Likewise.
29516 [IS_IN (libc)] (CENABLE): Likewise.
29517 [IS_IN (libc)] (CENABLE): Likewise.
29518 [IS_IN (librt)] (CDISABLE): Likewise.
29519 [IS_IN (librt)] (CDISABLE): Likewise.
29520 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29521 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29522 definition.
29523 (PSEUDO_END): Likewise.
29524 [IS_IN (libpthread)] (CENABLE): Likewise.
29525 [IS_IN (libpthread)] (CDISABLE): Likewise.
29526 [IS_IN (libc)] (CENABLE): Likewise.
29527 [IS_IN (libc)] (CENABLE): Likewise.
29528 [IS_IN (librt)] (CDISABLE): Likewise.
29529 [IS_IN (librt)] (CDISABLE): Likewise.
29530 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29531 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29532 definition.
29533 (PSEUDO_END): Likewise.
29534 [IS_IN (libpthread)] (CENABLE): Likewise.
29535 [IS_IN (libpthread)] (CDISABLE): Likewise.
29536 [IS_IN (libc)] (CENABLE): Likewise.
29537 [IS_IN (libc)] (CENABLE): Likewise.
29538 [IS_IN (librt)] (CDISABLE): Likewise.
29539 [IS_IN (librt)] (CDISABLE): Likewise.
29540 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29541 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29542 definition.
29543 (PSEUDO_END): Likewise.
29544 [IS_IN (libpthread)] (CENABLE): Likewise.
29545 [IS_IN (libpthread)] (CDISABLE): Likewise.
29546 [IS_IN (libc)] (CENABLE): Likewise.
29547 [IS_IN (libc)] (CENABLE): Likewise.
29548 [IS_IN (librt)] (CDISABLE): Likewise.
29549 [IS_IN (librt)] (CDISABLE): Likewise.
29550 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29551 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29552 definition.
29553 (PSEUDO_END): Likewise.
29554 [IS_IN (libpthread)] (CENABLE): Likewise.
29555 [IS_IN (libpthread)] (CDISABLE): Likewise.
29556 [IS_IN (libc)] (CENABLE): Likewise.
29557 [IS_IN (libc)] (CENABLE): Likewise.
29558 [IS_IN (librt)] (CDISABLE): Likewise.
29559 [IS_IN (librt)] (CDISABLE): Likewise.
29560 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29561 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29562 Remove definition.
29563 (PSEUDO_END): Likewise.
29564 [IS_IN (libpthread)] (CENABLE): Likewise.
29565 [IS_IN (libpthread)] (CDISABLE): Likewise.
29566 [IS_IN (libc)] (CENABLE): Likewise.
29567 [IS_IN (libc)] (CENABLE): Likewise.
29568 [IS_IN (librt)] (CDISABLE): Likewise.
29569 [IS_IN (librt)] (CDISABLE): Likewise.
29570 (SINGLE_THREAD_P): Likewise.
29571 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29572 definition.
29573 (PSEUDO_END): Likewise.
29574 [IS_IN (libpthread)] (CENABLE): Likewise.
29575 [IS_IN (libpthread)] (CDISABLE): Likewise.
29576 [IS_IN (libc)] (CENABLE): Likewise.
29577 [IS_IN (libc)] (CENABLE): Likewise.
29578 [IS_IN (librt)] (CDISABLE): Likewise.
29579 [IS_IN (librt)] (CDISABLE): Likewise.
29580 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29581 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29582 definition.
29583 (PSEUDO_END): Likewise.
29584 [IS_IN (libpthread)] (CENABLE): Likewise.
29585 [IS_IN (libpthread)] (CDISABLE): Likewise.
29586 [IS_IN (libc)] (CENABLE): Likewise.
29587 [IS_IN (libc)] (CENABLE): Likewise.
29588 [IS_IN (librt)] (CDISABLE): Likewise.
29589 [IS_IN (librt)] (CDISABLE): Likewise.
29590 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29591 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29592 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29593 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29594 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29595 definition.
29596 (PSEUDO_END): Likewise.
29597 [IS_IN (libpthread)] (CENABLE): Likewise.
29598 [IS_IN (libpthread)] (CDISABLE): Likewise.
29599 [IS_IN (libc)] (CENABLE): Likewise.
29600 [IS_IN (libc)] (CENABLE): Likewise.
29601 [IS_IN (librt)] (CDISABLE): Likewise.
29602 [IS_IN (librt)] (CDISABLE): Likewise.
29603 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29604 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29605 definition.
29606 (PSEUDO_END): Likewise.
29607 [IS_IN (libpthread)] (CENABLE): Likewise.
29608 [IS_IN (libpthread)] (CDISABLE): Likewise.
29609 [IS_IN (libc)] (CENABLE): Likewise.
29610 [IS_IN (libc)] (CENABLE): Likewise.
29611 [IS_IN (librt)] (CDISABLE): Likewise.
29612 [IS_IN (librt)] (CDISABLE): Likewise.
29613 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29614 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29615 definition.
29616 (PSEUDO_END): Likewise.
29617 [IS_IN (libpthread)] (CENABLE): Likewise.
29618 [IS_IN (libpthread)] (CDISABLE): Likewise.
29619 [IS_IN (libc)] (CENABLE): Likewise.
29620 [IS_IN (libc)] (CENABLE): Likewise.
29621 [IS_IN (librt)] (CDISABLE): Likewise.
29622 [IS_IN (librt)] (CDISABLE): Likewise.
29623 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29624 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29625 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29626 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29627 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29628 definition.
29629 (PSEUDO_END): Likewise.
29630 [IS_IN (libpthread)] (CENABLE): Likewise.
29631 [IS_IN (libpthread)] (CDISABLE): Likewise.
29632 [IS_IN (libc)] (CENABLE): Likewise.
29633 [IS_IN (libc)] (CENABLE): Likewise.
29634 [IS_IN (librt)] (CDISABLE): Likewise.
29635 [IS_IN (librt)] (CDISABLE): Likewise.
29636 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29637 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29638 definition.
29639 (PSEUDO_END): Likewise.
29640 [IS_IN (libpthread)] (CENABLE): Likewise.
29641 [IS_IN (libpthread)] (CDISABLE): Likewise.
29642 [IS_IN (libc)] (CENABLE): Likewise.
29643 [IS_IN (libc)] (CENABLE): Likewise.
29644 [IS_IN (librt)] (CDISABLE): Likewise.
29645 [IS_IN (librt)] (CDISABLE): Likewise.
29646 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29647
29648 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29649
29650 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29651
29652 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29653
29654 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29655
29656 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29657
29658 [BZ #21982]
29659 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29660 middle and outer with size_t instead of int. Repleace %d and
29661 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29662 "MAX (outer, nchars - 64)" to support unsigned outer and
29663 nchars. Also exit loop when outer == 0.
29664
29665 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29666
29667 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29668 * include/signal.h (__sigsuspend_nocancel): Likewise.
29669 * include/time.h (__nanosleep_nocancel): Likewise.
29670 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29671 * login/utmp_file.c: Include non cancellable syscall header.
29672 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29673 prototype.
29674
29675 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29676
29677 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29678 .byte sequences with AVX512F instructions.
29679 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29680 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29681 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29682 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29683 Likewise.
29684 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29685 Likewise.
29686
29687 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29688 Steve Ellcey <sellcey@cavium.com>
29689
29690 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29691 Use PTR_REG macro in cmp instruction.
29692
29693 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29694
29695 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29696 Change the return type of the ifunc resolver to match the return
29697 type of the target function.
29698
29699 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29700
29701 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29702 (preadv64): Likewise.
29703 (pwrite64(: Likewise.
29704 (pwritev64): Likewise.
29705
29706 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29707 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29708 (LOAD_ARGS_0): Likewise.
29709 (LOAD_ARGS_1): Likewise.
29710 (LOAD_ARGS_2): Likewise.
29711 (LOAD_ARGS_3): Likewise.
29712 (LOAD_ARGS_4): Likewise.
29713 (LOAD_ARGS_5): Likewise.
29714 (LOAD_ARGS_6): Likewise.
29715 (LOAD_REGS_0): Likewise.
29716 (LOAD_REGS_1): Likewise.
29717 (LOAD_REGS_2): Likewise.
29718 (LOAD_REGS_3): Likewise.
29719 (LOAD_REGS_4): Likewise.
29720 (LOAD_REGS_5): Likewise.
29721 (LOAD_REGS_6): Likewise.
29722 (ASM_ARGS_0): Likewise.
29723 (ASM_ARGS_1): Likewise.
29724 (ASM_ARGS_2): Likewise.
29725 (ASM_ARGS_3): Likewise.
29726 (ASM_ARGS_4): Likewise.
29727 (ASM_ARGS_5): Likewise.
29728 (ASM_ARGS_6): Likewise.
29729 (LOAD_ARGS_TYPES_1): Likewise.
29730 (LOAD_ARGS_TYPES_2): Likewise.
29731 (LOAD_ARGS_TYPES_3): Likewise.
29732 (LOAD_ARGS_TYPES_4): Likewise.
29733 (LOAD_ARGS_TYPES_5): Likewise.
29734 (LOAD_ARGS_TYPES_6): Likewise.
29735 (LOAD_REGS_TYPES_1): Likewise.
29736 (LOAD_REGS_TYPES_2): Likewise.
29737 (LOAD_REGS_TYPES_3): Likewise.
29738 (LOAD_REGS_TYPES_4): Likewise.
29739 (LOAD_REGS_TYPES_5): Likewise.
29740 (LOAD_REGS_TYPES_6): Likewise.
29741 (TYPEFY): New define.
29742 (ARGIFY): Likewise.
29743 (internal_syscall0): Likewise.
29744 (internal_syscall1): Likewise.
29745 (internal_syscall2): Likewise.
29746 (internal_syscall3): Likewise.
29747 (internal_syscall4): Likewise.
29748 (internal_syscall5): Likewise.
29749 (internal_syscall6): Likewise.
29750 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29751 (INTERNAL_SYSCALL_NCS): Remove define.
29752 (internal_syscall1): Add define.
29753
29754 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29755
29756 * math/w_remainder_compat.c: Remove duplicate inclusion of
29757 math-svid-compat.h.
29758 * math/w_remainderf_compat.c: Likewise.
29759 * math/w_remainderl_compat.c: Likewise.
29760
29761 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29762
29763 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29764
29765 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29766
29767 [BZ #21684]
29768 * math/tgmath.h (__floating_type): Simplify definitions.
29769 (__real_integer_type): New macro.
29770 (__complex_integer_type): Likewise.
29771 (__expr_is_real): Likewise.
29772 (__tgmath_real_type_sub): Update comment to describe handling of
29773 complex types.
29774 (__tgmath_complex_type_sub): New macro.
29775 (__tgmath_complex_type): Likewise.
29776 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29777 (__TGMATH_CF128): Use __expr_is_real.
29778 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29779 __expr_is_real.
29780 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29781 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29782 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29783 integer types.
29784
29785 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29786
29787 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29788 macro.
29789 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29790 alias.
29791 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29792 Likewise.
29793
29794 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29795 nanosleep_not_cancel with __nanosleep_nocancel.
29796 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29797 (__nanosleep_nocancel): New macro.
29798 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29799 function.
29800 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29801 macro.
29802 (__nanosleep_nocancel): New prototype.
29803
29804 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29805 pause_not_cancel with __pause_nocancel.
29806 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29807 (__pause_nocancel): New macro.
29808 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29809 macro.
29810 (__pause_nocancel): New prototype.
29811 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29812
29813 2017-08-22 Martin Sebor <msebor@redhat.com>
29814
29815 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29816 to return a pointer to the same type as the target function.
29817
29818 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29819
29820 [BZ #18822]
29821 [BZ #21986]
29822 * include/printf.h (__printf_fphex): Add attribute_hidden.
29823 (__guess_grouping): New prototype.
29824 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29825 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29826 libc_hidden_proto and libc_hidden_def.
29827 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29828 (__vstrfmon_l): Remove the third argument passed to
29829 __guess_grouping.
29830
29831 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29832
29833 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
29834 definition for issignaling that does not rely on __MATH_TG,
29835 since __MATH_TG uses __builtin_types_compatible_p, which is only
29836 available in C mode.
29837 (CFLAGS-test-math-issignaling.cc): New variable.
29838 * math/Makefile [CXX] (tests): Add test-math-issignaling.
29839 * math/test-math-issignaling.cc: New test for C++ implementation
29840 of type-generic issignaling.
29841 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29842 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
29843 options of test-math-issignaling on powerpc64le.
29844
29845 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29846
29847 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29848 building libc.a.
29849 (hidden_proto): Likewise.
29850 (hidden_tls_proto): Likewise.
29851 (__hidden_proto): Likewise.
29852
29853 2017-08-22 Florian Weimer <fweimer@redhat.com>
29854
29855 math: Statically link tests of internal functionality.
29856 * math/Makefile (tests): Remove atest-exp, atest-sincos,
29857 atest-exp2.
29858 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
29859 (gmp-objs): Remove assignment.
29860 (atest-exp, atest-sincos, atest-exp2): Remove targets.
29861
29862 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29863
29864 [BZ #21987]
29865 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
29866 and copy to ...
29867 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
29868 ... here.
29869 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
29870 ... and here.
29871
29872 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
29873 variable definitions above inclusion of ../Rules.
29874
29875 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29876
29877 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
29878 case calling __builtin_unreachable.
29879
29880 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29881
29882 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
29883 __waitpid_nocancel.
29884 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
29885 (__waitpid_nocancel): New macro.
29886 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
29887 macro.
29888 (__waitpid_nocancel): Replace macro with a function.
29889 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
29890 function.
29891
29892 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
29893 __fcntl_nocancel.
29894 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
29895 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
29896
29897 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
29898 __writev_nocancel_nostatus.
29899 (write_call_graph): Likewise.
29900 (write_bb_counts): Likewise.
29901 * resolv/herror.c (herror): Likewise.
29902 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
29903 macro.
29904 (__writev_nocancel_nostatus): New macro.
29905 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
29906 Remove macro.
29907 (__writev_nocancel_nostatus): New function.
29908
29909 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29910
29911 Revert:
29912 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29913
29914 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29915 building libc.a.
29916 (hidden_proto): Likewise.
29917 (hidden_tls_proto): Likewise.
29918 (__hidden_proto): Likewise.
29919
29920 [BZ #21973]
29921 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
29922 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
29923 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
29924 Likewise.
29925 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
29926 Likewise.
29927 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
29928 Likewise.
29929 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
29930 Likewise.
29931 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
29932 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
29933 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
29934 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
29935 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
29936 GLIBC_2.0 sqrtl symbol.
29937
29938 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
29939 [__USE_MISC] (_LIB_VERSION): Likewise.
29940 [__USE_MISC] (struct exception): Likewise.
29941 [__USE_MISC] (matherr): Likewise.
29942 [__USE_MISC] (DOMAIN): Likewise.
29943 [__USE_MISC] (SING): Likewise.
29944 [__USE_MISC] (OVERFLOW): Likewise.
29945 [__USE_MISC] (UNDERFLOW): Likewise.
29946 [__USE_MISC] (TLOSS): Likewise.
29947 [__USE_MISC] (PLOSS): Likewise.
29948 [__USE_MISC] (HUGE): Likewise.
29949 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
29950 * math/math-svid-compat.h: New file.
29951 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
29952 and matherrl.
29953 * include/math.h [!_ISOMAC] (__matherr): Remove.
29954 * manual/arith.texi (FP Exceptions): Do not document matherr.
29955 * math/Makefile (tests): Change test-matherr to test-matherr-3.
29956 (tests-internal): New variable.
29957 (install-lib): Do not add libieee.a.
29958 (non-lib.a): Likewise.
29959 (extra-objs): Do not add libieee.a and ieee-math.o.
29960 (CPPFLAGS-s_lib_version.c): Remove variable.
29961 ($(objpfx)libieee.a): Remove rule.
29962 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
29963 * math/ieee-math.c: Remove.
29964 * math/libm-test-support.c (matherr): Remove.
29965 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
29966 and license notices. Include <math-svid-compat.h> and
29967 <shlib-compat.h>.
29968 (matherr): Undefine as macro. Use compat_symbol_reference.
29969 (_LIB_VERSION): Likewise.
29970 * math/test-matherr-2.c: New file.
29971 * math/test-matherr-3.c: Likewise.
29972 * sysdeps/generic/math_private.h (__kernel_standard): Remove
29973 declaration.
29974 (__kernel_standard_f): Likewise.
29975 (__kernel_standard_l): Likewise.
29976 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
29977 <math_private.h>. Include <math-svid-compat.h>.
29978 (_LIB_VERSION): Undefine as macro.
29979 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
29980 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
29981 [LIBM_SVID_COMPAT], use compat_symbol.
29982 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
29983 <math_private.h>. Include <math-svid-compat.h>.
29984 (matherr): Undefine as macro.
29985 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
29986 compat_symbol.
29987 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
29988 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
29989 compat_symbol_reference.
29990 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
29991 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
29992 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
29993 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
29994 (MATHERR_D): Remove declaration.
29995 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
29996 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
29997 [LIBM_BUILD] (pmatherrf): Likewise.
29998 [LIBM_BUILD] (pmatherr): Likewise.
29999 [LIBM_BUILD] (pmatherrl): Likewise.
30000 (DOMAIN): Likewise.
30001 (SING): Likewise.
30002 (OVERFLOW): Likewise.
30003 (UNDERFLOW): Likewise.
30004 (TLOSS): Likewise.
30005 (PLOSS): Likewise.
30006 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30007 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30008 compat_symbol.
30009 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30010 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30011 compat_symbol.
30012 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30013 * math/w_acos_compat.c: Likewise.
30014 * math/w_acosf_compat.c: Likewise.
30015 * math/w_acosh_compat.c: Likewise.
30016 * math/w_acoshf_compat.c: Likewise.
30017 * math/w_acoshl_compat.c: Likewise.
30018 * math/w_acosl_compat.c: Likewise.
30019 * math/w_asin_compat.c: Likewise.
30020 * math/w_asinf_compat.c: Likewise.
30021 * math/w_asinl_compat.c: Likewise.
30022 * math/w_atan2_compat.c: Likewise.
30023 * math/w_atan2f_compat.c: Likewise.
30024 * math/w_atan2l_compat.c: Likewise.
30025 * math/w_atanh_compat.c: Likewise.
30026 * math/w_atanhf_compat.c: Likewise.
30027 * math/w_atanhl_compat.c: Likewise.
30028 * math/w_cosh_compat.c: Likewise.
30029 * math/w_coshf_compat.c: Likewise.
30030 * math/w_coshl_compat.c: Likewise.
30031 * math/w_exp10_compat.c: Likewise.
30032 * math/w_exp10f_compat.c: Likewise.
30033 * math/w_exp10l_compat.c: Likewise.
30034 * math/w_exp2_compat.c: Likewise.
30035 * math/w_exp2f_compat.c: Likewise.
30036 * math/w_exp2l_compat.c: Likewise.
30037 * math/w_fmod_compat.c: Likewise.
30038 * math/w_fmodf_compat.c: Likewise.
30039 * math/w_fmodl_compat.c: Likewise.
30040 * math/w_hypot_compat.c: Likewise.
30041 * math/w_hypotf_compat.c: Likewise.
30042 * math/w_hypotl_compat.c: Likewise.
30043 * math/w_j0_compat.c: Likewise.
30044 * math/w_j0f_compat.c: Likewise.
30045 * math/w_j0l_compat.c: Likewise.
30046 * math/w_j1_compat.c: Likewise.
30047 * math/w_j1f_compat.c: Likewise.
30048 * math/w_j1l_compat.c: Likewise.
30049 * math/w_jn_compat.c: Likewise.
30050 * math/w_jnf_compat.c: Likewise.
30051 * math/w_jnl_compat.c: Likewise.
30052 * math/w_lgamma_main.c: Likewise.
30053 * math/w_lgamma_r_compat.c: Likewise.
30054 * math/w_lgammaf_main.c: Likewise.
30055 * math/w_lgammaf_r_compat.c: Likewise.
30056 * math/w_lgammal_main.c: Likewise.
30057 * math/w_lgammal_r_compat.c: Likewise.
30058 * math/w_log10_compat.c: Likewise.
30059 * math/w_log10f_compat.c: Likewise.
30060 * math/w_log10l_compat.c: Likewise.
30061 * math/w_log2_compat.c: Likewise.
30062 * math/w_log2f_compat.c: Likewise.
30063 * math/w_log2l_compat.c: Likewise.
30064 * math/w_log_compat.c: Likewise.
30065 * math/w_logf_compat.c: Likewise.
30066 * math/w_logl_compat.c: Likewise.
30067 * math/w_pow_compat.c: Likewise.
30068 * math/w_powf_compat.c: Likewise.
30069 * math/w_powl_compat.c: Likewise.
30070 * math/w_remainder_compat.c: Likewise.
30071 * math/w_remainderf_compat.c: Likewise.
30072 * math/w_remainderl_compat.c: Likewise.
30073 * math/w_scalb_compat.c: Likewise.
30074 * math/w_scalbf_compat.c: Likewise.
30075 * math/w_scalbl_compat.c: Likewise.
30076 * math/w_sinh_compat.c: Likewise.
30077 * math/w_sinhf_compat.c: Likewise.
30078 * math/w_sinhl_compat.c: Likewise.
30079 * math/w_sqrt_compat.c: Likewise.
30080 * math/w_sqrtf_compat.c: Likewise.
30081 * math/w_sqrtl_compat.c: Likewise.
30082 * math/w_tgamma_compat.c: Likewise.
30083 * math/w_tgammaf_compat.c: Likewise.
30084 * math/w_tgammal_compat.c: Likewise.
30085 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30086 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30087 * sysdeps/ieee754/k_standard.c: Likewise.
30088 * sysdeps/ieee754/k_standardf.c: Likewise.
30089 * sysdeps/ieee754/k_standardl.c: Likewise.
30090 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30091 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30092 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30093 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30094 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30095 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30096 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30097 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30098 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30099 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30100 Likewise.
30101 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30102 Likewise.
30103 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30104 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30105 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30106 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30107
30108 2017-08-21 Florian Weimer <fweimer@redhat.com>
30109
30110 [BZ #21864]
30111 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30112 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30113 Move before inclusion of ../Rules.
30114
30115 2017-08-21 Florian Weimer <fweimer@redhat.com>
30116
30117 [BZ #21972]
30118 * assert/assert.h (assert): Use static_cast (bool) for C++.
30119 Use the ternary operator in the warning branch for GNU C.
30120 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30121 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30122 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30123 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30124 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30125
30126 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30127
30128 [BZ #18822]
30129 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30130 (__syscall_clock_gettime): Add attribute_hidden.
30131 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30132 (__start_context): Likewise.
30133
30134 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30135
30136 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30137 building libc.a.
30138 (hidden_proto): Likewise.
30139 (hidden_tls_proto): Likewise.
30140 (__hidden_proto): Likewise.
30141
30142 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30143
30144 * include/libc-symbols.h (attribute_hidden): Enable hidden
30145 visibility in libc.a compiled with PIE.
30146
30147 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30148
30149 [BZ #18822]
30150 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30151 Add attribute_hidden.
30152
30153 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30154
30155 [BZ #21864]
30156 * Makerules (all-nonlib): Add $(others-extras).
30157 * catgets/Makefile (others-extras): New.
30158 * elf/Makefile (others-extras): Likewise.
30159 * nss/Makefile (others-extras): Likewise.
30160
30161 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30162
30163 [BZ #18822]
30164 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30165 * elf/dl-open.c: Include <libc-internal.h>.
30166 (__libc_multiple_libcs): Removed.
30167 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30168 <hp-timing.h>.
30169 * include/libc-internal.h (__libc_multiple_libcs): New.
30170 * misc/sbrk.c: Include <libc-internal.h>.
30171 (__libc_multiple_libcs): Removed.
30172
30173 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30174
30175 [BZ #18822]
30176 * grp/initgroups.c (__nss_group_database): Removed.
30177 (__nss_initgroups_database): Likewise.
30178 * nscd/gai.c (__nss_hosts_database): Likewise.
30179 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30180 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30181 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30182 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30183 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30184 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30185 attribute_hidden.
30186 * nss/nsswitch.c (__nss_database_custom): Define only if
30187 USE_NSCD is defined.
30188 (__nss_configure_lookup): Use __nss_database_custom only if
30189 USE_NSCD is defined.
30190 * nss/nsswitch.h (__nss_database_custom): Declare only if
30191 USE_NSCD is defined. Add attribute_hidden.
30192 (__nss_setent): Add attribute_hidden.
30193 (__nss_endent): Likewise.
30194 (__nss_getent_r): Likewise.
30195 (__nss_getent): Likewise.
30196 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30197
30198 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30199
30200 [BZ #18822]
30201 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30202 libc_hidden_proto and libc_hidden_def.
30203
30204 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30205
30206 [BZ #18822]
30207 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30208 Add libc_hidden_proto.
30209 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30210 Add libc_hidden_def.
30211
30212 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30213
30214 [BZ #21974]
30215 * gmon/Makefile (routines): Remove bb_init_func and
30216 bb_exit_func.
30217 (elide-routines.os): Removed.
30218 * gmon/bb_exit_func.c: Likewise.
30219 * gmon/bb_init_func.c: Likewise.
30220 * include/sys/gmon.h (__bb): Likewise.
30221 (__bb_init_func): Likewise.
30222 (__bb_exit_func): Likewise.
30223 * sysdeps/alpha/bb_init_func.S: Likewise.
30224
30225 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30226
30227 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30228 * include/setjmp.h (____longjmp_chk): Here. Add
30229 attribute_hidden.
30230
30231 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30232
30233 [BZ #18822]
30234 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30235 attribute_hidden.
30236 (__strspn_sse2): Likewise.
30237
30238 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30239
30240 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30241 (close_not_cancel_no_status): Likewise.
30242 (__close_nocancel): New macro.
30243 (__close_nocancel_nostatus): Likewise.
30244 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30245 macro.
30246 (close_not_cancel): Likewise.
30247 (close_not_cancel_no_status): Likewise.
30248 (__close_nocancel): New prototype.
30249 (__close_nocancel_nostatus): New function.
30250 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30251 * catgets/open_catalog.c (__open_catalog): Replace
30252 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30253 * gmon/gmon.c (write_gmon): Likewise.
30254 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30255 * intl/loadmsgcat.c (close): Likewise.
30256 * io/ftw.c (open_dir_stream): Likewise.
30257 (ftw_startup): Likewise.
30258 * libio/fileops.c (_IO_file_open): Likewise.
30259 (_IO_file_close_mmap): Likewise.
30260 (_IO_file_close): Likewise.
30261 * libio/iopopen.c (_IO_dup2): Likewise.
30262 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30263 * locale/loadlocale.c (_nl_load_locale): Likewise.
30264 * login/utmp_file.c (pututline_file): Likewise.
30265 (endutent_file): Likewise.
30266 * misc/daemon.c (daemon): Likewise.
30267 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30268 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30269 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30270 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30271 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30272 * nscd/nscd_helper.c (open_socket): Likewise.
30273 (__nscd_open_socket): Likewise.
30274 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30275 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30276 (__nscd_innetgr): Likewise.
30277 * nss/nss_db/db-open.c (internal_setent): Likewise.
30278 * resolv/res-close.c (__res_iclose): Likewise.
30279 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30280 * sysdeps/posix/closedir.c (__closedir): Likewise.
30281 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30282 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30283 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30284 (opendir_tail): Likewise.
30285 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30286 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30287 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30288 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30289 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30290 (gethostid): Likewise.
30291 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30292 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30293 Likewise.
30294 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30295 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30296 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30297 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30298 Likewise.
30299 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30300 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30301 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30302 Likewise.
30303 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30304 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30305 Likewise.
30306 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30307 Likewise.
30308 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30309 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30310 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30311 __close_nocancel.
30312
30313 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30314 (openat_not_cancel_3): Likewise.
30315 (openat64_not_cancel_3): Likewise).
30316 (openat_not_cancel_3): Likewise).
30317 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30318 macro.
30319 (openat_not_cancel_3): Likewise.
30320 (openat64_not_cancel): Likewise.
30321 (openat64_not_cancel_3): Likewise.
30322 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30323 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30324 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30325 __open{64}_nocancel.
30326 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30327 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30328 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30329
30330 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30331
30332 [BZ #18822]
30333 * include/argz.h (__argz_create_sep): New function prototype.
30334 (__argz_append): Likewise.
30335 (__argz_add): Likewise.
30336 (__argz_add_sep): Likewise.
30337 (__argz_delete): Likewise.
30338 (__argz_insert): Likewise.
30339 (__argz_replace): Likewise.
30340 * string/argz.h (__argz_create_sep): Removed.
30341 (__argz_append): Likewise.
30342 (__argz_add): Likewise.
30343 (__argz_add_sep): Likewise.
30344 (__argz_delete): Likewise.
30345 (__argz_insert): Likewise.
30346 (__argz_replace): Likewise.
30347
30348 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30349
30350 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30351 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30352 (GNU_PROPERTY_STACK_SIZE): Likewie.
30353 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30354 (GNU_PROPERTY_LOPROC): Likewise.
30355 (GNU_PROPERTY_HIPROC): Likewise.
30356 (GNU_PROPERTY_LOUSER): Likewise.
30357 (GNU_PROPERTY_HIUSER): Likewise.
30358 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30359 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30360 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30361 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30362 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30363 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30364 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30365 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30366 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30367 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30368 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30369 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30370 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30371 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30372 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30373 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30374 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30375 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30376 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30377 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30378 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30379 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30380 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30381
30382 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30383
30384 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30385 in C++ mode.
30386
30387 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30388
30389 [BZ #21930]
30390 * math/math.h (isinf): Check if in C or C++ mode before using
30391 __builtin_types_compatible_p, since this is a C mode feature.
30392
30393 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30394
30395 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30396 (__write_nocancel): New macro.
30397 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30398 Rewrite as a function prototype.
30399 (write_not_cancel): Remove macro.
30400 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30401 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30402 (write_gmon): Likewise.
30403 * libio/fileops.c (_IO_new_file_write): Likewise.
30404 * login/utmp_file.c (pututline_file): Likewise.
30405 (updwtmp_file): Likewise.
30406 * stdio-common/psiginfo.c (psiginfo): Likewise.
30407 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30408 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30409 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30410 Likewise.
30411 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30412 Likewise.
30413
30414 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30415 (__read_nocancel): New macro.
30416 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30417 __read_nocancel.
30418 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30419 macro.
30420 (__read_nocancel): New prototype.
30421 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30422 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30423 with __read_nocancel.
30424 * intl/loadmsgcat.c (read): Likewise.
30425 * libio/fileops.c (_IO_file_read): Likewise.
30426 * locale/loadlocale.c (_nl_load_locale): Likewise.
30427 * login/utmp_file.c (getutent_r_file): Likewise.
30428 (internal_getut_r): Likewise.
30429 (getutline_r_file): Likewise.
30430 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30431 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30432 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30433 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30434 Likewise.
30435 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30436 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30437 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30438 Likewise.
30439 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30440 Likewise.
30441 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30442 Likewise.
30443 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30444 Likewise.
30445 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30446
30447 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30448
30449 [BZ #21966]
30450 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30451 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30452 usable.
30453
30454 2017-08-17 DJ Delorie <dj@redhat.com>
30455
30456 * bug17079.c: Update to new test harness.
30457 * test-digits-dots.c: Likewise.
30458 * test-netdb.c: Likewise.
30459 * tst-field.c: Likewise.
30460 * tst-nss-getpwent.c: Likewise.
30461 * tst-nss-static.c: Likewise.
30462 * tst-nss-test1.c: Likewise.
30463 * tst-nss-test2.c: Likewise.
30464 * tst-nss-test3.c: Likewise.
30465 * tst-nss-test4.c: Likewise.
30466 * tst-nss-test5.c: Likewise.
30467
30468 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30469
30470 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30471 (open_not_cancel_2): Likewise.
30472 (open_nocancel): New macro.
30473 (open64_nocancel): Likewise.
30474 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30475 (open_not_cancel_2): Likewise.
30476 (__open_nocancel): New prototype.
30477 (__open64_nocancel): Likewise.
30478 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30479 __open_nocancel.
30480 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30481 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30482 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30483 with __open_nocancel.
30484 * csu/check_fds.c (check_one_fd): Likewise.
30485 * gmon/gmon.c (write_gmon): Likewise.
30486 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30487 * intl/loadmsgcat.c (open): Likewise.
30488 * libio/fileops.c (_IO_file_open): Likewise.
30489 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30490 * locale/loadlocale.c (_nl_load_locale): Likewise.
30491 * login/utmp_file.c (setutent_file): Likewise.
30492 * misc/daemon.c (daemon): Likewise.
30493 * nss/nss_db/db-open.c (internal_setent): Likewise.
30494 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30495 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30496 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30497 (__opendir): Likewise.
30498 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30499 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30500 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30501 (gethostid): Likewise.
30502 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30503 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30504 Likewise.
30505 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30506 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30507 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30508 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30509 Likewise.
30510 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30511 Likewise.
30512 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30513 Likewise.
30514 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30515 Likewise.
30516 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30517 Likewise.
30518 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30519 Likewise.
30520 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30521 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30522
30523 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30524
30525 * benchtests/bench-skeleton.c (main): Add support for
30526 latency benchmarking.
30527 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30528
30529 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30530
30531 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30532 the startup object.
30533
30534 2017-08-17 Florian Weimer <fweimer@redhat.com>
30535
30536 * include/sys/socket.h (__opensock): Remove internal_function.
30537 * socket/opensock.c (__opensock): Likewise.
30538 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30539
30540 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30541
30542 [BZ #21944]
30543 * signal/bits/types/__sigval_t.h: New file.
30544 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30545 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30546 and define sigval_t using __sigval_t.
30547 * include/bits/types/__sigval_t.h: New file.
30548 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30549 instead of <bits/types/__sigval_t.h>.
30550 (struct sigevent): Use __sigval_t instead of sigval_t.
30551 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30552 instead of <bits/types/__sigval_t.h>.
30553 (siginfo_t): Use __sigval_t instead of sigval_t.
30554 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30555 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30556 (struct sigevent): Use __sigval_t instead of sigval_t.
30557 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30558 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30559 (siginfo_t): Use __sigval_t instead of sigval_t.
30560 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30561
30562 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30563
30564 * NEWS: Remove "[Add new features here]" for 2.27.
30565
30566 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30567
30568 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30569 libc.so.
30570
30571 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30572
30573 * NEWS: Mention x86-64 FMA optimization.
30574
30575 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30576
30577 [BZ #21912]
30578 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30579 Add e_expf-fma.
30580 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30581 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30582 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30583
30584 2017-08-16 Andreas Schwab <schwab@suse.de>
30585
30586 [BZ #16750]
30587 CVE-2009-5064
30588 * elf/ldd.bash.in: Never run file directly.
30589
30590 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30591
30592 [BZ #21955]
30593 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30594 (L(SP_INF_0)): Likewise.
30595
30596 2017-08-15 Florian Weimer <fweimer@redhat.com>
30597
30598 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30599 run-built-tests.
30600
30601 2017-08-15 Florian Weimer <fweimer@redhat.com>
30602
30603 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30604 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30605 BROKEN_THREAD_SIGNALS code.
30606 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30607 request_list): Remove caller_pid member used for
30608 BROKEN_THREAD_SIGNALS.
30609 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30610 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30611 Remove BROKEN_THREAD_SIGNALS support.
30612 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30613 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30614
30615 2017-08-15 Florian Weimer <fweimer@redhat.com>
30616
30617 * gmon/Makefile (tests): Add tst-gmon.
30618 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30619 Set.
30620 (tests-special): Add tst-gmon-prof.out.
30621 (tst-gmon.out): Depend on clean-tst-gmon-data.
30622 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30623 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30624 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30625 startup object.
30626 * aclocal.m4 (GPROF): Set and substitute.
30627 * config.amke.in (GPROF): Set.
30628 * configure: Regenerate.
30629
30630 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30631
30632 * elf/elf.h A (NT_PPC_TAR): New macro.
30633 (NT_PPC_PPR): Likewise.
30634 (NT_PPC_DSCR): Likewise.
30635 (NT_PPC_EBB): Likewise.
30636 (NT_PPC_PMU): Likewise.
30637 (NT_PPC_TM_CGPR): Likewise.
30638 (NT_PPC_TM_CFPR): Likewise.
30639 (NT_PPC_TM_CVMX): Likewise.
30640 (NT_PPC_TM_CVSX): Likewise.
30641 (NT_PPC_TM_SPR): Likewise.
30642 (NT_PPC_TM_CTAR): Likewise.
30643 (NT_PPC_TM_CPPR): Likewise.
30644 (NT_PPC_TM_CDSCR): Likewise.
30645
30646 2017-08-15 Florian Weimer <fweimer@redhat.com>
30647
30648 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30649 regparm (2) instead of internal_function.
30650 (_MCOUNT_DECL): Adjust.
30651
30652 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30653
30654 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30655 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30656
30657 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30658
30659 * conform/data/sys/wait.h-data (si_value): Do not expect for
30660 XPG42.
30661
30662 2017-08-14 Florian Weimer <fweimer@redhat.com>
30663
30664 [BZ #21962]
30665 NSS: Create stubs for accidentally exported lookup functions.
30666 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30667 Remove declaration.
30668 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30669 (ether_hostton): Call __nss_ethers_lookup2 instead.
30670 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30671 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30672 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30673 (setup): Call __nss_netgroup_lookup2 instead.
30674 * nss/Makefile (routines): Add compat-lookup.
30675 * nss/Versions (GLIBC_2.27): Add symbol version.
30676 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30677 (DB_COMPAT_FCT): Remove.
30678 * nss/compat-lookup.c: New file.
30679 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30680 from databases.def.
30681 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30682 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30683 (netname2user): Call __nss_publickey_lookup2 instead.
30684 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30685 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30686 instead.
30687
30688 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30689 Sergei Trofimovich <slyfox@inbox.ru>
30690
30691 [BZ #21908]
30692 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30693 Rename to MMAP2_PAGE_UNIT.
30694 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30695 __OFF_T_MATCHES_OFF64_T is not defined.
30696 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30697 uint64_t.
30698 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30699 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30700
30701 2017-08-14 Florian Weimer <fweimer@redhat.com>
30702
30703 i386: Do not set internal_function.
30704 * config.h.in (USE_REGPARMS, internal_function): Remove.
30705 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30706 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30707
30708 2017-08-14 Florian Weimer <fweimer@redhat.com>
30709
30710 * elf/dl-init.c (_dl_init): Remove internal_function.
30711 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30712 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30713
30714 2017-08-14 Florian Weimer <fweimer@redhat.com>
30715
30716 * elf/rtld.c (_dl_start): Remove internal_function.
30717 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30718 _dl_start.
30719
30720 2017-08-14 Florian Weimer <fweimer@redhat.com>
30721
30722 * elf/dl-fini.c (_dl_fini): Remove internal_function
30723 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30724
30725 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30726
30727 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30728 (bit_cpu_SHSTK): Likewise.
30729 (index_cpu_IBT): Likewise.
30730 (index_cpu_SHSTK): Likewise.
30731 (reg_IBT): Likewise.
30732 (reg_SHSTK): Likewise.
30733 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30734 Handle index_cpu_IBT and index_cpu_SHSTK.
30735
30736 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30737
30738 [BZ #19982]
30739 * po/fr.po: Fix spelling mistake.
30740
30741 2017-08-13 Florian Weimer <fweimer@redhat.com>
30742
30743 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30744 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30745 (_dl_catch_error, _dl_receive_error): Likewise.
30746 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30747 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30748 (_dl_deallocate_tls): Likewise.
30749 * include/dlfcn.h (_dl_addr): Likewise.
30750 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30751 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30752 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30753 Likewise.
30754
30755 2017-08-13 Florian Weimer <fweimer@redhat.com>
30756
30757 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30758 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30759 internal_function.
30760 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30761
30762 2017-08-13 Florian Weimer <fweimer@redhat.com>
30763
30764 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30765 internal_function.
30766 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30767 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30768 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30769 internal_function from _dl_make_stack_executable_hook member.
30770 (_dl_make_stack_executable): Remove internal_function.
30771 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30772 Likewise.
30773 * sysdeps/unix/sysv/linux/dl-execstack.c
30774 (_dl_make_stack_executable): Likewise.
30775
30776 2017-08-13 Florian Weimer <fweimer@redhat.com>
30777
30778 * sysdeps/unix/sysv/linux/netlinkaccess.h
30779 (__netlink_assert_response): Remove internal_function.
30780 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30781 (__netlink_assert_response): Likewise.
30782
30783 2017-08-13 Florian Weimer <fweimer@redhat.com>
30784
30785 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30786 internal_function.
30787 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30788
30789 2017-08-13 Florian Weimer <fweimer@redhat.com>
30790
30791 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30792 internal_function.
30793 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30794 * inet/netgroup.h (__internal_setnetgrent)
30795 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30796 * inet/getnetgrent_r.c (__internal_setnetgrent)
30797 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30798 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30799 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30800 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30801 * nss/nsswitch.h (db_lookup_function): Likewise.
30802
30803 2017-08-13 Florian Weimer <fweimer@redhat.com>
30804
30805 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30806 Remove internal_function.
30807 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30808 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30809 message argument on the stack.
30810 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30811 Likeweise.
30812
30813 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30814
30815 Adapt test case data to the changes in the thousands
30816 separators.
30817
30818 [BZ #20756]
30819 * localedata/tst-langinfo.sh: Adapt test case data.
30820 * stdlib/tst-strfmon_l.c: Likewise.
30821 * stdlib/tst-strtod4.c: Likewise.
30822 * stdlib/tst-strtod5i.c: Likewise.
30823
30824 2017-08-11 Florian Weimer <fweimer@redhat.com>
30825
30826 [BZ #21242]
30827 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30828 Suppress pedantic warning resulting from statement expression.
30829 (__ASSERT_FUNCTION): Add missing __extension__.
30830
30831 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30832
30833 * benchtests/bench-memmove-large.c: Print output in JSON
30834 format.
30835 * benchtests/bench-memmove.c: Likewise.
30836
30837 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
30838 * benchtests/bench-memchr.c (do_one_test): Likewise.
30839 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
30840 * benchtests/bench-memcpy.c (do_one_test): Likewise.
30841 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
30842 * benchtests/bench-memmove.c (do_one_test): Likewise.
30843 * benchtests/bench-memset-large.c (do_one_test): Likewise.
30844 * benchtests/bench-memset.c (do_one_test): Likewise.
30845 * benchtests/bench-string.h (test_init): Remove memsets.
30846
30847 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30848
30849 * manual/lang.texi
30850 (Computing the Width of an Integer Data Type): Rename section to
30851 "Width of an Integer Type". Remove inaccurate statement regarding
30852 lack of C language facilities for determining width of integer
30853 types, and reorder content to improve flow and context of
30854 discussion.
30855
30856 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30857
30858 * lang.texi (va_copy): Change standard from ISO to C99.
30859 (__va_copy): Add standard and header annotation.
30860 Update description for clarity of origins and current use.
30861
30862 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30863
30864 [BZ #21941]
30865 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
30866 xssqrtqp requires operands to be in Vector Registers
30867 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
30868 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
30869 (__ieee754_sqrtf128): Likewise.
30870
30871 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
30872
30873 * sysdeps/aarch64/memcmp.S (memcmp):
30874 Rewrite of optimized memcmp.
30875
30876 2017-08-10 Florian Weimer <fweimer@redhat.com>
30877
30878 Introduce ld.so exceptions.
30879 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
30880 (_dl_exception_create, _dl_exception_create_format)
30881 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
30882 (_dl_catch_exception): Declare.
30883 (_dl_catch_error): Update comment.
30884 * elf/dl-error-skeleton.c (struct catch): Replace objname,
30885 errstring, malloced members with exception member.
30886 (_dl_out_of_memory): Remove.
30887 (fatal_error): New function, extracted from _dl_signal_error.
30888 (_dl_signal_exception, _dl_signal_cexception): New functions.
30889 (_dl_signal_error): Call _dl_exception_create to allocate an
30890 exception object.
30891 (_dl_catch_exception): New function, based on _dl_catch_error.
30892 (_dl_catch_error): Implement using _dl_catch_exception.
30893 * elf/dl-exception.c: New file.
30894 * elf/Makefile (dl-routines): Add dl-exception.
30895 (elide-routines.os): Likewise.
30896 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
30897 _dl_exception_create_format, _dl_exception_free.
30898 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
30899 _dl_signal_exception.
30900 * elf/dl-lookup.c (make_string): Remove.
30901 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
30902 _dl_signal_cexception, _dl_exception_free.
30903 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
30904 _dl_signal_exception.
30905 * elf/dl-sym.c (do_sym): Likewise.
30906 * elf/dl-version.c (make_string): Remove.
30907 (match_symbol): Use _dl_exception_create_format,
30908 _dl_signal_cexception, _dl_exception_free.
30909 (_dl_check_map_versions): Likewise.
30910 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
30911 _dl_catch_exception.
30912 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
30913 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
30914 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
30915 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
30916 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
30917 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
30918 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
30919 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
30920 Likewise.
30921 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
30922 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
30923 (ld.so): Likewise.
30924 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
30925 (ld.so): Likewise.
30926 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
30927 Likewise.
30928 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
30929 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
30930 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
30931 Likewise.
30932 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
30933 Likewise.
30934 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
30935
30936 2017-08-10 Florian Weimer <fweimer@redhat.com>
30937
30938 * inet/net-internal.h (__inet6_scopeid_pton): Remove
30939 attribute_hidden, internal_function.
30940 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
30941 internal_function.
30942
30943 2017-08-10 Florian Weimer <fweimer@redhat.com>
30944
30945 * malloc/malloc.c (get_max_fast): Reimplement as an inline
30946 function which calls __builtin_unreachable.
30947
30948 2017-08-10 Mike FABIAN <mfabian@redhat.com>
30949
30950 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
30951 Indian monetary formatting
30952 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
30953 test cases.
30954
30955 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
30956
30957 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
30958 Fix typo in comment.
30959
30960 [BZ #21928]
30961 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
30962 PTRACE_SEIZE_DEVEL): Remove.
30963 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
30964 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30965 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
30966 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
30967 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
30968
30969 2017-08-09 Joseph Myers <joseph@codesourcery.com>
30970
30971 * posix/bits/types.h (__qaddr_t): Remove.
30972
30973 [BZ #21457]
30974 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
30975 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30976 __glibc_reserved1.
30977 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
30978 (ucontext_t): Use __ctx with uc_flags.
30979 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
30980 (__ctxt): Likewise.
30981 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30982 __glibc_reserved1.
30983 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
30984 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30985 __glibc_reserved1.
30986 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
30987 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30988 __glibc_reserved1.
30989 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
30990 macro.
30991 (ucontext_t): Use __ctx with uc_flags.
30992 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
30993 (ucontext_t): Use __ctx with uc_flags.
30994 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
30995 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
30996 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
30997 (ucontext_t): Use __ctx with uc_flags.
30998 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
30999 undefine further down.
31000 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31001 __glibc_reserved1.
31002 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31003 undefine further down.
31004 (ucontext_t): Use __ctx with uc_flags.
31005 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31006 undefine further down.
31007 (ucontext_t): Use __ctx with uc_flags.
31008 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31009 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31010 Rename uc_pad to __glibc_reserved1.
31011 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31012 undefine further down.
31013 (ucontext_t): Use __ctx with uc_flags.
31014 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31015 further down.
31016 (ucontext_t): Use __ctx with uc_flags.
31017 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31018 __ctx with uc_flags.
31019 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31020 (ucontext_t): Use __ctx with uc_flags.
31021 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31022 __ctx with uc_flags.
31023
31024 2017-08-09 Florian Weimer <fweimer@redhat.com>
31025
31026 [BZ #21932]
31027 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31028 before early return.
31029
31030 2017-08-09 Andreas Schwab <schwab@suse.de>
31031
31032 [BZ #21041]
31033 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31034 renamed alias.
31035
31036 [BZ #21041]
31037 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31038 tst-compat-forwarder.
31039 (modules-names): Add tst-compat-forwarder-mod.
31040 ($(objpfx)tst-compat-forwarder): Depend on
31041 $(objpfx)tst-compat-forwarder-mod.so.
31042 * nptl/tst-compat-forwarder.c: New file.
31043 * nptl/tst-compat-forwarder-mod.c: New file.
31044
31045 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31046
31047 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31048 comments.
31049
31050 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31051 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31052 memcpy_falkor.
31053 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31054 Bump.
31055 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31056 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31057 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31058 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31059 Add falkor.
31060 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31061 New macro.
31062
31063 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31064
31065 [BZ #759]
31066 * manual/setjmp.texi (getcontex): Document uc_stack value
31067 compatibility differences.
31068
31069 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31070
31071 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31072 (old_malloc_hook): Likewise.
31073 (old_memalign_hook): Likewise.
31074 (old_realloc_hook): Likewise.
31075 (struct hdr): Likewise.
31076 (flood): Likewise.
31077 (freehook): Likewise.
31078 (mallochook): Likewise.
31079 (memalignhook): Likewise.
31080 (reallochook): Likewise.
31081 (mprobe): Likewise.
31082 * malloc/mtrace.c (mallwatch): Likewise.
31083 (tr_old_free_hook): Likewise.
31084 (tr_old_malloc_hook): Likewise.
31085 (tr_old_realloc_hook): Likewise.
31086 (tr_old_memalign_hook): Likewise.
31087 (tr_where): Likewise.
31088 (lock_and_info): Likewise.
31089 (tr_freehook): Likewise.
31090 (tr_mallochook): Likewise.
31091 (tr_reallochook): Likewise.
31092 (tr_memalignhook): Likewise.
31093 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31094 * misc/mmap.c (__mmap): Likewise.
31095 * misc/mmap64.c (__mmap64): Likewise.
31096 * misc/mprotect.c (__mprotect): Likewise.
31097 * misc/msync.c (msync): Likewise.
31098 * misc/munmap.c (__munmap): Likewise.
31099 * posix/posix_madvise.c (posix_madvise): Likewise.
31100 * socket/send.c (__send): Likewise.
31101 * socket/sendto.c (__sendto): Likewise.
31102 * socket/setsockopt.c (__setsockopt): Likewise.
31103 * string/memcmp.c (__ptr_t): Remove macro.
31104 (MEMCMP): Use void * instead of ptr_t.
31105 * string/memrchr.c (__ptr_t): Remove macro.
31106 (__memrchr): Use void * instead of ptr_t.
31107 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31108 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31109 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31110 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31111 * sysdeps/mach/msync.c (msync): Likewise.
31112 * sysdeps/mach/munmap.c (__munmap): Likewise.
31113 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31114 Likewise.
31115 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31116 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31117 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31118 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31119 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31120 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31121 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31122 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31123 Likewise.
31124 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31125 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31126 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31127 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31128 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31129 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31130 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31131 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31132 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31133 Likewise.
31134 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31135 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31136 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31137 (MEMCMP): Use void * instead of ptr_t.
31138 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31139 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31140
31141 2017-08-08 Florian Weimer <fweimer@redhat.com>
31142
31143 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31144 return statement.
31145
31146 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31147
31148 [BZ #21913]
31149 * csu/libc-tls.c: Include <startup.h> first.
31150 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31151 * elf/dl-tunables.c: Include <startup.h> first.
31152 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31153 * sysdeps/generic/startup.h: New file.
31154 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31155 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31156 (I386_USE_SYSENTER): New. Defined to 0.
31157
31158 2017-08-08 Andreas Schwab <schwab@suse.de>
31159
31160 [BZ #21041]
31161 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31162 * nptl/pt-system.c (system): Likewise.
31163
31164 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31165
31166 [BZ #21780]
31167 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31168 EOPNOTSUPP.
31169 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31170 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31171 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31172 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31173 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31174 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31175 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31176
31177 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31178
31179 [BZ #21899]
31180 * bits/sigaction.h (struct sigaction): Define sa_handler and
31181 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31182 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31183 [__USE_XOPEN_EXTENDED].
31184 (SA_RESTART): Likewise.
31185 (SA_NODEFER): Likewise.
31186 (SA_RESETHAND): Likewise.
31187 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31188 (struct sigaction): Define sa_handler and sa_sigaction using union
31189 also for [__USE_XOPEN_EXTENDED].
31190 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31191 [__USE_XOPEN_EXTENDED].
31192 (SA_RESTART): Likewise.
31193 (SA_NODEFER): Likewise.
31194 (SA_RESETHAND): Likewise.
31195 * sysdeps/unix/sysv/linux/bits/sigaction.h
31196 (struct sigaction): Define sa_handler and sa_sigaction using union
31197 also for [__USE_XOPEN_EXTENDED].
31198 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31199 [__USE_XOPEN_EXTENDED].
31200 (SA_RESTART): Likewise.
31201 (SA_NODEFER): Likewise.
31202 (SA_RESETHAND): Likewise.
31203 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31204 (struct sigaction): Define sa_handler and sa_sigaction using union
31205 also for [__USE_XOPEN_EXTENDED].
31206 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31207 [__USE_XOPEN_EXTENDED].
31208 (SA_RESTART): Likewise.
31209 (SA_NODEFER): Likewise.
31210 (SA_RESETHAND): Likewise.
31211 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31212 (struct sigaction): Define sa_handler and sa_sigaction using union
31213 also for [__USE_XOPEN_EXTENDED].
31214 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31215 [__USE_XOPEN_EXTENDED].
31216 (SA_RESTART): Likewise.
31217 (SA_NODEFER): Likewise.
31218 (SA_RESETHAND): Likewise.
31219 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31220 (struct sigaction): Define sa_handler and sa_sigaction using union
31221 also for [__USE_XOPEN_EXTENDED].
31222 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31223 [__USE_XOPEN_EXTENDED].
31224 (SA_RESTART): Likewise.
31225 (SA_NODEFER): Likewise.
31226 (SA_RESETHAND): Likewise.
31227 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31228 (struct sigaction): Define sa_handler and sa_sigaction using union
31229 also for [__USE_XOPEN_EXTENDED].
31230 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31231 [__USE_XOPEN_EXTENDED].
31232 (SA_RESTART): Likewise.
31233 (SA_NODEFER): Likewise.
31234 (SA_RESETHAND): Likewise.
31235 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31236 (struct sigaction): Define sa_handler and sa_sigaction using union
31237 also for [__USE_XOPEN_EXTENDED].
31238 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31239 [__USE_XOPEN_EXTENDED].
31240 (SA_RESTART): Likewise.
31241 (SA_NODEFER): Likewise. Define directly rather than as alias.
31242 (SA_RESETHAND): Likewise.
31243 (SA_INTERRUPT): Define only for [__USE_MISC].
31244 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31245 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31246 [__USE_MISC].
31247 (SA_STACK): Define only for [__USE_MISC].
31248 * sysdeps/unix/sysv/linux/tile/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 (SA_NOPTRACE): Define only for [__USE_MISC].
31257
31258 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31259 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31260 (struct catalog_info): Likewise.
31261 * inet/htontest.c (lo): Likewise.
31262 (foo): Likewise.
31263 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31264 * inet/inet_net.c (inet_network): Likewise.
31265 * inet/inet_netof.c (inet_netof): Likewise.
31266 * inet/rcmd.c (__ivaliduser): Likewise.
31267 (iruserok): Likewise.
31268 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31269 * locale/programs/locale-spec.c (locale_special): Likewise.
31270 * nis/nis_findserv.c (struct findserv_req): Likewise.
31271 (__nis_findfastest_with_timeout): Likewise.
31272 * nss/test-netdb.c (test_network): Likewise.
31273 * resolv/inet_neta.c (inet_neta): Likewise.
31274 * resolv/ns_date.c (ns_datetosecs): Likewise.
31275 (SECS_PER_DAY): Likewise.
31276 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31277 Likewise.
31278 * resolv/res_comp.c (__putlong): Likewise.
31279 (__putshort): Likewise.
31280 (_getlong): Likewise.
31281 (_getshort): Likewise.
31282 * resolv/res_debug.c (p_time): Likewise.
31283 (precsize_ntoa): Likewise.
31284 (precsize_aton): Likewise.
31285 (latlon2ul): Likewise.
31286 (loc_aton): Likewise.
31287 (loc_ntoa): Likewise.
31288 * resolv/res_hconf.c (struct netaddr): Likewise.
31289 (_res_hconf_reorder_addrs): Likewise.
31290 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31291 (clnttcp_control): Likewise.
31292 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31293 (clntudp_control): Likewise.
31294 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31295 (clntunix_control): Likewise.
31296 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31297 * sunrpc/rpc/auth.h (union des_block): Likewise.
31298 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31299 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31300 (xdrrec_create): Likewise.
31301 (xdrrec_endofrecord): Likewise.
31302 (flush_out): Likewise.
31303 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31304 (xdrstdio_putlong): Likewise.
31305 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31306 Likewise.
31307
31308 * misc/sys/cdefs.h (__long_double_t): Remove.
31309 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31310 instead of __long_double_t,
31311 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31312
31313 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31314
31315 * benchtests/scripts/compare_strings.py: Avoid display error when
31316 running on a text terminal.
31317
31318 * benchtests/scripts/compare_strings.py (main): Add an
31319 optional -base option.
31320 (process_results): New argument base_func.
31321
31322 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31323 hardcoding memcpy.
31324 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31325 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31326
31327 2017-08-07 Andreas Schwab <schwab@suse.de>
31328
31329 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31330 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31331 * intl/Makefile ($(objpfx)tst-gettext.out)
31332 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31333 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31334 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31335 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31336 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31337 * posix/Makefile ($(objpfx)globtest.out)
31338 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31339 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31340 ($(objpfx)tst-printf.out): Likewise.
31341 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31342 ($(objpfx)tst-setcontext3.out): Likewise.
31343
31344 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31345
31346 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31347 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31348 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31349 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31350 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31351 and mptan-fma.
31352 (CFLAGS-doasin-fma.c): New.
31353 (CFLAGS-dosincos-fma.c): Likewise.
31354 (CFLAGS-e_asin-fma.c): Likewise.
31355 (CFLAGS-e_atan2-fma.c): Likewise.
31356 (CFLAGS-e_exp-fma.c): Likewise.
31357 (CFLAGS-e_log-fma.c): Likewise.
31358 (CFLAGS-e_pow-fma.c): Likewise.
31359 (CFLAGS-halfulp-fma.c): Likewise.
31360 (CFLAGS-mpa-fma.c): Likewise.
31361 (CFLAGS-mpatan-fma.c): Likewise.
31362 (CFLAGS-mpatan2-fma.c): Likewise.
31363 (CFLAGS-mpexp-fma.c): Likewise.
31364 (CFLAGS-mplog-fma.c): Likewise.
31365 (CFLAGS-mpsqrt-fma.c): Likewise.
31366 (CFLAGS-mptan-fma.c): Likewise.
31367 (CFLAGS-s_atan-fma.c): Likewise.
31368 (CFLAGS-sincos32-fma.c): Likewise.
31369 (CFLAGS-slowexp-fma.c): Likewise.
31370 (CFLAGS-slowpow-fma.c): Likewise.
31371 (CFLAGS-s_sin-fma.c): Likewise.
31372 (CFLAGS-s_tan-fma.c): Likewise.
31373 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31374 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31375 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31376 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31377 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31378 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31379 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31380 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31381 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31382 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31383 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31384 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31385 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31386 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31387 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31388 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31389 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31390 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31391 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31392 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31393 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31394 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31395 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31396 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31397 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31398 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31399 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31400 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31401 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31402 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31403 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31404
31405 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31406
31407 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31408 (min_of_type_f): New macro.
31409 (min_of_type_): Likewise.
31410 (min_of_type_l): Likewise.
31411 (min_of_type_f128): Likewise.
31412 (min_of_type): Define using __MATH_TG and taking an expression
31413 argument.
31414 (math_check_force_underflow): Pass expression instead of type to
31415 min_of_type.
31416 (math_check_force_underflow_nonneg): Likewise.
31417
31418 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31419
31420 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31421 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31422 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31423
31424 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31425
31426 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31427 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31428 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31429 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31430 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31431 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31432 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31433 memmove_chk-nonshared and memset_chk-nonshared
31434 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31435 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31436 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31437 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31438 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31439 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31440 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31441 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31442 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31443 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31444 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31445 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31446 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31447 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31448 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31449 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31450 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31451 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31452 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31453 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31454 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31455 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31456 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31457 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31458 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31459 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31460 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31461 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31462 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31463 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31464 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31465 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31466 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31467 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31468 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31469 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31470 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31471 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31472 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31473 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31474 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31475 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31476 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31477 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31478 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31479 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31480 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31481 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31482 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31483 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31484 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31485 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31486 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31487 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31488 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31489 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31490 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31491 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31492 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31493 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31494 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31495 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31496 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31497 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31498 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31499 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31500 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31501 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31502 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31503 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31504 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31505 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31506 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31507 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31508 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31509 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31510 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31511 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31512 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31513 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31514 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31515 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31516 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31517 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31518 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31519 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31520 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31521 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31522 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31523 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31524 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31525 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31526 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31527 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31528 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31529 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31530 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31531 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31532 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31533 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31534 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31535 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31536 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31537 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31538 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31539 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31540 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31541 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31542
31543 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31544
31545 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31546 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31547 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31548 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31549 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31550 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31551 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31552 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31553 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31554 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31555 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31556 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31557 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31558 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31559 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31560 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31561 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31562 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31563 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31564 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31565 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31566 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31567 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31568 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31569 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31570 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31571 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31572 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31573 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31574 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31575 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31576 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31577 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31578 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31579 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31580 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31581 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31582 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31583 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31584 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31585 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31586 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31587 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31588 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31589 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31590 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31591 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31592 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31593 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31594 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31595 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31596 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31597 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31598 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31599 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31600 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31601 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31602 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31603 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31604 ...
31605 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31606 Don't include <sysdep.h> nor <init-arch.h>.
31607 (_ZGVbN2v_cos): Removed.
31608 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31609 ...
31610 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31611 Don't include <sysdep.h> nor <init-arch.h>.
31612 (_ZGVdN4v_cos): Removed.
31613 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31614 ...
31615 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31616 Don't include <sysdep.h> nor <init-arch.h>.
31617 (_ZGVeN8v_cos): Removed.
31618 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31619 ...
31620 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31621 Don't include <sysdep.h> nor <init-arch.h>.
31622 (_ZGVbN2v_exp): Removed.
31623 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31624 ...
31625 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31626 Don't include <sysdep.h> nor <init-arch.h>.
31627 (_ZGVdN4v_exp): Removed.
31628 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31629 ...
31630 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31631 Don't include <sysdep.h> nor <init-arch.h>.
31632 (_ZGVeN8v_exp): Removed.
31633 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31634 ...
31635 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31636 Don't include <sysdep.h> nor <init-arch.h>.
31637 (_ZGVbN2v_log): Removed.
31638 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31639 ...
31640 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31641 Don't include <sysdep.h> nor <init-arch.h>.
31642 (_ZGVdN4v_log): Removed.
31643 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31644 ...
31645 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31646 Don't include <sysdep.h> nor <init-arch.h>.
31647 (_ZGVeN8v_log): Removed.
31648 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31649 ...
31650 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31651 Don't include <sysdep.h> nor <init-arch.h>.
31652 (_ZGVbN2vv_pow): Removed.
31653 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31654 ...
31655 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31656 Don't include <sysdep.h> nor <init-arch.h>.
31657 (_ZGVdN4vv_pow): Removed.
31658 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31659 ...
31660 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31661 Don't include <sysdep.h> nor <init-arch.h>.
31662 (_ZGVeN8vv_pow): Removed.
31663 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31664 ...
31665 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31666 Don't include <sysdep.h> nor <init-arch.h>.
31667 (_ZGVbN2v_sin): Removed.
31668 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31669 ...
31670 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31671 Don't include <sysdep.h> nor <init-arch.h>.
31672 (_ZGVbN4v_sin): Removed.
31673 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31674 ...
31675 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31676 Don't include <sysdep.h> nor <init-arch.h>.
31677 (_ZGVbN8v_sin): Removed.
31678 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31679 ...
31680 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31681 Don't include <sysdep.h> nor <init-arch.h>.
31682 (_ZGVbN2vvv_sincos): Removed.
31683 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31684 ...
31685 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31686 Don't include <sysdep.h> nor <init-arch.h>.
31687 (_ZGVdN4vvv_sincos): Removed.
31688 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31689 ...
31690 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31691 Don't include <sysdep.h> nor <init-arch.h>.
31692 (_ZGVeN8vvv_sincos): Removed.
31693 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31694 ...
31695 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31696 Don't include <sysdep.h> nor <init-arch.h>.
31697 (_ZGVeN16v_cosf): Removed.
31698 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31699 ...
31700 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31701 Don't include <sysdep.h> nor <init-arch.h>.
31702 (_ZGVbN4v_cosf): Removed.
31703 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31704 ...
31705 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31706 Don't include <sysdep.h> nor <init-arch.h>.
31707 (_ZGVdN8v_cosf): Removed.
31708 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31709 ...
31710 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31711 Don't include <sysdep.h> nor <init-arch.h>.
31712 (_ZGVeN16v_expf): Removed.
31713 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31714 ...
31715 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31716 Don't include <sysdep.h> nor <init-arch.h>.
31717 (_ZGVbN4v_expf): Removed.
31718 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31719 ...
31720 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31721 Don't include <sysdep.h> nor <init-arch.h>.
31722 (_ZGVdN8v_expf): Removed.
31723 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31724 ...
31725 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31726 Don't include <sysdep.h> nor <init-arch.h>.
31727 (_ZGVeN16v_logf): Removed.
31728 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31729 ...
31730 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31731 Don't include <sysdep.h> nor <init-arch.h>.
31732 (_ZGVbN4v_logf): Removed.
31733 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31734 ...
31735 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31736 Don't include <sysdep.h> nor <init-arch.h>.
31737 (_ZGVdN8v_logf): Removed.
31738 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31739 ...
31740 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31741 Don't include <sysdep.h> nor <init-arch.h>.
31742 (_ZGVeN16vv_powf): Removed.
31743 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31744 ...
31745 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31746 Don't include <sysdep.h> nor <init-arch.h>.
31747 (_ZGVbN4vv_powf): Removed.
31748 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31749 ...
31750 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31751 Don't include <sysdep.h> nor <init-arch.h>.
31752 (_ZGVdN8vv_powf): Removed.
31753 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31754 ...
31755 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31756 Don't include <sysdep.h> nor <init-arch.h>.
31757 (_ZGVeN16vvv_sincosf): Removed.
31758 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31759 ...
31760 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31761 Don't include <sysdep.h> nor <init-arch.h>.
31762 (_ZGVbN4vvv_sincosf): Removed.
31763 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31764 ...
31765 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31766 Don't include <sysdep.h> nor <init-arch.h>.
31767 (_ZGVdN8vvv_sincosf): Removed.
31768 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31769 ...
31770 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31771 Don't include <sysdep.h> nor <init-arch.h>.
31772 (_ZGVeN16v_sinf): Removed.
31773 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31774 ...
31775 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31776 Don't include <sysdep.h> nor <init-arch.h>.
31777 (_ZGVbN4v_sinf): Removed.
31778 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31779 ...
31780 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31781 Don't include <sysdep.h> nor <init-arch.h>.
31782 (_ZGVdN8v_sinf): Removed.
31783
31784 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31785
31786 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31787 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31788 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31789 s_rint-sse4_1 and s_rintf-sse4_1.
31790 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31791 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31792 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31793 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31794 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31795 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31796 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31797 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31798 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31799 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31800 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31801 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31802 (__ceil): Removed.
31803 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31804 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31805 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31806 (__ceilf): Removed.
31807 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31808 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31809 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31810 (__floor): Removed.
31811 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31812 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31813 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31814 (__floorf): Removed.
31815 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31816 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31817 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31818 (__nearbyint): Removed.
31819 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31820 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31821 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31822 (__nearbyintf): Removed.
31823 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31824 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31825 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31826 (__rint): Removed.
31827 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31828 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31829 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31830 (__rintf): Removed.
31831
31832 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31833
31834 * sysdeps/i386/start.S (_start): Check Check PIC instead of
31835 SHARED. Avoid dynamic relocation against main in static PIE.
31836
31837 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31838
31839 [BZ #21815]
31840 * elf/Makefile (CFLAGS-tst-prelink.c): New.
31841 (LDFLAGS-tst-prelink): Likewise.
31842
31843 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31844
31845 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
31846 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
31847 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
31848 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
31849 (INTERNAL_SYSCALL_NCS): Likewise.
31850 (LOADARGS_1): Likewise.
31851 (LOADARGS_5): Likewise.
31852 (RESTOREARGS_1): Likewise.
31853 (RESTOREARGS_5): Likewise.
31854
31855 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31856
31857 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
31858 (MEMPCPY_SYMBOL): Likewise.
31859 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
31860 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
31861 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
31862 in libc.a.
31863 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31864 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
31865 Likewise.
31866 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
31867 (__hidden_ver1): Don't use in libc.a.
31868 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
31869 (__mempcpy): Don't create a weak alias in libc.a.
31870 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
31871 libc.a.
31872 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
31873 (__hidden_ver1): Don't use in libc.a.
31874
31875 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31876
31877 * config.make.in (have-insert): New.
31878 * configure.ac (libc_cv_insert): New. Set to yes if linker
31879 supports INSERT in linker script.
31880 (AC_SUBST(libc_cv_insert): New.
31881 * configure: Regenerated.
31882 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
31883 if $(have-insert) == yes.
31884
31885 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31886
31887 * elf/Makefile (tests): Add vismain only if
31888 $(have-protected-data) == yes.
31889 (tests-pie): Likewise.
31890
31891 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31892
31893 [BZ #21871]
31894 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
31895 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
31896
31897 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31898
31899 [BZ #21790]
31900 * sysdeps/i386/i586/memset.S
31901 (__memset_zero_constant_len_parameter): Removed.
31902 * sysdeps/i386/i686/memset.S
31903 (__memset_zero_constant_len_parameter): Likewise.
31904 * sysdeps/i386/i686/multiarch/memset_chk.S
31905 (__memset_zero_constant_len_parameter): Likewise.
31906 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
31907 Likewise.
31908
31909 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31910
31911 * stdlib/getentropy.c (getentropy): Change return type to int.
31912
31913 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31914
31915 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
31916
31917 2017-08-03 Joseph Myers <joseph@codesourcery.com>
31918
31919 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
31920 u_intN_t.
31921 * math/s_nexttowardf.c (__nexttowardf): Likewise.
31922 * sysdeps/generic/math_private.h (ieee_double_shape_type):
31923 Likewise.
31924 (ieee_float_shape_type): Likewise.
31925 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
31926 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
31927 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
31928 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
31929 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
31930 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
31931 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
31932 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
31933 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
31934 Likewise.
31935 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
31936 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
31937 (__ieee754_yn): Likewise.
31938 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
31939 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
31940 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
31941 Likewise.
31942 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
31943 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
31944 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
31945 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
31946 (__erfc): Likewise.
31947 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
31948 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
31949 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
31950 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
31951 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
31952 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
31953 Likewise.
31954 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
31955 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
31956 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
31957 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
31958 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
31959 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
31960 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
31961 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
31962 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
31963 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
31964 (__issignaling): Likewise.
31965 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
31966 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
31967 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
31968 Likewise.
31969 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31970 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
31971 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
31972 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
31973 Likewise.
31974 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
31975 Likewise.
31976 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
31977 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
31978 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
31979 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
31980 (__erfcf): Likewise.
31981 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
31982 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
31983 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
31984 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
31985 Likewise.
31986 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
31987 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
31988 Likewise.
31989 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
31990 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
31991 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
31992 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
31993 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
31994 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
31995 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
31996 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
31997 Likewise.
31998 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
31999 Likewise.
32000 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32001 Likewise.
32002 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32003 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32004 Likewise.
32005 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32006 Likewise.
32007 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32008 (__ieee754_ynl): Likewise.
32009 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32010 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32011 Likewise.
32012 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32013 Likewise.
32014 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32015 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32016 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32017 Likewise.
32018 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32019 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32020 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32021 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32022 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32023 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32024 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32025 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32026 Likewise.
32027 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32028 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32029 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32030 Likewise.
32031 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32032 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32033 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32034 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32035 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32036 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32037 Likewise.
32038 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32039 Likewise.
32040 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32041 Likewise.
32042 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32043 Likewise.
32044 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32045 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32046 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32047 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32048 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32049 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32050 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32051 Likewise.
32052 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32053 Likewise.
32054 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32055 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32056 Likewise.
32057 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32058 (__ieee754_remainderl): Likewise.
32059 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32060 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32061 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32062 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32063 Likewise.
32064 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32065 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32066 Likewise.
32067 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32068 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32069 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32070 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32071 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32072 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32073 Likewise.
32074 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32075 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32076 (__ieee754_y0l): Likewise.
32077 (pzero): Likewise.
32078 (qzero): Likewise.
32079 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32080 (__ieee754_y1l): Likewise.
32081 (pone): Likewise.
32082 (qone): Likewise.
32083 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32084 (__ieee754_ynl): Likewise.
32085 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32086 (__ieee754_lgammal_r): Likewise.
32087 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32088 Likewise.
32089 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32090 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32091 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32092 (__erfcl): Likewise.
32093 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32094 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32095 Likewise.
32096 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32097 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32098 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32099 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32100 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32101 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32102 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32103 Likewise.
32104 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32105 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32106 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32107 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32108 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32109 Likewise.
32110 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32111 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32112 Likewise.
32113 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32114 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32115 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32116 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32117 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32118
32119 2017-08-03 Florian Weimer <fweimer@redhat.com>
32120
32121 [BZ #21885]
32122 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32123 on memory allocation failure.
32124
32125 2017-08-03 Alan Modra <amodra@gmail.com>
32126
32127 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32128 tst-tlsopt-powerpc.c with function name change and no test harness.
32129 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32130 Call tls_get_addr_opt_test.
32131 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32132 (modules-names): Add mod-tlsopt-powerpc.
32133 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32134 (tst-tlsopt-powerpc): Depend on .so.
32135 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32136 define. Expand use in TLS_GD and TLS_LD.
32137
32138 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32139
32140 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32141 function.
32142 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32143
32144 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32145
32146 [BZ #21686]
32147 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32148 comparing size with that of double.
32149 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32150 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32151 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32152 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32153 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32154 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32155 unsigned __int128 types.
32156
32157 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32158
32159 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32160 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32161 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32162 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32163 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32164
32165 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32166
32167 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32168
32169 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32170
32171 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32172 of SHARED.
32173 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32174 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32175 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32176 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32177 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32178 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32179 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32180
32181 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32182
32183 [BZ #21685]
32184 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32185 bit-field expressions passed to sizeof or typeof.
32186 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32187 (__TGMATH_F128): Likewise.
32188 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32189 (__TGMATH_CF128): Likewise.
32190 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32191 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32192 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32193 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32194 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32195 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32196 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32197 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32198 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32199 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32200 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32201 (__TGMATH_UNARY_IMAG): Likewise.
32202 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32203 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32204 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32205 type.
32206 (define_vars_for_type): Handle bit_field type specially.
32207 (Tests.__init__): Declare structure with bit-field element.
32208
32209 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32210
32211 [BZ #21791]
32212 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32213 (MEMCPY_CHK): Define only if SHARED is defined.
32214 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32215 Likewise.
32216 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32217 Likewise.
32218
32219 See ChangeLog.18 for earlier changes.