]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Fix implicit-fallthrough warnings in tst-setjmp.c.
[thirdparty/glibc.git] / ChangeLog
1 2019-02-15 Joseph Myers <joseph@codesourcery.com>
2
3 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
4
5 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6
7 * scripts/test_printers_common.py: Set TERM to a known harmless
8 value.
9
10 2019-02-14 Joseph Myers <joseph@codesourcery.com>
11
12 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
13 (xdr_u_int): Likewise.
14 (xdr_enum): Likewise.
15 (xdr_bytes): Reword fall-through comment.
16 (xdr_string): Likewise.
17
18 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19
20 [BZ #2421]
21 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
22 (tests): Add tst-join8 tst-join9.
23 * nptl/lll_timedwait_tid.c: Remove file.
24 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
25 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
26 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
27 * nptl/pthread_join_common.c (timedwait_tid): New function.
28 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
29 is set.
30 * nptl/tst-join5.c (thread_join): New function.
31 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
32 check.
33 * nptl/tst-join8.c: New file.
34 * nptl/tst-join9.c: Likewise.
35 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
36 lll_futex_timed_wait_cancel): Add generic macros.
37 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
38 Remove definitions.
39 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
40 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
41 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
42 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
43 Remove function.
44 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
45 Likewise.
46 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
47 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
48 (lll_futex_timed_wait_cancel): New macro.
49
50 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
51
52 * benchtests/Makefile: Add malloc-simple benchmark.
53 * benchtests/bench-malloc-simple.c: New benchmark.
54
55 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
56
57 * benchtests/bench-memmove.c (do_one_test): Remove unused
58 ORIG_SRC.
59 (do_test): Adjust.
60 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
61 ORIG_SRC.
62 (do_test): Adjust.
63
64 2019-01-13 Jim Wilson <jimw@sifive.com>
65
66 [BZ #24040]
67 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
68 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
69 (func): New.
70 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
71 call func directly.
72 * nptl/Makefile (tests): Add tst-unwind-thread.
73 (CFLAGS-tst-unwind-thread.c): Define.
74 * nptl/tst-unwind-thread.c: New file.
75 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
76 as undefined.
77
78 2019-02-13 Joseph Myers <joseph@codesourcery.com>
79
80 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
81 comment wording.
82 * nis/nis_call.c (__do_niscall3): Likewise.
83
84 * catgets/gencat.c (normalize_line): Use braces around empty
85 'else' body.
86 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
87 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
88 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
89 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
90 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
91 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
92 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
93 definition.
94
95 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
96 execlp returns.
97
98 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
99
100 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
101 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
102 * benchtests/bench-strchr.c (stupid_strchr): Remove.
103 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
104 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
105 * benchtests/bench-strlen.c (builtin_strlen): Remove.
106 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
107 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
108 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
109 * benchtests/bench-strspn.c (stupid_strspn): Remove.
110 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
111 * benchtests/bench-bcopy.c: Delete file.
112 * benchtests/bench-bzero.c: Likewise.
113 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
114 (simple_memccpy): Remove.
115 (generic_memccpy): Add function.
116 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
117 * benchtests/bench-memmove.c (simple_bcopy): Remove.
118 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
119 (generic_mempcpy): Add new function.
120 * benchtests/bench-memset.c (simple_bzero): Remove.
121 (builtin_bzero): Remove.
122 (builtin_memset): Remove.
123 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
124 (generic_rawmemchr): Add new function.
125
126 2019-02-12 Florian Weimer <fweimer@redhat.com>
127
128 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
129
130 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
131
132 [BZ #24122]
133 * elf/Makefile (tests): Add tst-audit13.
134 (modules-names): Add tst-audit13mod1.
135 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
136 rule.
137 * elf/tst-audit13.c: New file.
138 * elf/tst-audit13mod1.c: Likewise.
139
140 2019-02-12 Florian Weimer <fweimer@redhat.com>
141
142 [BZ #24122]
143 * elf/rtld.c (unload_audit_module): New function.
144 (report_audit_module_load_error): Likewise.
145 (load_audit_module): Likewise. Extracted from dl_main. Call
146 _dl_close if the laversion symbol cannot be found. Use early
147 returns for error handling. Add malloc error check. Check for a
148 zero return value from la_version. Remove spurious comment about
149 static TLS initialization. Remove useless casts.
150 (notify_audit_modules_of_loaded_object): New function. Extracted
151 from dl_main.
152 (load_audit_module): Likewise.
153 (dl_main): Call load_audit_modules.
154
155 2019-02-12 Joseph Myers <joseph@codesourcery.com>
156
157 * elf/dl-exception.c (_dl_exception_create_format): Add
158 fall-through comments.
159 * elf/ldconfig.c (parse_conf_include): Likewise.
160 * elf/rtld.c (print_statistics): Likewise.
161 * locale/programs/charmap.c (parse_charmap): Likewise.
162 * misc/mntent_r.c (__getmntent_r): Likewise.
163 * posix/wordexp.c (parse_arith): Likewise.
164 (parse_backtick): Likewise.
165 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
166 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
167 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
168
169 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
170
171 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
172 Use float instead of double.
173
174 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
175
176 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
177
178 2019-02-08 Joseph Myers <joseph@codesourcery.com>
179
180 * sysdeps/powerpc/bits/mathinline.h: Remove.
181
182 2019-02-08 Florian Weimer <fweimer@redhat.com>
183
184 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
185 * math/bits/math-finite.h: Move to ...
186 * bits/math-finite.h: ... here.
187
188 2019-02-08 Florian Weimer <fweimer@redhat.com>
189
190 * sysdeps/generic/bits/unistd_ext.h: Move to ...
191 * bits/unistd_ext.h: here.
192
193 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
194
195 [BZ #21915]
196 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
197 * nss/tst-nss-files-hosts-long.c: New file.
198 * nss/tst-nss-files-hosts-long.root: New directory.
199 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
200 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
201
202 2019-02-08 Florian Weimer <fweimer@redhat.com>
203
204 * include/bits/unistd_ext.h: Remove file.
205 * posix/bits/unistd_ext.h: Move to ...
206 * sysdeps/generic/bits/unistd_ext.h: ... here.
207
208 2019-02-08 Florian Weimer <fweimer@redhat.com>
209
210 * include/bits/unistd_ext.h: New file.
211
212 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
213
214 * time/tst-strftime2.c: Use array_length macros instead of magic
215 numbers.
216
217 2019-02-08 Florian Weimer <fweimer@redhat.com>
218
219 [BZ #24161]
220 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
221 argument.
222 * nptl/register-atfork.c (__run_fork_handlers): Only perform
223 locking if the new do_locking argument is true.
224 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
225 __run_fork_handlers.
226
227 2019-02-08 Florian Weimer <fweimer@redhat.com>
228
229 [BZ #6399]
230 Linux: Add gettid system call wrapper.
231 * posix/Makefile (headers): Add bits/unistd_ext.h.
232 * posix/bits/unistd_ext.h: New file.
233 * posix/unistd.h: Include it.
234 * manual/process.texi (Process Identification): Document gettid.
235 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
236 tst-gettid, tst-gettid-kill.
237 (tst-gettid): Link with $(shared-thread-library).
238 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
239 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
240 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
241 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
242 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
243 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
244 Add gettid.
245 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
246 Likewise.
247 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
248 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
249 Likewise.
250 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
251 Likewise.
252 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
253 Likewise.
254 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
255 Likewise.
256 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
257 Likewise.
258 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
259 Likewise.
260 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
261 Likewise.
262 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
263 (GLIBC_2.30): Likewise.
264 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
265 (GLIBC_2.30): Likewise.
266 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
267 (GLIBC_2.30): Likewise.
268 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
269 (GLIBC_2.30): Likewise.
270 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
271 Likewise.
272 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
273 (GLIBC_2.30): Likewise.
274 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
275 (GLIBC_2.30): Likewise.
276 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
277 (GLIBC_2.30): Likewise.
278 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
279 (GLIBC_2.30): Likewise.
280 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
281 Likewise.
282 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
283 Likewise.
284 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
285 Likewise.
286 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
287 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
288 Likewise.
289 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
290 Likewise.
291 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
292 Likewise.
293 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
294 Likewise.
295 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
296
297 2019-02-07 Florian Weimer <fweimer@redhat.com>
298
299 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
300 compatibility symbols.
301
302 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
303
304 [BZ #24180]
305 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
306 Add compiler barriers and comments.
307
308 2019-02-07 Florian Weimer <fweimer@redhat.com>
309
310 * include/array_length.h (array_length): Do not use a statement
311 expression and _Static_assert, so that array_length can be used at
312 file scope and as a constant expression.
313
314 2019-02-07 Florian Weimer <fweimer@redhat.com>
315
316 * support/xdlfcn.h (xdlmopen): Declare.
317 * support/xdlmopen.c: New file.
318 * support/Makefile (libsupport-routines): Add xdlmopen.
319
320 2019-02-06 Joseph Myers <joseph@codesourcery.com>
321
322 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
323 before return type, without separate inline.
324 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
325 * elf/dl-tunables.h (tunable_is_name): Likewise.
326 * malloc/malloc.c (do_set_trim_threshold): Likewise.
327 (do_set_top_pad): Likewise.
328 (do_set_mmap_threshold): Likewise.
329 (do_set_mmaps_max): Likewise.
330 (do_set_mallopt_check): Likewise.
331 (do_set_perturb_byte): Likewise.
332 (do_set_arena_test): Likewise.
333 (do_set_arena_max): Likewise.
334 (do_set_tcache_max): Likewise.
335 (do_set_tcache_count): Likewise.
336 (do_set_tcache_unsorted_limit): Likewise.
337 * nis/nis_subr.c (count_dots): Likewise.
338 * nptl/allocatestack.c (advise_stack_range): Likewise.
339 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
340 (do_sin): Likewise.
341 (reduce_sincos): Likewise.
342 (do_sincos): Likewise.
343 * sysdeps/unix/sysv/linux/x86/elision-conf.c
344 (do_set_elision_enable): Likewise.
345 (TUNABLE_CALLBACK_FNDECL): Likewise.
346
347 2019-02-06 Florian Weimer <fweimer@redhat.com>
348
349 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
350 (xdlsym): Use dlerror to detect a NULL symbol.
351
352 2019-02-06 Florian Weimer <fweimer@redhat.com>
353
354 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
355 <stap-probe.h>.
356 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
357
358 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
359
360 * libio/tst-bz24153.c (wide): Use wide char format specifier.
361
362 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
363
364 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
365 __wmemcmp and weak alias to wmemcmp.
366
367 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
368
369 [BZ #23403]
370 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
371 TLS_TCB_AT_TP tls variant.
372 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
373 Add alignment checks.
374 * support/Makefile (libsupport-routines): Add xposix_memalign and
375 xpthread_setstack.
376 * support/support.h: Add xposix_memalign.
377 * support/xthread.h: Add xpthread_attr_setstack.
378 * support/xposix_memalign.c: New File.
379 * support/xpthread_attr_setstack.c: Likewise.
380
381 2019-02-05 Florian Weimer <fweimer@redhat.com>
382
383 [BZ #24164]
384 arm: Use "nr" constraint for Systemtap probes, to avoid the
385 compiler using memory operands for constants, due to the "o"
386 alternative in the default "nor" constraint.
387 * include/stap-probe.h [USE_STAP_PROBE]: Include
388 <stap-probe-machine.h>
389 * sysdeps/generic/stap-probe-machine.h: New file.
390 * sysdeps/arm/stap-probe-machine.h: Likewise.
391
392 2019-02-04 Joseph Myers <joseph@codesourcery.com>
393
394 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
395 with 0, not tcache->entries[tc_idx].
396
397 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
398 once.
399
400 2019-02-04 Andreas Schwab <schwab@suse.de>
401
402 [BZ #16976]
403 [BZ #17396]
404 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
405 looking up collating elements match against (wide) character
406 sequence instead of name. Correct alignment adjustment.
407 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
408 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
409 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
410 (LOCALES): Add cs_CZ.ISO-8859-2.
411 * posix/tst-fnmatch4.c: New file.
412 * posix/tst-fnmatch5.c: New file.
413 * include/wchar.h (__wmemcmp): Declare.
414 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
415 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
416 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
417 * sysdeps/s390/wmemcmp.c: Likewise.
418
419 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
420
421 [BZ #24155]
422 CVE-2019-7309
423 * NEWS: Updated for CVE-2019-7309.
424 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
425 upper 32 bits of RDX register for x32. Use unsigned Jcc
426 instructions, instead of signed.
427 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
428 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
429
430 2019-02-04 Florian Weimer <fweimer@redhat.com>
431
432 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
433 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
434 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
435 Likewise.
436 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
437 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
438 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
439 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
440 Likewise.
441 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
442 Likewise.
443 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
444 Likewise.
445 (posix_spawn_file_actions_addopen): Likewise.
446 (posix_spawn_file_actions_addclose): Likewise.
447 (posix_spawn_file_actions_adddup2): Likewise.
448 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
449 qualifiers.
450 (posix_spawn_file_actions_addfchdir_np): Likewise.
451
452 2019-02-04 David Newall <glibc@davidnewall.com>
453
454 elf: Implement --preload option for the dynamic linker.
455 * elf/rtld.c (preloadarg): New variable.
456 (handle_preload_list): Pass through “where” argument to
457 do_preload.
458 (dl_main): Handle "--preload" and add second call to
459 handle_preload_list.
460 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
461 (tst-rtld-preload-OBJS): Set variable.
462 (tst-rtld-preload.out): New target.
463 * elf/tst-rtld-preload.sh: New file.
464
465 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
466
467 * Makefile (testrun.sh): Exit in case of incorrect argument.
468
469 2019-02-04 Florian Weimer <fweimer@redhat.com>
470
471 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
472 alignment gaps.
473
474 2019-02-03 Florian Weimer <fweimer@redhat.com>
475
476 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
477 implicit overflow checks.
478
479 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
480
481 * stdlib/isomac.c: Include <unistd.h>.
482
483 2019-02-03 Florian Weimer <fweimer@redhat.com>
484
485 * include/time.h (__tzfile_default): Use int, not long int, for
486 the GMT offsets.
487 * time/tzfile.c (struct ttinfo): Change type of the offset member
488 to int.
489 (__tzfile_read): Remove useless cast.
490 (__tzfile_default): Adjust prototype.
491 * time/tzset.c (tz_rule): Change type of the offset member to int.
492 (parse_offset): Change the type of the sign variable to int.
493
494 2019-02-03 Florian Weimer <fweimer@redhat.com>
495
496 [BZ #24153]
497 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
498 * libio/getchar.c (getchar): Likewise.
499 * libio/getchar_u.c (getchar_unlocked): Likewise.
500 * libio/getwchar.c (getwchar): Likewise.
501 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
502 * libio/iogets.c (_IO_gets): Likewise.
503 * libio/vscanf.c (_IO_vscanf): Likewise.
504 * libio/vwscanf.c (__vwscanf): Likewise.
505 * libio/tst-bz24153.c: New file.
506 * libio/Makefile (tests): Add it.
507
508 2019-02-02 Florian Weimer <fweimer@redhat.com>
509
510 [BZ #14829]
511 * manual/resource.texi (Basic Scheduling Functions): Add
512 portability note. Change process to task throughout the section.
513 Remove incorrect comment about sched_yield as it affects
514 tasks/threads, not entire processes.
515 * sysdeps/unix/sysv/linux/bits/posix_opt.h
516 (_POSIX_PRIORITY_SCHEDULING): Update comment.
517
518 2019-02-01 Joseph Myers <joseph@codesourcery.com>
519
520 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
521 * configure: Regenerated.
522 * manual/install.texi (Tools for Compilation): Update minimum GCC
523 version.
524 * INSTALL: Regenerated.
525
526 2019-02-01 Florian Weimer <fweimer@redhat.com>
527
528 * support/support_test_compare_string.c
529 (support_test_compare_string): Use "string" in error message.
530 * support/tst-test_compare_string.c (do_test): Adjust.
531
532 2019-02-01 Florian Weimer <fweimer@redhat.com>
533
534 * support/support_format_address_family.c
535 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
536
537 2019-02-01 Florian Weimer <fweimer@redhat.com>
538
539 * manual/socket.texi (Internet Address Formats): Clarify the byte
540 order of struct sockaddr_in, struct sockaddr_in6. Document
541 sin6_flowinfo and sin6_scope_id.
542
543 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
544
545 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
546 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
547 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
548 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
549 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
550 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
551
552 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
553
554 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
555 [!MEMCHR](MEMCHR): Set to __memchr.
556 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
557 Add memchr_generic and memchr_nosimd.
558 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
559 (__libc_ifunc_impl_list): Add memchr ifuncs.
560 * sysdeps/aarch64/multiarch/memchr.c: New file.
561 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
562 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
563
564 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
565
566 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
567 Add memset_emag.
568 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
569 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
570 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
571 Add IS_EMAG check for ifunc dispatch.
572 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
573 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
574
575 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
576
577 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
578 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
579 Add emag.
580 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
581 New macro.
582
583 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
584
585 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
586
587 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
588
589 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
590 syscall-template file.
591
592 2019-01-31 Carlos O'Donell <carlos@redhat.com>
593 Torvald Riegel <triegel@redhat.com>
594 Rik Prohaska <prohaska7@gmail.com>
595
596 [BZ# 23844]
597 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
598 tst-rwlock-trywrlock-stall.
599 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
600 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
601 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
602 Set __wrphase_fute to 1 only if we started the write phase.
603 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
604 * nptl/tst-rwlock-trywrlock-stall.c: New file.
605 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
606 * support/xpthread_rwlock_destroy.c: New file.
607 * support/xthread.h: Declare xpthread_rwlock_destroy.
608
609 2019-02-01 Joseph Myers <joseph@codesourcery.com>
610
611 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
612 version to 4.0.2.
613
614 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
615
616 [BZ #24051]
617 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
618 * libio/fileops.c (_IO_new_file_underflow): Likewise
619 * libio/wfileops.c (_IO_wfile_underflow): Likewise
620 * libio/putchar.c (putchar): Likewise.
621 * libio/putchar_u.c (putchar_unlocked): Likewise.
622 * libio/putwchar.c (putchar): Likewise.
623 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
624 * libio/tst-bz24051.c: New test.
625 * libio/Makefile (tests): Add tst-bz24051
626
627 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
628
629 regex: fix read overrun [BZ #24114]
630 Problem found by AddressSanitizer, reported by Hongxu Chen in:
631 https://debbugs.gnu.org/34140
632 * posix/regexec.c (proceed_next_node):
633 Do not read past end of input buffer.
634
635 2019-01-31 Florian Weimer <fweimer@redhat.com>
636
637 [BZ #24059]
638 * nss/nss_files/files-alias.c (get_next_alias): Handle
639 continuation line without newline at the end.
640 * nss/tst-nss-files-alias-truncated.c: New file.
641 * nss/Makefile [$(build-shared)] (tests): Add
642 tst-nss-files-alias-truncated.
643 (tst-nss-files-alias-truncated): Link with libnss_files.so.
644 * support/namespace.h (struct support_chroot_configuration): Add
645 aliases member.
646 (struct support_chroot): Add path_aliases member.
647 * support/support_chroot.c (support_chroot_create): Handle
648 aliases.
649 (support_chroot_free): Free path_aliases.
650
651 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
652
653 * version.h (RELEASE): Set to "development".
654 (VERSION): Set to "2.29.9000".
655 * NEWS: Add section for 2.30.
656
657 * version.h (RELEASE): Set to "stable".
658 (VERSION): Set to "2.29".
659 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
660
661 * NEWS: Add the list of bugs fixed in 2.29.
662 * manual/contrib.texi: Update contributors list with some more
663 names.
664 * manual/install.texi: Update latest versions of packages
665 tested.
666 * INSTALL: Regenerated.
667
668 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
669
670 * po/be.po: Update translations.
671 * po/bg.po: Likewise.
672 * po/ca.po: Likewise.
673 * po/cs.po: Likewise.
674 * po/da.po: Likewise.
675 * po/de.po: Likewise.
676 * po/el.po: Likewise.
677 * po/eo.po: Likewise.
678 * po/es.po: Likewise.
679 * po/fi.po: Likewise.
680 * po/fr.po: Likewise.
681 * po/gl.po: Likewise.
682 * po/hr.po: Likewise.
683 * po/hu.po: Likewise.
684 * po/ia.po: Likewise.
685 * po/id.po: Likewise.
686 * po/it.po: Likewise.
687 * po/ja.po: Likewise.
688 * po/ko.po: Likewise.
689 * po/lt.po: Likewise.
690 * po/nb.po: Likewise.
691 * po/nl.po: Likewise.
692 * po/pl.po: Likewise.
693 * po/pt_BR.po: Likewise.
694 * po/ru.po: Likewise.
695 * po/rw.po: Likewise.
696 * po/sk.po: Likewise.
697 * po/sl.po: Likewise.
698 * po/sv.po: Likewise.
699 * po/tr.po: Likewise.
700 * po/uk.po: Likewise.
701 * po/vi.po: Likewise.
702 * po/zh_CN.po: Likewise.
703 * po/zh_TW.po: Likewise.
704
705 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
706
707 [BZ #24130]
708 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
709 of $f3 register on $y_is_neg path.
710
711 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
712
713 [BZ #24110]
714 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
715 sigaltstack.ss_flags.
716
717 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
718
719 [BZ #23758]
720 * manual/time.texi (strftime): Document "%Ey".
721 * time/strftime_l.c (__strftime_internal): Set the default width
722 padding with zero of "%Ey" to 2.
723
724 [BZ #24096]
725 * manual/time.texi (strftime): Document "%EC" and "%EY".
726 * time/Makefile (tests): Add tst-strftime2.
727 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
728 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
729 override padding for "%Ey".
730 If an optional flag ('_' or '-') is specified to "%EY", interpret the
731 "%Ey" in the subformat as if decorated with that flag.
732 * time/tst-strftime2.c: New file.
733
734 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
735
736 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
737 are not defined.
738
739 [BZ #24122]
740 * elf/Makefile (tests): Add tst-audit13.
741 (modules-names): Add tst-audit13mod1.
742 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
743 rule.
744 * elf/rtld.c (dl_main): Handle invalid audit module version.
745 * elf/tst-audit13.c: New file.
746 * elf/tst-audit13mod1.c: Likewise.
747
748 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
749
750 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
751 returned by __hurd_at_flags.
752 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
753 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
754 directly instead of __hurd_file_name_lookup.
755
756 2019-01-21 Joseph Myers <joseph@codesourcery.com>
757
758 * scripts/build-many-glibcs.py (Context.checkout): Default
759 binutils version to 2.32 branch.
760
761 2019-01-21 Florian Weimer <fweimer@redhat.com>
762
763 [BZ #20018]
764 CVE-2016-10739
765 resolv: Reject trailing characters in host names
766 * include/arpa/inet.h (__inet_aton_exact): Declare.
767 (inet_aton): Remove hidden prototype. No longer used internally.
768 * nscd/gai.c (__inet_aton): Do not define.
769 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
770 * nss/digits_dots.c (__inet_aton): Likewise.
771 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
772 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
773 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
774 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
775 (tst-resolv-trailing): Likewise.
776 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
777 libc.
778 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
779 Make static. Add endp parameter.
780 (__inet_aton_exact): New function.
781 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
782 (__inet_addr): Call inet_aton_end.
783 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
784 not just IPv6. Call __inet_aton_exact.
785 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
786 (tests): Make const. Add additional test cases with trailing
787 characters.
788 (do_test): Use array_length.
789 * resolv/tst-inet_aton_exact.c: New file.
790 * resolv/tst-resolv-trailing.c: Likewise.
791 * resolv/tst-resolv-nondecimal.c: Likewise.
792 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
793
794 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
795
796 [BZ# 24097]
797 CVE-2019-6488
798 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
799 Clear the upper 32 bits of RSI register.
800 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
801 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
802 and tst-size_t-wcsnlen.
803 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
804 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
805
806 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
807
808 [BZ# 24097]
809 CVE-2019-6488
810 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
811 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
812 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
813 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
814 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
815
816 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
817
818 [BZ# 24097]
819 CVE-2019-6488
820 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
821 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
822 * sysdeps/x86_64/strcmp.S: Likewise.
823 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
824 tst-size_t-strncmp and tst-size_t-wcsncmp.
825 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
826 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
827 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
828
829 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
830
831 [BZ# 24097]
832 CVE-2019-6488
833 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
834 RDX_LP for length. Clear the upper 32 bits of RDX register.
835 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
836 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
837 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
838 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
839
840 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
841
842 [BZ# 24097]
843 CVE-2019-6488
844 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
845 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
846 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
847 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
848
849 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
850
851 [BZ# 24097]
852 CVE-2019-6488
853 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
854 length. Clear the upper 32 bits of RDX register.
855 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
856 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
857 Likewise.
858 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
859 Likewise.
860 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
861 tst-size_t-wmemchr.
862 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
863
864 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
865
866 [BZ# 24097]
867 CVE-2019-6488
868 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
869 length. Clear the upper 32 bits of RDX register.
870 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
871 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
872 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
873 tst-size_t-wmemcmp.
874 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
875 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
876
877 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
878
879 [BZ# 24097]
880 CVE-2019-6488
881 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
882 upper 32 bits of RDX register.
883 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
884 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
885 tst-size_t-wmemchr.
886 * sysdeps/x86_64/x32/test-size_t.h: New file.
887 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
888 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
889
890 2019-01-18 Florian Weimer <fweimer@redhat.com>
891
892 [BZ #24112]
893 resolv: Do not send queries for non-host-names in nss_dns.
894 * resolv/nss_dns/dns-host.c (check_name): New function.
895 (_nss_dns_gethostbyname2_r): Use it.
896 (_nss_dns_gethostbyname_r): Likewise.
897 (_nss_dns_gethostbyname4_r): Likewise.
898
899 2019-01-21 Florian Weimer <fweimer@redhat.com>
900
901 * resolv/inet_addr.c: Reformat to GNU style.
902 (__inet_addr, __inet_aton): Update comment.
903
904 2019-01-18 Florian Weimer <fweimer@redhat.com>
905
906 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
907 ("malloc: Use current (C11-style) atomics for fastbin access").
908 This commit introduces a substantial performance regression on
909 POWER and Aarch64.
910 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
911 (REMOVE_FB): Define.
912 (_int_malloc): Use it and reindent.
913 (_int_free): Use CAS loop with
914 catomic_compare_and_exchange_val_rel.
915 (malloc_consolidate): Use atomic_exchange_acq.
916
917
918 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
919
920 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
921 -Wl,-z,now.
922 (LDFLAGS-tst-minsigstksz-2): Likewise.
923 (LDFLAGS-tst-minsigstksz-3): Likewise.
924 (LDFLAGS-tst-minsigstksz-3a): Likewise.
925 (LDFLAGS-tst-minsigstksz-4): Likewise.
926
927 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
928
929 * manual/time.texi (strftime): Fix the wording to "alternative" rather
930 than "alternate".
931
932 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
933
934 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
935
936 2019-01-16 Zack Weinberg <zackw@panix.com>
937
938 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
939 (xget_sigstack_location): New test support functions.
940 * support/xsigstack.c: New file, implementing them.
941 * support/tst-xsigstack.c: New test for them.
942 * support/Makefile: Update.
943
944 * signal/tst-minsigstksz-1.c
945 * signal/tst-minsigstksz-2.c
946 * signal/tst-minsigstksz-3.c
947 * signal/tst-minsigstksz-3a.c
948 * signal/tst-minsigstksz-4.c: New tests.
949 * signal/Makefile: Run them.
950
951 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
952
953 * po/libc.pot: Regenerate.
954
955 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
956
957 * math/libm-test-fma.inc (fma_test_data): Set
958 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
959
960 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
961
962 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
963 (do_test): Changed __vector __int128_t to __vector unsigned int.
964
965 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
966
967 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
968 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
969 stpcpy-avx2 and stpncpy-avx2.
970 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
971 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
972 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
973 and __stpncpy_avx2.
974 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
975 ifunc-strcpy.h}: rename header for a more generic name.
976 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
977 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
978 AVX unaligned load is fast and vzeroupper is preferred.
979 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
980 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
981 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
982 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
983 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
984 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
985
986 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
987
988 * argp/argp-help.c: Fix typo in comment.
989 * misc/sys/cdefs.h: Likewise.
990 * posix/regexec.c (sift_states_iter_mb): Likewise.
991 * socket/sockatmark.c: Likewise.
992 * socket/sys/socket.h: Likewise.
993 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
994 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
995 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
996 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
997 * sysdeps/unix/sockatmark.c: Likewise.
998 * time/strptime_l.c: Likewise.
999
1000 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1001
1002 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1003 missing space after the cast of "_NL_CURRENT".
1004
1005 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1006
1007 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1008 ifdef to fix read of VSCR.
1009 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1010 tst-ucontext-ppc64-vscr.c to test list.
1011 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1012
1013 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1014
1015 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1016 fall-through.
1017
1018 2019-01-09 Jim Wilson <jimw@sifive.com>
1019
1020 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1021
1022 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1023
1024 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1025 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1026 __memcpy_falkor for ares.
1027 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1028 Add new define.
1029 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1030 Add ares cpu.
1031
1032 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1033
1034 [BZ #24066]
1035 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1036 4_FP_W_TYPEs are used for IEEE quad precision.
1037 * soft-fp/extendhftf2.c: Likewise.
1038 * soft-fp/extendsftf2.c: Likewise.
1039 * soft-fp/extendxftf2.c: Likewise.
1040 * soft-fp/trunctfdf2.c: Likewise.
1041 * soft-fp/trunctfhf2.c: Likewise.
1042 * soft-fp/trunctfsf2.c: Likewise.
1043 * soft-fp/trunctfxf2.c: Likewise.
1044 * sysdeps/alpha/ots_cvttx.c: Likewise.
1045 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1046 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1047 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1048 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1049 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1050 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1051 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1052 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1053 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1054 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1055 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1056 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1057 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1058 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1059 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1060 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1061 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1062
1063 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1064
1065 [BZ #24024]
1066 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1067 code with -fmath-errno.
1068 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1069 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1070 * string/test-strerror-errno.c: New file.
1071
1072 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1073
1074 [BZ #24046]
1075 * localedata/locales/en_US (date_fmt): Add, set to
1076 "%a %d %b %Y %r %Z".
1077
1078 2019-01-07 Florian Weimer <fweimer@redhat.com>
1079
1080 [BZ #24063]
1081 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1082 instead of @var{errno}.
1083 (Parsing of Integers): Likewise.
1084 (Parsing of Floats): Likewise.
1085 * manual/filesys.texi (Working with Directory Trees): Likewise.
1086 (Temporary Files): Likewise.
1087 * manual/job.texi (Terminal Access Functions): Likewise.
1088 * manual/llio.texi (Synchronizing I/O): Likewise.
1089 * manual/math.texi (SVID Random): Likewise.
1090 * manual/message.texi (The catgets Functions): Likewise.
1091 (Translation with gettext): Likewise.
1092 (Locating gettext catalog): Likewise.
1093 (Charset conversion in gettext): Likewise.
1094 * manual/nss.texi (NSS Module Function Internals): Likewise.
1095 * manual/search.texi (Hash Search Function): Likewise.
1096 * manual/setjmp.texi (System V contexts): Likewise.
1097 * manual/time.texi (Sleeping): Likewise.
1098 * manual/users.texi (Lookup User): Likewise.
1099 (Lookup Group): Likewise.
1100
1101 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1102
1103 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1104 fix typo.
1105
1106 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1107
1108 [BZ #19444]
1109 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1110 __builtin_unreachable for default case in switch.
1111 (__ieee754_yn): Likewise.
1112 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1113 (__ieee754_ynl): Likewise.
1114 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1115 (__ieee754_ynl): Likewise.
1116 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1117 (__ieee754_ynl): Likewise.
1118
1119 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1120
1121 * manual/maint.texi: Use @{ and @}.
1122
1123 2019-01-04 Florian Weimer <fweimer@redhat.com>
1124
1125 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1126 function.
1127 (do_in_chroot_1): Call it.
1128 (run_chroot_tests):
1129 Improve error reporting in case it is not possible to create a
1130 collision for the PTY name required by the test.
1131
1132 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1133
1134 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1135 lll_wait_tid with timeout.
1136 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1137 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1138 futex_reltimed_wait_cancelable for cancelabla mode.
1139 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1140 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1141 macros.
1142 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1143 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1144 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1145 SYSCALL_CANCEL_NCS): New macro.
1146 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1147 (lll_timedwait_tid): Remove macro.
1148 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1149 Likewise.
1150 (lll_timedwait_tid): Likewise.
1151 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1152 Likewise.
1153 (lll_timedwait_tid): Likewise.
1154 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1155 Likewise.
1156 (lll_timedwait_tid): Likewise.
1157 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1158 Use INTERNAL_SYSCALL_CANCEL.
1159 * sysdeps/unix/sysv/linux/futex-internal.h
1160 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1161 instead of __pthread_{enable,disable}_asynccancel.
1162 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1163 (lll_futex_wait_cancel): New macro.
1164
1165 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1166 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1167
1168 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1169 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1170
1171 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1172 in backtrace analysis.
1173 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1174 side-effects.
1175 (tf_send): Likewise.
1176
1177 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1178 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1179 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1180 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1181 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1182 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1183 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1184 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1185 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1186 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1187 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1188 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1189 Likewise.
1190 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1191 tst-cancel-wrappers.sh.
1192 (generated): Remove tst-cancel-wrappers.out.
1193 (tst-cancel-wrappers.out): Remove rule.
1194 * nptl/tst-cancel-wrappers.sh: Remove file.
1195
1196 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1197
1198 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1199 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1200 Update.
1201
1202 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1203
1204 [BZ #23640]
1205 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1206 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1207 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1208 close-on-exec reset for adddup2 file action.
1209 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1210
1211 2019-01-03 Zack Weinberg <zackw@panix.com>
1212
1213 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1214 parameter. Only use deprecated scanf when __USE_GNU is defined
1215 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1216 than 201103L, whichever is relevant for the language being compiled.
1217
1218 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1219 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1220 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1221 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1222 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1223
1224 * libio/iovsscanf.c
1225 * libio/fwscanf.c
1226 * libio/iovswscanf.c
1227 * libio/swscanf.c
1228 * libio/vscanf.c
1229 * libio/vwscanf.c
1230 * libio/wscanf.c
1231 * stdio-common/fscanf.c
1232 * stdio-common/scanf.c
1233 * stdio-common/vfscanf.c
1234 * stdio-common/vfwscanf.c
1235 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1236 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1237 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1238 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1239 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1240 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1241 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1242 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1243 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1244 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1245 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1246 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1247 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1248 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1249 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1250
1251 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1252 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1253 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1254 not sscanf.
1255 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1256 with a preprocessor macro.
1257
1258 * stdio-common/bug21.c, stdio-common/scanf14.c:
1259 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1260 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1261 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1262 to xscanf, xfscanf, xsscanf.
1263
1264 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1265 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1266 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1267 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1268 xfscanf, xsscanf.
1269 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1270 override feature selection macros or provide definitions of u_char etc.
1271 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1272 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1273 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1274 with -std=gnu89.
1275
1276 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1277
1278 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1279 bits/termios-misc.h.
1280 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1281 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1282 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1283 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1284 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1285 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1286
1287 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1288 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1289 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1290 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1291 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1292 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1293 termios-misc.h.
1294 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1295 (sysdep_headers): Add termios-misc.h.
1296
1297 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1298 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1299 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1300
1301 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1302 termios-tcflow.h.
1303 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1304 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1305 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1306 TCSAFLUSH): Move to termios-tcflow.h.
1307 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1308 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1309 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1310 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1311
1312 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1313 termios-c_lflag.h.
1314 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1315 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1316 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1317 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1318 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1319 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1320 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1321 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1322 Likewise.
1323 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1324 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1325 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1326 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1327
1328 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1329 termios-c_cflag.h.
1330 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1331 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1332 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1333 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1334 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1335 termios-c_cflag.h.
1336 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1337 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1338 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1339 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1340
1341 [BZ #23783]
1342 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1343 termios-baud.h.
1344 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1345 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1346 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1347 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1348 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1349 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1350 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1351 __MAX_BAUD): Move to termios-baud.h.
1352 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1353 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1354 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1355 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1356 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1357
1358 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1359 termios-c_oflag.h.
1360 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1361 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1362 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1363 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1364 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1365 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1366 termios-c_oflag.h.
1367 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1368 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1369 FFR1): Likewise.
1370 [USE_MISC] (XTABS): Likewise.
1371 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1372 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1373 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1374 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1375
1376 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1377 termios-c_iflag.h.
1378 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1379 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1380 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1381 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1382 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1383 IUTF8): Move to termios-c_iflag.h.
1384 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1385 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1386 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1387 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1388
1389 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1390 termios-cc.h.
1391 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1392 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1393 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1394 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1395 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1396 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1397 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1398 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1399 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1400 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1401 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1402 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1403
1404 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1405 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1406 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1407 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1408 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1409 termios-struct.h.
1410 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1411 termios-struct.h.
1412 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1413 Likewise.
1414 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1415 Likewise.
1416 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1417 Likewise.
1418 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1419 Likewise.
1420 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1421 _HAVE_C_OSPEED): Define.
1422 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1423 _HAVE_C_OSPEED): Likewise.
1424 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1425 _HAVE_C_OSPEED): Likewise.
1426 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1427 (cfsetospeed): Check for define value instead of existence.
1428 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1429 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1430 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1431 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1432 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1433
1434 [BZ #17783]
1435 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1436 Define.
1437 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1438 (TIOCSER_TEMT): Likewise.
1439 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1440 (TEOCSER_TEMT): Likewise.
1441
1442 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1443
1444 [BZ #24011]
1445 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1446
1447 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1448
1449 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1450
1451 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1452
1453 * sysdeps/htl/pt-barrierattr-setpshared.c
1454 (pthread_barrierattr_setpshared): Add stub warning.
1455 * sysdeps/htl/pt-condattr-setpshared.c
1456 (pthread_condattr_setpshared): Likewise.
1457 * sysdeps/htl/pt-mutexattr-setpshared.c
1458 (pthread_mutexattr_setpshared): Likewise.
1459 * sysdeps/htl/pt-rwlockattr-setpshared.c
1460 (pthread_rwlockattr_setpshared): Likewise.
1461 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1462 (pthread_mutexattr_setpshared): Likewise.
1463
1464 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1465
1466 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1467 constants to match with Linux 4.20.
1468
1469 * sysdeps/mips/mips32/libm-test-ulps: Update.
1470 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1471
1472 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1473
1474 [BZ #24034]
1475 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1476 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1477 than __typeof (...) for the a_ptr variable.
1478
1479 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1480
1481 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1482 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1483 * libio/Makefile (tests): Add tst-sprintf-ub and
1484 tst-sprintf-chk-ub.
1485 (CFLAGS-tst-sprintf-ub.c): New variable.
1486 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1487 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1488 destination buffer and check for overflows in fortified mode.
1489 * libio/libioP.h (PRINTF_CHK): New macro.
1490 * libio/tst-sprintf-chk-ub.c: New file.
1491 * libio/tst-sprintf-ub.c: Likewise.
1492
1493 2019-01-02 Florian Weimer <fweimer@redhat.com>
1494
1495 [BZ #24018]
1496 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1497 failure.
1498
1499 2019-01-02 Florian Weimer <fweimer@redhat.com>
1500
1501 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1502
1503 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1504
1505 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1506 macro.
1507
1508 * sysdeps/unix/sysv/linux/netpacket/packet.h
1509 (PACKET_IGNORE_OUTGOING): New macro.
1510
1511 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1512 macro.
1513
1514 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1515 version to 4.20.
1516 (riscv_flush_icache): New syscall.
1517
1518 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1519 trailing whitespace removed.
1520 * scripts/config.guess: Update to version 2019-01-01.
1521 * scripts/config.sub: Update to version 2019-01-01.
1522 * scripts/move-if-change: Update from gnulib.
1523
1524 * NEWS: Update copyright dates.
1525 * catgets/gencat.c (print_version): Likewise.
1526 * csu/version.c (banner): Likewise.
1527 * debug/catchsegv.sh: Likewise.
1528 * debug/pcprofiledump.c (print_version): Likewise.
1529 * debug/xtrace.sh (do_version): Likewise.
1530 * elf/ldconfig.c (print_version): Likewise.
1531 * elf/ldd.bash.in: Likewise.
1532 * elf/pldd.c (print_version): Likewise.
1533 * elf/sotruss.sh: Likewise.
1534 * elf/sprof.c (print_version): Likewise.
1535 * iconv/iconv_prog.c (print_version): Likewise.
1536 * iconv/iconvconfig.c (print_version): Likewise.
1537 * locale/programs/locale.c (print_version): Likewise.
1538 * locale/programs/localedef.c (print_version): Likewise.
1539 * login/programs/pt_chown.c (print_version): Likewise.
1540 * malloc/memusage.sh (do_version): Likewise.
1541 * malloc/memusagestat.c (print_version): Likewise.
1542 * malloc/mtrace.pl: Likewise.
1543 * manual/libc.texinfo: Likewise.
1544 * nptl/version.c (banner): Likewise.
1545 * nscd/nscd.c (print_version): Likewise.
1546 * nss/getent.c (print_version): Likewise.
1547 * nss/makedb.c (print_version): Likewise.
1548 * posix/getconf.c (main): Likewise.
1549 * scripts/test-installation.pl: Likewise.
1550 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1551
1552 * All files with FSF copyright notices: Update copyright dates
1553 using scripts/update-copyrights.
1554 * locale/programs/charmap-kw.h: Regenerated.
1555 * locale/programs/locfile-kw.h: Likewise.
1556
1557 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1558
1559 * timezone/zdump.c: Update from tzcode 2018i.
1560 * timezone/zic.c: Likewise.
1561
1562 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1563
1564 regex: improve Gnulib port to AIX
1565 From the glibc point of view, this removes duplicate macro
1566 definitions and is obviously safe.
1567 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1568 * posix/regex_internal.h:
1569 (__attribute__, __attribute_warn_unused_result__):
1570 Remove; already defined elsewhere.
1571
1572 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1573
1574 [BZ #24027]
1575 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1576 copying operation. (ncopies had the wrong type, resulting in an
1577 integer wraparound and too few elements being copied.)
1578
1579 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1580
1581 [BZ #24022]
1582 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1583 <asm/syscalls.h> exists with __has_include__ before including it.
1584
1585 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1586
1587 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1588 version to 4.20.
1589
1590 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1591
1592 * hurd/lookup-retry: Include <unistd.h>.
1593 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1594 Release it on return. Handle "pid" magical lookup retry.
1595
1596 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1597
1598 [BZ #10496]
1599 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1600 (t_fmt_ampm): Likewise.
1601 * localedata/locales/aa_ER (t_fmt): Likewise.
1602 (t_fmt_ampm): Likewise.
1603 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1604 (t_fmt_ampm): Likewise.
1605 * localedata/locales/aa_ET (t_fmt): Likewise.
1606 (t_fmt_ampm): Likewise.
1607 * localedata/locales/am_ET (t_fmt): Likewise.
1608 (t_fmt_ampm): Likewise.
1609 * localedata/locales/byn_ER (t_fmt): Likewise.
1610 (t_fmt_ampm): Likewise.
1611 * localedata/locales/om_ET (t_fmt): Likewise.
1612 (t_fmt_ampm): Likewise.
1613 * localedata/locales/sid_ET (t_fmt): Likewise.
1614 (t_fmt_ampm): Likewise.
1615 * localedata/locales/so_DJ (t_fmt): Likewise.
1616 (t_fmt_ampm): Likewise.
1617 * localedata/locales/so_ET (t_fmt): Likewise.
1618 (t_fmt_ampm): Likewise.
1619 * localedata/locales/so_SO (t_fmt): Likewise.
1620 (t_fmt_ampm): Likewise.
1621 * localedata/locales/ti_ER (t_fmt): Likewise.
1622 (t_fmt_ampm): Likewise.
1623 * localedata/locales/ti_ET (t_fmt): Likewise.
1624 (t_fmt_ampm): Likewise.
1625 * localedata/locales/tig_ER (t_fmt): Likewise.
1626 (t_fmt_ampm): Likewise.
1627 * localedata/locales/wal_ET (t_fmt): Likewise.
1628 (t_fmt_ampm): Likewise.
1629
1630 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1631 * localedata/locales/ar_IN (t_fmt): Likewise.
1632 * localedata/locales/bhb_IN (t_fmt): Likewise.
1633 * localedata/locales/bho_IN (t_fmt): Likewise.
1634 * localedata/locales/bi_VU (t_fmt): Likewise.
1635 * localedata/locales/bn_BD (t_fmt): Likewise.
1636 * localedata/locales/bn_IN (t_fmt): Likewise.
1637 * localedata/locales/brx_IN (t_fmt): Likewise.
1638 * localedata/locales/doi_IN (t_fmt): Likewise.
1639 * localedata/locales/en_HK (t_fmt): Likewise.
1640 (t_fmt_ampm): Likewise.
1641 * localedata/locales/en_IN (t_fmt): Likewise.
1642 * localedata/locales/en_PH (t_fmt): Likewise.
1643 * localedata/locales/gu_IN (t_fmt): Likewise.
1644 * localedata/locales/hi_IN (t_fmt): Likewise.
1645 * localedata/locales/hif_FJ (t_fmt): Likewise.
1646 * localedata/locales/hne_IN (t_fmt): Likewise.
1647 * localedata/locales/kn_IN (t_fmt): Likewise.
1648 * localedata/locales/kok_IN (t_fmt): Likewise.
1649 * localedata/locales/ks_IN (t_fmt): Likewise.
1650 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1651 * localedata/locales/mag_IN (t_fmt): Likewise.
1652 * localedata/locales/mai_IN (t_fmt): Likewise.
1653 * localedata/locales/mjw_IN (t_fmt): Likewise.
1654 * localedata/locales/ml_IN (t_fmt): Likewise.
1655 * localedata/locales/mni_IN (t_fmt): Likewise.
1656 * localedata/locales/mr_IN (t_fmt): Likewise.
1657 * localedata/locales/ms_MY (t_fmt): Likewise.
1658 * localedata/locales/pa_IN (t_fmt): Likewise.
1659 * localedata/locales/raj_IN (t_fmt): Likewise.
1660 * localedata/locales/sa_IN (t_fmt): Likewise.
1661 * localedata/locales/sat_IN (t_fmt): Likewise.
1662 * localedata/locales/sd_IN (t_fmt): Likewise.
1663 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1664 * localedata/locales/tcy_IN (t_fmt): Likewise.
1665 * localedata/locales/the_NP (t_fmt): Likewise.
1666 * localedata/locales/to_TO (t_fmt): Likewise.
1667 * localedata/locales/ur_IN (t_fmt): Likewise.
1668
1669 * localedata/locales/hif_FJ (d_t_fmt): Set to
1670 "%A %d %b %Y %I:%M:%S %p".
1671 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1672
1673 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1674 * localedata/locales/ar_BH (t_fmt): Likewise.
1675 * localedata/locales/ar_DZ (t_fmt): Likewise.
1676 * localedata/locales/ar_EG (t_fmt): Likewise.
1677 * localedata/locales/ar_IQ (t_fmt): Likewise.
1678 * localedata/locales/ar_JO (t_fmt): Likewise.
1679 * localedata/locales/ar_KW (t_fmt): Likewise.
1680 * localedata/locales/ar_LB (t_fmt): Likewise.
1681 * localedata/locales/ar_LY (t_fmt): Likewise.
1682 * localedata/locales/ar_OM (t_fmt): Likewise.
1683 * localedata/locales/ar_QA (t_fmt): Likewise.
1684 * localedata/locales/ar_SD (t_fmt): Likewise.
1685 * localedata/locales/ar_SS (t_fmt): Likewise.
1686 * localedata/locales/ar_SY (t_fmt): Likewise.
1687 * localedata/locales/ar_TN (t_fmt): Likewise.
1688 * localedata/locales/ar_YE (t_fmt): Likewise.
1689
1690 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1691 (t_fmt_ampm): Likewise.
1692 * localedata/locales/gez_ET (t_fmt): Likewise.
1693 (t_fmt_ampm): Likewise.
1694
1695 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1696 (t_fmt_ampm): Likewise.
1697 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1698
1699 * localedata/locales/zh_HK (t_fmt):
1700 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1701
1702 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1703 because this locale does not use the 12-hour clock.
1704 (t_fmt): Set to "%Z %H:%M:%S".
1705 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1706
1707 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1708 because this locale does not use the 12-hour clock.
1709 (t_fmt): Set to "%H:%M:%S %Z".
1710 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1711
1712 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1713 because this locale does not use the 12-hour clock.
1714 (t_fmt): Set to "%T".
1715 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1716 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1717
1718 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1719 because this locale does not use the 12-hour clock.
1720 (t_fmt): Set to "%H:%M:%S %Z".
1721 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1722
1723 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1724 because this locale does not use the 12-hour clock.
1725 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1726 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1727
1728 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1729
1730 [BZ #10496]
1731 [BZ #23724]
1732 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1733 (t_fmt_ampm): Likewise.
1734 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1735 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1736 (d_fmt): Set to "%-d.%-m.%y".
1737
1738 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1739
1740 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1741 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1742 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1743 Likewise.
1744 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1745 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1746 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1747 function.
1748 * support/blob_repeat.c (check_mul_overflow_size_t,
1749 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1750
1751 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1752
1753 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1754
1755 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1756
1757 regex: simplify Gnulib port
1758 This simplifies the code, by removing stuff intended for porting
1759 to Gnulib but no longer needed there.
1760 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1761 uses of libc_hidden_def, weak_alias.
1762 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1763 _Restrict_ except for public-facing headers.
1764 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1765 Remove; already defined elsewhere.
1766 * posix/regex.c, posix/regex_internal.h:
1767 Use __GNUC_PREREQ instead of rolling our own.
1768 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1769
1770 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1771
1772 * benchtests/bench-strlen.c (generic_strlen): New function.
1773 (memchr_strlen): New function.
1774
1775 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1776
1777 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1778 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1779 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1780
1781 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1782
1783 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1784
1785 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1786
1787 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1788 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1789 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1790 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1791 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1792 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1793 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1794
1795 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1796
1797 [BZ #24023]
1798 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1799 PLT reference in libc.so.
1800 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1801 _Q_lltoq and _Q_qtod PLT references in libc.so.
1802
1803 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1804
1805 * benchtests/bench-memchr.c: Cleanup defines.
1806 * benchtests/bench-memcmp.c: Likewise.
1807 * benchtests/bench-memset.c: Likewise.
1808 * benchtests/bench-memset-large.c: Likewise.
1809 * benchtests/bench-memset-walk.c: Likewise.
1810 * benchtests/bench-stpcpy.c: Likewise.
1811 * benchtests/bench-stpncpy.c: Likewise.
1812 * benchtests/bench-strcat.c: Likewise.
1813 * benchtests/bench-strchr.c: Likewise.
1814 * benchtests/bench-strcmp.c: Likewise.
1815 * benchtests/bench-strcpy.c: Likewise.
1816 * benchtests/bench-strcspn.c: Likewise.
1817 * benchtests/bench-string.h: Likewise.
1818 * benchtests/bench-strlen.c: Likewise.
1819 * benchtests/bench-strncat.c: Likewise.
1820 * benchtests/bench-strncmp.c: Likewise.
1821 * benchtests/bench-strncpy.c: Likewise.
1822 * benchtests/bench-strnlen.c: Likewise.
1823 * benchtests/bench-strpbrk.c: Likewise.
1824 * benchtests/bench-strrchr.c: Likewise.
1825 * benchtests/bench-strspn.c: Likewise.
1826
1827 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1828
1829 * stdlib/longlong.h: Update from GCC.
1830
1831 [BZ #23993]
1832 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1833 * configure: Regenerated.
1834 * manual/install.texi (Tools for Compilation): Update minimum GCC
1835 version.
1836 * INSTALL: Regenerated.
1837
1838 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1839
1840 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1841
1842 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1843
1844 * malloc/malloc.c (mremap_chunk): Additional checks.
1845
1846 2018-12-21 Mao Han <han_mao@c-sky.com>
1847
1848 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1849 * scripts/build-many-glibcs.py: Add C-SKY targets.
1850 * sysdeps/csky/Implies: New file.
1851 * sysdeps/csky/Makefile: Likewise.
1852 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1853 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1854 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1855 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1856 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1857 * sysdeps/csky/abiv2/memmove.S: Likewise.
1858 * sysdeps/csky/abiv2/memset.S: Likewise.
1859 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1860 * sysdeps/csky/abiv2/start.S: Likewise.
1861 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1862 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1863 * sysdeps/csky/abiv2/strlen.S: Likewise.
1864 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1865 * sysdeps/csky/abort-instr.h: Likewise.
1866 * sysdeps/csky/atomic-machine.h: Likewise.
1867 * sysdeps/csky/bits/endian.h: Likewise.
1868 * sysdeps/csky/bits/fenv.h: Likewise.
1869 * sysdeps/csky/bits/link.h: Likewise.
1870 * sysdeps/csky/bits/setjmp.h: Likewise.
1871 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1872 * sysdeps/csky/bsd-setjmp.S: Likewise.
1873 * sysdeps/csky/configure: Likewise.
1874 * sysdeps/csky/configure.ac: Likewise.
1875 * sysdeps/csky/dl-machine.h: Likewise.
1876 * sysdeps/csky/dl-procinfo.c: Likewise.
1877 * sysdeps/csky/dl-procinfo.h: Likewise.
1878 * sysdeps/csky/dl-sysdep.h: Likewise.
1879 * sysdeps/csky/dl-tls.h: Likewise.
1880 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1881 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1882 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
1883 * sysdeps/csky/fpu/fegetenv.c: Likewise.
1884 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
1885 * sysdeps/csky/fpu/fegetmode.c: Likewise.
1886 * sysdeps/csky/fpu/fegetround.c: Likewise.
1887 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
1888 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
1889 * sysdeps/csky/fpu/fenv_private.h: Likewise.
1890 * sysdeps/csky/fpu/fesetenv.c: Likewise.
1891 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
1892 * sysdeps/csky/fpu/fesetmode.c: Likewise.
1893 * sysdeps/csky/fpu/fesetround.c: Likewise.
1894 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
1895 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
1896 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
1897 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
1898 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
1899 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
1900 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
1901 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
1902 * sysdeps/csky/fpu_control.h: Likewise.
1903 * sysdeps/csky/gccframe.h: Likewise.
1904 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
1905 * sysdeps/csky/ldsodefs.h: Likewise.
1906 * sysdeps/csky/libc-tls.c: Likewise.
1907 * sysdeps/csky/linkmap.h: Likewise.
1908 * sysdeps/csky/machine-gmon.h: Likewise.
1909 * sysdeps/csky/memusage.h: Likewise.
1910 * sysdeps/csky/nofpu/Implies: Likewise.
1911 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
1912 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
1913 * sysdeps/csky/nptl/Makefile: Likewise.
1914 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
1915 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
1916 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
1917 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
1918 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
1919 * sysdeps/csky/nptl/tls.h: Likewise.
1920 * sysdeps/csky/preconfigure: Likewise.
1921 * sysdeps/csky/sfp-machine.h: Likewise.
1922 * sysdeps/csky/sotruss-lib.c: Likewise.
1923 * sysdeps/csky/stackinfo.h: Likewise.
1924 * sysdeps/csky/sysdep.h: Likewise.
1925 * sysdeps/csky/tininess.h: Likewise.
1926 * sysdeps/csky/tst-audit.h: Likewise.
1927 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
1928 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
1929 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
1930 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
1931 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1932 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
1933 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1934 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
1935 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
1936 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
1937 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
1938 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
1939 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
1940 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
1941 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
1942 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
1943 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
1944 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
1945 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
1946 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
1947 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
1948 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
1949 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
1950 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1951 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
1952 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
1953 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1954 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
1955 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
1956 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
1957 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
1958 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
1959 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
1960 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
1961 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
1962 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
1963 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
1964 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
1965 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
1966 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
1967 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
1968 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
1969 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
1970 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
1971
1972 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
1973
1974 * include/time.h (__difftime64): Add.
1975 * time/difftime.c (subtract): convert to 64-bit time.
1976 * time/difftime.c (__difftime64): Add.
1977 * time/difftime.c (__difftime): Wrap around __difftime64.
1978
1979 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
1980
1981 * manual/examples/add.c: Remove redundant "if not".
1982 * manual/examples/argp-ex1.c: Likewise.
1983 * manual/examples/argp-ex2.c: Likewise.
1984 * manual/examples/argp-ex3.c: Likewise.
1985 * manual/examples/argp-ex4.c: Likewise.
1986 * manual/examples/atexit.c: Likewise.
1987 * manual/examples/db.c: Likewise.
1988 * manual/examples/dir.c: Likewise.
1989 * manual/examples/dir2.c: Likewise.
1990 * manual/examples/execinfo.c: Likewise.
1991 * manual/examples/filecli.c: Likewise.
1992 * manual/examples/filesrv.c: Likewise.
1993 * manual/examples/fmtmsgexpl.c: Likewise.
1994 * manual/examples/genpass.c: Likewise.
1995 * manual/examples/inetcli.c: Likewise.
1996 * manual/examples/inetsrv.c: Likewise.
1997 * manual/examples/isockad.c: Likewise.
1998 * manual/examples/longopt.c: Likewise.
1999 * manual/examples/memopen.c: Likewise.
2000 * manual/examples/memstrm.c: Likewise.
2001 * manual/examples/mkdirent.c: Likewise.
2002 * manual/examples/mkfsock.c: Likewise.
2003 * manual/examples/mkisock.c: Likewise.
2004 * manual/examples/mygetpass.c: Likewise.
2005 * manual/examples/pipe.c: Likewise.
2006 * manual/examples/popen.c: Likewise.
2007 * manual/examples/rprintf.c: Likewise.
2008 * manual/examples/search.c: Likewise.
2009 * manual/examples/select.c: Likewise.
2010 * manual/examples/setjmp.c: Likewise.
2011 * manual/examples/sigh1.c: Likewise.
2012 * manual/examples/sigusr.c: Likewise.
2013 * manual/examples/stpcpy.c: Likewise.
2014 * manual/examples/strdupa.c: Likewise.
2015 * manual/examples/strftim.c: Likewise.
2016 * manual/examples/subopt.c: Likewise.
2017 * manual/examples/swapcontext.c: Likewise.
2018 * manual/examples/termios.c: Likewise.
2019 * manual/examples/testopt.c: Likewise.
2020 * manual/examples/testpass.c: Likewise.
2021 * manual/examples/timeval_subtract.c: Likewise.
2022
2023 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2024
2025 * sysdeps/x86/fpu/math_private.h: New file.
2026 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2027
2028 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2029 definition.
2030 (cosh): Likewise.
2031 (tanh): Likewise.
2032
2033 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2034
2035 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2036 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2037 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2038 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2039 fields.
2040 (_dl_show_auxv): Give a special treatment to
2041 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2042 and AT_L3_CACHEGEOMETRY.
2043 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2044 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2045 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2046 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2047
2048 2018-12-19 Andreas Schwab <schwab@suse.de>
2049
2050 * nscd/connections.c (check_use): Don't abort on invalid len.
2051
2052 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2053
2054 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2055 values in the 64bit value cases.
2056
2057 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2058
2059 * include/time.h
2060 (__ctime64_r): Add.
2061 * time/ctime_r.c
2062 (__ctime64_r): Add.
2063 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2064
2065 * include/time.h
2066 (__ctime64): Add.
2067 * time/gmtime.c
2068 (__ctime64): Add.
2069 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2070
2071 * include/time.h
2072 (__gmtime64_r): Add.
2073 * time/gmtime.c
2074 (__gmtime64_r): Add.
2075 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2076
2077 * include/time.h
2078 (__gmtime64): Add.
2079 * time/gmtime.c
2080 (__gmtime64): Add.
2081 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2082
2083 * include/time.h
2084 (__localtime64_r): Add.
2085 * time/localtime.c
2086 (__localtime64_r): Add.
2087 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2088
2089 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2090
2091 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2092 kernel_sigction definition.
2093
2094 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2095
2096 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2097
2098 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2099 __syscall_rt_sigaction.
2100 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2101 (kernel_sigaction): Use Linux generic defintion.
2102 (STUB): Define.
2103 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2104 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2105 (__syscall_rt_sigaction): Remove implementation.
2106 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2107 hidden.
2108 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2109 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2110 INTERNAL_SYSCALL): Remove definitions.
2111 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2112 action and signal set size.
2113 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2114 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2115
2116 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2117 James Clarke <jrtc27@jrtc27.com>
2118
2119 [BZ #23967]
2120 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2121 Define if SA_RESTORER is defined.
2122 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2123 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2124 already defined.
2125 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2126 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2127 definitions.
2128 (HAS_SA_RESTORER): Define.
2129 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2130 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2131 (HAS_SA_RESTORER): Define.
2132 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2133 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2134 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2135 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2136 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2137
2138 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2139
2140 * sysdeps/unix/sysv/linux/kernel-features.h
2141 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2142 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2143 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2144 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2145 (__ASSUME_ST_INO_64_BIT): Likewise.
2146 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2147 <kernel-features.h>.
2148 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2149 Remove conditional code.
2150 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2151 <kernel-features.h>.
2152 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2153 Remove conditional code.
2154 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2155 <kernel-features.h>.
2156 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2157 Remove conditional code.
2158 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2159 <kernel-features.h>.
2160 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2161 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2162
2163 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2164
2165 * sysdeps/s390/multiarch/ifunc-resolve.h
2166 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2167 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2168 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2169 Delete macro definition.
2170 (s390_libc_ifunc_init): Rename to
2171 s390_libc_ifunc_expr_stfle_init.
2172 * sysdeps/s390/bzero: Use
2173 s390_libc_ifunc_expr_stfle_init instead of
2174 s390_libc_ifunc_init.
2175 * sysdeps/s390/memcmp.c: Likewise.
2176 * sysdeps/s390/memcpy.c: Likewise.
2177 * sysdeps/s390/mempcpy.c: Likewise.
2178 * sysdeps/s390/memset.c: Likewise.
2179
2180 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2181
2182 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2183 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2184
2185 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2186
2187 * sysdeps/s390/multiarch/Makefile
2188 (sysdep_routines): Remove wmemcmp variants.
2189 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2190 * sysdeps/s390/multiarch/ifunc-impl-list.c
2191 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2192 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2193 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2194 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2195 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2196 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2197 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2198 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2199
2200 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2201
2202 * sysdeps/s390/multiarch/Makefile
2203 (sysdep_routines): Remove wmemset variants.
2204 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2205 * sysdeps/s390/multiarch/ifunc-impl-list.c
2206 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2207 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2208 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2209 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2210 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2211 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2212 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2213 * sysdeps/s390/ifunc-wmemset.h: New file.
2214
2215 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2216
2217 * sysdeps/s390/multiarch/Makefile
2218 (sysdep_routines): Remove wmemchr variants.
2219 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2220 * sysdeps/s390/multiarch/ifunc-impl-list.c
2221 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2222 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2223 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2224 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2225 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2226 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2227 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2228 * sysdeps/s390/ifunc-wmemchr.h: New file.
2229
2230 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2231
2232 * sysdeps/s390/multiarch/Makefile
2233 (sysdep_routines): Remove wcscspn variants.
2234 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2235 * sysdeps/s390/multiarch/ifunc-impl-list.c
2236 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2237 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2238 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2239 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2240 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2241 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2242 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2243 * sysdeps/s390/ifunc-wcscspn.h: New file.
2244
2245 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2246
2247 * sysdeps/s390/multiarch/Makefile
2248 (sysdep_routines): Remove wcspbrk variants.
2249 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2250 * sysdeps/s390/multiarch/ifunc-impl-list.c
2251 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2252 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2253 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2254 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2255 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2256 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2257 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2258 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2259
2260 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2261
2262 * sysdeps/s390/multiarch/Makefile
2263 (sysdep_routines): Remove wcsspn variants.
2264 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2265 * sysdeps/s390/multiarch/ifunc-impl-list.c
2266 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2267 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2268 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2269 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2270 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2271 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2272 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2273 * sysdeps/s390/ifunc-wcsspn.h: New file.
2274
2275 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2276
2277 * sysdeps/s390/multiarch/Makefile
2278 (sysdep_routines): Remove wcsrchr variants.
2279 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2280 * sysdeps/s390/multiarch/ifunc-impl-list.c
2281 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2282 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2283 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2284 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2285 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2286 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2287 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2288 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2289
2290 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2291
2292 * sysdeps/s390/multiarch/Makefile
2293 (sysdep_routines): Remove wcschrnul variants.
2294 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2295 * sysdeps/s390/multiarch/ifunc-impl-list.c
2296 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2297 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2298 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2299 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2300 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2301 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2302 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2303 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2304
2305 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2306
2307 * sysdeps/s390/multiarch/Makefile
2308 (sysdep_routines): Remove wcschr variants.
2309 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2310 * sysdeps/s390/multiarch/ifunc-impl-list.c
2311 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2312 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2313 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2314 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2315 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2316 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2317 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2318 * sysdeps/s390/ifunc-wcschr.h: New file.
2319
2320 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2321
2322 * sysdeps/s390/multiarch/Makefile
2323 (sysdep_routines): Remove wcsncmp variants.
2324 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2325 * sysdeps/s390/multiarch/ifunc-impl-list.c
2326 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2327 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2328 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2329 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2330 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2331 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2332 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2333 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2334
2335 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2336
2337 * sysdeps/s390/multiarch/Makefile
2338 (sysdep_routines): Remove wcscmp variants.
2339 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2340 * sysdeps/s390/multiarch/ifunc-impl-list.c
2341 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2342 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2343 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2344 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2345 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2346 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2347 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2348 * sysdeps/s390/ifunc-wcscmp.h: New file.
2349
2350 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2351
2352 * sysdeps/s390/multiarch/Makefile
2353 (sysdep_routines): Remove wcsncat variants.
2354 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2355 * sysdeps/s390/multiarch/ifunc-impl-list.c
2356 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2357 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2358 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2359 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2360 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2361 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2362 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2363 * sysdeps/s390/ifunc-wcsncat.h: New file.
2364
2365 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2366
2367 * sysdeps/s390/multiarch/Makefile
2368 (sysdep_routines): Remove wcscat variants.
2369 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2370 * sysdeps/s390/multiarch/ifunc-impl-list.c
2371 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2372 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2373 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2374 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2375 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2376 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2377 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2378 * sysdeps/s390/ifunc-wcscat.h: New file.
2379
2380 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2381
2382 * sysdeps/s390/multiarch/Makefile
2383 (sysdep_routines): Remove wcpncpy variants.
2384 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2385 * sysdeps/s390/multiarch/ifunc-impl-list.c
2386 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2387 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2388 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2389 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2390 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2391 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2392 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2393 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2394
2395 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2396
2397 * sysdeps/s390/multiarch/Makefile
2398 (sysdep_routines): Remove wcsncpy variants.
2399 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2400 * sysdeps/s390/multiarch/ifunc-impl-list.c
2401 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2402 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2403 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2404 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2405 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2406 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2407 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2408 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2409
2410 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2411
2412 * sysdeps/s390/multiarch/Makefile
2413 (sysdep_routines): Remove wcpcpy variants.
2414 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2415 * sysdeps/s390/multiarch/ifunc-impl-list.c
2416 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2417 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2418 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2419 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2420 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2421 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2422 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2423 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2424
2425 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2426
2427 * sysdeps/s390/multiarch/Makefile
2428 (sysdep_routines): Remove wcscpy variants.
2429 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2430 * sysdeps/s390/multiarch/ifunc-impl-list.c
2431 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2432 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2433 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2434 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2435 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2436 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2437 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2438 * sysdeps/s390/ifunc-wcscpy.h: New file.
2439
2440 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2441
2442 * sysdeps/s390/multiarch/Makefile
2443 (sysdep_routines): Remove wcsnlen variants.
2444 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2445 * sysdeps/s390/multiarch/ifunc-impl-list.c
2446 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2447 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2448 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2449 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2450 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2451 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2452 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2453 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2454
2455 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2456
2457 * sysdeps/s390/multiarch/Makefile
2458 (sysdep_routines): Remove wcslen variants.
2459 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2460 * sysdeps/s390/multiarch/ifunc-impl-list.c
2461 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2462 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2463 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2464 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2465 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2466 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2467 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2468 * sysdeps/s390/ifunc-wcslen.h: New file.
2469
2470 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2471
2472 * sysdeps/s390/multiarch/Makefile
2473 (sysdep_routines): Remove memrchr variants.
2474 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2475 * sysdeps/s390/multiarch/ifunc-impl-list.c
2476 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2477 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2478 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2479 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2480 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2481 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2482 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2483 * sysdeps/s390/ifunc-memrchr.h: New file.
2484
2485 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2486
2487 * sysdeps/s390/multiarch/Makefile
2488 (sysdep_routines): Remove memccpy variants.
2489 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2490 * sysdeps/s390/multiarch/ifunc-impl-list.c
2491 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2492 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2493 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2494 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2495 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2496 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2497 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2498 * sysdeps/s390/ifunc-memccpy.h: New file.
2499
2500 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2501
2502 * sysdeps/s390/multiarch/Makefile
2503 (sysdep_routines): Remove rawmemchr variants.
2504 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2505 * sysdeps/s390/multiarch/ifunc-impl-list.c
2506 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2507 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2508 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2509 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2510 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2511 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2512 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2513 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2514
2515 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2516
2517 * sysdeps/s390/multiarch/Makefile
2518 (sysdep_routines): Remove memchr variants.
2519 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2520 * sysdeps/s390/multiarch/ifunc-impl-list.c
2521 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2522 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2523 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2524 * sysdeps/s390/multiarch/memchr.c: Move to ...
2525 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2526 * sysdeps/s390/ifunc-memchr.h: New file.
2527 * sysdeps/s390/s390-64/memchr.S: Move to ...
2528 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2529 for 31/64bit and ifunc handling.
2530 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2531 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2532 * sysdeps/s390/s390-32/memchr.S: Likewise.
2533
2534 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2535
2536 * sysdeps/s390/multiarch/Makefile
2537 (sysdep_routines): Remove strcspn variants.
2538 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2539 * sysdeps/s390/multiarch/ifunc-impl-list.c
2540 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2541 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2542 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2543 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2544 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2545 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2546 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2547 * sysdeps/s390/ifunc-strcspn.h: New file.
2548
2549 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2550
2551 * sysdeps/s390/multiarch/Makefile
2552 (sysdep_routines): Remove strpbrk variants.
2553 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2554 * sysdeps/s390/multiarch/ifunc-impl-list.c
2555 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2556 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2557 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2558 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2559 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2560 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2561 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2562 * sysdeps/s390/ifunc-strpbrk.h: New file.
2563
2564 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2565
2566 * sysdeps/s390/multiarch/Makefile
2567 (sysdep_routines): Remove strspn variants.
2568 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2569 * sysdeps/s390/multiarch/ifunc-impl-list.c
2570 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2571 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2572 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2573 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2574 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2575 * sysdeps/s390/multiarch/strspn.c: Move to ...
2576 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2577 * sysdeps/s390/ifunc-strspn.h: New file.
2578
2579 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2580
2581 * sysdeps/s390/multiarch/Makefile
2582 (sysdep_routines): Remove strrchr variants.
2583 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2584 * sysdeps/s390/multiarch/ifunc-impl-list.c
2585 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2586 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2587 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2588 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2589 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2590 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2591 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2592 * sysdeps/s390/ifunc-strrchr.h: New file.
2593
2594 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2595
2596 * sysdeps/s390/multiarch/Makefile
2597 (sysdep_routines): Remove strchrnul variants.
2598 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2599 * sysdeps/s390/multiarch/ifunc-impl-list.c
2600 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2601 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2602 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2603 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2604 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2605 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2606 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2607 * sysdeps/s390/ifunc-strchrnul.h: New file.
2608
2609 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2610
2611 * sysdeps/s390/multiarch/Makefile
2612 (sysdep_routines): Remove strchr variants.
2613 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2614 * sysdeps/s390/multiarch/ifunc-impl-list.c
2615 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2616 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2617 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2618 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2619 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2620 * sysdeps/s390/multiarch/strchr.c: Move to ...
2621 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2622 * sysdeps/s390/ifunc-strchr.h: New file.
2623
2624 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2625
2626 * sysdeps/s390/multiarch/Makefile
2627 (sysdep_routines): Remove strncmp variants.
2628 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2629 * sysdeps/s390/multiarch/ifunc-impl-list.c
2630 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2631 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2632 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2633 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2634 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2635 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2636 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2637 * sysdeps/s390/ifunc-strncmp.h: New file.
2638
2639 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2640
2641 * sysdeps/s390/multiarch/Makefile
2642 (sysdep_routines): Remove strcmp variants.
2643 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2644 * sysdeps/s390/multiarch/ifunc-impl-list.c
2645 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2646 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2647 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2648 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2649 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2650 * sysdeps/s390/ifunc-strcmp.h: New file.
2651 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2652 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2653 for 31/64bit and ifunc handling.
2654 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2655 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2656 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2657
2658 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2659
2660 * sysdeps/s390/multiarch/Makefile
2661 (sysdep_routines): Remove strncat variants.
2662 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2663 * sysdeps/s390/multiarch/ifunc-impl-list.c
2664 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2665 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2666 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2667 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2668 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2669 * sysdeps/s390/multiarch/strncat.c: Move to ...
2670 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2671 * sysdeps/s390/ifunc-strncat.h: New file.
2672
2673 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2674
2675 * sysdeps/s390/multiarch/Makefile
2676 (sysdep_routines): Remove strcat variants.
2677 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2678 * sysdeps/s390/multiarch/ifunc-impl-list.c
2679 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2680 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2681 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2682 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2683 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2684 * sysdeps/s390/multiarch/strcat.c: Move to ...
2685 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2686 * sysdeps/s390/ifunc-strcat.h: New file.
2687
2688 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2689
2690 * sysdeps/s390/multiarch/Makefile
2691 (sysdep_routines): Remove stpncpy variants.
2692 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2693 * sysdeps/s390/multiarch/ifunc-impl-list.c
2694 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2695 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2696 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2697 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2698 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2699 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2700 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2701 * sysdeps/s390/ifunc-stpncpy.h: New file.
2702
2703 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2704
2705 * sysdeps/s390/multiarch/Makefile
2706 (sysdep_routines): Remove strncpy variants.
2707 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2708 * sysdeps/s390/multiarch/ifunc-impl-list.c
2709 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2710 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2711 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2712 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2713 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2714 * sysdeps/s390/ifunc-strncpy.h: New file.
2715 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2716 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2717 and adjust ifunc handling.
2718 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2719 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2720 and adjust ifunc handling.
2721 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2722 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2723
2724 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2725
2726 * sysdeps/s390/multiarch/Makefile
2727 (sysdep_routines): Remove stpcpy variants.
2728 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2729 * sysdeps/s390/multiarch/ifunc-impl-list.c
2730 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2731 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2732 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2733 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2734 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2735 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2736 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2737 * sysdeps/s390/ifunc-stpcpy.h: New file.
2738
2739 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2740
2741 * sysdeps/s390/multiarch/Makefile
2742 (sysdep_routines): Remove strcpy variants.
2743 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2744 * sysdeps/s390/multiarch/ifunc-impl-list.c
2745 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2746 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2747 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2748 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2749 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2750 * sysdeps/s390/ifunc-strcpy.h: New file.
2751 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2752 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2753 for 31/64bit and ifunc handling.
2754 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2755 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2756 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2757
2758 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2759
2760 * sysdeps/s390/multiarch/Makefile
2761 (sysdep_routines): Remove strnlen variants.
2762 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2763 * sysdeps/s390/multiarch/ifunc-impl-list.c
2764 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2765 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2766 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2767 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2768 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2769 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2770 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2771 * sysdeps/s390/ifunc-strnlen.h: New file.
2772
2773 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2774
2775 * sysdeps/s390/multiarch/Makefile
2776 (sysdep_routines): Remove strlen variants.
2777 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2778 * sysdeps/s390/multiarch/ifunc-impl-list.c
2779 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2780 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2781 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2782 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2783 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2784 * sysdeps/s390/multiarch/strlen.c: Move to ...
2785 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2786 * sysdeps/s390/ifunc-strlen.h: New file.
2787
2788 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2789
2790 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2791 * sysdeps/s390/multiarch/ifunc-impl-list.c
2792 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2793 * sysdeps/s390/ifunc-memmem.h: New file.
2794 * sysdeps/s390/memmem.c: Likewise.
2795 * sysdeps/s390/memmem-c.c: Likewise.
2796 * sysdeps/s390/memmem-vx.c: Likewise.
2797
2798 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2799
2800 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2801 * sysdeps/s390/multiarch/ifunc-impl-list.c
2802 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2803 * sysdeps/s390/ifunc-strstr.h: New file.
2804 * sysdeps/s390/strstr.c: Likewise.
2805 * sysdeps/s390/strstr-c.c: Likewise.
2806 * sysdeps/s390/strstr-vx.c: Likewise.
2807
2808 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2809
2810 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2811 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2812 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2813 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2814 New defines.
2815 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2816 * sysdeps/s390/memmove-c.c: New file.
2817 * sysdeps/s390/memmove.c: Likewise.
2818 * sysdeps/s390/multiarch/ifunc-impl-list.c
2819 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2820
2821 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2822
2823 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2824 * sysdeps/s390/configure.ac: Add check for z13 support.
2825 * sysdeps/s390/configure: Regenerated.
2826
2827 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2828
2829 * sysdeps/s390/memcopy.h: New file.
2830
2831 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2832
2833 * sysdeps/s390/s390-32/bcopy.S: Remove.
2834 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2835
2836 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2837
2838 * sysdeps/s390/ifunc-memcpy.h: New File.
2839 * sysdeps/s390/memcpy.S: Move to ...
2840 * sysdeps/s390/memcpy-z900.S ... here.
2841 Move implementations from memcpy-s390x.s to here.
2842 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2843 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2844 Remove memcpy/mempcpy variants.
2845 * sysdeps/s390/Makefile (sysdep_routines):
2846 Add memcpy/mempcpy variants.
2847 * sysdeps/s390/multiarch/ifunc-impl-list.c
2848 (__libc_ifunc_impl_list): Adjust ifunc variants for
2849 memcpy and mempcpy.
2850 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2851 to ...
2852 * sysdeps/s390/memcpy.c: ... here.
2853 Adjust ifunc variants for memcpy.
2854 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2855 * sysdeps/s390/mempcpy.c: ... here.
2856 Adjust ifunc variants for mempcpy.
2857 * sysdeps/s390/mempcpy.S: Delete file.
2858
2859 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2860
2861 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2862 * sysdeps/s390/memcpy.S: ... here.
2863 Adjust to be usable for 31/64bit.
2864 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2865 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2866 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2867 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2868 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2869 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2870 Adjust to be usable for 31/64bit.
2871 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2872 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2873 * sysdeps/s390/multiarch/memcpy.c: ... here.
2874 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2875
2876 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2877
2878 * sysdeps/s390/ifunc-memcmp.h: New File.
2879 * sysdeps/s390/memcmp.S: Move to ...
2880 * sysdeps/s390/memcmp-z900.S ... here.
2881 Move implementations from memcmp-s390x.s to here.
2882 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
2883 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2884 Remove memcmp variants.
2885 * sysdeps/s390/Makefile (sysdep_routines):
2886 Add memcmp variants.
2887 * sysdeps/s390/multiarch/ifunc-impl-list.c
2888 (__libc_ifunc_impl_list): Adjust ifunc variants for
2889 memcmp.
2890 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
2891 to ...
2892 * sysdeps/s390/memcmp.c: ... here.
2893 Adjust ifunc variants for memcmp.
2894
2895 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2896
2897 * sysdeps/s390/s390-64/memcmp.S: Move to ...
2898 * sysdeps/s390/memcmp.S: ... here.
2899 Adjust to be usable for 31/64bit.
2900 * sysdeps/s390/s390-32/memcmp.S: Delete File.
2901 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
2902 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2903 Remove memcmp.
2904 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2905 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
2906 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
2907 Adjust to be usable for 31/64bit.
2908 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
2909 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
2910 * sysdeps/s390/multiarch/memcmp.c: ... here.
2911 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
2912
2913 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2914
2915 * sysdeps/s390/s390-32/bzero.S: Delete file.
2916 * sysdeps/s390/s390-64/bzero.S: Likewise.
2917 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
2918 * sysdeps/s390/bzero.c: New file.
2919 * sysdeps/s390/memset-z900.S: Add bzero entry points.
2920 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
2921 * sysdeps/s390/multiarch/ifunc-impl-list.c
2922 (__libc_ifunc_impl_list): Add bzero ifunc variants.
2923
2924 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2925
2926 * sysdeps/s390/ifunc-memset.h: New File.
2927 * sysdeps/s390/memset.S: Move to ...
2928 * sysdeps/s390/memset-z900.S ... here.
2929 Move implementations from memset-s390x.s to here.
2930 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
2931 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2932 Remove memset variants.
2933 * sysdeps/s390/Makefile (sysdep_routines):
2934 Add memset variants.
2935 * sysdeps/s390/multiarch/ifunc-impl-list.c
2936 (__libc_ifunc_impl_list): Adjust ifunc variants for
2937 memset.
2938 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
2939 to ...
2940 * sysdeps/s390/memset.c: ... here.
2941 Adjust ifunc variants for memset.
2942
2943 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2944
2945 * sysdeps/s390/s390-64/memset.S: Move to ...
2946 * sysdeps/s390/memset.S: ... here.
2947 Adjust to be usable for 31/64bit.
2948 * sysdeps/s390/s390-32/memset.S: Delete File.
2949 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
2950 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2951 Remove memset.
2952 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2953 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
2954 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
2955 Adjust to be usable for 31/64bit.
2956 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
2957 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
2958 * sysdeps/s390/multiarch/memset.c: ... here.
2959 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
2960
2961 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2962
2963 * sysdeps/s390/multiarch/ifunc-resolve.h
2964 (s390_libc_ifunc_init, s390_libc_ifunc,
2965 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
2966
2967 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2968
2969 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
2970 * sysdeps/s390/configure.ac: Add check for z10 support.
2971 * sysdeps/s390/configure: Regenerated.
2972
2973 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
2974
2975 * sysdeps/i386/atomic-machine.h: Merged with ...
2976 * sysdeps/x86_64/atomic-machine.h: To ...
2977 * sysdeps/x86/atomic-machine.h: This. New file.
2978
2979 2018-12-18 Florian Weimer <fweimer@redhat.com>
2980
2981 Rewrite locale/gen-translit.pl in Python.
2982 * locale/Makefile (generated): Add C-translit.h.
2983 (before-compile): Add $(objpfx)C-translit.h.
2984 (C-translit.h): Move to $(objpfx). Create target directory.
2985 Build using Python script.
2986 * locale/gen-translit.py: New file.
2987 * locale/gen-translit.pl: Remove file.
2988 * locale/C-translit.h.in: Change comment character to '#' for
2989 easier parsing without a C preprocessor.
2990 * locale/C-translit.h: Remove generated file.
2991 * manual/install.texi (Tools for Compilation): Do not mention
2992 C-translit.h.
2993 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
2994 Remove locale/C-translit.h.
2995 * scripts/update-copyrights: Likewise.
2996 * INSTALL: Regenerate.
2997
2998 2018-12-18 Florian Weimer <fweimer@redhat.com>
2999
3000 [BZ #23995]
3001 * localedata/locales/bi_VU: Remove executable bit from file.
3002
3003 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3004
3005 * include/time.h
3006 (__localtime64): Add.
3007 * manual/maint.texi: Document Y2038 symbol handling.
3008 * time/localtime.c
3009 (__localtime64): Add.
3010 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3011
3012 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3013
3014 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3015 Do not clobber r12.
3016
3017 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3018 to allow extra macros from first or second sources.
3019 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3020 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3021 (tests-special): Add $(objpfx)tst-mman-consts.out.
3022 ($(objpfx)tst-mman-consts.out): New makefile target.
3023
3024 2018-12-17 Mao Han <han_mao@c-sky.com>
3025
3026 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3027 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3028 without stat64 system call support.
3029 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3030 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3031 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3032 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3033 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3034 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3035 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3036 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3037 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3038 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3039 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3040
3041 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3042
3043 regex: fix storage-exhaustion error
3044 [BZ #18040]
3045 * posix/regexec.c (get_subexp):
3046 Do not continue if storage is exhausted.
3047
3048 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3049
3050 regex: fix heap-use-after-free error
3051 [BZ #18040]
3052 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3053 https://debbugs.gnu.org/32592
3054 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3055 call extend_buffers which reallocates the re_string_t internal buffer.
3056 Local variable 'buf' was not updated in such case, resulting in
3057 use-after-free.
3058 * posix/regexec.c (get_subexp): Update 'buf' after call to
3059 get_subexp_sub.
3060
3061 2018-12-15 Florian Weimer <fweimer@redhat.com>
3062
3063 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3064 (minimum_stride_size): Use it.
3065 (support_blob_repeat_allocate): Likewise.
3066
3067 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3068
3069 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3070 definition.
3071 (acosh): Likewise.
3072 (atanh): Likewise.
3073
3074 2018-12-14 Florian Weimer <fweimer@redhat.com>
3075
3076 * manual/process.texi (Process Creation Concepts): Remove
3077 documentation of process (ID) lifetime. List more process
3078 creation functions. Reference Process Identification section.
3079 (Process Identification): Add information about process ID
3080 lifetime. Describe Linux thread/task IDs.
3081 * manual/signal.texi (Signaling Another Process): Mention that the
3082 signal is always sent to the process.
3083
3084 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3085
3086 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3087 and tst-ldbl-efgcvt.
3088 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3089 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3090 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3091 (fcvt_tests, output_error, output_r_error, do_test): Use the
3092 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3093 select the type of floating-point variables and arguments; to
3094 produce extra tests for double and conversion specifiers for
3095 printf; and to set the names of called functions.
3096 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3097 in tst-efgcvt-template.c.
3098 * misc/tst-ldbl-efgcvt.c: Likewise.
3099
3100 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3101
3102 * nss/Makefile (tst-nss-test3.out): New rule.
3103
3104 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3105
3106 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3107 clobber sp.
3108
3109 2018-12-13 fanjinke <fanjinke@hygon.cn>
3110
3111 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3112 "HygonGenuine".
3113
3114 2018-12-13 Andreas Schwab <schwab@suse.de>
3115
3116 [BZ #23861]
3117 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3118 (__pthread_rwlock_rdlock_full): Update expected value for
3119 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3120 * nptl/tst-rwlock-pwn.c: New file.
3121 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3122
3123 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3124
3125 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3126 definition.
3127
3128 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3129
3130 * benchtests/scripts/compare_bench.py (do_compare): write to
3131 stderr in casestat is not present.
3132 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3133 stderr in case timings field is not present. Also string showing
3134 the output filename goes into the stderr.
3135
3136 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3137
3138 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3139 and ZeroDivisorError exceptions.
3140 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3141 argument to loop through user provided statistics.
3142 * benchtests/scripts/compare_bench.py (main): Include the --stats
3143 argument.
3144
3145 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3146
3147 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3148 instead of return.
3149
3150 2018-12-12 Florian Weimer <fweimer@redhat.com>
3151
3152 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3153 clause to copyright header.
3154
3155 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3156
3157 [BZ #23614]
3158 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3159 registers saved in the stack frame.
3160 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3161 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3162
3163 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3164
3165 * include/bits/monetary-ldbl.h: New file.
3166 * include/bits/printf-ldbl.h: Likewise.
3167 * include/bits/stdio-ldbl.h: Likewise.
3168 * include/bits/stdlib-ldbl.h: Likewise.
3169 * include/bits/syslog-ldbl.h: Likewise.
3170 * include/bits/wchar-ldbl.h: Likewise.
3171
3172 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3173
3174 * libio/libio.h: Remove redirection for _IO_vfprintf.
3175
3176 2018-12-11 Andreas Schwab <schwab@suse.de>
3177
3178 * Makerules: Remove all references to abilist-pattern.
3179 (update-all-abi): Simplify find expression.
3180
3181 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3182
3183 [BZ #23961]
3184 * math/auto-libm-test-in: Add new test case.
3185 * math/auto-libm-test-out-pow: Regenerated.
3186 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3187
3188 2018-12-10 DJ Delorie <dj@redhat.com>
3189
3190 [BZ #23948]
3191 * support/test-container.c: Move postclean step to before we
3192 change namespaces.
3193
3194 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3195
3196 * scripts/gen-as-const.py (main): Handle --python option.
3197 * scripts/gen-py-const.awk: Remove.
3198 * Makerules (py-const-script): Use gen-as-const.py.
3199 ($(py-const)): Likewise.
3200 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3201 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3202 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3203 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3204 ~PTHREAD_MUTEX_NO_ELISION_NP.
3205 * manual/README.pretty-printers: Update reference to
3206 gen-py-const.awk.
3207
3208 * scripts/glibcextract.py: New file.
3209 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3210 or tempfile. Import glibcexctract.
3211 (compute_c_consts): Remove. Moved to glibcextract.py.
3212 (gen_test): Update reference to compute_c_consts.
3213 (main): Likewise.
3214 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3215 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3216 * sysdeps/unix/sysv/linux/Makefile
3217 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3218 Redirect stderr as well as stdout.
3219
3220 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3221
3222 [BZ #19767]
3223 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3224 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3225 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3226 ALWAYS_USE_VSYSCALL.
3227 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3228 ALWAYS_USE_VSYSCALL.
3229 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3230 ALWAYS_USE_VSYSCALL.
3231
3232 2018-12-10 Florian Weimer <fweimer@redhat.com>
3233
3234 [BZ #23972]
3235 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3236 offset instead of count for clarity. Fix typo in comment.
3237 (__old_getdents64): Keep track of previous offset. Use it to call
3238 handle_overflow.
3239 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3240 that d_off is never zero.
3241
3242 2018-12-10 Andreas Schwab <schwab@suse.de>
3243
3244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3245 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3246 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3247 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3248 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3249
3250 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3251
3252 * timezone/private.h: Update from tzcode 2018g.
3253 * timezone/tzfile.h: Likewise.
3254 * timezone/tzselect.ksh: Likewise.
3255 * timezone/zdump.c: Likewise.
3256 * timezone/zic.c: Likewise.
3257
3258 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3259
3260 [BZ #23490]
3261 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3262 (do_test): Adjust buffer size and fix format.
3263
3264 2018-12-07 DJ Delorie <dj@redhat.com>
3265
3266 [BZ #23907]
3267 * malloc/tst-tcfree3.c: New.
3268 * malloc/Makefile: Add it.
3269
3270 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3271
3272 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3273
3274 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3275
3276 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3277 used as a mask for the mode argument of __vfscanf_internal and
3278 __vfwscanf_internal.
3279 * stdio-common/vfscanf-internal.c
3280 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3281 (__strtof128_internal): Define to __wcstof128_internal.
3282 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3283 __strtof128_internal or __wcstof128_internal when the format of
3284 long double is the same as _Float128.
3285
3286 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3287
3288 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3289 * posix/confstr.c (confstr): Rename to __confstr.
3290 (__confstr): Add hidden def.
3291 (confstr): Add weak alias for __confstr.
3292 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3293 confstr.
3294
3295 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3296
3297 * NEWS: Mention getcpu.
3298 * include/sched.h (__getcpu): New libc_hidden_proto.
3299 * manual/resource.texi: Document getcpu.
3300 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3301 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3302 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3303 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3304 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3305 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3306 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3307 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3308 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3309 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3310 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3311 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3312 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3313 Likewise.
3314 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3315 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3316 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3317 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3318 Likewise.
3319 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3320 Likewise.
3321 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3322 Likewise.
3323 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3324 Likewise.
3325 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3326 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3327 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3328 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3329 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3330 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3331 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3332 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3333 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3334 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3335 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3336 Also check getcpu.
3337
3338 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3339
3340 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3341 functions.
3342 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3343
3344 2018-12-07 Florian Weimer <fweimer@redhat.com>
3345
3346 [BZ #17405]
3347 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3348 * posix/Versions (GLIBC_2.29): Export
3349 posix_spawn_file_actions_addfchdir_np.
3350 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3351 * posix/spawn_faction_destroy.c
3352 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3353 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3354 and the field action.fchdir_action.
3355 * posix/tst-spawn-chdir.c (add_chdir): New function.
3356 (do_test): Add do_fchdir loop. Call add_chdir.
3357 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3358 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3359 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3360 posix_spawn_file_actions_addfchdir_np.
3361 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3362 Likewise.
3363 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3364 Likewise.
3365 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3366 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3367 Likewise.
3368 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3369 Likewise.
3370 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3371 Likewise.
3372 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3373 Likewise.
3374 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3375 Likewise.
3376 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3377 Likewise.
3378 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3379 (GLIBC_2.29): Likewise.
3380 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3381 (GLIBC_2.29): Likewise.
3382 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3383 (GLIBC_2.29): Likewise.
3384 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3385 (GLIBC_2.29): Likewise.
3386 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3387 Likewise.
3388 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3389 (GLIBC_2.29): Likewise.
3390 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3391 (GLIBC_2.29): Likewise.
3392 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3393 (GLIBC_2.29): Likewise.
3394 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3395 (GLIBC_2.29): Likewise.
3396 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3397 Likewise.
3398 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3399 Likewise.
3400 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3401 Likewise.
3402 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3403 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3404 Likewise.
3405 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3406 Likewise.
3407 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3408 Likewise.
3409 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3410 Likewise.
3411
3412 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3413
3414 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3415 trailing whitespace removed.
3416 * scripts/config.guess: Update to version 2018-11-28.
3417 * scripts/config.sub: Update to version 2018-11-28.
3418 * scripts/install-sh: Update to version 2018-03-11.20.
3419 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3420 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3421
3422 2018-12-07 Florian Weimer <fweimer@redhat.com>
3423
3424 [BZ #23927]
3425 CVE-2018-19591
3426 * inet/tst-if_index-long.c: New file.
3427 * inet/Makefile (tests): Add tst-if_index-long.
3428
3429 2018-12-07 Florian Weimer <fweimer@redhat.com>
3430
3431 * support/check.h (support_record_failure_is_failed): Declare.
3432 * support/descriptors.h: New file.
3433 * support/support_descriptors.c: Likewise.
3434 * support/tst-support_descriptors.c: Likewise.
3435 * support/support_record_failure.c
3436 (support_record_failure_is_failed): New function.
3437 * support/Makefile (libsupport-routines): Add support_descriptors.
3438 (tests): Add tst-support_descriptors.
3439
3440 2018-12-05 Zack Weinberg <zackw@panix.com>
3441 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3442
3443 * stdio-common/vfprintf-internal.c
3444 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3445 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3446 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3447 and __no_long_double.
3448 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3449 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3450 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3451 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3452 and __nldbl_*syslog* functions.
3453 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3454 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3455 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3456 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3457 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3458 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3459 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3460 (__nldbl_vwprintf, __nldbl_wprintf):
3461 Directly call the appropriate __v*printf_internal routine, passing
3462 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3463 variable names.
3464 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3465 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3466 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3467 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3468 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3469 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3470 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3471 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3472 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3473 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3474 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3475 (__nldbl_syslog, __nldbl_vsyslog):
3476 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3477 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3478 appropriate.
3479 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3480 appropriate.
3481
3482 2018-12-05 Zack Weinberg <zackw@panix.com>
3483 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3484
3485 [BZ #11319]
3486 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3487 Moved here from debug/vsprintf_chk.c.
3488 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3489 and completion logic for the strfile to match exactly what
3490 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3491 _IO_str_init_static_internal instead of maxlen-1.
3492 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3493 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3494 __vsprintf_internal.
3495
3496 * debug/vsprintf_chk.c (__vsprintf_chk)
3497 * debug/sprintf_chk.c (__sprintf_chk):
3498 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3499 'flags' argument is positive, and slen as maxlen. No need to lock
3500 the FILE and/or construct a temporary FILE. Minimize and normalize
3501 header inclusions and variable names. Do not libc_hidden_def anything.
3502
3503 * debug/asprintf_chk.c (__asprintf_chk)
3504 * debug/dprintf_chk.c (__dprintf_chk)
3505 * debug/fprintf_chk.c (__fprintf_chk)
3506 * debug/fwprintf_chk.c (__fwprintf_chk)
3507 * debug/printf_chk.c (__printf_chk)
3508 * debug/snprintf_chk.c (__snprintf_chk)
3509 * debug/swprintf_chk.c (__swprintf_chk)
3510 * debug/vasprintf_chk.c (__vasprintf_chk)
3511 * debug/vdprintf_chk.c (__vdprintf_chk)
3512 * debug/vfprintf_chk.c (__vfprintf_chk)
3513 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3514 * debug/vprintf_chk.c (__vprintf_chk)
3515 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3516 * debug/vswprintf_chk.c (__vswprintf_chk)
3517 * debug/vwprintf_chk.c (__vwprintf_chk)
3518 * debug/wprintf_chk.c (__wprintf_chk):
3519 Directly call the corresponding vxxprintf_internal function, passing
3520 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3521 the FILE and/or construct a temporary FILE. Minimize and normalize
3522 header inclusions and variable names. Do not libc_hidden_def anything.
3523
3524 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3525 __obstack_vprintf_internal.
3526 (__obstack_vprintf_chk): Convert into a wrapper that calls
3527 __obstack_vprintf_internal (these two functions already had the
3528 same code) and move to new file...
3529 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3530 file.
3531 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3532 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3533 * debug/Makefile (routines): Add vobprintf_chk.
3534
3535 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3536 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3537 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3538 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3539 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3540 (__nldbl___obstack_vfprintf_chk):
3541 Directly call the corresponding vxxprintf_internal function,
3542 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3543 duplicate comparison of slen with 0 or maxlen from the corresponding
3544 non-__nldbl function.
3545
3546 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3547 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3548 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3549 Remove libc_hidden_proto.
3550
3551 * stdio-common/vfprintf-internal.c
3552 (__vfprintf_internal, __vfwprintf_internal):
3553 Do not check _IO_FLAGS2_FORTIFY.
3554 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3555 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3556 a comment explaining why it has the maxlen argument.
3557 (_IO_acquire_lock_clear_flags2_fct): Remove.
3558 (_IO_acquire_lock_clear_flags2): Remove.
3559 (_IO_release_lock): Remove conditional statement which will
3560 now never execute.
3561 (_IO_acquire_lock): Remove variable which is now unused.
3562 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3563 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3564
3565 * stdio-common/Makefile (tests): Add tst-bz11319 and
3566 tst-bz11319-fortify2.
3567 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3568 * stdio-common/tst-bz11319-fortify2.c: New file.
3569 * stdio-common/tst-bz11319.c: Likewise.
3570
3571 2018-12-05 Zack Weinberg <zackw@panix.com>
3572 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3573
3574 * misc/syslog.c: Include libioP.h, not iolibio.h.
3575 (__vsyslog_internal): New function with the former body of
3576 __vsyslog_chk; takes mode_flags argument same as
3577 __v*printf_internal. Call __vfprintf_internal directly.
3578
3579 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3580 Remove libc_hidden_def.
3581 (__syslog, __syslog_chk): Use __vsyslog_internal.
3582 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3583
3584 * include/sys/syslog.h: Add multiple inclusion guard.
3585 Add prototype for __vsyslog_internal.
3586 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3587
3588 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3589 Use __vsyslog_internal.
3590
3591 2018-12-05 Zack Weinberg <zackw@panix.com>
3592 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3593
3594 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3595 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3596 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3597 New functions.
3598 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3599 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3600
3601 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3602 Include wctype.h here if COMPILE_WPRINTF is defined.
3603 Define __vfprintf_internal or __vfwprintf_internal, depending
3604 on COMPILE_WPRINTF.
3605 Temporarily, on entry to this function, update mode_flags
3606 according to the environmental settings corresponding to
3607 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3608 Throughout, check mode_flags instead of __ldbl_is_dbl and
3609 _IO_FLAGS2_FORTIFY on the destination FILE.
3610 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3611 Include vfprintf-internal.c. Don't include wctype.h.
3612 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3613 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3614 and vfprintf.
3615 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3616 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3617 and vfwprintf.
3618 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3619
3620 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3621 and add mode_flags argument; use __vfprintf_internal.
3622 (__vdprintf): New function. Alias vdprintf to this.
3623 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3624 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3625 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3626 (__obstack_printf): Use __obstack_printf_internal.
3627 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3628 public aliases __vsnprintf and vsnprintf.
3629 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3630 called internally.
3631 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3632 public aliases _IO_vsprintf and vsprintf.
3633 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3634 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3635 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3636 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3637 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3638
3639 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3640 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3641 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3642 * stdio-common/printf.c: Use __vfprintf_internal.
3643
3644 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3645 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3646 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3647
3648 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3649 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3650 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3651 __vfwprintf_internal.
3652
3653 * libio/libio.h: Remove libc_hidden_proto and declaration for
3654 _IO_vfprintf.
3655 Remove declaration of _IO_vfwprintf.
3656 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3657 _IO_vsprintf.
3658 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3659 _IO_obstack_printf.
3660 * include/stdio.h: Add prototype for __vasprintf.
3661 (__vsnprintf): Remove declaration, because there are no more
3662 internal calls.
3663 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3664 declaration, because there are no more internal calls.
3665
3666 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3667 __vsnprintf_internal, instead of _IO_vsnprintf.
3668 * argp/argp-help.c (__argp_error, __argp_failure): Use
3669 __vasprintf_internal, instead of _IO_vasprintf.
3670 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3671 redefine, because there are no more internal calls.
3672
3673 2018-12-05 Zack Weinberg <zackw@panix.com>
3674 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3675
3676 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3677 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3678 Include libio/strfile.h instead of libioP.h.
3679 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3680 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3681 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3682 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3683 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3684 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3685 necessary. Do not set __no_long_double. Normalize variable names.
3686 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3687 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3688 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3689 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3690 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3691 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3692 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3693 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3694 Do not set __no_long_double. Normalize variable names.
3695
3696 2018-12-05 Zack Weinberg <zackw@panix.com>
3697 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3698
3699 * stdio-common/isoc99_scanf.c
3700 * stdio-common/isoc99_fscanf.c
3701 * stdio-common/isoc99_sscanf.c
3702 * stdio-common/isoc99_vscanf.c
3703 * stdio-common/isoc99_vfscanf.c
3704 * stdio-common/isoc99_vsscanf.c
3705 * wcsmbs/isoc99_wscanf.c
3706 * wcsmbs/isoc99_fwscanf.c
3707 * wcsmbs/isoc99_swscanf.c
3708 * wcsmbs/isoc99_vwscanf.c
3709 * wcsmbs/isoc99_vfwscanf.c
3710 * wcsmbs/isoc99_vswscanf.c:
3711 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3712 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3713 No need to lock and unlock the FILE passed to that function.
3714
3715 * stdio-common/vfscanf-internal.c
3716 (__vfscanf_internal, __vfwscanf_internal):
3717 Don't look at _IO_FLAGS2_SCANF_STD.
3718 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3719 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3720 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3721
3722 2018-12-05 Zack Weinberg <zackw@panix.com>
3723 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3724
3725 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3726 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3727 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3728 * libio/strfile.h: Add multiple inclusion guard.
3729 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3730
3731 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3732 consistency with the other version of this file.
3733 (ldbl_compat_symbol): New macro.
3734 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3735 New macro.
3736
3737 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3738 Define __vfscanf_internal or __vfwscanf_internal, depending on
3739 COMPILE_WSCANF; don't define any other public symbols.
3740 Remove errval and code to set errp.
3741 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3742 as the mode_flags argument.
3743 (encode_error, conv_error, input_error): Don't set errval.
3744 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3745 Include vfscanf-internal.c.
3746 * stdio-common/vfscanf.c: New file defining the public entry
3747 point vfscanf, which calls __vfscanf_internal.
3748 * stdio-common/vfwscanf.c: New file defining the public entry
3749 point vfwscanf, which calls __vfwscanf_internal.
3750
3751 * stdio-common/iovfscanf.c: New file.
3752 * stdio-common/iovfwscanf.c: Likewise.
3753
3754 * stdio-common/Makefile (routines): Add vfscanf-internal,
3755 vfwscanf-internal, iovfscanf, iovfwscanf.
3756 * stdio-common/Versions: Mention GLIBC_2.29, so that
3757 it can be used in SHLIB_COMPAT expressions.
3758 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3759 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3760 Call __vfscanf_internal, instead of _IO_vfscanf.
3761 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3762 _IO_vfscanf.
3763 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3764 _IO_vfwscanf.
3765
3766 * libio/iovsscanf.c: Clean up includes, when possible. Use
3767 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3768 __vfscanf_internal or __vfwscanf_internal directly.
3769 * libio/iovswscanf.c: Likewise.
3770 * libio/swscanf.c: Likewise.
3771 * libio/vscanf.c: Likewise.
3772 * libio/vwscanf.c: Likewise.
3773 * libio/wscanf.c: Likewise.
3774 * stdio-common/isoc99_fscanf.c: Likewise.
3775 * stdio-common/isoc99_scanf.c: Likewise.
3776 * stdio-common/isoc99_sscanf.c: Likewise.
3777 * stdio-common/isoc99_vfscanf.c: Likewise.
3778 * stdio-common/isoc99_vscanf.c: Likewise.
3779 * stdio-common/isoc99_vsscanf.c: Likewise.
3780 * stdio-common/scanf.c: Likewise.
3781 * stdio-common/sscanf.c: Likewise.
3782 * wcsmbs/isoc99_fwscanf.c: Likewise.
3783 * wcsmbs/isoc99_swscanf.c: Likewise.
3784 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3785 * wcsmbs/isoc99_vswscanf.c: Likewise.
3786 * wcsmbs/isoc99_vwscanf.c: Likewise.
3787 * wcsmbs/isoc99_wscanf.c: Likewise.
3788
3789 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3790
3791 * include/time.h
3792 (__tz_compute): Replace time_t with __time64_t.
3793 (__tz_convert): Replace time_t* with __time64_t.
3794 (__offtime): Replace time_t* with __time64_t.
3795 * time/gmtime.c
3796 (__gmtime_r): Adjust call to __tz_convert.
3797 (gmtime): Likewise.
3798 * time/localtime.c
3799 (__localtime_r): Likewise.
3800 (localtime): Likewise.
3801 * time/offtime.c: Replace time_t with __time64_t.
3802 * time/tzset.c: Likewise.
3803
3804 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3805
3806 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3807 dynamic linker unless [$(run-built-tests) = yes].
3808
3809 2018-12-03 DJ Delorie <dj@delorie.com>
3810
3811 * support/test-container.c (check_for_unshare_hints): New.
3812 (main): Call it if unshare fails. Add support for "su" scriptlet
3813 command.
3814
3815 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3816
3817 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3818 'START' to indicate that start text should be output.
3819 (gen_test): Likewise.
3820 (main): Generate 'START' for first symbol or '--' line, or at end
3821 of input if not previously generated.
3822
3823 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3824
3825 [BZ #19767]
3826 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3827 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3828 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3829 ALWAYS_USE_VSYSCALL.
3830
3831 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3832
3833 [BZ #23913]
3834 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3835 new_argv by one.
3836
3837 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3838
3839 [BZ #23923]
3840 * locale/programs/localedef.c: Declare boolean hard_links default true.
3841 (options): Add --no-hard-links option.
3842 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3843 * locale/programs/localedef.h: Declare prototype for hard_links.
3844 * locale/programs/locfile.c (write_locale_data): Don't use hard
3845 links if hard_links is false.
3846
3847 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3848
3849 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3850 cpu_features_basic.
3851 (__cache_sysconf): Likewise.
3852 (init_cacheinfo): Likewise.
3853 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3854 populate COMMON_CPUID_INDEX_80000007 and
3855 COMMON_CPUID_INDEX_80000008.
3856 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3857 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3858 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3859 (init_cpu_features): Use _Static_assert on
3860 index_arch_Fast_Unaligned_Load.
3861 __get_cpuid_registers and __get_arch_feature. Updated for
3862 cpu_features_basic. Set stepping in cpu_features.
3863 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3864 (FEATURE_INDEX_2): New.
3865 (FEATURE_INDEX_MAX): Changed to enum.
3866 (COMMON_CPUID_INDEX_D_ECX_1): New.
3867 (COMMON_CPUID_INDEX_80000007): Likewise.
3868 (COMMON_CPUID_INDEX_80000008): Likewise.
3869 (cpuid_registers): Likewise.
3870 (cpu_features_basic): Likewise.
3871 (CPU_FEATURE_USABLE): Likewise.
3872 (bit_arch_XXX_Usable): Likewise.
3873 (cpu_features): Use cpuid_registers and cpu_features_basic.
3874 (bit_arch_XXX): Reweritten.
3875 (bit_cpu_XXX): Likewise.
3876 (index_cpu_XXX): Likewise.
3877 (reg_XXX): Likewise.
3878 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3879 <support/check.h>.
3880 (CHECK_CPU_FEATURE): New.
3881 (CHECK_CPU_FEATURE_USABLE): Likewise.
3882 (cpu_kinds): Likewise.
3883 (do_test): Print vendor, family, model and stepping. Check
3884 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
3885 (TEST_FUNCTION): Removed.
3886 Include <support/test-driver.c> instead of
3887 "../../test-skeleton.c".
3888 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
3889 Check POPCNT instead of POPCOUNT.
3890 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
3891
3892 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3893
3894 * scripts/gen-as-const.py (main): Avoid emitting empty line when
3895 there is no element in `consts'.
3896
3897 2018-12-01 Florian Weimer <fweimer@redhat.com>
3898
3899 * support/support_capture_subprocess.c
3900 (support_capture_subprocess): Check that pipe descriptors have
3901 expected values. Close original pipe descriptors in subprocess.
3902
3903 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3904
3905 [BZ #23032]
3906 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
3907 attr with __pthread_default_barrierattr.
3908 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
3909 attr with __pthread_default_condattr.
3910 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
3911 attr with __pthread_default_mutexattr.
3912 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
3913 attr with __pthread_default_rwlockattr.
3914
3915 2018-12-01 Kemi Wang <kemi.wang@intel.com>
3916
3917 * manual/tunables.texi (POSIX Thread Tunables): New node.
3918 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
3919 * nptl/nptl-init.c: Include pthread_mutex_conf.h
3920 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
3921 __pthread_tunables_init.
3922 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
3923 (max_adaptive_count): Define.
3924 * nptl/pthread_mutex_conf.c: New file.
3925 * nptl/pthread_mutex_conf.h: New file.
3926 * sysdeps/generic/adaptive_spin_count.h: New file.
3927 * sysdeps/nptl/dl-tunables.list: New file.
3928 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
3929 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
3930 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
3931 Likewise.
3932
3933 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3934
3935 [BZ #20544]
3936 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
3937 * stdlib/on_exit.c (__on_exit): Likewise.
3938 * stdlib/Makefile (tests): Add tst-bz20544.
3939 * stdlib/tst-bz20544.c: New test.
3940
3941 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
3942
3943 [BZ #19767]
3944 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
3945 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
3946 New.
3947
3948 2018-11-30 Florian Weimer <fweimer@redhat.com>
3949
3950 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
3951 Extend error logging.
3952 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
3953 symbol.
3954
3955 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3956
3957 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
3958 __sigismember instead of sigismember.
3959 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
3960 cancel_handler): New definitions.
3961 (do_system): Use posix_spawn instead of fork and execl and remove
3962 reentracy code.
3963 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
3964 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
3965 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
3966 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
3967 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
3968 * sysdeps/unix/sysv/linux/system.c: Likewise.
3969
3970 [BZ #22834]
3971 [BZ #17490]
3972 * NEWS: Add new semantic for atfork with popen and system.
3973 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
3974 fork and execl.
3975
3976 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3977
3978 [BZ #23690]
3979 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
3980 modification order when accessing reloc_result->addr.
3981 * include/link.h (reloc_result): Add field init.
3982 * nptl/Makefile (tests): Add tst-audit-threads.
3983 (modules-names): Add tst-audit-threads-mod1 and
3984 tst-audit-threads-mod2.
3985 Add rules to build tst-audit-threads.
3986 * nptl/tst-audit-threads-mod1.c: New file.
3987 * nptl/tst-audit-threads-mod2.c: Likewise.
3988 * nptl/tst-audit-threads.c: Likewise.
3989 * nptl/tst-audit-threads.h: Likewise.
3990
3991 2018-11-30 Joseph Myers <joseph@codesourcery.com>
3992
3993 * scripts/gen-as-const.py: New file.
3994 * scripts/gen-as-const.awk: Remove.
3995 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
3996 gen-as-const.py.
3997 ($(objpfx)test-as-const-%.c): Likewise.
3998
3999 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4000
4001 * elf/dl-exception.c: Include <_itoa.h>.
4002
4003 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4004
4005 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4006 returned by __f_setlk.
4007
4008 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4009 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4010
4011 * elf/Makefile (tests-internal): Add tst-create_format1.
4012 * elf/dl-exception.c (_dl_exception_create_format): Support
4013 %x, %lx and %zx.
4014 * elf/tst-create_format1.c: New file.
4015
4016 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4017
4018 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4019 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4020 gnulib.)
4021 * argp/argp-help.c (__argp_failure): Likewise.
4022
4023 2018-11-29 Mao Han <han_mao@c-sky.com>
4024
4025 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4026 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4027 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4028 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4029 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4030 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4031 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4032 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4033 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4034 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4035 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4036 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4037 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4038 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4039 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4040 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4041 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4042 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4043 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4044 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4045 (R_CKCORE_TLS_TPOFF32): New defines.
4046
4047 2018-11-29 Florian Weimer <fweimer@redhat.com>
4048
4049 * posix/Makefile (before-compile): Remove testcases.h and
4050 ptestcases.h.
4051 (generated): Add testcases.h and ptestcases.h.
4052 (testcases.h, ptestcases.h): Move to $(objpfx).
4053 (runtests.o): Add dependency on testcases.h.
4054 (runptests.o): Add dependency on ptestcases.h.
4055 * posix/testcases.h, posix/ptestcases.h: Remove files.
4056 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4057 not touch posix/testcases.h and posix/ptestcases.h.
4058
4059 2018-11-28 Florian Weimer <fweimer@redhat.com>
4060
4061 support: Add signal support to support_capture_subprocess_check.
4062 * support/capture_subprocess.h (support_capture_subprocess_check):
4063 Adjust comment and rename parameter.
4064 * support/support_capture_subprocess_check.c
4065 (print_actual_status): New function.
4066 (support_capture_subprocess_check): Support negative
4067 status_or_signal. Call print_actual_status.
4068 * support/tst-support_capture_subprocess.c (do_test): Call
4069 support_capture_subprocess_check.
4070 * libio/tst-vtables-common.c (termination_status)
4071 (init_termination_status): Remove.
4072 (check_for_termination): Adjust support_capture_subprocess_check
4073 call.
4074 (do_test): Remove call to init_termination_status.
4075
4076 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4077
4078 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4079 source directory instead of a copy.
4080 (CommandList.create_copy_dir): Remove.
4081
4082 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4083
4084 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4085
4086 2018-11-28 Florian Weimer <fweimer@redhat.com>
4087
4088 * support/support.h (support_quote_string): Do not use str
4089 parameter name.
4090
4091 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4092
4093 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4094 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4095
4096 2018-11-27 Florian Weimer <fweimer@redhat.com>
4097
4098 * support/support.h (support_quote_string): Declare.
4099 * support/support_quote_string.c: New file.
4100 * support/tst-support_quote_string.c: Likewise.
4101 * support/Makefile (libsupport-routines): Add
4102 support_quote_string.
4103 (tests): Add tst-support_quote_string.
4104
4105 2018-11-27 Florian Weimer <fweimer@redhat.com>
4106
4107 [BZ #23927]
4108 CVE-2018-19591
4109 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4110 descriptor leak in case of ENODEV error.
4111
4112 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4113
4114 [BZ #19767]
4115 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4116 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4117 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4118
4119 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4120
4121 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4122 Error for unknown lines.
4123
4124 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4125
4126 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4127 Touch additional files.
4128
4129 2018-11-26 Florian Weimer <fweimer@redhat.com>
4130
4131 [BZ #23907]
4132 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4133 double-frees.
4134
4135 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4136
4137 [BZ #19767]
4138 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4139 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4140 SHARED. Include sysdep.h.
4141 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4142 ALWAYS_USE_VSYSCALL.
4143 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4144 ALWAYS_USE_VSYSCALL.
4145
4146 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4147
4148 [BZ #19767]
4149 * nptl/Makefile (tests-static): Add tst-cond11-static.
4150 (tests): Likewise.
4151 * nptl/tst-cond11-static.c: New File.
4152 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4153 tst-affinity-static.
4154 (tests): Likewise.
4155 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4156 instead of SHARED.
4157 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4158 (USE_VSYSCALL): Likewise.
4159 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4160 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4161 instead of SHARED.
4162 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4163 SHARED.
4164 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4165 New.
4166
4167 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4168
4169 [BZ #23915]
4170 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4171 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4172 Undefine.
4173
4174 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4175
4176 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4177 (tst-cet-legacy-1a-ARGS): New.
4178 ($(objpfx)tst-cet-legacy-1a): New target.
4179 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4180
4181 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4182
4183 * conform/conformtest.py (CompileSubTest.__init__): Set
4184 self.run_early to False.
4185 (ExecuteSubTest.__init__): Likewise.
4186 (HeaderTests.run): Try running all non-optional, non-XFAILed
4187 compilation tests in a single execution of the compiler.
4188
4189 * conform/conformtest.py (CompileSubTest): New class.
4190 (ExecuteSubTest): Likewise.
4191 (ElementTest.run): Rename to gen_subtests. Append tests to
4192 self.subtests instead of running them.
4193 (ConstantTest.run): Likewise.
4194 (SymbolTest.run): Likewise.
4195 (TypeTest.run): Likewise.
4196 (TagTest.run): Likewise.
4197 (FunctionTest.run): Likewise.
4198 (VariableTest.run): Likewise.
4199 (MacroFunctionTest.run): Likewise.
4200 (MacroStrTest.run): Likewise.
4201 (HeaderTests.handle_test_line): Generate subtests for tests.
4202 (HeaderTests.run): Run subtests for tests.
4203
4204 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4205
4206 * math/Versions (GLIBC_2.29): Add pow.
4207 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4208 symbol.
4209 * math/w_pow.c: New file.
4210 * sysdeps/i386/fpu/w_pow.c: New file.
4211 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4212 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4213 and add necessary aliases.
4214 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4215 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4216 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4217 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4218 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4219 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4220 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4221 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4222 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4223 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4224 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4225 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4226 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4227 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4228 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4229 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4230 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4231 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4232 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4233 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4234 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4235 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4236 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4237 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4238 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4239 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4240 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4241 __pow.
4242 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4243 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4244 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4245
4246 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4247
4248 * math/Versions (GLIBC_2.29): Add log2.
4249 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4250 symbol.
4251 * math/w_log2.c: New file.
4252 * sysdeps/i386/fpu/w_log2.c: New file.
4253 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4254 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4255 and add necessary aliases.
4256 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4257 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4258 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4259 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4260 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4261 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4262 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4263 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4264 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4265 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4266 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4267 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4268 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4269 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4270 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4271 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4272 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4273 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4275 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4276 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4277 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4278 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4279 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4280 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4281 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4282
4283 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4284
4285 * math/Versions (GLIBC_2.29): Add log.
4286 * math/w_log_compat.c (__log_compat): Change to versioned compat
4287 symbol.
4288 * math/w_log.c: New file.
4289 * sysdeps/i386/fpu/w_log.c: New file.
4290 * sysdeps/ia64/fpu/e_log.S: Update.
4291 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4292 and add necessary aliases.
4293 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4294 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4295 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4296 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4297 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4298 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4299 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4300 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4301 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4302 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4303 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4304 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4305 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4306 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4307 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4308 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4309 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4310 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4312 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4313 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4314 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4315 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4316 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4317 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4318 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4319 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4320 __log.
4321 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4322 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4323 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4324 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4325
4326 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4327
4328 * math/Versions (GLIBC_2.29): Add exp and exp2.
4329 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4330 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4331 * math/w_exp_compat.c (__exp_compat): Likewise.
4332 * math/w_exp.c: New file.
4333 * math/w_exp2.c: New file.
4334 * sysdeps/i386/fpu/w_exp.c: New file.
4335 * sysdeps/i386/fpu/w_exp2.c: New file.
4336 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4337 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4338 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4339 and add necessary aliases.
4340 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4341 and add necessary aliases.
4342 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4343 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4344 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4345 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4346 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4347 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4348 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4349 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4350 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4351 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4352 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4353 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4354 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4355 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4356 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4357 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4358 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4359 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4360 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4361 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4362 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4363 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4364 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4365 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4366 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4367 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4368 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4369 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4370 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4371 (__ieee754_exp): Rename to __exp.
4372 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4373 (__ieee754_exp): Rename to __exp.
4374 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4375 (__ieee754_exp): Rename to __exp.
4376 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4377 __exp.
4378 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4379
4380 2018-11-20 DJ Delorie <dj@redhat.com>
4381
4382 * malloc/malloc.c (tcache_entry): Add key field.
4383 (tcache_put): Set it.
4384 (tcache_get): Likewise.
4385 (_int_free): Check for double free in tcache.
4386 * malloc/tst-tcfree1.c: New.
4387 * malloc/tst-tcfree2.c: New.
4388 * malloc/Makefile: Run the new tests.
4389 * manual/probes.texi: Document memory_tcache_double_free probe.
4390
4391 * dlfcn/dlerror.c (check_free): Prevent double frees.
4392
4393 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4394
4395 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4396
4397 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4398
4399 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4400 in tests. Use names for format arguments.
4401 (ConstantTest.run): Likewise.
4402 (SymbolTest.run): Likewise.
4403 (TypeTest.run): Likewise.
4404 (TagTest.run): Likewise.
4405 (FunctionTest.run): Likewise.
4406 (VariableTest.run): Likewise.
4407 (MacroFunctionTest.run): Likewise.
4408 (MacroStrTest.run): Likewise.
4409 (HeaderTests.__init__): Set self.num_tests.
4410 (HeaderTests.handle_test_line): Set test.num. Increment
4411 self.num_tests.
4412
4413 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4414
4415 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4416 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4417 SEEK_SET.
4418
4419 2018-11-19 Mao Han <han_mao@c-sky.com>
4420
4421 * scripts/config.guess: Update to version 2018-08-29.
4422 * scripts/config.sub: Update to version 2018-08-29.
4423
4424 2018-11-19 Florian Weimer <fweimer@redhat.com>
4425
4426 support: Print timestamps in timeout handler.
4427 * support/support_test_main.c (print_timestamp): New function.
4428 (signal_handler): Use it to print the termination time and the
4429 time of the last write to standard output.
4430
4431 2018-11-16 Zack Weinberg <zackw@panix.com>
4432 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4433
4434 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4435 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4436 argument.
4437 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4438 and add flags argument. Check flags instead of __ldbl_is_dbl when
4439 deciding whether to set is_long_double.
4440 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4441 passing zero for flags argument.
4442 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4443
4444 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4445 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4446 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4447 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4448 variable names. Remove libc_hidden_def/libc_hidden_proto from
4449 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4450 longer called from within the library.
4451 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4452 for __nldbl___vstrfmon_l, declare it explicitly.
4453
4454 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4455
4456 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4457
4458 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4459 macros
4460 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4461 F_SETLK64, F_SETLKW64, respectively.
4462 * sysdeps/mach/hurd/f_setlk.c: New file.
4463 * sysdeps/mach/hurd/f_setlk.h: New file.
4464 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4465 f_setlk.
4466 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4467 (__libc_fcntl): Move non-flock operations to...
4468 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4469 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4470
4471 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4472
4473 mktime: DEBUG_MKTIME cleanup
4474 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4475 And it’s no longer needed now that glibc and Gnulib both have
4476 their own testing mechanisms for mktime.
4477 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4478
4479 mktime: fix non-EOVERFLOW errno handling
4480 [BZ#23789]
4481 mktime was not properly reporting failures when the underlying
4482 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4483 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4484 The problem could happen on non-glibc platforms, with Gnulib.
4485 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4486 (tm_diff): ... this simpler function, which does not change errno.
4487 All callers changed to deal with errno themselves.
4488 (ranged_convert, __mktime_internal): Return failure immediately if
4489 the underlying function reports any failure other than EOVERFLOW.
4490 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4491 gap code fails.
4492
4493 mktime: fix bug with Y2038 DST transition
4494 [BZ#23789]
4495 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4496 mishandle a DST transition that jumps over the Y2038 boundary.
4497 No such DST transitions are known so this is only a theoretical
4498 bug, but we might as well do things right.
4499
4500 mktime: make more room for overflow
4501 [BZ#23789]
4502 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4503 This is so that we can add tm_diff results to a previous guess,
4504 which will be useful in a later patch.
4505
4506 mktime: simplify offset guess
4507 [BZ#23789]
4508 * time/mktime.c (__mktime_internal): Omit excess precision.
4509
4510 mktime: new test for mktime failure
4511 [BZ#23789]
4512 Based on a test suggested by Albert Aribaud in:
4513 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4514 * time/Makefile (tests): Add bug-mktime4.
4515 * time/bug-mktime4.c: New file.
4516
4517 mktime: fix EOVERFLOW bug
4518 [BZ#23789]
4519 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4520 Include libc-config.h, not config.h, for __set_errno.
4521 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4522
4523 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4524
4525 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4526 __attribute_copy__ to copy attributes from name. Drop static qualifier
4527 to avoid warnings about leaf attribute not having effect on static
4528 functions.
4529
4530 2018-11-13 Florian Weimer <fweimer@redhat.com>
4531
4532 * malloc/malloc.c (fastbin_push_entry): New function.
4533 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4534 (REMOVE_FB): Remove macro.
4535 (_int_malloc): Use fastbin_pop_entry and reindent.
4536 (_int_free): Use fastbin_push_entry.
4537 (malloc_consolidate): Use atomic_exchange_acquire.
4538
4539 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4540
4541 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4542 alias attribute, not with strong_alias.
4543
4544 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4545 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4546 with additional parameter thread.
4547 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4548 in terms of __hidden_ver2.
4549 (hidden_tls_def): New macro.
4550 (libc_hidden_tls_def): Likewise.
4551 (rtld_hidden_tls_def): Likewise.
4552 (libm_hidden_tls_def): Likewise.
4553 (libmvec_hidden_tls_def): Likewise.
4554 (libresolv_hidden_tls_def): Likewise.
4555 (librt_hidden_tls_def): Likewise.
4556 (libdl_hidden_tls_def): Likewise.
4557 (libnss_files_hidden_tls_def): Likewise.
4558 (libnsl_hidden_tls_def): Likewise.
4559 (libnss_nisplus_hidden_tls_def): Likewise.
4560 (libutil_hidden_tls_def): Likewise.
4561 (libutil_hidden_tls_def): Likweise.
4562 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4563 libc_hidden_tls_def.
4564 (__sim_disabled_exceptions_thread): Likewise.
4565 (__sim_round_mode_thread): Likewise.
4566
4567 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4568 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4569 copy attributes from name.
4570
4571 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4572
4573 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4574 Use __attribute_copy__ to copy attributes from name.
4575
4576 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4577 with __hidden_ver1 call.
4578 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4579 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4580 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4581 (__cosf): Do not declare here.
4582 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4583 (__sincosf): Do not declare here.
4584 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4585 (__sinf): Do not declare here.
4586
4587 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4588 (__BIG_ENDIAN): Likewise.
4589 (__BYTE_ORDER): Likewise.
4590 (strong_alias): Likewise.
4591 (_strong_alias): Likewise.
4592
4593 2018-11-12 Florian Weimer <fweimer@redhat.com>
4594
4595 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4596 function. Move after the definition of in_smallbin_range. Do not
4597 use __builtin_expect for paths that lead to a noreturn function.
4598 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4599 because it is unclear whether this is in fact an unlikely
4600 condition.
4601 (_int_malloc, _int_free): Adjust.
4602 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4603 variables.
4604 * malloc/arena.c (heap_trim): Likewise.
4605
4606 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4607
4608 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4609 it, free it if needed.
4610 (reauthenticate): Test and use ccwdir.
4611 (child_init_port): In non-resetids case, test and use ccwdir.
4612 (child_chdir): New nested function to set ccwdir.
4613 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4614 * hurd/hurd/port.h (_hurd_port_move): New function.
4615 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4616 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4617 * hurd/Versions (_hurd_port_move): Export function.
4618 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4619 symbol.
4620 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4621 of dtablesize for allocating dtable_cloexec.
4622
4623 2018-11-09 Martin Sebor <msebor@redhat.com>
4624
4625 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4626 it's already defined.
4627 (_strong_alias): Use __attribute_copy__.
4628 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4629 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4630 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4631 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4632 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4633 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4634 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4635 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4636 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4637 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4638 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4639 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4640 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4641 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4642 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4643 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4644 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4645 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4646 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4647
4648 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4649
4650 * misc/tst-efgcvt.c: Include support/check.h and
4651 support/test-driver.c. Do not include test-skeleton.c.
4652 (error_count): Remove.
4653 (output_error): Replace increments to error_count with calls to
4654 support_record_failure.
4655 (output_r_error): Likewise.
4656 (special): Likewise.
4657 (do_test): Unconditionally return zero.
4658 (TEST_FUNCTION): Remove.
4659
4660 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4661
4662 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4663 not $(@D)/scratch.
4664 ($(linknamespace-header-tests)): Likewise.
4665
4666 * conform/conformtest.py: New file.
4667 * conform/conformtest.pl: Remove.
4668 * conform/GlibcConform.pm: Likewise.
4669 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4670 (KEYWORDS_C99): Likewise.
4671 (KEYWORDS): Likewise.
4672 * conform/Makefile ($(conformtest-header-tests)): Use
4673 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4674 option. Use --header instead of --headers.
4675 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4676 function entries.
4677 * conform/data/spawn.h-data: Likewise.
4678 * conform/data/fcntl.h-data (openat): Add space after function
4679 name.
4680 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4681 (wcscasecmp_l): Likewise.
4682 * conform/data/termios.h-data (c_cc): Add space after element
4683 name.
4684
4685 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4686
4687 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4688 instead of manually comparing and reporting mismatching strings.
4689 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4690 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4691
4692 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4693
4694 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4695 __ASSUME_SOCKETCALL.
4696 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4697 (__ASSUME_SOCKETCALL): Remove.
4698 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4699 (__ASSUME_SOCKETCALL): Likewise.
4700 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4701 (__ASSUME_SOCKETCALL): Likewise.
4702 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4703 (__ASSUME_SOCKETCALL): Likewise.
4704 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4705 (__ASSUME_SOCKETCALL): Likewise.
4706 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4707 (__ASSUME_SOCKETCALL): Likewise.
4708 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4709 (__ASSUME_SOCKETCALL): Likewise.
4710
4711 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4712
4713 [BZ #23509]
4714 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4715 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4716 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4717 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4718 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4719 lc_unknown.
4720
4721 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4722
4723 [BZ #17630]
4724 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4725
4726 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4727
4728 [BZ #23867]
4729 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4730 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4731 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4732 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4733
4734 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4735
4736 * support/support_test_compare_string.c
4737 (support_test_compare_string): Fix printf format.
4738
4739 2018-11-07 Florian Weimer <fweimer@redhat.com>
4740
4741 Implement TEST_COMPARE_STRING.
4742 * support/check.h (TEST_COMPARE_STRING): Define.
4743 (support_test_compare_string): Declare.
4744 * support/Makefile (libsupport-routines): Add
4745 support_test_compare_string.
4746 (tests): Add tst-test_compare_string.
4747 * support/support_test_compare_string.c: New file.
4748 * support/tst-test_compare_string.c: Likewise.
4749
4750 2018-11-07 Andreas Schwab <schwab@suse.de>
4751
4752 [BZ #23864]
4753 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4754 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4755 Undef.
4756
4757 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4758
4759 [BZ #23862]
4760 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4761 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4762 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4763 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4764 Likewise.
4765
4766 2018-11-06 Florian Weimer <fweimer@redhat.com>
4767
4768 [BZ #17405]
4769 * posix/Makefile (routines): Add spawn_faction_addchdir.
4770 (tests): Add tst-spawn-chdir.
4771 * posix/Versions (GLIBC_2.29): Add
4772 posix_spawn_file_actions_addchdir_np.
4773 * posix/spawn_faction_addchdir.c: New file.
4774 * posix/spawn_faction_destroy.c
4775 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4776 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4777 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4778 chdir_action.
4779 * posix/tst-spawn-chdir.c: New file.
4780 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4781 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4782 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4783 posix_spawn_file_actions_addchdir_np.
4784 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4785 Likewise.
4786 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4787 Likewise.
4788 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4789 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4790 Likewise.
4791 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4792 Likewise.
4793 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4794 Likewise.
4795 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4796 Likewise.
4797 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4798 Likewise.
4799 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4800 Likewise.
4801 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4802 (GLIBC_2.29): Likewise.
4803 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4804 (GLIBC_2.29): Likewise.
4805 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4806 (GLIBC_2.29): Likewise.
4807 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4808 (GLIBC_2.29): Likewise.
4809 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4810 Likewise.
4811 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4812 (GLIBC_2.29): Likewise.
4813 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4814 (GLIBC_2.29): Likewise.
4815 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4816 (GLIBC_2.29): Likewise.
4817 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4818 (GLIBC_2.29): Likewise.
4819 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4820 Likewise.
4821 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4822 Likewise.
4823 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4824 Likewise.
4825 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4826 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4827 Likewise.
4828 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4829 Likewise.
4830 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4831 Likewise.
4832 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4833 Likewise.
4834
4835 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4836
4837 * misc/Makefile (tests): Add tst-ldbl-error.
4838 * misc/tst-ldbl-error.c: New file.
4839
4840 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4841
4842 * misc/Makefile (tests): Add tst-ldbl-warn.
4843 * misc/tst-ldbl-warn.c: New file.
4844
4845 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4846
4847 * argp/Makefile (tests): Add tst-ldbl-argp.
4848 * argp/tst-ldbl-argp.c: New file.
4849
4850 2018-11-05 Arjun Shankar <arjun@redhat.com>
4851
4852 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4853 __gconv_path_elem and call __gconv_get_path unconditionally.
4854
4855 2018-11-05 Andreas Schwab <schwab@suse.de>
4856
4857 [BZ #22927]
4858 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4859 creating the first helper thread failed.
4860
4861 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4862
4863 * sysdeps/mach/hurd/msync.c: New file.
4864
4865 2018-11-02 Florian Weimer <fweimer@redhat.com>
4866
4867 * support/shell-container.c (copy_func): Call
4868 support_copy_file_range instead of copy_file_range to support
4869 cross-device copies.
4870
4871 2018-11-02 Florian Weimer <fweimer@redhat.com>
4872
4873 * support/test-container.c: Include <libc-pointer-arith.h> for
4874 ALIGN_UP.
4875
4876 2018-11-01 Zong Li <zong@andestech.com>
4877
4878 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4879 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4880 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4881 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4882
4883 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
4884 variable to avoid overlap arguments.
4885
4886 2018-11-01 Joseph Myers <joseph@codesourcery.com>
4887
4888 * posix/bug-regex22.c (main): Use puts with distinct error
4889 messages for unexpected success of re_compile_pattern, not printf
4890 with NULL argument to %s.
4891
4892 * stdio-common/bug22.c: Include <libc-diag.h>.
4893 (do_test): Disable -Wformat-overflow= warnings around fprintf
4894 calls outputting more than INT_MAX characters.
4895 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
4896 around printf call with NULL %s argument.
4897
4898 [BZ #23848]
4899 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
4900 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
4901 Undefine.
4902 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4903 (__ASSUME_RECVMSG_SYSCALL): Likewise.
4904 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4905 (__ASSUME_SENDTO_SYSCALL): Likewise.
4906 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4907 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
4908 [!__arch64__].
4909 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4910 (__ASSUME_CONNECT_SYSCALL): Likewise.
4911 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4912 (__ASSUME_RECVFROM_SYSCALL): Likewise.
4913 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
4914 Define.
4915 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
4916 Likewise.
4917 [__LINUX_KERNEL_VERSION >= 0x040400]
4918 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
4919 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
4920 Remove.
4921 (listen): Likewise.
4922 (setsockopt): Likewise.
4923
4924 2018-11-01 Fredrik Noring <noring@nocrew.org>
4925
4926 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
4927 with the ISA override.
4928
4929 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
4930
4931 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
4932 #endif.
4933
4934 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
4935
4936 * manual/errno.texi (EIEIO): Document how translators should
4937 translate the error message.
4938 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
4939 printing trailing whitespaces refused by git.
4940 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
4941 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
4942 * hurd/Makefile (user-interfaces): Add pci.
4943
4944 2018-10-30 Joseph Myers <joseph@codesourcery.com>
4945
4946 * conform/linknamespace.py: New file.
4947 * conform/linknamespace.pl: Remove file.
4948 * conform/Makefile ($(linknamespace-header-tests)): Use
4949 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
4950 option.
4951
4952 2018-10-30 Florian Weimer <fweimer@redhat.com>
4953
4954 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
4955 memory leaks.
4956
4957 2018-10-30 Florian Weimer <fweimer@redhat.com>
4958
4959 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
4960
4961 2018-10-30 Florian Weimer <fweimer@redhat.com>
4962
4963 * stdlib/tst-strtod-overflow.c (do_test): Switch to
4964 support_blob_repeat.
4965
4966 2018-10-30 Florian Weimer <fweimer@redhat.com>
4967
4968 Avoid spurious test failures in stdlib/test-bz22786.
4969 * support/Makefile (libsupport-routines): Add blob_repeat.
4970 (tests): Add tst-support_blob_repeat.
4971 * support/blob_repeat.h: New file.
4972 * support/blob_repeat.c: Likewise.
4973 * support/tst-support_blob_repeat.c: Likewise.
4974 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
4975 support_blob_repeat_allocate.
4976
4977 2018-10-30 Andreas Schwab <schwab@suse.de>
4978
4979 [BZ #23125]
4980 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
4981 Don't use tail call.
4982 * elf/tst-unwind-main.c: New file.
4983 * elf/Makefile (tests): Add tst-unwind-main.
4984 (CFLAGS-tst-unwind-main.c): Define.
4985
4986 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
4987
4988 [BZ #23791]
4989 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
4990 n_cs_precedes to 0.
4991 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
4992
4993 2018-10-29 Joseph Myers <joseph@codesourcery.com>
4994
4995 * conform/glibcconform.py: Do not import shutil.
4996 (list_exported_functions): Use tempfile.TemporaryDirectory instead
4997 of mkdtemp.
4998
4999 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5000 critic_missing for versions before 3.4.
5001 * configure: Regenerated.
5002 * manual/install.texi (Tools for Compilation): Document
5003 requirement for Python to build glibc.
5004 * INSTALL: Regenerated.
5005 * Rules [PYTHON]: Make code unconditional.
5006 * benchtests/Makefile [PYTHON]: Likewise.
5007 * conform/Makefile [PYTHON]: Likewise.
5008 * manual/Makefile [PYTHON]: Likewise.
5009 * math/Makefile [PYTHON]: Likewise.
5010
5011 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5012
5013 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5014 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5015 answer to interrupt_operation, return EIEIO instead of EINTR.
5016 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5017 _hurd_intr_rpc_msg_about_to global point to start of controlled
5018 assembly snippet. Make it check canceled flag.
5019 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5020 the _hurd_intr_rpc_msg_about_to point.
5021 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5022 issue, remove cancel flag check.
5023
5024 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5025
5026 * scripts/build-many-glibcs.py: Remove compatibility for missing
5027 os.cpu_count and re.fullmatch.
5028
5029 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5030
5031 [BZ #23822]
5032 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5033 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5034 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5035
5036 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5037
5038 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5039 macro.
5040
5041 2018-10-25 Florian Weimer <fweimer@redhat.com>
5042
5043 [BZ #23562]
5044 [BZ #23821]
5045 XFAIL siginfo_t si_band conform test on sparc64.
5046 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5047 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5048 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5049 (conformtest-xfail-conds): Add sparc64-linux.
5050 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5051 sparc64.
5052 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5053
5054 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5055
5056 * elf/elf.h (NT_MIPS_DSP): New macro.
5057 (NT_MIPS_FP_MODE): Likewise.
5058
5059 2018-10-25 Zong Li <zong@andestech.com>
5060
5061 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5062 name by adding the file extension (.so).
5063
5064 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5065
5066 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5067 (test-xfail-ISO11/threads.h/linknamespace,
5068 test-xfail-ISO11/threads.h/conform): Add.
5069
5070 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5071
5072 * math/gen-libm-test.py: Import os.
5073 (ALL_FLOATS_MANUAL): New constant.
5074 (ALL_FLOATS_SUFFIX): Likewise.
5075 (Ulps.all_functions): New function.
5076 (real_all_ulps): Likewise.
5077 (generate_err_table_sub): Likewise.
5078 (generate_err_table): Likewise.
5079 (main): Handle -s and -m options.
5080 * manual/libm-err-tab.pl: Remove.
5081 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5082 instead of libm-err-tab.pl.
5083 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5084 != no].
5085 * manual/install.texi (Tools for Compilation): Document
5086 requirement for Python to build manual.
5087 * INSTALL: Regenerated.
5088
5089 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5090
5091 * bits/time64.h: New file.
5092 * include/time.h: Replace internal_time_t with __time64_t.
5093 * posix/bits/types (__time64_t): Add.
5094 * stdlib/Makefile: Add bits/time64.h to includes.
5095 * time/tzfile.c: Replace internal_time_t with __time64_t.
5096
5097 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5098
5099 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5100 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5101 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5102 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5103 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5104 prototype.
5105 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5106 * posix/spawn_faction_addclose.c
5107 (__posix_spawn_file_actions_addclose): Add hidden definition.
5108 * posix/spawn_faction_adddup2.c
5109 (__posix_spawn_file_actions_adddup2): Likewise.
5110 * posix/spawn_faction_destroy.c
5111 (__posix_spawn_file_actions_destroy): Likewise.
5112 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5113 Likewise.
5114 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5115 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5116 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5117 Likewise.
5118 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5119 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5120 Likewise.
5121
5122 2018-10-24 Andreas Schwab <schwab@suse.de>
5123
5124 [BZ #18093]
5125 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5126 format cache.
5127 * elf/cache.c (print_cache): Likewise.
5128
5129 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5130
5131 * bits/timesize.h: New file.
5132 * stdlib/Makefile (headers): Add bits/timesize.h.
5133 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5134 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5135 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5136 (__SEM_PAD_AFTER_TIME): Likewise.
5137 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5138 (__SHM_PAD_AFTER_TIME): Likewise.
5139 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5140 (__MSQ_PAD_BEFORE_TIME): Likewise.
5141 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5142 (__SEM_PAD_BEFORE_TIME): Likewise.
5143 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5144 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5145 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5146 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5147 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5148 (__MSQ_PAD_BEFORE_TIME): Likewise.
5149 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5150 (__SEM_PAD_BEFORE_TIME): Likewise.
5151 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5152 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5153 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5154 (__MSQ_PAD_BEFORE_TIME): Likewise.
5155 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5156 (__SEM_PAD_BEFORE_TIME): Likewise.
5157 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5158 (__SHM_PAD_BEFORE_TIME): Likewise.
5159 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5160 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5161 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5162
5163 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5164
5165 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5166 USE_RDTSCP is defined.
5167 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5168 USE_RDTSCP is defined.
5169
5170 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5171
5172 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5173 defined.
5174
5175 [BZ #23709]
5176 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5177 independently of other flags.
5178
5179 2018-10-23 Florian Weimer <fweimer@redhat.com>
5180
5181 * time/tst-mktime2.c (N_STRINGS): Remove.
5182 (set_timezone): New function.
5183 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5184 (mktime_test1): Report localtime failure and check errno value.
5185 Use TEST_COMPARE.
5186 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5187 (do_test): Remove alarm call. Use set_timezone and array_length.
5188
5189 2018-10-23 Andreas Schwab <schwab@suse.de>
5190
5191 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5192 (__start_context): Use END instead of PSEUDO_END.
5193
5194 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5195
5196 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5197 version to 4.19.
5198
5199 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5200 version to 4.19.
5201
5202 [BZ #23793]
5203 * wcsmbs/c32rtomb.c: New file.
5204 * wcsmbs/mbrtoc32.c: Likewise.
5205 * wcsmbs/tst-c32-state.c: Likewise.
5206 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5207 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5208 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5209 (tests): Add tst-c32-state.
5210 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5211 $(gen-locales).
5212
5213 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5214
5215 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5216 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5217
5218 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5219
5220 [BZ #23794]
5221 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5222 pair and return 0 in that case, and use saved character to
5223 interpret following character.
5224 * wcsmbs/tst-c16-surrogate.c: New file.
5225 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5226 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5227 Depend on $(gen-locales)
5228
5229 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5230
5231 [BZ #23562]
5232 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5233 (struct siginfo_t): Use correct type for si_band.
5234
5235 2018-10-19 Florian Weimer <fweimer@redhat.com>
5236
5237 [BZ #23689]
5238 * resource/bits/types/struct_rusage.h (struct rusage): Update
5239 comment on struct. Remove extraneous field comment.
5240
5241 2018-10-18 David S. Miller <davem@davemloft.net>
5242
5243 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5244 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5245 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5246 sysdep_routines in subdir elf.
5247 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5248 version for __vdso_clock_gettime.
5249 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5250 Define.
5251 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5252 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5253
5254 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5255
5256 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5257
5258 * sysdeps/i386/init-arch.h: Removed.
5259 * sysdeps/i386/i586/init-arch.h: Likewise.
5260 * sysdeps/i386/i686/init-arch.h: Likewise.
5261 * sysdeps/i386/i686/hp-timing.h: Likewise.
5262 * sysdeps/x86_64/hp-timing.h: Likewise.
5263 * sysdeps/i386/isa.h: New file.
5264 * sysdeps/i386/i586/isa.h: Likewise.
5265 * sysdeps/i386/i686/isa.h: Likewise.
5266 * sysdeps/x86_64/isa.h: Likewise.
5267 * sysdeps/x86/hp-timing.h: New file.
5268 * sysdeps/x86/init-arch.h: Include <isa.h>.
5269
5270 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5271
5272 * math/libm-test-pow.inc (pow_test_data): Do not allow
5273 divide-by-zero exception for pow(+/- 0, -Inf).
5274
5275 2018-10-17 Zack Weinberg <zackw@panix.com>
5276
5277 * manual/job.texi (Job Control is Optional): Remove node, as
5278 job control has not been optional in quite some time.
5279 (Job Control): Mention briefly that systems older than
5280 POSIX.1-2001 might not support job control.
5281 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5282 defined on systems conforming to POSIX.1-2001.
5283
5284 2018-10-17 Arjun Shankar <arjun@redhat.com>
5285
5286 [BZ #22062]
5287 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5288 indentation.
5289 * (__gconv_read_conf): Mark function static.
5290 * (once): New static variable.
5291 * (__gconv_load_conf): New function.
5292 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5293 * iconv/gconv_db.c (once): Remove static variable.
5294 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5295 __gconv_read_conf.
5296 * (__gconv_find_transform): Likewise.
5297 * iconv/tst-iconv-mt.c: New test.
5298 * iconv/Makefile: Add tst-iconv_mt.
5299
5300 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5301
5302 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5303 bits/shm-pad.h.
5304 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5305 (shmatt_t): Define as __syscall_ulong_t.
5306 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5307 and [__SHM_PAD_AFTER_TIME].
5308 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5309 Define shm_segsz and associated padding based on
5310 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5311 Use __syscall_ulong_t instead of unsigned long int.
5312 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5313 unsigned long int.
5314 [__USE_MISC] (struct shm_info): Likewise.
5315 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5316 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5317 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5318 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5319 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5320 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5321 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5322 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5323 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5324 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5325 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5326
5327 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5328 bits/shmlba.h.
5329 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5330 (SHMLBA): Remove macro.
5331 (__getpagesize): Remove function declaration.
5332 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5333 <bits/shmlba.h>.
5334 (SHMLBA): Remove macro.
5335 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5336 <bits/shmlba.h>.
5337 (SHMLBA): Remove macro.
5338 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5339 <bits/shmlba.h>.
5340 (SHMLBA): Remove macro.
5341 (__getpagesize): Remove function declaration.
5342 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5343 <bits/shmlba.h>.
5344 (SHMLBA): Remove macro.
5345 (__getshmlba): Remove function declaration.
5346 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5347 (SHMLBA): Remove macro.
5348 (__getpagesize): Remove function declaration.
5349 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5350 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5351 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5352 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5353 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5354 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5355 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5356 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5357 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5358 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5359
5360 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5361
5362 [BZ #23275]
5363 * nptl/tst-mutex10.c: New File.
5364 * nptl/Makefile (tests): Add tst-mutex10.
5365 (tst-mutex10-ENV): New variable.
5366 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5367 Ensure that elision path is used if elision is available.
5368 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5369 Likewise.
5370 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5371 Likewise.
5372 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5373 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5374 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5375 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5376 Likewise.
5377 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5378 (__pthread_mutex_cond_lock_adjust): Likewise.
5379 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5380 Likewise.
5381 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5382 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5383 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5384 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5385 Add comments.
5386 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5387 Use atomic_load_relaxed and atomic_store_relaxed.
5388 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5389 Use atomic_store_relaxed.
5390
5391 2018-10-17 Andreas Schwab <schwab@suse.de>
5392
5393 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5394 * crypt/badsalttest.c (TIMEOUT): Likewise.
5395 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5396 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5397 * io/test-lfs.c (TIMEOUT): Likewise.
5398 * libio/tst-atime.c (TIMEOUT): Likewise.
5399 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5400 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5401 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5402 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5403 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5404 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5405 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5406 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5407 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5408 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5409 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5410 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5411 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5412 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5413 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5414 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5415 * nptl/tst-once2.c (TIMEOUT): Likewise.
5416 * nptl/tst-once3.c (TIMEOUT): Likewise.
5417 * nptl/tst-once4.c (TIMEOUT): Likewise.
5418 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5419 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5420 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5421 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5422 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5423 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5424 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5425 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5426 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5427 * posix/tst-chmod.c (TIMEOUT): Likewise.
5428 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5429 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5430 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5431 * posix/tst-regex2.c (TIMEOUT): Likewise.
5432 * posix/tst-waitid.c (TIMEOUT): Likewise.
5433 * rt/tst-aio.c (TIMEOUT): Likewise.
5434 * rt/tst-aio10.c (TIMEOUT): Likewise.
5435 * rt/tst-aio4.c (TIMEOUT): Likewise.
5436 * rt/tst-aio5.c (TIMEOUT): Likewise.
5437 * rt/tst-aio6.c (TIMEOUT): Likewise.
5438 * rt/tst-aio64.c (TIMEOUT): Likewise.
5439 * rt/tst-aio7.c (TIMEOUT): Likewise.
5440 * rt/tst-aio9.c (TIMEOUT): Likewise.
5441 * rt/tst-clock.c (TIMEOUT): Likewise.
5442 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5443 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5444 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5445 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5446 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5447 * rt/tst-timer4.c (TIMEOUT): Likewise.
5448 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5449 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5450 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5451 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5452 * time/tst-ftime.c (TIMEOUT): Likewise.
5453 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5454
5455 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5456
5457 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5458 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5459 for thunderX2.
5460
5461 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5462
5463 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5464 bits/sem-pad.h.
5465 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5466 instead of <bits/wordsize.h>.
5467 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5468 and [__SEM_PAD_AFTER_TIME].
5469 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5470 __syscall_ulong_t instead of unsigned long int.
5471 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5472 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5473 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5474 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5475 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5476 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5477 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5478 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5479 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5480 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5481 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5482
5483 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5484
5485 regex: simplify by using intprops.h
5486 [BZ#23744]
5487 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5488 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5489 intprops.h defines them.
5490
5491 regex: __builtin_expect → __glibc_unlikely
5492 [BZ#23744]
5493 This refactoring was prompted by a problem when the regex code is
5494 used as part of Gnulib and when the builder’s compiler does not grok
5495 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5496 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5497 Although this refactoring does not fix the problem directly,
5498 we might as well have Gawk use the now-preferred glibc style for when
5499 __builtin_expect is unavailable.
5500 * posix/regex_internal.h (BE): Remove.
5501 All uses replaced by __glibc_unlikely or __glibc_likely.
5502
5503 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5504
5505 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5506 bits/msq-pad.h.
5507 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5508 instead of <bits/wordsize.h>.
5509 (msgqnum_t): Define as __syscall_ulong_t.
5510 (msglen_t): Likewise.
5511 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5512 and [__MSQ_PAD_AFTER_TIME].
5513 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5514 __syscall_ulong_t instead of unsigned long int.
5515 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5516 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5517 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5518 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5519 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5520 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5521 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5522 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5523 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5524 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5525 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5526
5527 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5528
5529 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5530 (struct shmid_ds): Condition padding after time fields on
5531 [__WORDSIZE == 32].
5532 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5533 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5534 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5535
5536 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5537 (struct semid_ds): Condition padding after time fields on
5538 [__WORDSIZE == 32].
5539 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5540 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5541 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5542 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5543
5544 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5545 (struct msqid_ds): Condition padding after time fields on
5546 [__WORDSIZE == 32].
5547 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5548 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5549 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5550 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5551
5552 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5553
5554 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5555
5556 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5557
5558 * libio/tst-readline.c (TIMEOUT): Define.
5559
5560 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5561
5562 mktime fix for Gnulib + coreutils
5563 [BZ#23745]
5564 This fix affects only Gnulib. Problem discovered when
5565 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5566 * time/mktime.c:
5567 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5568 Do not define since it is not used. Defining an unused static
5569 function prompts a warning from GCC when Coreutils is configured
5570 with --enable-gcc-warnings.
5571
5572 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5573
5574 * benchtests/scripts/compare_bench.py (main): set float type on
5575 threshold argument.
5576
5577 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5578
5579 [BZ #23740]
5580 * localedata/locales/kl_GL (mon): Update, the relative case.
5581 (alt_mon): Add, fill with month names in the nominative case.
5582 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5583 (d_fmt): Set to "%b %d %Y".
5584
5585 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5586
5587 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5588 <bits/mman-linux.h>.
5589 (PROT_READ): Don't define here.
5590 (PROT_WRITE): Likewise.
5591 (PROT_EXEC): Likewise.
5592 (PROT_NONE): Likewise.
5593 (PROT_GROWSDOWN): Likewise.
5594 (PROT_GROWSUP): Likewise.
5595 (MAP_SHARED): Likewise.
5596 (MAP_PRIVATE): Likewise.
5597 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5598 [__USE_MISC] (MAP_FILE): Likewise.
5599 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5600 [__USE_MISC] (MAP_ANON): Likewise.
5601 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5602 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5603 (MCL_CURRENT): Likewise.
5604 (MCL_FUTURE): Likewise.
5605 (MCL_ONFAULT): Likewise.
5606 [__USE_MISC] (MADV_NORMAL): Likewise.
5607 [__USE_MISC] (MADV_RANDOM): Likewise.
5608 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5609 [__USE_MISC] (MADV_WILLNEED): Likewise.
5610 [__USE_MISC] (MADV_DONTNEED): Likewise.
5611 [__USE_MISC] (MADV_FREE): Likewise.
5612 [__USE_MISC] (MADV_REMOVE): Likewise.
5613 [__USE_MISC] (MADV_DONTFORK): Likewise.
5614 [__USE_MISC] (MADV_DOFORK): Likewise.
5615 [__USE_MISC] (MADV_HWPOISON): Likewise.
5616 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5617 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5618 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5619 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5620 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5621 (__MAP_ANONYMOUS): New macro.
5622 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5623 <bits/mman-linux.h> inclusion.
5624 (MAP_FIXED): Likewise.
5625 (MS_SYNC): Likewise.
5626 (MS_ASYNC): Likewise.
5627 (MS_INVALIDATE): Likewise.
5628 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5629 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5630 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5631 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5632 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5633 [__USE_MISC] (MADV_DODUMP): Likewise.
5634 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5635 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5636
5637 [BZ #23735]
5638 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5639 Define.
5640 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5641 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5642 Add test-nldbl-redirect.
5643 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5644 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5645 $(objpfx)libnldbl_nonshared.a.
5646
5647 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5648
5649 * support/support.h (support_objdir_elf_ldso): New variable.
5650 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5651 * support/Makefile (CFLAGS-support_paths.c): Add definition
5652 for OBJDIR_ELF_LDSO_PATH.
5653 * support/test-container.c (main): Search for the ld.so
5654 which is also used by the testsuite.
5655
5656 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5657
5658 [BZ #20209]
5659 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5660 should be "sap" rather than "sab".
5661 (day): Fix spelling of Sunday, should be "sapaat" rather than
5662 "sabaat".
5663
5664 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5665
5666 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5667
5668 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5669
5670 [BZ #19444]
5671 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5672 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5673 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5674
5675 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5676
5677 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5678
5679 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5680
5681 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5682 Add -mrtm.
5683 (CFLAGS-elision-unlock.c): Likewise.
5684 (CFLAGS-elision-timed.c): Likewise.
5685 (CFLAGS-elision-trylock.c): Likewise.
5686 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5687
5688 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5689
5690 [BZ #21037]
5691 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5692 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5693 new fd_to_filename interface.
5694 * libio/freopen64.c (freopen64): Likewise.
5695 * libio/tst-memstream.h: New file.
5696 * libio/tst-memstream4.c: Likewise.
5697 * libio/tst-wmemstream4.c: Likewise.
5698 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5699 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5700 and remove internal dynamic allocation.
5701
5702 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5703
5704 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5705 (MREMAP_MAYMOVE): Do not define here.
5706 [__USE_GNU] (MREMAP_FIXED): Likewise.
5707 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5708 (MREMAP_MAYMOVE): Define here instead.
5709 [__USE_GNU] (MREMAP_FIXED): Likewise.
5710 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5711 (MREMAP_MAYMOVE): Remove.
5712 [__USE_GNU] (MREMAP_FIXED): Likewise.
5713
5714 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5715
5716 * math/fromfp.h: Do not include <math_private.h>.
5717 * math/s_cacosh_template.c: Likewise.
5718 * math/s_casin_template.c: Likewise.
5719 * math/s_casinh_template.c: Likewise.
5720 * math/s_ccos_template.c: Likewise.
5721 * math/s_cproj_template.c: Likewise.
5722 * math/s_fdim_template.c: Likewise.
5723 * math/s_fmaxmag_template.c: Likewise.
5724 * math/s_fminmag_template.c: Likewise.
5725 * math/s_iseqsig_template.c: Likewise.
5726 * math/s_ldexp_template.c: Likewise.
5727 * math/s_nextdown_template.c: Likewise.
5728 * math/w_log1p_template.c: Likewise.
5729 * math/w_scalbln_template.c: Likewise.
5730 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5731 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5732 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5733 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5734 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5735 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5736 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5737 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5738 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5739 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5740 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5741 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5742 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5743 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5744 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5745 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5746 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5747 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5748 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5749 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5750 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5751 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5752 * sysdeps/ieee754/k_standardf.c: Likewise.
5753 * sysdeps/ieee754/k_standardl.c: Likewise.
5754 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5755 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5756 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5757 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5758 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5759 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5760 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5761 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5762 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5763 * sysdeps/ieee754/s_signgam.c: Likewise.
5764 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5765 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5766 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5767 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5768 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5769 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5770 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5771 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5772 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5773 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5774 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5775 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5776 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5777 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5778 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5779 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5780 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5781 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5782 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5783 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5784 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5785 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5786 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5787 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5788 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5789 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5790 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5791 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5792 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5793 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5794 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5795 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5796 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5797 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5798 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5799 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5800 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5801 <math_private.h>.
5802 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5803
5804 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5805
5806 [BZ #23716]
5807 * sysdeps/i386/dl-cet.c: Removed.
5808 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5809 prototype.
5810 (_dl_runtime_profile_shstk): Likewise.
5811 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5812 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5813
5814 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5815
5816 [BZ #23579]
5817 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5818 do_test_with_invalid_iov): New tests.
5819 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5820 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5821 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5822 errno is ENOSYS.
5823 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5824 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5825 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5826
5827 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5828
5829 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5830 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5831 (MATH_REDIRECT_BINARY_ARGS): New macro.
5832 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5833 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5834 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5835 header inclusion.
5836 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5837 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5838 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5839 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5840 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5841 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5842 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5843 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5844 Likewise.
5845 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5846 Likewise.
5847 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5848 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5849 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5850 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5851 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5852 Likewise.
5853 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5854 Likewise.
5855 * sysdeps/generic/math_private_calls.h
5856 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5857 Do not declare and define as an inline function.
5858 * math/divtc3.c (__divtc3): Use copysign functions instead of
5859 __copysign variants.
5860 * math/multc3.c (__multc3): Likewise.
5861 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5862 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5863 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5864 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5865 Likewise.
5866 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5867 (__ieee754_yn): Likewise.
5868 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5869 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5870 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5871 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5872 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5873 (__sin): Likewise.
5874 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5875 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5876 Likewise.
5877 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5878 Likewise.
5879 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5880 Likewise.
5881 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5882 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5883 Likewise.
5884 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
5885 (__ieee754_ynf): Likewise.
5886 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
5887 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5888 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
5889 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5890 Likewise.
5891 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5892 (__ieee754_ynl): Likewise.
5893 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5894 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5895 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5896 Likewise.
5897 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5898 (__ieee754_ynl): Likewise.
5899 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
5900 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5901 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5902 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5903 Likewise.
5904 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
5905 (__ieee754_ynl)
5906 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
5907 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
5908 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
5909 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
5910 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5911
5912 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5913 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
5914 using MATH_REDIRECT.
5915 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
5916 header inclusion.
5917 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
5918 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5919 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5920 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
5921 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5922 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5923 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5924 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
5925 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
5926 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
5927 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
5928 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5929 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5930 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5931 (round): Redirect to __round.
5932 (__roundl): Call round instead of __round.
5933 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
5934 Remove macro.
5935 [_ARCH_PWR5X] (__roundf): Likewise.
5936 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
5937 functions instead of __round variants.
5938 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
5939 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
5940 Likewise.
5941 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
5942 Likewise.
5943 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
5944 Likewise.
5945 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
5946 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
5947 __lroundl.
5948 (__ieee754_expl): Call roundl instead of __roundl.
5949
5950 2018-09-27 Andreas Schwab <schwab@suse.de>
5951
5952 [BZ #23717]
5953 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
5954 (do_test): Make st1 static.
5955
5956 2018-09-26 Andreas Schwab <schwab@suse.de>
5957
5958 [BZ #23707]
5959 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
5960 * elf/Makefile (tests): Add tst-unwind-ctor.
5961 (modules-names): Add tst-unwind-ctor-lib.
5962 ($(objpfx)tst-unwind-ctor): Depend on
5963 $(objpfx)tst-unwind-ctor-lib.so.
5964
5965 2018-09-26 Joseph Myers <joseph@codesourcery.com>
5966
5967 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
5968 file. Most contents moved from ....
5969 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
5970 and include <bits/mman-map-flags-generic.h>.
5971 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5972 (sysdep_headers): Add bits/mman-map-flags-generic.h.
5973 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
5974 <bits/mman-map-flags-generic.h>.
5975 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
5976 macros defined in <bits/mman-map-flags-generic.h>.
5977 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
5978 <bits/mman-map-flags-generic.h>.
5979 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
5980 defined in <bits/mman-map-flags-generic.h>.
5981
5982 2018-09-26 Andreas Schwab <schwab@suse.de>
5983
5984 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
5985 output.
5986
5987 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
5988 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5989 Fangrui Song <maskray@google.com>
5990
5991 [BZ #20480]
5992 * config.make.in (have-textrel_ifunc): New define.
5993 * configure.ac: Add check if linker supports textrel relocation with
5994 ifunc.
5995 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
5996 tst-ifunc-textrel.
5997 (CFLAGS-tst-ifunc-textrel.c): New rule.
5998 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
5999 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6000 * elf/tst-ifunc-textrel.c: New file.
6001
6002 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6003
6004 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6005 <bits/procfs-prregset.h>.
6006 (prgregset_t): Define using __prgregset_t.
6007 (prfpregset_t): Define using __prfpregset_t.
6008 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6009 (sysdep_headers): Add bits/procfs-prregset.h.
6010 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6011 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6012 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6013 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6014
6015 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6016 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6017 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6018 pr_uid and pr_gid.
6019 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6020 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6021 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6022 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6023 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6024 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6025 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6026 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6027 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6028 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6029 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6030 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6031 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6032 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6033 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6034 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6035 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6036 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6037 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6038 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6039 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6040 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6041 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6042 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6043
6044 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6045 AArch64 version. Include <bits/procfs.h>.
6046 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6047 (sysdep_headers): Add bits/procfs.h.
6048 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6049 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6050 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6051 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6052 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6053 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6054 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6055 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6056 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6057 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6058 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6059 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6060 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6061 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6062 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6063 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6064 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6065
6066 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6067
6068 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6069 Use libsupport.
6070
6071 2018-09-25 Arjun Shankar <arjun@redhat.com>
6072
6073 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6074 (__gconv_max_path_elem_len): Likewise.
6075 (__gconv_nmodules): Likewise.
6076 (__gconv_get_path): Likewise.
6077 (path_elem): Move to ...
6078 * iconv/gconv_conf.c: ... here.
6079 (__gconv_get_path): Mark function static.
6080 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6081 * iconv/gconv_open.c: ... here.
6082
6083 2018-09-24 Andreas Schwab <schwab@suse.de>
6084
6085 * scripts/haveversions.awk: New file.
6086 * Makerules ($(common-objpfx)Versions.def)
6087 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6088 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6089 Move rules ...
6090 * Makeconfig ($(common-objpfx)Versions.def)
6091 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6092 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6093 ... here.
6094 ($(common-objpfx)Versions.mk): New rule. Include it.
6095 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6096 Emit error if build-obsolete-nsl = yes.
6097 * manual/install.texi (Configuring and compiling): Describe
6098 --enable-obsolete-nsl as unavaiable after version 2.28.
6099 * INSTALL: Regenerate.
6100
6101 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6102
6103 * NEWS: Add note about new TLE support on powerpc64le.
6104 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6105 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6106 __ununsed1.
6107 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6108 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6109 * sysdeps/powerpc/powerpc32/sysdep.h,
6110 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6111 ABORT_TRANSACTION): Remove macros.
6112 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6113 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6114 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6115 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6116 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6117 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6118 usage.
6119 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6120
6121 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6122
6123 [BZ #10425]
6124 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6125 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6126 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6127 which is the same as in it_IT.
6128 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6129 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6130
6131 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6132
6133 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6134 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6135 using MATH_REDIRECT.
6136 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6137 header inclusion.
6138 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6139 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6140 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6141 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6142 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6143 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6144 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6145 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6146 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6147 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6148 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6149 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6150 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6151 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6152 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6153 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6154 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6155 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6156 (ceil): Redirect to __ceil.
6157 (floor): Redirect to __floor.
6158 (trunc): Redirect to __trunc.
6159 (__truncl): Call trunc instead of __trunc.
6160 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6161 Remove macro.
6162 [_ARCH_PWR5X] (__truncf): Likewise.
6163 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6164 trunc functions instead of __trunc variants.
6165 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6166 Likewise.
6167 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6168 Likewise.
6169 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6170 Likewise.
6171 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6172 Likewise.
6173
6174 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6175 [__i586__ || __pentium__].
6176 [__i486__]: Handle explicitly.
6177 (HAS_CPUID): Define to 1 if above macros are undefined.
6178 (HAS_I586): Likewise.
6179 (HAS_I686): Likewise.
6180
6181 2018-09-20 Florian Weimer <fweimer@redhat.com>
6182
6183 * misc/tst-gethostid.c: New file.
6184 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6185 (tst-gethostid): Link with -ldl.
6186
6187 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6188
6189 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6190 value from gethostbyname_r.
6191
6192 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6193
6194 * stdlib/tst-setcontext9.c (f1): Rename to...
6195 (f1a): ... this.
6196 (f1b): New function implementing lower half of f1 in alternate stack.
6197
6198 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6199
6200 Fix mktime localtime offset confusion
6201 [BZ #23603]
6202 * include/time.h (__mktime_internal): The localtime offset is now
6203 of type long int instead of time_t. This is the longstanding type
6204 in glibc, and it is more than enough to represent difference
6205 between localtime and gmtime even if it is 32 bits and time_t is
6206 64. Changing it now will let us avoid an unnecessary change when
6207 time_t is widened to 64 bits on 32-bit platforms.
6208 * time/mktime-internal.h (mktime_offset_t): Now long int.
6209
6210 Merge mktime, timegm from upstream Gnulib
6211 [BZ #23603][BZ #16346]
6212 This fixes some obscure problems with integer overflow.
6213 Although it looks scary, it is almost all a byte-for-byte copy
6214 from Gnulib, and the Gnulib code has been tested reasonably well.
6215 * include/intprops.h: New file, copied from Gnulib.
6216 * include/verify.h, time/mktime-internal.h:
6217 New tiny files, simplified from Gnulib.
6218 * time/mktime.c: Copy from Gnulib. This has the following changes:
6219 Do not include config.h if DEBUG_MKTIME is nonzero.
6220 Include stdbool.h, intprops.h, verify.h.
6221 Include string.h only if needed.
6222 Include stdlib.h on MS-Windows.
6223 Include mktime-internal.h.
6224 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6225 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6226 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6227 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6228 simplify later conditionals; default the others to zero. Use
6229 these conditionals to express only the code needed on the current
6230 platform. In uses of these conditionals, explicitly spell out how
6231 _LIBC affects things, so it’s easier to review from a glibc
6232 viewpoint.
6233 (WRAPV): Remove; no longer needed now that we have
6234 systematic overflow checking.
6235 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6236 compartmentalize tzset issues. Move system-dependent tzsettish
6237 code here from mktime.
6238 (verify): Remove; now done by verify.h. All uses changed.
6239 (long_int): Use a more-conservative definition, to avoid
6240 integer overflow.
6241 (SHR): Remove, replacing with ...
6242 (shr): New function, which means we needn’t worry about side
6243 effects in args, and conversion analysis is simpler.
6244 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6245 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6246 (time_t_avg, time_t_add_ok): Remove.
6247 (mktime_min, mktime_max): New constants.
6248 (leapyear, isdst_differ): Use bool for booleans.
6249 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6250 Use long_int, not time_t, for mktime differences.
6251 (long_int_avg): New function, replacing time_t_avg.
6252 INT_ADD_WRAPV replaces time_t_add_ok.
6253 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6254 All uses changed.
6255 (convert_time): New function.
6256 (ranged_convert): Use it.
6257 (__mktime_internal): Last arg now points to mktime_offset_t, not
6258 time_t. All uses changed. This is a no-op on glibc, where
6259 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6260 offset guess. Directly check for integer overflow instead of
6261 using a heuristic that works only 99.9...% of the time.
6262 Access *OFFSET only once, to avoid an unlikely race if the
6263 compiler delays a load and if this cascades into a signed integer
6264 overflow.
6265 (mktime): Move tzsettish code to my_tzset, and move
6266 localtime_offset to within mktime so that it doesn’t
6267 need a separate ifdef.
6268 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6269 instead of localtime.
6270 * time/timegm.c: Copy from Gnulib. This has the following changes:
6271 Include mktime-internal.h.
6272 [!_LIBC]: Include config.h and time.h. Do not include
6273 timegm.h or time_r.h. Make __mktime_internal a macro,
6274 and include mktime-internal.h to get its declaration.
6275 (timegm): Temporary is now mktime_offset_t, not time_t.
6276 This affects only Gnulib.
6277
6278 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6279
6280 [BZ #23637]
6281 * string/test-strstr.c (pr23637): New function.
6282 (test_main): Add tests with longer needles.
6283 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6284 * string/strstr.c (AVAILABLE): Likewise.
6285
6286 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6287
6288 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6289
6290 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6291
6292 * NEWS: Mention pow improvements.
6293 * math/Makefile (type-double-routines): Add e_pow_log_data.
6294 * sysdeps/generic/math_private.h (__exp1): Remove.
6295 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6296 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6297 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6298 contraction.
6299 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6300 (exp_inline): Remove.
6301 (__ieee754_exp): Only single double input is handled.
6302 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6303 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6304 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6305 (__pow_log_data): Define.
6306 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6307 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6308 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6309 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6310 contraction.
6311 (CFLAGS-e_pow-fma4.c): Likewise.
6312
6313 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6314
6315 Simplify tzfile fstat failure code
6316 [BZ #21716]
6317 * time/tzfile.c (__tzfile_read): Simplify slightly.
6318
6319 Fix tzfile low-memory assertion failure
6320 [BZ #21716]
6321 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6322 when registering time zone abbreviations.
6323
6324 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6325
6326 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6327 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6328 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6329 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6330 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6331 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6332 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6333 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6334 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6335
6336 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6337 __ceil.
6338 (__ceill): Call ceil instead of __ceil.
6339 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6340 __floor.
6341 (__floorl): Call floor instead of __floor.
6342
6343 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6344
6345 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6346 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6347 using MATH_REDIRECT.
6348 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6349 header inclusion.
6350 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6351 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6352 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6353 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6354 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6355 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6356 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6357 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6358 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6359 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6360 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6361 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6362 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6363 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6364 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6365 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6366 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6367 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6368 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6369 Remove macro.
6370 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6371 functions instead of __ceil variants.
6372 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6373 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6374 Likewise.
6375 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6376 Likewise.
6377 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6378 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6379 Likewise.
6380 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6381 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6382
6383 [BZ #21286]
6384 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6385 constant.
6386 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6387 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6388 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6389 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6390 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6391 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6392 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6393 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6394 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6395 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6396 (ILL_BADIADDR): Remove constant.
6397 (TRAP_BRANCH): Likewise.
6398 (TRAP_HWBKPT): Likewise.
6399
6400 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6401
6402 [BZ #23656]
6403 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6404 Remove [_MIPS_SIM = _ABIN32] conditional case.
6405 (struct elf_prpsinfo): Likewise.
6406
6407 [BZ #23649]
6408 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6409 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6410 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6411 Likewise.
6412 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6413 elf_prpsinfo): Likewise.
6414 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6415 elf_prpsinfo): Likewise.
6416 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6417 Likewise.
6418
6419 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6420 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6421 using MATH_REDIRECT.
6422 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6423 header inclusion.
6424 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6425 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6426 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6427 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6428 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6429 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6430 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6431 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6432 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6433 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6434 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6435 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6436 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6437 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6438 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6439 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6440 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6441 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6442 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6443 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6444 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6445 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6446 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6447 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6448 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6449 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6450 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6451 __rint variants.
6452 * math/e_scalbf.c (invalid_fn): Likewise.
6453 * math/e_scalbl.c (invalid_fn): Likewise.
6454 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6455 Likewise.
6456 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6457 Likewise.
6458 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6459 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6460 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6461 Likewise.
6462 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6463 Likewise.
6464 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6465 Likewise.
6466 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6467 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6468
6469 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6470 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6471 New macro.
6472 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6473 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6474 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6475 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6476 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6477 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6478 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6479 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6480 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6481 && !NO_MATH_REDIRECT] (floor): Likewise.
6482 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6483 header inclusion.
6484 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6485 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6486 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6487 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6488 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6489 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6490 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6491 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6492 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6493 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6494 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6495 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6496 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6497 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6498 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6499 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6500 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6501 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6502 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6503 Remove macro.
6504 [_ARCH_PWR5X] (__floorf): Likewise.
6505 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6506 inline function.
6507 [__SSE4_1__] (__floorf): Likewise.
6508 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6509 instead of __floor variants.
6510 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6511 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6512 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6513 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6514 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6515 * math/w_tgamma_compat.c (__tgamma): Likewise.
6516 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6517 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6518 * math/w_tgammal_compat.c (__tgammal): Likewise.
6519 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6520 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6521 Likewise.
6522 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6523 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6524 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6525 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6526 Likewise.
6527 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6528 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6529 Likewise.
6530 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6531 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6532 Likewise.
6533 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6534 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6535 Likewise.
6536 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6537 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6538 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6539 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6540 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6541 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6542
6543 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6544
6545 * elf/Makefile (modules-names-tests): New variable.
6546
6547 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6548
6549 * NEWS: Mention log2 improvements.
6550 * math/Makefile (type-double-routines): Add e_log2_data.
6551 * sysdeps/i386/fpu/e_log2_data.c: New file.
6552 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6553 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6554 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6555 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6556 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6557 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6558
6559 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6560
6561 * NEWS: Mention log improvement.
6562 * math/Makefile (type-double-routines): Add e_log_data.
6563 * sysdeps/i386/fpu/e_log_data.c: New file.
6564 * sysdeps/ia64/fpu/e_log_data.c: New file.
6565 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6566 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6567 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6568 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6569 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6570 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6571
6572 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6573 Xuepeng Guo <xuepeng.guo@intel.com>
6574
6575 [BZ #23606]
6576 * sysdeps/i386/start.S: Include <sysdep.h>
6577 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6578 enabled. Add cfi_undefined (eip).
6579
6580 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6581
6582 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6583 (MOVQ): Likewise.
6584 (EXTRACT_WORDS64): Likewise.
6585 (INSERT_WORDS64): Likewise.
6586 (GET_FLOAT_WORD): Likewise.
6587 (SET_FLOAT_WORD): Likewise.
6588
6589 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6590 argument.
6591 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6592 build, but not for second build if --full-gcc. Use
6593 --enable-languages=all for second build if --full-gcc.
6594 (get_parser): Add --full-gcc option.
6595 (main): Update call to Context.
6596
6597 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6598
6599 [BZ #10797]
6600 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6601 Single Quotation Mark).
6602 (thousands_sep): Likewise.
6603 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6604 * localedata/locales/it_IT (thousands_sep): Use ".".
6605 (grouping): Use "3;3".
6606
6607 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6608
6609 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6610 x86_64 and i686 configs using --enable-obsolete-rpc
6611 --enable-obsolete-nsl.
6612
6613 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6614
6615 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6616
6617 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6618
6619 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6620 Increment size of new_argv by one.
6621
6622 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6623
6624 [BZ #17426]
6625 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6626 * localedata/locales/ar_IN (d_fmt): Likewise.
6627 * localedata/locales/bhb_IN (d_fmt): Likewise.
6628 * localedata/locales/bho_IN (d_fmt): Likewise.
6629 * localedata/locales/bn_BD (d_fmt): Likewise.
6630 * localedata/locales/bn_IN (d_fmt): Likewise.
6631 * localedata/locales/doi_IN (d_fmt): Likewise.
6632 * localedata/locales/gu_IN (d_fmt): Likewise.
6633 * localedata/locales/hi_IN (d_fmt): Likewise.
6634 * localedata/locales/hne_IN (d_fmt): Likewise.
6635 * localedata/locales/kn_IN (d_fmt): Likewise.
6636 * localedata/locales/mag_IN (d_fmt): Likewise.
6637 * localedata/locales/mai_IN (d_fmt): Likewise.
6638 * localedata/locales/mjw_IN (d_fmt): Likewise.
6639 * localedata/locales/ml_IN (d_fmt): Likewise.
6640 * localedata/locales/mni_IN (d_fmt): Likewise.
6641 * localedata/locales/mr_IN (d_fmt): Likewise.
6642 * localedata/locales/pa_IN (d_fmt): Likewise.
6643 * localedata/locales/raj_IN (d_fmt): Likewise.
6644 * localedata/locales/sat_IN (d_fmt): Likewise.
6645 * localedata/locales/sd_IN (d_fmt): Likewise.
6646 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6647 * localedata/locales/ta_IN (d_fmt): Likewise.
6648 * localedata/locales/ta_LK (d_fmt): Likewise.
6649 * localedata/locales/tcy_IN (d_fmt): Likewise.
6650 * localedata/locales/ur_IN (d_fmt): Likewise.
6651
6652 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6653 * localedata/locales/ks_IN (d_fmt): Likewise.
6654 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6655
6656 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6657 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6658 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6659 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6660
6661 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6662
6663 * NEWS: Mention exp and exp2 improvements.
6664 * math/Makefile (libm-support): Remove t_exp.
6665 (type-double-routines): Add math_err and e_exp_data.
6666 * sysdeps/aarch64/libm-test-ulps: Update.
6667 * sysdeps/arm/libm-test-ulps: Update.
6668 * sysdeps/i386/fpu/e_exp_data.c: New file.
6669 * sysdeps/i386/fpu/math_err.c: New file.
6670 * sysdeps/i386/fpu/t_exp.c: Remove.
6671 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6672 * sysdeps/ia64/fpu/math_err.c: New file.
6673 * sysdeps/ia64/fpu/t_exp.c: Remove.
6674 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6675 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6676 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6677 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6678 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6679 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6680 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6681 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6682 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6683 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6684 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6685 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6686 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6687 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6688 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6689 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6690
6691 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6692
6693 * sysdeps/alpha/fpu/math_private.h: Remove.
6694
6695 * sysdeps/generic/math_private.h
6696 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6697 Move this inline function ....
6698 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6699 * include/math.h [!_ISOMAC]: To here....
6700
6701 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6702
6703 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6704 code ....
6705 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6706 * include/fenv.h [!_ISOMAC]: ... to here.
6707 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6708 (feraiseexcept): Likewise.
6709 * math/fromfp.h: Do not include <fenv_private.h>.
6710 * math/s_cexp_template.c: Likewise.
6711 * math/s_csin_template.c: Likewise.
6712 * math/s_csinh_template.c: Likewise.
6713 * math/s_ctan_template.c: Likewise.
6714 * math/s_ctanh_template.c: Likewise.
6715 * math/s_iseqsig_template.c: Likewise.
6716 * math/w_acos_compat.c: Likewise.
6717 * math/w_acosf_compat.c: Likewise.
6718 * math/w_acosl_compat.c: Likewise.
6719 * math/w_asin_compat.c: Likewise.
6720 * math/w_asinf_compat.c: Likewise.
6721 * math/w_asinl_compat.c: Likewise.
6722 * math/w_j0_compat.c: Likewise.
6723 * math/w_j0f_compat.c: Likewise.
6724 * math/w_j0l_compat.c: Likewise.
6725 * math/w_j1_compat.c: Likewise.
6726 * math/w_j1f_compat.c: Likewise.
6727 * math/w_j1l_compat.c: Likewise.
6728 * math/w_jn_compat.c: Likewise.
6729 * math/w_jnf_compat.c: Likewise.
6730 * math/w_log10_compat.c: Likewise.
6731 * math/w_log10f_compat.c: Likewise.
6732 * math/w_log10l_compat.c: Likewise.
6733 * math/w_log2_compat.c: Likewise.
6734 * math/w_log2f_compat.c: Likewise.
6735 * math/w_log2l_compat.c: Likewise.
6736 * math/w_log_compat.c: Likewise.
6737 * math/w_logf_compat.c: Likewise.
6738 * math/w_logl_compat.c: Likewise.
6739 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6740 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6741 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6742 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6743 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6744 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6745 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6746 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6747 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6748 * sysdeps/ieee754/k_standardl.c: Likewise.
6749 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6750 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6751 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6752 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6753 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6754 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6755 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6756 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6757 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6758 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6759 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6760 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6761 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6762 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6763 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6764 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6765 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6766 * math/w_ilogb_template.c: Include <fenv.h> instead of
6767 <fenv_private.h>.
6768 * math/w_llogb_template.c: Likewise.
6769 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6770 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6771
6772 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6773
6774 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6775 * math/fromfp.h: Include <fenv_private.h>.
6776 * math/math-narrow.h: Likewise.
6777 * math/s_cexp_template.c: Likewise.
6778 * math/s_csin_template.c: Likewise.
6779 * math/s_csinh_template.c: Likewise.
6780 * math/s_ctan_template.c: Likewise.
6781 * math/s_ctanh_template.c: Likewise.
6782 * math/s_iseqsig_template.c: Likewise.
6783 * math/w_acos_compat.c: Likewise.
6784 * math/w_acosf_compat.c: Likewise.
6785 * math/w_acosl_compat.c: Likewise.
6786 * math/w_asin_compat.c: Likewise.
6787 * math/w_asinf_compat.c: Likewise.
6788 * math/w_asinl_compat.c: Likewise.
6789 * math/w_ilogb_template.c: Likewise.
6790 * math/w_j0_compat.c: Likewise.
6791 * math/w_j0f_compat.c: Likewise.
6792 * math/w_j0l_compat.c: Likewise.
6793 * math/w_j1_compat.c: Likewise.
6794 * math/w_j1f_compat.c: Likewise.
6795 * math/w_j1l_compat.c: Likewise.
6796 * math/w_jn_compat.c: Likewise.
6797 * math/w_jnf_compat.c: Likewise.
6798 * math/w_llogb_template.c: Likewise.
6799 * math/w_log10_compat.c: Likewise.
6800 * math/w_log10f_compat.c: Likewise.
6801 * math/w_log10l_compat.c: Likewise.
6802 * math/w_log2_compat.c: Likewise.
6803 * math/w_log2f_compat.c: Likewise.
6804 * math/w_log2l_compat.c: Likewise.
6805 * math/w_log_compat.c: Likewise.
6806 * math/w_logf_compat.c: Likewise.
6807 * math/w_logl_compat.c: Likewise.
6808 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6809 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6810 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6811 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6812 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6813 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6814 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6815 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6816 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6817 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6818 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6819 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6820 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6821 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6822 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6823 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6824 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6825 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6826 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6827 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6828 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6829 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6830 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6831 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6832 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6833 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6834 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6835 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6836 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6837 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6838 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6839 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6840 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6841 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6842 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6843 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6844 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6845 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6846 * sysdeps/ieee754/k_standardl.c: Likewise.
6847 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6848 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6849 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6850 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6851 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6852 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6853 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6854 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6855 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6856 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6857 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6858 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6859 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6860 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6861 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6862 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6863 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6864 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6865 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6866 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6867 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6868 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6869 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6870 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6871 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6872 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6873 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6874 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6875 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6876 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6877 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6878 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6879 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6880 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6881 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6882 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6883 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6884 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6885 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6886 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6887 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6888 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6889 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6890 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6891 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6892 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6893 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6894 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6895 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6896 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6897 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6898 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6899 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6900 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6901 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6902 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6903 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6904 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6905 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6906 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6907 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6908 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6909 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6910 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6911 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6912 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6913 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6914 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6915 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6916 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6917 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6918
6919 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6920
6921 [BZ #20271]
6922 * include/stdio.h (__libc_fatal): Mention newline in comment.
6923 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
6924 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
6925 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6926 * nss/nsswitch.c (__nss_next2): Likewise.
6927 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
6928 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
6929 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
6930 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
6931 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
6932 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
6933 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
6934 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
6935 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
6936 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
6937 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
6938 * sysdeps/unix/sysv/linux/netlink_assert_response.c
6939 (__netlink_assert_response): Likewise.
6940
6941 2018-08-31 Joseph Myers <joseph@codesourcery.com>
6942
6943 * conform/glibcconform.py: New file.
6944 * conform/list-header-symbols.py: Likewise.
6945 * conform/list-header-symbols.pl: Remove.
6946 * conform/Makefile (tests-special): Only add linknamespace tests
6947 if [PYTHON].
6948 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
6949
6950 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
6951
6952 [BZ #23597]
6953 * support/Makefile (libsupport-routines): Add
6954 support_copy_file_range and xcopy_file_range.
6955 * support/support.h: Include <sys/types.h>.
6956 (support_copy_file_range): New prototype.
6957 * support/support_copy_file_range.c: New file. Copied and
6958 modified from io/copy_file_range-compat.c.
6959 * support/test-container.c (copy_one_file): Call xcopy_file_rang
6960 instead of copy_file_range.
6961 * support/xcopy_file_range.c: New file.
6962 * support/xunistd.h (xcopy_file_range): New prototype.
6963
6964 2018-08-30 Carlos O'Donell <carlos@redhat.com>
6965
6966 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
6967 xpthread_create and xpthread_join.
6968
6969 2018-08-30 Florian Weimer <fweimer@redhat.com>
6970
6971 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
6972
6973 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
6974
6975 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
6976 if malloc fails.
6977
6978 2018-08-29 Joseph Myers <joseph@codesourcery.com>
6979
6980 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
6981 and minus_oflow as non-finite.
6982
6983 2018-08-28 Joseph Myers <joseph@codesourcery.com>
6984
6985 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
6986 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
6987 moved to fenv_private.h except for ...
6988 (TOINT_INTRINSICS): Kept in math_private.h.
6989 (roundtoint): Likewise.
6990 (converttoint): Likewise.
6991 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
6992 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6993 * sysdeps/arm/math_private.h: Remove.
6994 * sysdeps/generic/fenv_private.h: New file. Contents moved from
6995 ....
6996 * sysdeps/generic/math_private.h: ... this file. Include
6997 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
6998 Include <fenv_private.h>. Remove functions and macros moved to
6999 fenv_private.h.
7000 * sysdeps/i386/fpu/math_private.h: Remove.
7001 * sysdeps/mips/math_private.h: Move to ....
7002 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7003 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7004 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7005 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7006 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7007 * sysdeps/powerpc/fpu/math_private.h: Do not include
7008 <fenv_private.h>.
7009 * sysdeps/riscv/rvf/math_private.h: Move to ....
7010 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7011 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7012 <fenv_private.h>.
7013 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7014 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7015 * sysdeps/sparc/fpu/math_private.h: Remove.
7016 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7017 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7018 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7019 <fenv_private.h>.
7020 * sysdeps/x86_64/fpu/math_private.h: Do not include
7021 <sysdeps/i386/fpu/fenv_private.h>.
7022
7023 2018-08-28 Florian Weimer <fweimer@redhat.com>
7024
7025 [BZ #23578]
7026 * posix/tst-regcomp-truncated.c: New file.
7027 * posix/Makefile (tests): Add it.
7028 (tst-regcomp-truncated.out): Depend on generated locales.
7029
7030 2018-08-28 Florian Weimer <fweimer@redhat.com>
7031
7032 * support/test-container.c (main): Treat unshare failure with
7033 EPERM as an unsupported test.
7034
7035 2018-08-28 Florian Weimer <fweimer@redhat.com>
7036
7037 [BZ #23520]
7038 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7039 * nscd/netgroupcache.c
7040 (addgetnetgrentX): Add tofreep parameter. Do not free
7041 heap-allocated buffer.
7042 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7043 (addgetnetgrentX_ignore): New function.
7044 (addgetnetgrent): Call it.
7045 (readdgetnetgrent): Likewise.
7046
7047 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7048
7049 * string/memmem.c: Use memcmp for first match.
7050
7051 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7052
7053 [BZ #17426]
7054 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7055
7056 2018-08-27 DJ Delorie <dj@redhat.com>
7057
7058 * support/Makefile (others): Don't list programs explicitly as a
7059 dependency of "others".
7060
7061 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7062
7063 * sysdeps/generic/math-tests-trap-force.h: New file.
7064 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7065 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7066 * sysdeps/powerpc/math-tests.h: Remove file.
7067 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7068
7069 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7070 Torvald Riegel <triegel@redhat.com>
7071
7072 [BZ #23538]
7073 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7074 Update r to include the set wake-request flag if waiters are
7075 remaining after spinning.
7076
7077 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7078
7079 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7080
7081 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7082
7083 [BZ #23578]
7084 regex: fix uninitialized memory access
7085 I introduced this bug into gnulib in commit
7086 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7087 eventually it was merged into glibc. The bug was found by
7088 project-repo <bugs@feusi.co> and reported here:
7089 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7090 Diagnosis and draft fix reported by Assaf Gordon here:
7091 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7092 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7093 * posix/regex_internal.c (build_wcs_upper_buffer):
7094 Fix bug when mbrtowc returns 0.
7095
7096 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7097
7098 * po/be.po: Update translation.
7099
7100 2018-08-24 DJ Delorie <dj@delorie.com>
7101
7102 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7103 $(libunwind).
7104
7105 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7106
7107 [BZ #23400]
7108 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7109 create temporary files in source tree.
7110
7111 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7112
7113 * sysdeps/generic/math-tests-trap.h: New file.
7114 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7115 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7116 * sysdeps/aarch64/math-tests.h: Remove file.
7117 * sysdeps/arm/math-tests.h: Likewise.
7118 * sysdeps/riscv/math-tests.h: Likewise.
7119 * sysdeps/aarch64/math-tests-trap.h: New file.
7120 * sysdeps/arm/math-tests-trap.h: Likewise.
7121 * sysdeps/riscv/math-tests-trap.h: Likewise.
7122
7123 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7124
7125 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7126 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7127 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7128 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7129 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7130 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7131 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7132 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7133 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7134 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7135 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7136 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7137 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7138 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7139 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7140 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7141 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7142 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7143
7144 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7145
7146 * sysdeps/generic/math-tests-exceptions.h: New file.
7147 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7148 (EXCEPTION_TESTS_float): Do not define here.
7149 (EXCEPTION_TESTS_double): Likewise.
7150 (EXCEPTION_TESTS_long_double): Likewise.
7151 (EXCEPTION_TESTS_float128): Likewise.
7152 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7153 Likewise.
7154 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7155 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7156 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7157 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7158 * sysdeps/mips/math-tests.h: Likewise.
7159 * sysdeps/nios2/math-tests.h: Likewise.
7160 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7161 (EXCEPTION_TESTS_float): Do not define here.
7162 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7163 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7164 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7165
7166 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7167
7168 * NEWS: Move optimized sinf entry to 2.29.
7169
7170 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7171
7172 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7173
7174 2018-08-22 DJ Delorie <dj@redhat.com>
7175
7176 * Makefile (testroot.pristine): New rules to initialize the
7177 test-in-container "testroot".
7178 * Makerules (all-testsuite): Add tests-container.
7179 * Rules (tests-expected): Add tests-container.
7180 (binaries-all-tests): Likewise.
7181 (tests-container): New, run these tests in the testroot container.
7182 * support/Makefile (others): Add *-container, support_paths.c,
7183 xmkdirp, and links-dso-program.
7184 * support/links-dso-program-c.c: New.
7185 * support/links-dso-program.cc: New.
7186 * support/test-container.c: New.
7187 * support/shell-container.c: New.
7188 * support/echo-container.c: New.
7189 * support/true-container.c: New.
7190 * support/xmkdirp.c: New.
7191 * support/xsymlink.c: New.
7192 * support/support_paths.c: New.
7193 * support/support.h: Add support paths prototypes.
7194 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7195
7196 * nss/tst-nss-test3.c: Convert to test-in-container.
7197 * nss/tst-nss-test3.root/: New.
7198
7199 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7200
7201 regex: port Gnulib code to z/OS POSIX environment
7202 Problem reported by Arnold Robbins in:
7203 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7204 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7205 Undef.
7206
7207 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7208
7209 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7210 (ROUNDING_TESTS_double): Remove.
7211 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7212 (ROUNDING_TESTS_double): Remove.
7213 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7214 (ROUNDING_TESTS_double): Remove.
7215 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7216 (ROUNDING_TESTS_float): Remove.
7217 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7218 (ROUNDING_TESTS_float): Remove.
7219 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7220 (ROUNDING_TESTS_float): Remove.
7221 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7222 !TEST_MATHVEC here.
7223 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7224 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7225
7226 * sysdeps/generic/math-tests-rounding.h: New file.
7227 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7228 (ROUNDING_TESTS_float): Do not define here.
7229 (ROUNDING_TESTS_double): Likewise.
7230 (ROUNDING_TESTS_long_double): Likewise.
7231 (ROUNDING_TESTS_float128): Likewise.
7232 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7233 (ROUNDING_TESTS_double): Undefine before defining.
7234 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7235 (ROUNDING_TESTS_double): Undefine before defining.
7236 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7237 (ROUNDING_TESTS_double): Undefine before defining.
7238 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7239 (ROUNDING_TESTS_float): Undefine before defining.
7240 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7241 (ROUNDING_TESTS_float): Undefine before defining.
7242 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7243 (ROUNDING_TESTS_float): Undefine before defining.
7244 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7245 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7246 not define here.
7247 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7248 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7249 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7250 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7251 (ROUNDING_TESTS_float): Do not define here.
7252 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7253 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7254 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7255 (ROUNDING_TESTS_float): Likewise.
7256 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7257 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7258 * sysdeps/mips/math-tests.h [__mips_soft_float]
7259 (ROUNDING_TESTS_float): Likewise.
7260 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7261 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7262 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7263 (ROUNDING_TESTS_double): Likewise.
7264 (ROUNDING_TESTS_long_double): Likewise.
7265
7266 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7267
7268 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7269 (PF_XDP): New macro.
7270 (AF_XDP): New macro.
7271 (SOL_XDP): New macro.
7272
7273 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7274
7275 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7276 (TCP_INQ): Likewise.
7277 (TCP_CM_INQ): Likewise.
7278 (TCP_REPAIR_ON): Likewise.
7279 (TCP_REPAIR_OFF): Likewise.
7280 (TCP_REPAIR_OFF_NO_WP): Likewise.
7281 (struct tcp_zerocopy_receive): New type.
7282
7283 2018-08-21 Florian Weimer <fweimer@redhat.com>
7284
7285 * support/support.h (support_descriptor_supports_holes): Declare.
7286 * support/Makefile (libsupport-routines): Add
7287 support_descriptor_supports_holes.
7288 * support/support_descriptor_supports_holes.c: New file.
7289 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7290 and stop testing if holes are not supported.
7291 * io/test-lfs.c (do_prepare): Likewise.
7292 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7293 Likewise.
7294 * timezone/tst-tzset.c (create_tz_file): Likewise.
7295 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7296 variable.
7297 (do_prepare): Set it.
7298 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7299
7300 2018-08-21 Florian Weimer <fweimer@redhat.com>
7301
7302 [BZ #17248]
7303 * Makeconfig (+cflags): Do not sort (and deduplicate).
7304
7305 2018-08-21 Florian Weimer <fweimer@redhat.com>
7306
7307 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7308 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7309
7310 2018-08-20 Florian Weimer <fweimer@redhat.com>
7311
7312 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7313 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7314
7315 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7316
7317 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7318 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7319 and ssi_arch members.
7320
7321 * elf/elf.c (NT_VMCOREDD): New macro.
7322 (AT_MINSIGSTKSZ): Likewise.
7323
7324 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7325
7326 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7327 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7328 s_cosf-ppc64 and s_cosf-power8.
7329 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7330 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7331 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7332 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7333 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7334 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7335 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7336 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7337 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7338 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7339 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7340 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7341
7342 2018-08-17 Florian Weimer <fweimer@redhat.com>
7343
7344 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7345
7346 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7347
7348 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7349
7350 2018-08-16 Florian Weimer <fweimer@redhat.com>
7351
7352 * configure.ac: Add --with-nonshared-cflags option.
7353 * config.make.in (extra-nonshared-cflags): Set variable.
7354 * Makeconfig (CFLAGS-.oS): Use it.
7355 * manual/install.texi (Configuring and compiling): Document
7356 --with-nonshared-cflags.
7357 * configure: Regenerate.
7358 * INSTALL: Likewise.
7359
7360 2018-08-16 Florian Weimer <fweimer@redhat.com>
7361
7362 * Makeconfig (ASFLAGS): Always append required assembler flags.
7363
7364 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7365
7366 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7367 (malloc_consolidate): Likewise.
7368
7369 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7370
7371 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7372
7373 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7374
7375 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7376 every strlen call.
7377
7378 * benchtests/bench-strlen.c: Print performance numbers in json.
7379
7380 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7381
7382 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7383 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7384 only for little endian.
7385 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7386 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7387 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7388 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7389 Add check for little endian.
7390 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7391 (__strcmp_power9): Add check for little endian.
7392 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7393 Add check for little endian.
7394 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7395 (__strncmp_power9): Add check for little endian.
7396 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7397 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7398 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7399 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7400 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7401
7402 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7403
7404 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7405 [!STRLEN](STRLEN): Set to __strlen.
7406 * sysdeps/aarch64/multiarch/strlen.c: New file.
7407 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7408 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7409 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7410 (__libc_ifunc_impl_list): Add strlen.
7411 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7412 strlen_generic and strlen_asimd.
7413
7414 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7415
7416 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7417 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7418 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7419
7420 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7421
7422 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7423
7424 2018-08-14 Florian Weimer <fweimer@redhat.com>
7425
7426 [BZ #23519]
7427 * include/stdio.h (__vfxprintf): Declare.
7428 * stdio-common/fxprintf.c (__vfxprintf): New function.
7429 (__fxprintf): Call it.
7430 * misc/err.c (convert_and_print): Remove function.
7431 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7432 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7433 * misc/Makefile (tests): Add tst-warn-wide.
7434 * misc/tst-warn-wide.c: New file.
7435
7436 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7437 Szabolcs Nagy <szabolcs.nagy@arm.com>
7438
7439 * NEWS: Mention sinf, cosf, sincosf.
7440 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7441 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7442 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7443 constants rather than including generic sincosf.h.
7444 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7445 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7446 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7447 (reduced_cos): Remove.
7448 (sinf_poly): New function.
7449 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7450
7451 2018-08-14 Florian Weimer <fweimer@redhat.com>
7452
7453 [BZ #23521]
7454 [BZ #23522]
7455 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7456 processing, bail out if no room, and close the stream before
7457 returning ERANGE.
7458 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7459 (tst-nss-files-alias-leak): Link with libdl.
7460 (tst-nss-files-alias-leak.out): Depend on nss_files.
7461
7462 * nss/tst-nss-files-alias-leak.c: New file.
7463
7464 2018-08-14 Florian Weimer <fweimer@redhat.com>
7465
7466 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7467 server_user, stat_user.
7468
7469 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7470
7471 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7472 version to 4.18.
7473 (io_pgetevents): New syscall.
7474 (rseq): Likewise.
7475
7476 * manual/install.texi (Configuring and compiling): Do not list
7477 tools used for testing pretty printers here.
7478 (Tools for Compilation): List Python, PExpect and GDB here.
7479 Update descriptions of uses of Perl and Python.
7480 * INSTALL: Regenerate.
7481
7482 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7483 version to 4.18.
7484
7485 2018-08-13 Florian Weimer <fweimer@redhat.com>
7486
7487 * misc/error.c (error): Add missing va_end call.
7488 (error_at_line): Likewise.
7489
7490 2018-08-13 Florian Weimer <fweimer@redhat.com>
7491
7492 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7493
7494 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7495
7496 * benchtests/scripts/benchout.schema.json (properties): Add
7497 new properties.
7498
7499 * benchtests/bench-skeleton.c (main): Add duration and
7500 iterations attributes.
7501
7502 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7503
7504 regex: Gnulib unibyte RRI uses bytes not chars
7505 Adjust the non-glibc code to agree with what Gawk needs for
7506 rational range interpretation (RRI) for regular expression ranges.
7507 In unibyte locales, Gawk wants ranges to use the underlying byte
7508 rather than the character code point. This change does not affect
7509 glibc proper.
7510 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7511 In unibyte locales, use the byte value rather than
7512 running it through btowc.
7513
7514 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7515
7516 * sysdeps/generic/math-tests-snan.h: New file.
7517 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7518 (SNAN_TESTS_float): Do not define here.
7519 (SNAN_TESTS_double): Likewise.
7520 (SNAN_TESTS_long_double): Likewise.
7521 (SNAN_TESTS_float128): Likewise.
7522 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7523 * sysdeps/i386/fpu/math-tests.h: Remove file.
7524 * sysdeps/ia64/math-tests-snan.h: New file.
7525 * sysdeps/ia64/math-tests.h: Remove file.
7526 * sysdeps/x86/math-tests.h: Likewise.
7527 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7528
7529 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7530 Szabolcs Nagy <szabolcs.nagy@arm.com>
7531
7532 * math/Makefile: Add s_sincosf_data.c.
7533 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7534 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7535 (sincosf_poly): Likewise.
7536 (reduce_small): Likewise.
7537 (reduce_large): Likewise.
7538 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7539 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7540 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7541 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7542
7543 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7544 Szabolcs Nagy <szabolcs.nagy@arm.com>
7545
7546 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7547 (converttoint): Use lround.
7548 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7549 document the semantics when TOINT_INTRINSICS is set.
7550 (converttoint): Likewise.
7551 (TOINT_RINT): Remove.
7552 (TOINT_SHIFT): Remove.
7553 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7554 path.
7555
7556 2018-08-10 Florian Weimer <fweimer@redhat.com>
7557
7558 [BZ #23497]
7559 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7560 function.
7561 (__old_getdents64): Use getdents64. Convert entries without
7562 moving them.
7563 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7564 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7565 tst-readdir64-compat.
7566
7567 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7568
7569 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7570 Fix unwind.
7571
7572 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7573
7574 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7575 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7576 code to s390x-mcount.h and #include it.
7577 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7578 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7579 (__fentry__): Add.
7580
7581 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7582
7583 * stdlib/Versions: Remove __fentry__.
7584 * sysdeps/i386/Versions: Add __fentry__.
7585 * sysdeps/x86_64/Versions: Add __fentry__.
7586
7587 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7588
7589 * sysdeps/s390/Makefile: Register the new tests.
7590 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7591 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7592 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7593 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7594 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7595 * sysdeps/s390/tst-dl-runtime.c: New file.
7596
7597 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7598
7599 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7600 Do not clobber R0.
7601
7602 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7603
7604 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7605 Do not clobber R0.
7606
7607 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7608
7609 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7610 Do not clobber R0.
7611
7612 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7613
7614 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7615 Do not clobber R0.
7616
7617 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7618
7619 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7620 Use symbolic offsets for stack variables.
7621
7622 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7623
7624 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7625 Use symbolic offsets for stack variables.
7626
7627 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7628
7629 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7630 Use symbolic offsets for stack variables.
7631
7632 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7633
7634 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7635 Use symbolic offsets for stack variables.
7636
7637 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7638
7639 * math/gen-libm-test.py: New file.
7640 * math/gen-libm-test.pl: Remove.
7641 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7642 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7643 gen-libm-test.pl.
7644 ($(libm-test-c-noauto-obj)): Likewise.
7645 ($(libm-test-c-auto-obj)): Likewise.
7646 ($(libm-test-c-narrow-obj)): Likewise.
7647 (regen-ulps): Likewise.
7648 * math/README.libm-test: Update references to gen-libm-test.pl.
7649 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7650 referencing gen-libm-test.pl.
7651 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7652 * math/libm-test-support.c: Likewise.
7653 * math/libm-test-support.h: Likewise.
7654 * sysdeps/generic/libm-test-ulps: Likewise.
7655
7656 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7657
7658 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7659 Fix value.
7660
7661 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7662
7663 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7664 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7665
7666 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7667
7668 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7669 symbols.
7670 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7671 __pthread_setspecific): Add hidden proto.
7672 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7673 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7674
7675 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7676
7677 * benchtests/bench-string.h (buf1_size, buf2_size): New
7678 variables.
7679 (init_sizes): New function.
7680 (test_init): Use it.
7681 (alloc_buf, exit_error): New functions.
7682 (alloc_bufs): Use ALLOC_BUF.
7683 (realloc_bufs): Remove.
7684 * benchtests/bench-memcmp.c (do_test): Adjust.
7685 * benchtests/bench-memset-large.c (do_test): Likewise.
7686 * benchtests/bench-memset-walk.c (do_test): Likewise.
7687 * benchtests/bench-memset.c (do_test): Likewise.
7688 * benchtests/bench-strncmp.c (do_test): Likewise.
7689
7690 2018-08-06 Andreas Schwab <schwab@suse.de>
7691
7692 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7693 of CONST_THREAD_AREA.
7694
7695 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7696
7697 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7698 (STATE_SAVE_MASK): Likewise.
7699 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7700 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7701 (STATE_SAVE_MASK): Likewise.
7702 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7703 instead of <cpu-features.h>.
7704
7705 2018-08-03 DJ Delorie <dj@redhat.com>
7706
7707 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7708 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7709
7710 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7711
7712 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7713
7714 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7715 after TEST_* calls.
7716 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7717 * math/libm-test-logb.inc (logb_test_data): Likewise.
7718
7719 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7720
7721 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7722 * string/strstr.c (AVAILABLE): Likewise.
7723
7724 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7725
7726 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7727 <init-arch.h>.
7728 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7729 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7730 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7731
7732 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7733
7734 * po/be.po: Update translation.
7735
7736 * po/be.po: Update translation.
7737
7738 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7739
7740 * sysdeps/x86/cpu-features-offsets.sym
7741 (rtld_global_ro_offsetof): Removed.
7742 (CPU_FEATURES_SIZE): Likewise.
7743 (CPUID_OFFSET): Likewise.
7744 (CPUID_SIZE): Likewise.
7745 (CPUID_EAX_OFFSET): Likewise.
7746 (CPUID_EBX_OFFSET): Likewise.
7747 (CPUID_ECX_OFFSET): Likewise.
7748 (CPUID_EDX_OFFSET): Likewise.
7749 (FAMILY_OFFSET): Likewise.
7750 (MODEL_OFFSET): Likewise.
7751 (FEATURE_OFFSET): Likewise.
7752 (FEATURE_SIZ): Likewise.
7753 (COMMON_CPUID_INDEX_1): Likewise.
7754 (COMMON_CPUID_INDEX_7): Likewise.
7755 (FEATURE_INDEX_1): Likewise.
7756 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7757
7758 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7759
7760 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7761 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7762 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7763 (install-locales): Depend on install-locale-archive.
7764 (install-locale-archive): Define.
7765 (install-locale-files): Define.
7766 (build-one-locale): Define macro.
7767 * manual/install.texi (Running make install): Document.
7768 * manual/INSTALL: Regenerate.
7769
7770 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7771
7772 * benchtests/scripts/compare_strings.py: Import traceback.
7773 (parse_file): Pretty-print error.
7774
7775 * NEWS: Mention the change.
7776 * elf/dl-tunables.list: Rename tune namespace to cpu.
7777 * sysdeps/powerpc/dl-tunables.list: Likewise.
7778 * sysdeps/x86/dl-tunables.list: Likewise.
7779 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7780 cpu.name.
7781 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7782 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7783 * manual/README.tunables: Likewise.
7784 * manual/tunables.texi: Likewise.
7785 * sysdeps/powerpc/cpu-features.c: Likewise.
7786 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7787 (init_cpu_features): Likewise.
7788 * sysdeps/x86/cpu-features.c: Likewise.
7789 * sysdeps/x86/cpu-features.h: Likewise.
7790 * sysdeps/x86/cpu-tunables.c: Likewise.
7791 * sysdeps/x86_64/Makefile: Likewise.
7792 * sysdeps/x86/dl-cet.c: Likewise.
7793
7794 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7795
7796 [BZ #23479]
7797 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7798 [__mips_hard_float].
7799 (FE_UNDERFLOW): Likewise.
7800 (FE_OVERFLOW): Likewise.
7801 (FE_DIVBYZERO): Likewise.
7802 (FE_INVALID): Likewise.
7803 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7804 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7805 (FE_UPWARD): Likewise.
7806 (FE_DOWNWARD): Likewise.
7807 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7808 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7809 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7810 [__mips_hard_float].
7811 (FP_ROUNDMODE): Likewise.
7812 (FP_RND_NEAREST): Likewise.
7813 (FP_RND_ZERO): Likewise.
7814 (FP_RND_PINF): Likewise.
7815 (FP_RND_MINF): Likewise.
7816 (FP_EX_INVALID): Likewise.
7817 (FP_EX_OVERFLOW): Likewise.
7818 (FP_EX_UNDERFLOW): Likewise.
7819 (FP_EX_DIVZERO): Likewise.
7820 (FP_EX_INEXACT): Likewise.
7821 (FP_INIT_ROUNDMODE): Likewise.
7822 * sysdeps/mips/nofpu/fesetenv.c: New file.
7823 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7824
7825 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7826
7827 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7828 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7829 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7830 conditional on [FE_UPWARD].
7831
7832 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7833
7834 regex: fix memory leak in Gnulib
7835 Problem and fix reported by Assaf Gordon in:
7836 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7837 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7838 range_ends members too, as they are defined in 'struct
7839 re_charset_t' even if not _LIBC. This affects only Gnulib.
7840
7841 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7842
7843 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7844 ...
7845 (get_common_indices): This.
7846 (init_cpu_features): Updated.
7847
7848 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7849
7850 * sysdeps/generic/math-tests-snan-payload.h: New file.
7851 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7852 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7853 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7854 * sysdeps/generic/math-tests.h: Include
7855 <math-tests-snan-payload.h>.
7856 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7857 * sysdeps/hppa/math-tests.h: Remove file.
7858 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7859 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7860 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7861 Likewise.
7862
7863 * sysdeps/generic/math-tests-snan-cast.h: New file.
7864 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7865 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7866 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7867 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7868
7869 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7870
7871 * version.h (RELEASE): Set to "development".
7872 (VERSION): Set to "2.28.9000".
7873 * NEWS (2.29): New section.
7874
7875 * version.h (RELEASE): Set to "stable".
7876 (VERSION): Set to "2.28".
7877 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7878 * NEWS: Add the list of bugs fixed in 2.28.
7879
7880 * po/ca.po: Update to latest version.
7881 * po/cs.po: Likewise
7882 * po/da.po: Likewise
7883 * po/el.po: Likewise
7884 * po/eo.po: Likewise
7885 * po/es.po: Likewise
7886 * po/fi.po: Likewise
7887 * po/fr.po: Likewise
7888 * po/gl.po: Likewise
7889 * po/hu.po: Likewise
7890 * po/ia.po: Likewise
7891 * po/id.po: Likewise
7892 * po/it.po: Likewise
7893 * po/ja.po: Likewise
7894 * po/ko.po: Likewise
7895 * po/lt.po: Likewise
7896 * po/nb.po: Likewise
7897 * po/nl.po: Likewise
7898 * po/pt_BR.po: Likewise
7899 * po/ru.po: Likewise
7900 * po/rw.po: Likewise
7901 * po/sk.po: Likewise
7902 * po/sl.po: Likewise
7903 * po/tr.po: Likewise
7904 * po/zh_CN.po: Likewise
7905 * po/zh_TW.po: Likewise
7906
7907 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7908
7909 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
7910 initialization...
7911 (init): ... before initializing libpthread.
7912
7913 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
7914 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
7915 (__mach_setup_tls): ... new function.
7916 (mach_setup_tls): New alias.
7917 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
7918 __mach_setup_thread.
7919 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
7920 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
7921 * mach/Versions [libc] (mach_setup_tls): Add symbol.
7922 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
7923
7924 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7925
7926 * manual/install.texi: Update versions.
7927 * INSTALL: Regenerate.
7928
7929 * manual/contrib.texi (Contributors): Update contributions.
7930
7931 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7932
7933 * po/be.po: Update translations.
7934
7935 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7936
7937 * sysdeps/sh/libm-test-ulps: Update.
7938
7939 2018-07-30 Carlos O'Donell <carlos@redhat.com>
7940
7941 * po/bg.po: Update translations.
7942 * po/de.po: Likewise.
7943 * po/hr.po: Likewise.
7944 * po/pt_BR.po: Likewise.
7945 * po/sv.po: Likewise.
7946 * po/vi.po: Likewise.
7947
7948 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7949
7950 [BZ #23467]
7951 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
7952 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
7953 (CFLAGS-tst-cet-property-1.o): New.
7954 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
7955 ($(objpfx)tst-cet-property-2): Likewise.
7956 ($(objpfx)tst-cet-property-2.out): Likewise.
7957 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
7958 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
7959 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
7960 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
7961 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
7962
7963 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7964
7965 [BZ #23458]
7966 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
7967
7968 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7969
7970 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
7971 __sbrk): Do not set attribute_hidden.
7972 * sysdeps/mach/hurd/not-errno.h: New file.
7973 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
7974 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
7975
7976 2018-07-27 Carlos O'Donell <carlos@redhat.com>
7977
7978 * po/uk.po: Update translations.
7979 * po/cs.po: Likewise.
7980 * po/pl.po: Likewise.
7981
7982 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
7983
7984 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
7985 parse beyond the note end.
7986
7987 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7988
7989 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
7990 kernel does not support OFD locks.
7991 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
7992
7993 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
7994
7995 * sysdeps/mach/hurd/Versions (libc): Make __access and
7996 __access_noerrno external so they can override the ld symbols.
7997 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
7998 __writev, __open64, __access_noerrno extern so they can be overrided.
7999 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8000 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8001
8002 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8003
8004 * po/libc.pot: Regenerate.
8005
8006 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8007
8008 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8009
8010 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8011
8012 [BZ #23459]
8013 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8014 function.
8015 (init_cpu_features): Call get_extended_indices for both Intel
8016 and AMD CPUs.
8017 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8018 Remove "for AMD" comment.
8019
8020 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8021
8022 [BZ # 23456]
8023 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8024 COMMON_CPUID_INDEX_80000001.
8025
8026 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8027
8028 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8029 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8030
8031 2018-07-26 Florian Weimer <fweimer@redhat.com>
8032
8033 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8034 aliases for symbols not in the implementation namespace.
8035
8036 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8037
8038 [BZ #23393]
8039 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8040 lowercase in LATIN script.
8041 * localedata/Makefile (test-input): Add en_US.UTF-8.
8042 * localedata/en_US.UTF-8.in: New file.
8043 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8044 and restore old tests.
8045 * posix/tst-regexloc.c (do_test): Add back range expression test.
8046
8047 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8048
8049 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8050
8051 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8052
8053 * nptl/threads.h: Move to ...
8054 * sysdeps/nptl/threads.h: ... here.
8055 * sysdeps/hurd/stdc-predef.h: New file.
8056
8057 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8058
8059 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8060 tst-cet-setcontext-1 if CET is enabled.
8061 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8062 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8063
8064 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8065
8066 * include/threads.h: Move to ...
8067 * sysdeps/nptl/threads.h: ... here.
8068 * sysdeps/htl/threads.h: New file.
8069 * conform/Makefile (linknamespace-libs-ISO11): Use
8070 static-thread-library instead of linking libpthread.
8071 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8072
8073 2018-07-25 Florian Weimer <fweimer@redhat.com>
8074
8075 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8076 nanoseconds into seconds.
8077 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8078 (do_test): Likewise.
8079 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8080 (do_test): Likewise. Avoid nanosecond overflow and spurious
8081 timeouts due to system load.
8082 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8083 (child_wait): Increment it.
8084 (do_test): Wait as long as necessary until all expected threads
8085 have arrived.
8086
8087 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8088 H.J. Lu <hongjiu.lu@intel.com>
8089
8090 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8091 __ssp.
8092 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8093 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8094 (__push___start_context): New.
8095 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8096 <asm/prctl.h>.
8097 (__getcontext): Record the current shadow stack base. Save the
8098 caller's shadow stack pointer and base.
8099 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8100 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8101 (__push___start_context): New prototype.
8102 (__makecontext): Call __push___start_context to allocate a new
8103 shadow stack, push __start_context onto the new stack as well
8104 as the new shadow stack.
8105 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8106 <asm/prctl.h>.
8107 (__setcontext): Restore the target shadow stack.
8108 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8109 <asm/prctl.h>.
8110 (__swapcontext): Record the current shadow stack base. Save
8111 the caller's shadow stack pointer and base. Restore the target
8112 shadow stack.
8113 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8114 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8115 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8116
8117 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8118
8119 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8120 tst-setcontext8 and tst-setcontext9.
8121 * stdlib/tst-setcontext6.c: New file.
8122 * stdlib/tst-setcontext7.c: Likewise.
8123 * stdlib/tst-setcontext8.c: Likewise.
8124 * stdlib/tst-setcontext9.c: Likewise.
8125
8126 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8127
8128 * stdlib/Makefile ((tests): Add tst-setcontext5.
8129 * stdlib/tst-setcontext5.c: New file.
8130
8131 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8132
8133 * stdlib/Makefile (tests): Add tst-setcontext4.
8134 * stdlib/tst-setcontext4.c: New file.
8135
8136 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8137
8138 * stdlib/Makefile (tests): Add tst-swapcontext1.
8139 * stdlib/tst-swapcontext1.c: New test.
8140
8141 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8142
8143 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8144 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8145 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8146 and tst-cet-legacy-4c.
8147 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8148 and tst-cet-legacy-mod-4.
8149 (CFLAGS-tst-cet-legacy-2.c): New.
8150 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8151 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8152 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8153 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8154 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8155 ($(objpfx)tst-cet-legacy-1): Likewise.
8156 ($(objpfx)tst-cet-legacy-2): Likewise.
8157 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8158 ($(objpfx)tst-cet-legacy-2a): Likewise.
8159 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8160 ($(objpfx)tst-cet-legacy-4): Likewise.
8161 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8162 ($(objpfx)tst-cet-legacy-4a): Likewise.
8163 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8164 (tst-cet-legacy-4a-ENV): Likewise.
8165 ($(objpfx)tst-cet-legacy-4b): Likewise.
8166 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8167 (tst-cet-legacy-4b-ENV): Likewise.
8168 ($(objpfx)tst-cet-legacy-4c): Likewise.
8169 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8170 (tst-cet-legacy-4c-ENV): Likewise.
8171 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8172 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8173 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8174 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8175 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8176 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8177 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8178 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8179 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8180 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8181 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8182
8183 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8184
8185 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8186 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8187 with ssp_base.
8188 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8189 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8190 with ssp_base.
8191
8192 2018-07-25 Andreas Schwab <schwab@suse.de>
8193
8194 [BZ #23442]
8195 * locale/weightwc.h (findidx): Handle the case where usrc is a
8196 prefix of cp but one character too short.
8197
8198 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8199
8200 * NEWS: Add ISO C threads addition.
8201
8202 2018-07-24 Florian Weimer <fweimer@redhat.com>
8203
8204 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8205 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8206 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8207 4.13.
8208
8209 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8210
8211 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8212 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8213 <sys/prctl.h> and <asm/prctl.h>.
8214 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8215 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8216 and <asm/prctl.h>.
8217 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8218 ARCH_CET_LEGACY_BITMAP.
8219 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8220 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8221 * sysdeps/x86/libc-start.c: Include <startup.h>.
8222
8223 2018-07-24 Florian Weimer <fweimer@redhat.com>
8224
8225 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8226 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8227
8228 2018-07-24 Rical Jasan <rj@2c3t.io>
8229 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8230 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8231
8232 [BZ #14092]
8233 * manual/debug.texi: Update adjacent chapter name.
8234 * manual/probes.texi: Likewise.
8235 * manual/threads.texi (ISO C Threads): New section.
8236 (POSIX Threads): Convert to a section.
8237
8238 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8239 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8240
8241 [BZ# 14092]
8242 * nptl/Makefile (tests): Add new test files.
8243 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8244 * nptl/tst-cnd-basic.c: Likewise.
8245 * nptl/tst-cnd-broadcast.c: Likewise.
8246 * nptl/tst-cnd-timedwait.c: Likewise.
8247 * nptl/tst-mtx-basic.c: Likewise.
8248 * nptl/tst-mtx-recursive.c: Likewise.
8249 * nptl/tst-mtx-timedlock.c: Likewise.
8250 * nptl/tst-mtx-trylock.c: Likewise.
8251 * nptl/tst-thrd-basic.c: Likewise.
8252 * nptl/tst-thrd-detach.c: Likewise.
8253 * nptl/tst-thrd-sleep.c: Likewise.
8254 * nptl/tst-tss-basic.c: Likewise.
8255
8256 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8257
8258 [BZ #14092]
8259 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8260 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8261 symbols.
8262 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8263 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8264 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8265 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8266 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8267 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8268 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8269 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8270 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8271 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8272 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8273 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8274 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8275 Likewise.
8276 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8277 Likewise.
8278 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8279 Likewise.
8280 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8281 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8282 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8283 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8284 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8285 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8286 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8287 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8288 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8289 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8290 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8291 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8292 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8293 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8294 Likewise.
8295 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8296 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8297 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8298 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8299 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8300 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8301 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8302 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8303 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8304 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8305 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8306 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8307 ikewise.
8308 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8309 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8310 Likewise.
8311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8312 Likewise.
8313 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8314 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8315 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8316 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8317 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8318 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8319 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8320 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8321
8322 [BZ #14092]
8323 * conform/data/threads.h-data (thread_local): New macro.
8324 (TSS_DTOR_ITERATIONS): Likewise.
8325 (tss_t): New type.
8326 (tss_dtor_t): Likewise.
8327 (tss_create): New function.
8328 (tss_get): Likewise.
8329 (tss_set): Likewise.
8330 (tss_delete): Likewise.
8331 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8332 tss_get, and tss_set objects.
8333 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8334 * nptl/tss_create.c: New file.
8335 * nptl/tss_delete.c: Likewise.
8336 * nptl/tss_get.c: Likewise.
8337 * nptl/tss_set.c: Likewise.
8338 * sysdeps/nptl/threads.h (thread_local): New define.
8339 (TSS_DTOR_ITERATIONS): Likewise.
8340 (tss_t): New typedef.
8341 (tss_dtor_t): Likewise.
8342 (tss_create): New prototype.
8343 (tss_get): Likewise.
8344 (tss_set): Likewise.
8345 (tss_delete): Likewise.
8346
8347 [BZ #14092]
8348 * conform/data/threads.h-data (cnd_t): New type.
8349 (cnd_init): New function.
8350 (cnd_signal): Likewise.
8351 (cnd_broadcast): Likewise.
8352 (cnd_wait): Likewise.
8353 (cnd_timedwait): Likewise.
8354 (cnd_destroy): Likewise.
8355 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8356 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8357 object.
8358 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8359 * nptl/cnd_broadcast.c: New file.
8360 * nptl/cnd_destroy.c: Likewise.
8361 * nptl/cnd_init.c: Likewise.
8362 * nptl/cnd_signal.c: Likewise.
8363 * nptl/cnd_timedwait.c: Likewise.
8364 * nptl/cnd_wait.c: Likewise.
8365 * sysdeps/nptl/threads.h (cnd_t): New type.
8366 (cnd_init): New prototype.
8367 (cnd_signa): Likewise.
8368 (cnd_broadcast): Likewise.
8369 (cnd_wait): Likewise.
8370 (cnd_timedwait): Likewise.
8371 (cnd_destroy): Likewise.
8372
8373 [BZ #14092]
8374 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8375 (once_flag): New type.
8376 (call_once): New function.
8377 * nptl/Makefile (libpthread-routines): Add call_once object.
8378 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8379 * nptl/call_once.c: New file.
8380 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8381 (once_flag): New type.
8382 (call_once): New prototype.
8383
8384 [BZ #14092]
8385 * conform/data/threads.h-data (mtx_plain): New constant.
8386 (mtx_recursive): Likewise.
8387 (mtx_timed): Likewise.
8388 (mtx_t): New type.
8389 (mtx_init): New function.
8390 (mtx_lock): Likewise.
8391 (mtx_timedlock): Likewise.
8392 (mtx_trylock): Likewise.
8393 (mtx_unlock): Likewise.
8394 (mtx_destroy): Likewise.
8395 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8396 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8397 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8398 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8399 * nptl/mtx_destroy.c: New file.
8400 * nptl/mtx_init.c: Likewise.
8401 * nptl/mtx_lock.c: Likewise.
8402 * nptl/mtx_timedlock.c: Likewise.
8403 * nptl/mtx_trylock.c: Likewise.
8404 * nptl/mtx_unlock.c: Likewise.
8405 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8406 (mtx_recursive): Likewise.
8407 (mtx_timed): Likewise.
8408 (mtx_t): New type.
8409 (mtx_init): New prototype.
8410 (mtx_lock): Likewise.
8411 (mtx_timedlock): Likewise.
8412 (mtx_trylock): Likewise.
8413 (mtx_unlock): Likewise.
8414 (mtx_destroy): Likewise.
8415
8416 [BZ #14092]
8417 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8418 (linknamespace-libs-ISO11): Add libpthread.a.
8419 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8420 functions.
8421 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8422 * nptl/Makefile (headers): Add threads.h.
8423 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8424 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8425 thrd_yield.
8426 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8427 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8428 thrd_join, thrd_sleep, and thrd_yield symbols.
8429 * nptl/descr.h (struct pthread): Add c11 field.
8430 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8431 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8432 routine with expected function prototype.
8433 (__pthread_create_2_1): Add C11 threads check based on attribute
8434 value.
8435 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8436 * nptl/thrd_create.c: New file.
8437 * nptl/thrd_current.c: Likewise.
8438 * nptl/thrd_detach.c: Likewise.
8439 * nptl/thrd_equal.c: Likewise.
8440 * nptl/thrd_exit.c: Likewise.
8441 * nptl/thrd_join.c: Likewise.
8442 * nptl/thrd_priv.h: Likewise.
8443 * nptl/thrd_sleep.c: Likewise.
8444 * nptl/thrd_yield.c: Likewise.
8445 * include/threads.h: Likewise.
8446
8447 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8448
8449 * bits/indirect-return.h: New file.
8450 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8451 * sysdeps/x86/bits/indirect-return.h: Likewise.
8452 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8453 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8454 (swapcontext): Add __INDIRECT_RETURN.
8455 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8456 (prepare_test_buffer): Use it.
8457
8458 2018-07-24 Andreas Schwab <schwab@suse.de>
8459
8460 [BZ #23448]
8461 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8462 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8463
8464 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8465
8466 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8467 Redefine if shadow stack is enabled.
8468 (SYSCALL_ERROR_LABEL): Likewise.
8469 (__vfork): Pop shadow stack and jump back to to caller directly
8470 when shadow stack is in use.
8471 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8472 Redefine if shadow stack is enabled.
8473 (SYSCALL_ERROR_LABEL): Likewise.
8474 (__vfork): Pop shadow stack and jump back to to caller directly
8475 when shadow stack is in use.
8476
8477 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8478
8479 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8480 enabled.
8481 (foo): Likewise.
8482 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8483 (foo): Likewise.
8484
8485 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8486
8487 * scripts/build-many-glibcs.py (Context.checkout): Default
8488 binutils version to 2.31 branch.
8489
8490 2018-07-20 Zong Li <zong@andestech.com>
8491
8492 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8493 URL of gcc's tarball.
8494
8495 2018-07-20 Florian Weimer <fweimer@redhat.com>
8496
8497 [BZ #23396]
8498 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8499 not compare an extra byte after the end of the weights.
8500
8501 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8502
8503 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8504 to 1.
8505 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8506 hidden prototypes.
8507 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8508 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8509 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8510 list of libraries whose stack executability is expected.
8511 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8512 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8513 variable.
8514 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8515 libc.so libpthread.so.
8516
8517 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8518
8519 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8520 SOCK_NONBLOCK.
8521 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8522 and SOCK_NONBLOCK.
8523 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8524 implement __pipe2.
8525 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8526
8527 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8528
8529 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8530 library to improve command line parsing.
8531 (__main__): make schema file as optional parameter (--schema),
8532 defaulting to benchtests/scripts/benchout.schema.json.
8533 (main): move out of the parsing stuff to __main_  and leave it
8534 only as caller of main comparison functions.
8535
8536 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8537
8538 * NEWS: Add a note for Intel CET status.
8539 * manual/install.texi: Likewise.
8540 * INSTALL: Regenerated.
8541
8542 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8543
8544 [BZ #23140]
8545 * localedata/locales/oc_FR (mon): Rename to...
8546 (alt_mon): This, then update October (typo fix).
8547 (mon): New content (genitive case, month names preceded by
8548 "de" or "d’").
8549
8550 [BZ #23422]
8551 * localedata/locales/oc_FR (abday): Update all items.
8552 (day): Update Wednesday and Saturday (typo fixes).
8553 (abmon): Update all items, except May.
8554 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8555 (LC_IDENTIFICATION): Bump the revision number and date.
8556 Keep the "category" entries in alphabetic order.
8557 (LC_ADDRESS): Remove no longer needed comment.
8558 (LC_COLLATE): Use “copy "ca_ES"”.
8559 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8560 "name_mrs".
8561
8562 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8563
8564 * grp/tst_fgetgrent.c: Include <unistd.h>.
8565 (main): Use mkstemp instead of tmpnam.
8566 * io/test-utime.c (main): Likewise.
8567 * posix/annexc.c (macrofile): Change to modifiable array.
8568 (main): Remove macrofile here.
8569 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8570 macrofile here.
8571 (check_header): Do not remove macrofile here.
8572 * posix/bug-getopt1.c: Include <stdlib.h>.
8573 (do_test): Use mkstemp instead of tmpnam.
8574 * posix/bug-getopt2.c: Include <stdlib.h>.
8575 (do_test): Use mkstemp instead of tmpnam.
8576 * posix/bug-getopt3.c: Include <stdlib.h>.
8577 (do_test): Use mkstemp instead of tmpnam.
8578 * posix/bug-getopt4.c: Include <stdlib.h>.
8579 (do_test): Use mkstemp instead of tmpnam.
8580 * posix/bug-getopt5.c: Include <stdlib.h>.
8581 (do_test): Use mkstemp instead of tmpnam.
8582 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8583 (main): Use mkstemp instead of tmpnam.
8584 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8585 (main): Use mkstemp instead of tmpnam.
8586 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8587 (main): use mkstemp instead of tmpnam.
8588 * stdlib/isomac.c (macrofile): Change to modifiable array.
8589 (main): Remove macrofile here.
8590 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8591 macrofile here.
8592 (check_header): Do not remove macrofile here.
8593
8594 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8595
8596 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8597 glibc.tune.x86_shstk.
8598
8599 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8600
8601 * NEWS: Mention --enable-cet.
8602 * manual/install.texi: Document --enable-cet.
8603 * INSTALL: Regenerated.
8604
8605 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8606
8607 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8608 Add _CET_NOTRACK before indirect jump to jump table.
8609
8610 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8611
8612 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8613 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8614 to jump table.
8615
8616 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8617
8618 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8619 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8620 to jump table.
8621
8622 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8623
8624 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8625 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8626 to jump table.
8627
8628 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8629
8630 * sysdeps/i386/i686/multiarch/memcpy-ssse3.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/i386/i686/multiarch/memcpy-ssse3-rep.S
8637 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8638 to jump table.
8639 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8640
8641 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8642
8643 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8644 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8645 to jump table.
8646
8647 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8648
8649 * sysdeps/i386/i686/multiarch/memset-sse2.S
8650 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8651 to jump table.
8652
8653 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8654
8655 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8656 indirect jump to jump table.
8657
8658 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8659
8660 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8661 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8662 to jump table.
8663 (MEMCPY): Likewise.
8664
8665 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8666
8667 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8668 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8669 to jump table.
8670 (MEMCPY): Likewise.
8671
8672 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8673
8674 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8675 _CET_NOTRACK before indirect jump to jump table.
8676
8677 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8678
8679 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8680 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8681 to jump table.
8682
8683 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8684
8685 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8686 indirect jump to jump table.
8687
8688 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8689
8690 [BZ #22241]
8691 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8692 (LOCALES): Likewise.
8693 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8694 * localedata/locales/sah_RU: New file.
8695 * localedata/sah_RU.UTF-8.in: New file.
8696
8697 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8698
8699 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8700 "sysdep.h".
8701 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8702 _CET_ENDBR to indirect jump targets and adjust jump destination
8703 for _CET_ENDBR.
8704 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8705 "sysdep.h".
8706 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8707 _CET_ENDBR to indirect jump targets and adjust jump destination
8708 for _CET_ENDBR.
8709 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8710 "sysdep.h".
8711 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8712 _CET_ENDBR to indirect jump targets and adjust jump destination
8713 for _CET_ENDBR.
8714
8715 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8716
8717 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8718 _CET_ENDBR.
8719
8720 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8721
8722 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8723 _CET_ENDBR.
8724 (_dl_tlsdesc_undefweak): Likewise.
8725 (_dl_tlsdesc_dynamic): Likewise.
8726 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8727 (_dl_tlsdesc_resolve_rel): Likewise.
8728 (_dl_tlsdesc_resolve_rela): Likewise.
8729 (_dl_tlsdesc_resolve_hold): Likewise.
8730 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8731 (_dl_tlsdesc_undefweak): Likewise.
8732 (_dl_tlsdesc_dynamic): Likewise.
8733 (_dl_tlsdesc_resolve_rela): Likewise.
8734 (_dl_tlsdesc_resolve_hold): Likewise.
8735
8736 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8737
8738 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8739 (_fini): Likewise.
8740 * sysdeps/x86_64/crti.S (_init): Likewise.
8741 (_fini): Likewise.
8742
8743 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8744
8745 [BZ #23140]
8746 * localedata/locales/os_RU (mon): Rename to...
8747 (alt_mon): This.
8748 (mon): Import from CLDR (genitive case).
8749
8750 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8751
8752 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8753 cet-tunables.h> when CET is enabled.
8754
8755 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8756
8757 [BZ #21598]
8758 * configure.ac: Add --enable-cet.
8759 * configure: Regenerated.
8760 * elf/Makefille (all-built-dso): Add a comment.
8761 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8762 Include <dl-prop.h>.
8763 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8764 segment.
8765 * elf/dl-open.c: Include <dl-prop.h>.
8766 (dl_open_worker): Call _dl_open_check.
8767 * elf/rtld.c: Include <dl-prop.h>.
8768 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8769 _rtld_main_check.
8770 * sysdeps/generic/dl-prop.h: New file.
8771 * sysdeps/i386/dl-cet.c: Likewise.
8772 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8773 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8774 * sysdeps/x86/cet-tunables.h: Likewise.
8775 * sysdeps/x86/check-cet.awk: Likewise.
8776 * sysdeps/x86/configure: Likewise.
8777 * sysdeps/x86/configure.ac: Likewise.
8778 * sysdeps/x86/dl-cet.c: Likewise.
8779 * sysdeps/x86/dl-procruntime.c: Likewise.
8780 * sysdeps/x86/dl-prop.h: Likewise.
8781 * sysdeps/x86/libc-start.h: Likewise.
8782 * sysdeps/x86/link_map.h: Likewise.
8783 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8784 _CET_ENDBR.
8785 (_dl_runtime_profile): Likewise.
8786 (_dl_runtime_resolve_shstk): New.
8787 (_dl_runtime_profile_shstk): Likewise.
8788 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8789 if CET is enabled.
8790 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8791 (CFLAGS-.os): Likewise.
8792 (CFLAGS-.op): Likewise.
8793 (CFLAGS-.oS): Likewise.
8794 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8795 is enabled.
8796 (tests-special): Add $(objpfx)check-cet.out.
8797 (cet-built-dso): New.
8798 (+$(cet-built-dso:=.note)): Likewise.
8799 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8800 ($(objpfx)check-cet.out): New.
8801 (generated): Add check-cet.out.
8802 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8803 <cet-tunables.h>.
8804 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8805 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8806 (init_cpu_features): Call get_cet_status to check CET status
8807 and update dl_x86_feature_1 with CET status. Call
8808 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8809 (set_x86_shstk). Disable and lock CET in libc.a.
8810 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8811 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8812 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8813 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8814 (_CET_ENDBR): Define if not defined.
8815 (ENTRY): Add _CET_ENDBR.
8816 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8817 x86_shstk.
8818 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8819 _CET_ENDBR.
8820 (_dl_runtime_profile): Likewise.
8821
8822 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8823
8824 [BZ #21895]
8825 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8826 restore r2 on longjmp.
8827 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8828 test list.
8829 Added rules to build test tst-setjmp-bug21895-static.
8830 Added module setjmp-bug21895 and rules to build a shared object from it.
8831 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8832 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8833
8834 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8835
8836 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8837 * benchtests/bench-strstr.c: Likewise.
8838 * string/memmem.c (FASTSEARCH): Define.
8839 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8840 Add support for FASTSEARCH.
8841 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8842 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8843 (FASTSEARCH): Define.
8844 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8845 * string/test-strstr.c: Likewise.
8846
8847 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8848
8849 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8850 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8851
8852 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8853 H.J. Lu <hongjiu.lu@intel.com>
8854
8855 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8856 (__longjmp): Restore shadow stack pointer if shadow stack is
8857 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8858 isn't defined for __longjmp_cancel.
8859 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8860 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8861 and SHADOW_STACK_POINTER_OFFSET is defined.
8862 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8863 (setjmp): Save shadow stack pointer if shadow stack is enabled
8864 and SHADOW_STACK_POINTER_OFFSET is defined.
8865 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8866 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8867 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8868 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8869 <jmp_buf-ssp.h>.
8870 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8871 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8872 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8873 Remove jmp_buf-ssp.sym.
8874 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8875 <jmp_buf-ssp.h>.
8876 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8877 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8878 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8879 jmp_buf-ssp.sym.
8880 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8881 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8882 (__longjmp): Restore shadow stack pointer if shadow stack is
8883 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8884 isn't defined for __longjmp_cancel.
8885 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
8886 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8887 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8888
8889 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
8890
8891 [BZ #22563]
8892 * nptl/pthread_create.c: Include <tls-setup.h>.
8893 (__pthread_create_2_1): Call tls_setup_tcbhead.
8894 * sysdeps/generic/tls-setup.h: New file.
8895 * sysdeps/x86/nptl/tls-setup.h: Likewise.
8896 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
8897 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
8898 Likewise.
8899 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
8900 to feature_1.
8901 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
8902 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
8903 (X86_FEATURE_1_SHSTK): Likewise.
8904 (CET_ENABLED): Likewise.
8905 (IBT_ENABLED): Likewise.
8906 (SHSTK_ENABLED): Likewise.
8907
8908 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
8909
8910 [BZ #23208]
8911 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
8912 (LOCALES): Likewise.
8913 * localedata/dsb_DE.UTF-8.in: New file.
8914 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
8915
8916 2018-07-12 Florian Weimer <fweimer@redhat.com>
8917
8918 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
8919 __mprotect, not mprotect.
8920
8921 2018-07-11 Florian Weimer <fweimer@redhat.com>
8922
8923 * io/Makefile (headers): Add bits/statx.h.
8924
8925 2018-07-10 Mike FABIAN <mfabian@redhat.com>
8926
8927 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
8928 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
8929 and headers.
8930 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
8931 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
8932 for utf8_gen.py
8933
8934 2018-07-10 Florian Weimer <fweimer@redhat.com>
8935
8936 * io/Makefile (routines): Add statx.
8937 (tests-internal): Add tst-statx.
8938 * io/Versions (GLIBC_2.28): Export statx.
8939 * io/bits/statx.h: New file.
8940 * io/sys/stat.h [__USE_GNU]: Include it.
8941 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
8942 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
8943 Define.
8944 * io/statx.c: New file.
8945 * io/statx_generic.: Likewise.
8946 * io/tst-statx.: Likewise.
8947 * include/bits/statx.h: Likewise.
8948 * sysdeps/unix/sysv/linux/kernel-features.h
8949 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
8950 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8951 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
8952 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
8953 Undefine.
8954 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8955 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
8956 * sysdeps/unix/sysv/linux/statx.c: New file.
8957 * manual/filesys.texi: Note that statx is undocumented.
8958 * sysdeps/**/libc*.abilist: Update.
8959
8960 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8961
8962 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
8963 a kernel issue which lead to test failure in some cases.
8964
8965 2018-07-10 Florian Weimer <fweimer@redhat.com>
8966
8967 [BZ #23036]
8968 * posix/regexec.c (check_node_accept_bytes): When comparing
8969 weights, do not compare an extra byte after the end of the
8970 weights.
8971
8972 2018-07-10 Florian Weimer <fweimer@redhat.com>
8973
8974 * libio/readline.c: Fix copyright year.
8975 * libio/tst-readline.c Likewise.
8976 * nss/tst-nss-files-hosts-getent.c: Likewise.
8977
8978 2018-07-06 Florian Weimer <fweimer@redhat.com>
8979
8980 [BZ #18991]
8981 * nss/nss_files/files-XXX.c (internal_getent): Use
8982 __libc_readline_unlocked. Seek back to the start of the line if
8983 parsing failes with ERANGE.
8984 (get_contents_ret, get_contents): Remove.
8985 * nss/tst-nss-files-hosts-getent.c: New file.
8986 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
8987 (tst-nss-files-hosts-getent): Link with -ldl.
8988
8989 2018-07-06 Florian Weimer <fweimer@redhat.com>
8990
8991 * include/stdio.h (__libc_readline_unlocked): Declare.
8992 (__ftello64, __fseeko64): Declare aliases.
8993 * libio/readline.c: New file.
8994 * libio/tst-readline.c: Likewise.
8995 (routines): Add readline.
8996 (tests-internal): Add tst-readlime.
8997 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
8998 __libc_readline_unlocked.
8999 * libio/fseeko.c (__fseeko): Rename from fseeko.
9000 (fseeko): Add alias.
9001 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9002 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9003 (fseeko64): Add alias.
9004 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9005 * libio/ftello64.c (__ftello64): Rename from ftello64.
9006 (ftello64): Add alias.
9007
9008 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9009
9010 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9011 HWCAP_ATOMICS.
9012
9013 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9014
9015 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9016 Use dl_hwcap without masking.
9017 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9018 Remove HWCAP_CPUID.
9019
9020 2018-07-06 Florian Weimer <fweimer@redhat.com>
9021
9022 * conform/conformtest.pl (checknamespace): Escape literal braces
9023 in regular expressions.
9024
9025 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9026
9027 * sysdeps/x86/cpu-features.c (get_common_indeces):
9028 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9029 * sysdeps/x86/cpu-features.c (init_cpu_features):
9030 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9031
9032 2018-07-05 Florian Weimer <fweimer@redhat.com>
9033
9034 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9035 protector.
9036 (CFLAGS-elf-init.oS): Likewise.
9037
9038 2018-07-05 Florian Weimer <fweimer@redhat.com>
9039 Carlos O'Donell <carlos@redhat.com>
9040
9041 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9042 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9043 with stack protector enabled because there is no risk of infinite
9044 recursion.
9045
9046 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9047
9048 [BZ #19818]
9049 [BZ #23307]
9050 * libc-abis (ABSOLUTE): New ABI.
9051 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9052 * NEWS: Mention the new ABI.
9053
9054 2018-07-05 Florian Weimer <fweimer@redhat.com>
9055
9056 [BZ # 17662]
9057 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9058 (RENAME_WHITEOUT): Define.
9059 [__USE_GNU] (renameat2): Declare.
9060 * stdio-common/Makefile (routines): Add renameat2.
9061 (tests): Add tst-renameat2.
9062 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9063 * stdio-common/renameat2.c: New file.
9064 * stdio-common/tst-renameat2.c: Likewise.
9065 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9066 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9067 undocumented.
9068 * sysdeps/unix/sysv/linux/kernel-features.h
9069 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9070 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9071 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9072 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9073 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9074 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9075 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9076 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9077 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9078 * include/stdio.h (__renameat): Add alias for renameat.
9079 * stdio-common/renameat.c (__renameat): Rename from renameat.
9080 Add hidden definition and alias.
9081 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9082 * sysdeps/mach/hurd/renameat.c: Likewise.
9083 * sysdeps/**/libc*.abilist: Add renameat2.
9084
9085 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9086
9087 * posix/bug-regex33.c: Fix build after regex sync.
9088
9089 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9090
9091 [BZ #23164]
9092 * localedata/tst-langinfo-setlocale.c: New file.
9093 * localedata/tst-langinfo-setlocale-static.c: New file.
9094 * localedata/tst-langinfo-newlocale.c: New file.
9095 * localedata/tst-langinfo-newlocale-static.c: New file.
9096 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9097 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9098 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9099 (tests-static): Remove tst-langinfo-static. Add
9100 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9101 (tests-special): Remove $(objpfx)tst-langinfo.out,
9102 $(objpfx)tst-langinfo-static.out. Add
9103 $(objpfx)tst-langinfo-setlocale.out,
9104 $(objpfx)tst-langinfo-newlocale.out,
9105 $(objpfx)tst-langinfo-setlocale-static.out,
9106 $(objpfx)tst-langinfo-newlocale-static.out.
9107 ($(objpfx)tst-langinfo.out): Remove.
9108 ($(objpfx)tst-langinfo-static.out): Remove.
9109 ($(objpfx)tst-langinfo-newlocale.out): New target.
9110 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9111 (test-xfail-tst-langinfo-newlocale-static): Add.
9112 ($(objpfx)tst-langinfo-setlocale.out): New target.
9113 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9114 * localedata/tst-langinfo.c: Call test_locale.
9115 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9116 data.
9117
9118 2018-07-04 Florian Weimer <fweimer@redhat.com>
9119
9120 testrun.sh: Implement --tool=strace, --tool=valgrind
9121 * Makefile (testrun-script): Define variable.
9122 (testrun.sh): Use variable.
9123 * manual/install.texi (Tools for Compilation): make 4.0 or later
9124 is required.
9125 * configure.ac: Check for make 4.0 or later.
9126 * INSTALL: Regenerate.
9127 * configure: Likewise.
9128
9129 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9130
9131 [BZ #23233]
9132 [BZ #21163]
9133 [BZ #18986]
9134 [BZ #13762]
9135 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9136 * posix/PCRE.tests: Remove invalid test.
9137 * posix/bug-regex28.c: Fix expected values for used syntax.
9138 * posix/bug-regex37.c: New file.
9139 * posix/bug-regex38.c: Likewise.
9140 * posix/regcomp.c: Sync with gnulib.
9141 * posix/regex.c: Likewise.
9142 * posix/regex.h: Likewise.
9143 * posix/regex_internal.c: Likewise.
9144 * posix/regex_internal.h: Likewise.
9145 * posix/regexec.c: Likewise.
9146
9147 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9148
9149 [BZ #23308]
9150 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9151 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9152 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9153 * localedata/unicode-gen/PropList.txt: likewise.
9154 * localedata/unicode-gen/UnicodeData.txt: likewise.
9155 * localedata/charmaps/UTF-8: Regenerate.
9156 * localedata/locales/i18n_ctype: likewise.
9157 * localedata/locales/tr_TR: likewise.
9158 * localedata/locales/translit_circle: likewise.
9159 * localedata/locales/translit_cjk_compat: likewise.
9160 * localedata/locales/translit_combining: likewise.
9161 * localedata/locales/translit_compat: likewise.
9162 * localedata/locales/translit_font: likewise.
9163 * localedata/locales/translit_fraction: likewise.
9164
9165 2018-07-03 Florian Weimer <fweimer@redhat.com>
9166
9167 [BZ #23363]
9168 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9169 * stdio-common/tst-printf.sh: Adjust expected output.
9170 * LICENSES: Update.
9171
9172 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9173
9174 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9175 symbol.
9176
9177 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9178
9179 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9180 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9181 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9182 * stdio-common/tst-printfsz-islongdouble.c: New file.
9183 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9184 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9185 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9186 [subdir == stdio-common] (tests-internal): Add
9187 test-printf-size-ieee128, and test-printf-size-ibm128.
9188 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9189 (CFLAGS-test-printf-size-ibm128.c): New variables.
9190 [subdir == stdio-common] (tests-special): Add
9191 $(objpfx)test-printf-size-ieee128.out and
9192 $(objpfx)test-printf-size-ibm128.out.
9193 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9194 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9195 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9196 __printf_sizeieee128.
9197 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9198 New file.
9199 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9200 Likewise.
9201 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9202 Likewise.
9203
9204 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9205
9206 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9207 (exp2f_inline): Likewise.
9208 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9209 (__math_uflowf): Likewise.
9210 (__math_may_uflowf): Likewise.
9211 (__math_divzerof): Likewise.
9212 (__math_invalidf): Likewise.
9213 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9214 (__math_oflowf): Likewise.
9215 (__math_uflowf): Likewise.
9216 (__math_may_uflowf): Likewise.
9217 (__math_divzerof): Likewise.
9218 (__math_invalidf): Likewise.
9219
9220 2018-06-29 DJ Delorie <dj@redhat.com>
9221 Carlos O'Donell <carlos@redhat.com>
9222
9223 [BZ #23329]
9224 * include/libc-symbols.h: Comment the freeres framework.
9225 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9226 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9227 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9228 * dlfcn/dlerror.c: Include libc-symbols.h
9229 (__dlerror_main_freeres): New function.
9230 * dlfcn/dlfreeres.c: New file.
9231 * dlfcn/sdlfreeres.c: New file.
9232 * include/dlfcn.h: Declare __dlerror_main_freeres.
9233 * malloc/set-freeres.c: Declare __libdl_freeres, and
9234 __libpthread_freeres.
9235 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9236 the releavant libraries are loaded.
9237 * malloc/thread-freeres.c: Add comments.
9238 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9239 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9240 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9241 (__free_stacks): Rename to...
9242 (free_stacks): ...this. Mark static.
9243 (queue_stack): Call free_stacks.
9244 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9245 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9246 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9247 ptr_freeres element from struct.
9248 (pthread_functions): Remove .ptr_freeres from struct initializer.
9249 [SHARED] (nptl_freeres): Remove.
9250 * nptl/nptlfreeres.c: New file.
9251 * nptl/pthreadP.h
9252 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9253 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9254 attribute_hidden.
9255 (__free_stacks): Rename to...
9256 (__nptl_stacks_freeres): ...this.
9257 (__shm_directory_freeres): Declare.
9258 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9259 (__nptl_unwind_freeres): ...this.
9260 * resolv/res-close.c: Add comment.
9261 * resolv/resolv_conf.c: Include libc-symbols.h.
9262 * string/strerror_l.c: Include libc-symbols.h.
9263 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9264 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9265 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9266 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9267
9268 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9269
9270 * stdlib/tst-strfmon_l.c: Add tests for long double.
9271
9272 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9273
9274 [BZ #23208]
9275 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9276 * localedata/locales/dsb_DE: New file.
9277
9278 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9279
9280 [BZ #23140]
9281 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9282 genitive case).
9283 (alt_mon): New entry, import from CLDR (nominative case).
9284
9285 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9286
9287 [BZ #22996]
9288 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9289
9290 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9291
9292 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9293 Use vector registers.
9294
9295 * sysdeps/aarch64/multiarch/memmove_falkor.S
9296 (__memcpy_falkor): Use vector registers.
9297
9298 2018-06-29 Martin Sebor <msebor@redhat.com>
9299
9300 * manual/stdio.texi (Customizing Printf): Mention interaction
9301 with GCC built-ins.
9302
9303 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9304
9305 [BZ #23307]
9306 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9307 `st_value' is 0 if `st_shndx' is SHN_ABS.
9308 * elf/tst-absolute-zero.c: New file.
9309 * elf/tst-absolute-zero-lib.c: New file.
9310 * elf/tst-absolute-zero-lib.lds: New file.
9311 * elf/Makefile (tests): Add `tst-absolute-zero'.
9312 (modules-names): Add `tst-absolute-zero-lib'.
9313 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9314 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9315 ($(objpfx)tst-absolute-zero: New dependency.
9316
9317 2018-06-29 Zack Weinberg <zackw@panix.com>
9318
9319 * configure.ac: New command-line option --disable-crypt.
9320 Force --disable-nss-crypt when --disable-crypt is given, with a
9321 warning if it was explicitly enabled.
9322 * configure: Regenerate.
9323 * config.make.in: New boolean substitution variable $(build-crypt).
9324 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9325 when $(build-crypt).
9326 * manual/install.texi: Document --disable-crypt.
9327 * INSTALL: Regenerate.
9328
9329 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9330 which is never set.
9331 * conform/Makefile: Only include libcrypt.a in
9332 linknamespace-libs-xsi and linknamespace-libs-XPG4
9333 when $(build-crypt).
9334 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9335 USE_CRYPT to 1 when $(build-crypt).
9336 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9337 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9338 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9339
9340 2018-06-29 Zack Weinberg <zackw@panix.com>
9341
9342 * crypt/crypt.h, posix/unistd.h: Update comments and
9343 prototypes for crypt and crypt_r.
9344
9345 * manual/crypt.texi (Cryptographic Functions): New initial
9346 exposition.
9347 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9348 (Unpredictable Bytes): Improve initial exposition. Clarify error
9349 behavior of getentropy and getrandom.
9350 * manual/examples/genpass.c: Generate a salt using getentropy
9351 instead of the current time. Use hash $5$ (SHA-2-256).
9352 * manual/examples/testpass.c: Demonstrate validation against
9353 hashes generated with three different one-way functions.
9354
9355 * manual/intro.texi: crypt.texi does not need an overview
9356 anymore.
9357
9358 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9359 * manual/terminal.texi: Consistently refer to "passphrases"
9360 * instead of "passwords", and to the "user database" instead
9361 * of the "password database".
9362 * manual/users.texi: Similarly. Add notes about how actual
9363 passphrase hashes are now stored in the shadow database.
9364 Remove 20-year-old junk todo note.
9365
9366 2018-06-29 Zack Weinberg <zackw@panix.com>
9367
9368 * manual/crypt.texi: Use a normal top-level @node declaration.
9369 Move most of the introductory text to the 'crypt' section.
9370 Move the example programs below the @deftypefun for 'crypt_r'.
9371 Move the 'getpass' section...
9372 * manual/terminal.texi: ...here.
9373
9374 2018-06-29 Zack Weinberg <zackw@panix.com>
9375 Florian Weimer <fweimer@redhat.com>
9376
9377 * posix/unistd.h: Do not declare encrypt.
9378 (_XOPEN_CRYPT): Remove macro definition.
9379 (crypt): Declare only for _USE_MISC.
9380 * stdlib/stdlib.h: Do not declare setkey.
9381 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9382 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9383
9384 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9385 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9386 into compat symbols. Don't define initial_perm if it's not
9387 going to be used.
9388 * crypt/cert.c: Link explicitly with the expected versions for
9389 setkey and encrypt. If they are not available at all, mark
9390 the test as unsupported.
9391
9392 * sunrpc/des_crypt.c: Unconditionally block linkage with
9393 cbc_crypt and ecb_crypt for new binaries.
9394 * sunrpc/des_soft.c: Unconditionally block linkage with
9395 des_setparity for new binaries.
9396
9397 * manual/crypt.texi: Remove the entire "DES Encryption"
9398 section. Also remove the paragraph talking about FIPS 140-2
9399 from the introduction.
9400 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9401 of libgcrypt for "real" encryption, not DES.
9402 * manual/conf.texi (Constants for Sysconf): Mention that
9403 _XOPEN_CRYPT is no longer impelemented.
9404
9405 * conform/data/unistd.h-data: Remove crypt function declaration.
9406
9407 2018-06-29 Florian Weimer <fweimer@redhat.com>
9408
9409 [BZ #23351]
9410 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9411 (disallow_malloc_check): Remove variable.
9412 (__malloc_check_init): Adjust.
9413 (malloc_set_state): Update comment.
9414 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9415 declarations.
9416
9417 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9418
9419 [BZ #23140]
9420 * localedata/locales/ast_ES (mon): Rename to...
9421 (alt_mon): This.
9422 (mon): Import from CLDR (genitive case).
9423
9424 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9425 Jakub Sitnicki <jkbs@redhat.com>
9426
9427 [BZ #21812]
9428 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9429 on NLM_F_DUMP_INTR.
9430
9431 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9432
9433 * manual/llio.texi: Remove spurious space.
9434
9435 2018-06-28 Florian Weimer <fweimer@redhat.com>
9436
9437 [BZ #23349]
9438 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9439 _STRUCT_TIMESPEC.
9440
9441 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9442
9443 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9444 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9445 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9446 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9447 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9448 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9449 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9450
9451 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9452
9453 [BZ #23266]
9454 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9455 Copy and null-terminate entries that are not terminated, in
9456 addition to empty ones.
9457
9458 2018-06-27 Florian Weimer <fweimer@redhat.com>
9459
9460 [BZ #18023]
9461 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9462 (extend_alloca_account): Remove.
9463 * manual/stdio.texi (Variable Arguments Output): Update comment.
9464
9465 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9466
9467 * nptl/sockperf.c: Remove file.
9468
9469 2018-06-27 Florian Weimer <fweimer@redhat.com>
9470
9471 [BZ #18023]
9472 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9473 scratch_buffer instead of extend_alloca.
9474
9475 2018-06-27 Florian Weimer <fweimer@redhat.com>
9476
9477 [BZ #18023]
9478 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9479 scratch_buffer instead of extend_alloca. Update comments.
9480
9481 2018-06-27 Florian Weimer <fweimer@redhat.com>
9482
9483 [BZ #18023]
9484 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9485 instead of extend_alloca.
9486
9487 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9488
9489 [BZ #13888]
9490 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9491 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9492 /tmp.
9493 * scripts/test-installation.pl: Put temporary files in build
9494 directory, not /tmp.
9495 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9496 (CFLAGS-bug4.c): Likewise.
9497 (CFLAGS-bug5.c): Likewise.
9498 (CFLAGS-test-fseek.c): Likewise.
9499 (CFLAGS-test-popen.c): Likewise.
9500 (CFLAGS-test_rdwr.c): Likewise.
9501 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9502 /tmp.
9503 * stdio-common/bug4.c (main): Likewise.
9504 * stdio-common/bug5.c (main): Likewise.
9505 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9506 * stdio-common/test-popen.c (do_test): Likewise.
9507 * stdio-common/test_rdwr.c (main): Likewise.
9508
9509 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9510
9511 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9512 (sem_open): Set sem.newsem.pad to zero for valgrind.
9513
9514 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9515
9516 [BZ #20251]
9517 * NEWS: Mention fcntl64 addition.
9518 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9519 * login/utmp_file.c: Likewise.
9520 * sysdeps/posix/fdopendir.c: Likewise.
9521 * sysdeps/posix/opendir.c: Likewise.
9522 * sysdeps/unix/pt-fcntl.c: Likewise.
9523 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9524 __fcntl64_nocancel_adjusted): New prototype.
9525 (__fcntl_nocancel_adjusted): Remove prototype.
9526 * io/Makefile (routines): Add fcntl64.
9527 (CFLAGS-fcntl64.c): New rule.
9528 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9529 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9530 * io/fcntl.h (fcntl64): Add prototype and redirect if
9531 __USE_FILE_OFFSET64 is defined.
9532 * io/fcntl64.c: New file.
9533 * manual/llio.text: Add a note for which commands fcntl acts a
9534 cancellation point.
9535 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9536 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9537 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9538 New symbols.
9539 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9540 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9541 non-LFS case.
9542 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9543 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9544 to __fcntl64_nocancel.
9545 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9546 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9547 to __fcntl64_nocancel.
9548 * sysdeps/generic/not-cancel.h: Likewise.
9549 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9550 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9551 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9552 (fcntl64): New symbol.
9553 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9554 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9555 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9556 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9557 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9558 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9559 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9560 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9561 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9562 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9563 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9564 fcntl64): Likewise.
9565 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9566 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9567 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9568 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9569 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9570 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9571 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9572 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9573 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9575 Likewise.
9576 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9577 Likewise.
9578 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9579 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9580 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9581
9582 2018-06-26 Florian Weimer <fweimer@redhat.com>
9583
9584 Run thread shutdown functions in an explicit order.
9585 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9586 definition.
9587 (__libc_thread_freeres): Call thread shutdown functions
9588 explicitly.
9589 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9590 * include/string.h (__strerror_thread_freeres): Declare.
9591 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9592 arena_thread_freeres. No longer static. Remove thread shutdown
9593 hook registration.
9594 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9595 Declare.
9596 * resolv/res-close.c (__res_thread_freeres): Renamed from
9597 res_thread_freeres. No longer static. Remove thread shutdown
9598 hook registration.
9599 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9600 * resolv/resolv_conf.c (freeres): Remove incorrect section
9601 attribute and use libc_freeres_fn.
9602 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9603 strerror_thread_freeres. No longer static. Remove thread
9604 shutdown hook registration.
9605 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9606 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9607 shutdown hook registration.
9608 * Makerules (shlib.lds): Do not provide section boundary symbols
9609 for __libc_thread_subfreeres.
9610 * manual/memory.texi (Basic Allocation): Update comment.
9611
9612 2018-06-26 Florian Weimer <fweimer@redhat.com>
9613
9614 Remove always-defined _RPC_THREAD_SAFE_ macro.
9615 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9616 Do not define _RPC_THREAD_SAFE_.
9617 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9618 conditional.
9619 * sunrpc/clnt_perr.c: Likewise.
9620 * sunrpc/clnt_raw.c: Likewise.
9621 * sunrpc/clnt_simp.c: Likewise.
9622 * sunrpc/key_call.c: Likewise.
9623 * sunrpc/rpc_common.c: Likewise.
9624 * sunrpc/rpc_main.c: Likewise.
9625 * sunrpc/rpc_thread.c: Likewise.
9626 * sunrpc/svc.c: Likewise.
9627 * sunrpc/svc_raw.c: Likewise.
9628 * sunrpc/svc_simple.c: Likewise.
9629 * sumrpc/svcauth_des.c: Likewise.
9630
9631 2018-06-26 Florian Weimer <fweimer@redhat.com>
9632
9633 * libio/Makefile (tests-internal): Add tst-vtables,
9634 tst-vtables-interposed.
9635 * libio/tst-vtables.c: New file.
9636 * libio/tst-vtables-common.c: Likewise.
9637 * libio/tst-vtables-interposed.c: Likewise.
9638
9639 2018-06-26 Florian Weimer <fweimer@redhat.com>
9640
9641 * support/support_test_main.c (support_test_main): Only call
9642 setvbuf if not disables.
9643 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9644 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9645
9646 2018-06-26 Florian Weimer <fweimer@redhat.com>
9647
9648 [BZ #23313]
9649 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9650
9651 2018-06-25 Florian Weimer <fweimer@redhat.com>
9652
9653 [BZ #18023]
9654 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9655 Use struct scratch_buffer instead of extend_alloca.
9656
9657 2018-06-25 Florian Weimer <fweimer@redhat.com>
9658
9659 [BZ #18023]
9660 * nss/getent.c (initgroups_keys): Use dynarray instead of
9661 extend_alloca.
9662
9663 2018-06-25 Florian Weimer <fweimer@redhat.com>
9664
9665 [BZ #18023]
9666 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9667 Use struct scratch_buffer instead of extend_alloca.
9668
9669 2018-06-25 Florian Weimer <fweimer@redhat.com>
9670
9671 [BZ #18023]
9672 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9673 back to malloc directly, without stack allocations.
9674
9675 2018-06-25 Florian Weimer <fweimer@redhat.com>
9676
9677 [BZ #18023]
9678 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9679 of extend_alloca.
9680
9681 2018-06-25 Florian Weimer <fweimer@redhat.com>
9682
9683 [BZ #18023]
9684 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9685 of extend_alloca.
9686 * nscd/hstcache.c (addhstbyX): Likewise.
9687 * nscd/pwdcache.c (addpwbyX): Likewise.
9688 * nscd/servicescache.c (addservbyX): Likewise.
9689
9690 2018-06-25 Florian Weimer <fweimer@redhat.com>
9691
9692 [BZ #18023]
9693 * nscd/connections.c (read_cmdline): New function.
9694 (restart): Use it. Update comment.
9695
9696 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9697
9698 [BZ #23140]
9699 * localedata/locales/csb_PL (mon): Rename to...
9700 (alt_mon): This.
9701 (abmon): Rename to...
9702 (ab_alt_mon): This.
9703 (mon): Add with proper genitive forms, copy from Wikipedia.
9704 (abmon): Likewise.
9705
9706 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9707
9708 [BZ #19485]
9709 * localedata/locales/csb_PL (mon): Fix typos:
9710 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9711 (yesstr): Add, value is "jo".
9712 (nostr): Add, value is "nié".
9713
9714 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9715
9716 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9717 all log1p and significand functions on m680x0.
9718 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9719 of s_significand.c..
9720 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9721 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9722 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9723 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9724 s_log1p.c and include it..
9725
9726 2018-06-21 Vincent Chen <vincentc@andestech.com>
9727
9728 * elf/elf.h (R_NDS32_NONE): New define.
9729 (R_NDS32_32_RELA): Likewise.
9730 (R_NDS32_COPY): Likewise.
9731 (R_NDS32_GLOB_DAT): Likewise.
9732 (R_NDS32_JUMP_SLOT): Likewise.
9733 (R_NDS32_RELATIVE): Likewise.
9734 (R_NDS32_TLS_TPOFF): Likewise.
9735 (R_NDS32_TLS_DESC): Likewise.
9736
9737 2018-06-21 Mark Wielaard <mark@klomp.org>
9738
9739 * elf/elf.h (R_BPF_MAP_FD): Removed.
9740 (R_BPF_64_64, R_BPF_64_32): New.
9741
9742 2018-06-21 Florian Weimer <fweimer@redhat.com>
9743
9744 [BZ #23253]
9745 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9746 Renamed from libc_feholdsetround_ctx.
9747 (default_libc_feresetround_ctx): Renamed from
9748 libc_feresetround_ctx.
9749 (default_libc_feholdsetround_noex_ctx): Renamed from
9750 libc_feholdsetround_noex_ctx.
9751 (default_libc_feresetround_noex_ctx): Renamed from
9752 libc_feresetround_noex_ctx.
9753 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9754 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9755 forwardning to the old implementations under the new names.
9756 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9757 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9758 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9759 (libc_feresetround_ctx): Forward to default implements for i386
9760 and MATH_SET_BOTH_ROUNDING_MODES.
9761 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9762 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9763
9764 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9765
9766 * string/tst-cmp.c: Include <libc-diag.h>.
9767 (strncmp_max): Disable -Wstringop-overflow= around call to
9768 strncmp.
9769 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9770 strncasecmp.
9771
9772 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9773 (main): Disable -Wunused-value around call to strpbrk.
9774 * string/bug-strspn1.c: Include <libc-diag.h>.
9775 (main): Disable -Wunused-value around call to strspn.
9776
9777 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9778 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9779
9780 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9781 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9782
9783 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9784
9785 * math/Makefile (libm-calls): Move s_significandF to...
9786 (gen-libm-calls): ... here.
9787 * math/s_significand_template.c: New file.
9788 * math/s_significand.c: Removed.
9789 * math/s_significandf.c: Removed.
9790 * math/s_significandl.c: Removed.
9791 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9792 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9793
9794 * math/e_exp2_template.c (declare_mgen_finite_alias,
9795 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9796 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9797 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9798
9799 2018-06-20 Florian Weimer <fweimer@redhat.com>
9800
9801 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9802
9803 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9804
9805 [BZ #23280]
9806 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9807 floating-point number to strtod functions rather than possibly
9808 negating result of those functions.
9809 * stdio-common/tst-scanf-round.c: New file.
9810 * stdio-common/Makefile (tests): Add tst-scanf-round.
9811 ($(objpfx)tst-scanf-round): Depend on $(libm).
9812
9813 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9814
9815 * sysdeps/mach/hurd/localplt.data: Move to...
9816 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9817 R_386_GLOB_DAT like on Linux i386.
9818
9819 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9820
9821 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9822 (SHM_STAT_ANY): New macro.
9823 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9824 (SHM_STAT_ANY): Likewise.
9825 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9826 (SHM_STAT_ANY): Likewise.
9827 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9828 (SHM_STAT_ANY): Likewise.
9829 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9830 (SHM_STAT_ANY): Likewise.
9831 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9832 (SHM_STAT_ANY): Likewise.
9833 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9834 (SHM_STAT_ANY): Likewise.
9835 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9836 (SHM_STAT_ANY): Likewise.
9837 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9838 (SHM_STAT_ANY): Likewise.
9839 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9840 (SHM_STAT_ANY): Likewise.
9841 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9842 (SHM_STAT_ANY): Likewise.
9843 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9844 (SHM_STAT_ANY): Likewise.
9845
9846 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9847 (SEM_STAT_ANY): New macro.
9848 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9849 (SEM_STAT_ANY): Likewise.
9850 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9851 (SEM_STAT_ANY): Likewise.
9852 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9853 (SEM_STAT_ANY): Likewise.
9854 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9855 (SEM_STAT_ANY): Likewise.
9856 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9857 (SEM_STAT_ANY): Likewise.
9858 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9859 (SEM_STAT_ANY): Likewise.
9860 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9861 (SEM_STAT_ANY): Likewise.
9862 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9863 (SEM_STAT_ANY): Likewise.
9864 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9865 (SEM_STAT_ANY): Likewise.
9866
9867 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9868 (MSG_STAT_ANY): New macro.
9869 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9870 (MSG_STAT_ANY): Likewise.
9871 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9872 (MSG_STAT_ANY): Likewise.
9873 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9874 (MSG_STAT_ANY): Likewise.
9875 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9876 (MSG_STAT_ANY): Likewise.
9877 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9878 (MSG_STAT_ANY): Likewise.
9879 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9880 (MSG_STAT_ANY): Likewise.
9881 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9882 (MSG_STAT_ANY): Likewise.
9883 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
9884 (MSG_STAT_ANY): Likewise.
9885 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
9886 (MSG_STAT_ANY): Likewise.
9887
9888 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9889 (MAP_TYPE): Change value to 0x2b.
9890
9891 2018-06-18 Florian Weimer <fweimer@redhat.com>
9892
9893 [BZ #15722]
9894 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
9895 socket with SOCK_CLOEXEC.
9896
9897 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9898
9899 [BZ #23303]
9900 * sysdeps/powerpc/powerpc64/le/Makefile
9901 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
9902 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
9903 (gnulib-tests): Also add $(f128-loader-link) for
9904 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
9905
9906 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
9907
9908 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
9909 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
9910 of sendfile.
9911 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
9912 (sendfile64): New strong alias.
9913 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
9914 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
9915 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
9916 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
9917 attribute.
9918 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
9919 ___pthread_get_cleanup_stack.
9920 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
9921 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
9922 * mach/shortcut.awk: Make syscall stubs include
9923 <mach-shortcuts-hidden.h> and add hidden definition.
9924 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
9925 (__mach_msg): Add hidden prototype.
9926 * mach/msg.c: Include <mach.h>.
9927 (__mach_msg): Add hidden definition.
9928 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
9929 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
9930 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
9931 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
9932 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
9933 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
9934 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
9935 prototype and definition.
9936 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
9937 hidden target for _hurd_self_sigstate.
9938
9939 2018-06-15 Joseph Myers <joseph@codesourcery.com>
9940
9941 [BZ #23007]
9942 * stdlib/tst-strtod-nan-sign-main.c: New file.
9943 * stdlib/tst-strtod-nan-sign.c: Likewise.
9944 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
9945 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
9946 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
9947 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
9948 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
9949
9950 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
9951
9952 [BZ #23007]
9953 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
9954 appropriate sign.
9955
9956 2018-06-14 Florian Weimer <fweimer@redhat.com>
9957
9958 [BZ #23290]
9959 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
9960 that the result stays within the ISO-8859-1 range.
9961 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
9962 characters are defined in IBM273.
9963
9964 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9965
9966 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
9967 __mach_task_self): Remove attribute_hidden.
9968
9969 2018-06-14 Joseph Myers <joseph@codesourcery.com>
9970
9971 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
9972 ignore -Wrestrict for one test.
9973
9974 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
9975 Szabolcs Nagy <szabolcs.nagy@arm.com>
9976
9977 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
9978
9979 2018-06-14 Florian Weimer <fweimer@redhat.com>
9980
9981 * scripts/update-abilist.sh: Accept empty list of files to patch.
9982
9983 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
9984
9985 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
9986 test-xfail-check-abi-libmachuser): Add.
9987 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
9988 __libc_read and __libc_write to __read and __write.
9989 * sysdeps/hurd/include/hurd/port.h: New file.
9990 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
9991 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
9992 __thread_switch, __evc_wait): Move declarations to...
9993 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
9994 attribute_hidden.
9995 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
9996 use PLT to call _hurd_self_sigstate.
9997
9998 2018-06-13 Joseph Myers <joseph@codesourcery.com>
9999
10000 [BZ #23279]
10001 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10002 MAX_EXP as overflowing.
10003 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10004 overflow flag.
10005 (round_str): Output also whether result overflows in each rounding
10006 mode.
10007 * stdlib/tst-strtod-round-data: Add more tests.
10008 * stdlib/tst-strtod-round-data.h: Regenerated.
10009 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10010 (TEST): Handle extra arguments for overflow flags.
10011 (struct test_overflow): New type.
10012 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10013 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10014 (test_in_one_mode): Take argument with overflow information.
10015 (do_test): Update calls to test_in_one_mode.
10016
10017 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10018
10019 * elf/dl-load (_dl_dst_substitute): Correct comment.
10020 (_dl_dst_count): Likewise.
10021
10022 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10023 lll_futex_timed_wait.
10024
10025 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10026
10027 [BZ #23277]
10028 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10029 attribute.
10030 * math/test-nan-const.c: New file.
10031 * math/Makefile (tests): Add test-nan-const.
10032 (CFLAGS-test-nan-const.c): New variable.
10033
10034 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10035
10036 * benchtests/scripts/compare_strings.py (process_results): Add
10037 funcs argument. Compare only functions which are selected.
10038 (main): Check if base function is among selected functions.
10039 Pass selected functions to process_results.
10040 (__main__): Add -f/--functions argument.
10041
10042 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10043 Hongbo Zhang <hongbo.zhang@linaro.org>
10044
10045 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10046 __memcpy_falkor for phecda core.
10047 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10048 __memmove_falkor for phecda core.
10049 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10050 __memset_falkor for phecda core.
10051 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10052 for phecda core.
10053 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10054 macro to identify phecda core.
10055
10056 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10057 Andreas Schwab <schwab@suse.de>
10058 Dmitry V. Levin <ldv@altlinux.org>
10059 Florian Weimer <fweimer@redhat.com>
10060
10061 [BZ #23102]
10062 [BZ #21942]
10063 [BZ #18018]
10064 [BZ #23259]
10065 CVE-2011-0536
10066 * elf/dl-dst.h: Remove DL_DST_COUNT.
10067 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10068 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10069 (is_dst): Comment. Support ELF gABI.
10070 (_dl_dst_count): Comment. Simplify and count DSTs.
10071 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10072 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10073 locals.
10074
10075 2018-06-12 Zack Weinberg <zackw@panix.com>
10076
10077 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10078 * sysdeps/unix/sysv/linux/dl-sysdep.c
10079 Include not-cancel.h. Use __close_nocancel instead of __close,
10080 __open64_nocancel instead of __open, __read_nocancel instead of
10081 __libc_read, and __write_nocancel instead of __libc_write.
10082
10083 * csu/check_fds.c (check_one_fd)
10084 * sysdeps/posix/fdopendir.c (__fdopendir)
10085 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10086 instead of __fcntl and/or __libc_fcntl.
10087
10088 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10089 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10090 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10091 Use __open64_nocancel instead of __open_nocancel.
10092
10093 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10094 hidden_proto declarations to the end and issue them if either
10095 IS_IN(libc) or IS_IN(rtld).
10096 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10097 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10098 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10099 read_nocancel, waitpid_nocancel, write_nocancel.
10100
10101 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10102 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10103 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10104
10105 * nptl/pt-fcntl.c: New file.
10106 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10107 (libpthread-routines): Add pt-fcntl.
10108 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10109 (__libc_fcntl): Remove attribute_hidden.
10110 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10111 __fcntl_nocancel_adjusted, not fcntl_common.
10112 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10113 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10114 to fcntl_nocancel.c.
10115 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10117 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10118 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10119
10120 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10121 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10122 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10123 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10124 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10125 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10126 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10127 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10128 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10129 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10130 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10131 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10132 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10133 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10134 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10135 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10136 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10137 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10138 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10139 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10140
10141 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10142 libpthread-routines.
10143 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10144 defines nothing.
10145
10146 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10147 __libc_read, and __write instead of __libc_write. Define
10148 __open64 in addition to __open.
10149
10150 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10151
10152 [BZ #23250]
10153 [BZ #10686]
10154 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10155 to _private_tm[3] and add __glibc_reserved2.
10156 Add _Static_assert of offset of __private_ss == 0x30.
10157 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10158 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10159
10160 2018-06-12 Florian Weimer <fweimer@redhat.com>
10161
10162 x86: Make strncmp usable from rtld.
10163 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10164 __strncmp_ia32 if in libc (and not in rtld).
10165 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10166 strncmp if not in libc (and not to __strncmp_sse2).
10167
10168 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10169
10170 [BZ #23140]
10171 * localedata/locales/gd_GB (mon): Rename to...
10172 (alt_mon): This.
10173 (mon): Import from CLDR (genitive case).
10174 * localedata/locales/hsb_DE (mon): Rename to...
10175 (alt_mon): This.
10176 (mon): Import from CLDR (genitive case).
10177 * localedata/locales/wa_BE (mon): Rename to...
10178 (alt_mon): This.
10179 (mon): Add, fill with the proper genitive forms, but CLDR data
10180 is incomplete; completed according to the comments in this file.
10181 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10182
10183 * localedata/locales/wa_BE (country_name): Reword
10184 "Beljike" -> "Beldjike".
10185
10186 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10187
10188 [BZ #23272]
10189 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10190 cases of non-finite arguments.
10191 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10192
10193 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10194
10195 [BZ #23174]
10196 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10197
10198 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10199
10200 [BZ #23264]
10201 * include/unistd.h (__execvpex): New prototype.
10202 * posix/Makefile (tests): Add tst-spawn4.
10203 (tests-internal): Add tst-spawn4-compat.
10204 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10205 * posix/tst-spawn4-compat.c: New file.
10206 * posix/tst-spawn4.c: Likewise.
10207 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10208 binaries as shell scripts.
10209 * sysdeps/posix/spawni.c (__spawni): Likewise.
10210
10211 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10212
10213 [BZ #23145]
10214 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10215 ($(all-built-dso:=.dynsym): New target.
10216 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10217 ($(objpfx)check-initfini.out): New target.
10218 (generated): Add check-initfini.out.
10219 * scripts/check-initfini.awk: New file.
10220 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10221 (_fini): Likewise.
10222 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10223 (_fini): Likewise.
10224 * sysdeps/arm/crti.S (_init): Mark as hidden.
10225 (_fini): Likewise.
10226 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10227 (_fini): Likewise.
10228 * sysdeps/i386/crti.S (_init): Mark as hidden.
10229 (_fini): Likewise.
10230 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10231 (_fini): Likewise.
10232 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10233 (_fini): Likewise.
10234 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10235 (_fini): Likewise.
10236 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10237 (_fini): Likewise.
10238 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10239 (_fini): Likewise.
10240 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10241 (_fini): Likewise.
10242 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10243 (_fini): Likewise.
10244 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10245 (_fini): Likewise.
10246 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10247 (_fini): Likewise.
10248 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10249 (_fini): Likewise.
10250 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10251 (_fini): Likewise.
10252 * sysdeps/sh/crti.S (_init): Mark as hidden.
10253 (_fini): Likewise.
10254 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10255 (_fini): Likewise.
10256 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10257 (_fini): Likewise.
10258
10259 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10260
10261 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10262 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10263 and TF redirection to KFtype and KF only when the default
10264 long double type is not the IEEE 128-bit floating point type.
10265
10266 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10267
10268 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10269 macro.
10270 (HWCAP_USCAT): Likewise.
10271 (HWCAP_ILRCPC): Likewise.
10272 (HWCAP_FLAGM): Likewise.
10273 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10274 Increase to 28.
10275 (_dl_aarch64_cap_flags): Add new flag names.
10276
10277 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10278 (MAP_FIXED_NOREPLACE): New macro.
10279 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10280 (MAP_FIXED_NOREPLACE): Likewise.
10281 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10282 (MAP_FIXED_NOREPLACE): Likewise.
10283 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10284 (MAP_FIXED_NOREPLACE): Likewise.
10285 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10286 (MAP_FIXED_NOREPLACE): Likewise.
10287 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10288 (MAP_FIXED_NOREPLACE): Likewise.
10289 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10290 (MAP_FIXED_NOREPLACE): Likewise.
10291 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10292 (MAP_FIXED_NOREPLACE): Likewise.
10293 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10294 (MAP_FIXED_NOREPLACE): Likewise.
10295 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10296 (MAP_FIXED_NOREPLACE): Likewise.
10297 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10298 (MAP_FIXED_NOREPLACE): Likewise.
10299 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10300 (MAP_FIXED_NOREPLACE): Likewise.
10301 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10302 (MAP_FIXED_NOREPLACE): Likewise.
10303 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10304 (MAP_FIXED_NOREPLACE): Likewise.
10305 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10306 (MAP_FIXED_NOREPLACE): Likewise.
10307
10308 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10309 version to 4.17.
10310
10311 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10312
10313 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10314 version to 4.17
10315
10316 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10317
10318 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10319 int.
10320 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10321
10322 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10323
10324 * benchtests/scripts/compare_string.py: (process_results) Catch
10325 exception in non-existent base_func and catch exception in
10326 non-existent attribute.
10327 (parse_file) Catch exception if input file does not exist.
10328
10329 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10330
10331 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10332 options to avoid diff calculation and omit header, respectively.
10333 (main): process --no-diff and --no-header
10334
10335 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10336 H.J. Lu <hongjiu.lu@intel.com>
10337
10338 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10339 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10340 wcsncmp-sse2.
10341 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10342 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10343 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10344 and __wcsncmp_sse2.
10345 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10346 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10347 AVX unaligned load is fast and vzeroupper is preferred.
10348 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10349 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10350 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10351 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10352 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10353 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10354 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10355 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10356 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10357 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10358 is undefined.
10359
10360 2018-06-01 Florian Weimer <fweimer@redhat.com>
10361
10362 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10363 configuring with --disable-multi-arch, building with
10364 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10365 Haswell-era CPU.
10366
10367 2018-06-01 Florian Weimer <fweimer@redhat.com>
10368
10369 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10370 results from building with “-march=x86-64 -mtune=generic
10371 -mfpmath=sse” and running on a Haswell-era CPU.
10372
10373 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10374
10375 [BZ #18473]
10376 * soft-fp/sqrttf2.c: Remove file.
10377 * soft-fp/sqrtdf2.c: Move to ....
10378 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10379 <shlib-compat.h>.
10380 (__sqrtdf2): Make conditional on
10381 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10382 symbol.
10383 * soft-fp/sqrtsf2.c: Move to ....
10384 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10385 <shlib-compat.h>.
10386 (__sqrtsf2): Make conditional on
10387 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10388 symbol.
10389 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10390 (gcc-double-routines): Remove sqrtdf2.
10391 (gcc-quad-routines): Remove sqrttf2.
10392 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10393 Do not filter out sqrtsf2 and sqrtdf2.
10394 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10395 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10396
10397 2018-06-01 Florian Weimer <fweimer@redhat.com>
10398
10399 * sysdeps/generic/libcidn.abilist: Remove file.
10400
10401 2018-06-01 Florian Weimer <fweimer@redhat.com>
10402
10403 [BZ #23236]
10404 * libio/strfile.h (struct _IO_str_fields): Rename members to
10405 discourage their use and add comment.
10406 (_IO_STR_DYNAMIC): Remove unused macro.
10407 * libio/strops.c (_IO_str_init_static_internal): Do not use
10408 callback pointers. Call malloc and free.
10409 (_IO_str_overflow): Do not use callback pointers. Call malloc
10410 and free.
10411 (enlarge_userbuf): Likewise.
10412 (_IO_str_finish): Call free.
10413 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10414 _allocate_buffer_unused.
10415 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10416 and free.
10417 (enlarge_userbuf): Likewise.
10418 (_IO_wstr_finish): Call free.
10419 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10420 _allocate_buffer_unused, _free_buffer_unused.
10421 * libio/memstream.c (__open_memstream): Likewise.
10422 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10423 * libio/wmemstream.c (open_wmemstream): Likewise.
10424
10425 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10426
10427 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10428 AMD Ryzen 7 1800X.
10429
10430 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10431
10432 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10433 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10434 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10435 New file.
10436 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10437 Likewise.
10438 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10439
10440 2018-05-29 Florian Weimer <fweimer@redhat.com>
10441
10442 * support/Makefile (libsupport-routines): Add
10443 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10444 xpthread_barrierattr_setpshared.
10445 * support/xpthread_barrierattr_destroy.c: New file.
10446 * support/xpthread_barrierattr_init.c: Likewise.
10447 * support/xpthread_barrierattr_setpshared.c: Likewise.
10448
10449 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10450
10451 [BZ #23206]
10452 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10453 _r_debug and update DT_DEBUG for debugger.
10454
10455 2018-05-29 Florian Weimer <fweimer@redhat.com>
10456
10457 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10458 (tst-strtod5i.out): Likewise.
10459
10460 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10461
10462 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10463 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10464 (sparc64-quad-routines): New variable. Moved from ....
10465 [$(subdir) = soft-fp] (sysdep_routines): Add
10466 $(sparc64-quad-routines). Moved from ....
10467 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10468 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10469 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10470 moved from ....
10471 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10472 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10473 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10474 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10475 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10476 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10477 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10478 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10479 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10480 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10481 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10482 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10483 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10484 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10485 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10486 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10487 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10488 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10489 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10490 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10491 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10492 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10493 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10494 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10495 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10496 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10497 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10498 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10499 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10500 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10501 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10502 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10503 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10504 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10505 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10506 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10507 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10508 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10509 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10510 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10511 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10512 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10513 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10514 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10515 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10516 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10517 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10518 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10519 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10520 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10521 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10522 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10523 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10524 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10525 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10526 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10527 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10528 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10529
10530 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10531 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10532 (sparc32-quad-routines): New variable. Moved from ....
10533 [$(subdir) = soft-fp] (sysdep_routines): Add
10534 $(sparc32-quad-routines). Moved from ....
10535 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10536 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10537 moved from ....
10538 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10539 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10540 * sysdeps/sparc/sparc32/q_add.c: ... here.
10541 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10542 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10543 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10544 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10545 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10546 * sysdeps/sparc/sparc32/q_div.c: ... here.
10547 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10548 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10549 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10550 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10551 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10552 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10553 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10554 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10555 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10556 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10557 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10558 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10559 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10560 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10561 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10562 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10563 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10564 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10565 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10566 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10567 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10568 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10569 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10570 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10571 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10572 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10573 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10574 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10575 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10576 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10577 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10578 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10579 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10580 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10581 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10582 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10583 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10584 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10585 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10586 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10587 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10588 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10589 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10590 * sysdeps/sparc/sparc32/q_util.c: ... here.
10591 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10592 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10593 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10594 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10595
10596 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10597 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10598
10599 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10600 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10601 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10602 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10603
10604 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10605
10606 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10607 powerpc/soft-fp.
10608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10609 Likewise.
10610 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10611 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10612
10613 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10614
10615 [BZ #23171]
10616 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10617 double version.
10618
10619 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10620
10621 * sysdeps/sh/Implies: Remove sh/soft-fp.
10622 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10623 * sysdeps/sh/sfp-machine.h: ... here.
10624
10625 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10626
10627 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10628 (__mempcpy_erms): Skip zero length.
10629 (__memmove_erms): Likewise.
10630 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10631 (__memset_erms): Likewise.
10632
10633 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10634
10635 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10636 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10637 Add functions moved from ....
10638 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10639 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10640 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10641 from ....
10642 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10643 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10644 * sysdeps/alpha/e_sqrtl.c: ... here.
10645 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10646 * sysdeps/alpha/local-soft-fp.h: ... here.
10647 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10648 * sysdeps/alpha/ots_add.c: ... here.
10649 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10650 * sysdeps/alpha/ots_cmp.c: ... here.
10651 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10652 * sysdeps/alpha/ots_cmpe.c: ... here.
10653 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10654 * sysdeps/alpha/ots_cvtqux.c: ... here.
10655 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10656 * sysdeps/alpha/ots_cvtqx.c: ... here.
10657 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10658 * sysdeps/alpha/ots_cvttx.c: ... here.
10659 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10660 * sysdeps/alpha/ots_cvtxq.c: ... here.
10661 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10662 * sysdeps/alpha/ots_cvtxt.c: ... here.
10663 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10664 * sysdeps/alpha/ots_div.c: ... here.
10665 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10666 * sysdeps/alpha/ots_mul.c: ... here.
10667 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10668 * sysdeps/alpha/ots_nintxq.c: ... here.
10669 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10670 * sysdeps/alpha/ots_sub.c: ... here.
10671 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10672 * sysdeps/alpha/sfp-machine.h: ... here.
10673
10674 2018-05-23 Florian Weimer <fweimer@redhat.com>
10675
10676 [BZ #19728]
10677 [BZ #19729]
10678 [BZ #22247]
10679 CVE-2016-6261
10680 CVE-2016-6263
10681 CVE-2017-14062
10682 Switch to extern IDNA implementation (libidn2).
10683 * libidn: Remove subdirectory.
10684 * LICENSES: Do not mention licensing conditions for the removed
10685 libidn code.
10686 * config.h.in (HAVE_LIBIDN): Remove.
10687 * include/dlfcn.h (__libc_dlopen): Update comment.
10688 * include/idna.h: Remove file.
10689 * inet/Makefile (routines): Add idna.
10690 (tests-static, tests-internal): Add tst-idna_name_classify.
10691 (LOCALES): Generate locales for tests.
10692 (tst-idna_name_classify.out): Depend on generated locales.
10693 * inet/idna_name_classify.c: New file.
10694 * inet/tst-idna_name_classify.c: Likewise.
10695 * inet/net-internal.h (__idna_to_dns_encoding)
10696 (__idna_from_dns_encoding): Declare.
10697 * inet/net-internal.h (enum idna_name_classification): Define.
10698 (__idna_name_classify): Declare.
10699 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10700 __idna_from_dns_encoding.
10701 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10702 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10703 name as a fallback in case of encoding errors.
10704 (getnameinfo): Use DEPRECATED_NI_IDN.
10705 * inet/idna.c: New file.
10706 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10707 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10708 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10709 (modules-names): Add tst-no-libidn2.
10710 (extra-test-objs): Add tst-no-libidn2.os.
10711 (LDFLAGS-tst-no-libidn2.so): Set soname.
10712 (LOCALES): Set, and generate locales.
10713 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10714 (tst-resolv-ai_idn-latin1): Likewise.
10715 (tst-resolv-ai_idn-nolibidn2): Likewise.
10716 (tst-resolv-ai_idn.out): Depend on locales.
10717 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10718 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10719 tst-no-libidn2.so.
10720 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10721 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10722 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10723 * resolv/tst-resolv-ai_idn.c: New file.
10724 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10725 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10726 * resolv/tst-no-libidn2.c: Likewise.
10727 * support/support_format_addrinfo.c (format_ai_flags): Do not
10728 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10729 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10730 (gaih_inet): Call __idna_to_dns_encoding and
10731 __idna_from_dns_encoding, and use the original (punycode) name if
10732 __idna_from_dns_encoding fails due to an encoding error.
10733 (getaddrinfo): Use DEPRECATED_AI_IDN.
10734 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10735 * sysdeps/unix/inet/configure: Remove file.
10736 * sysdeps/unix/inet/configure.ac: Likewise.
10737
10738 2018-05-23 Florian Weimer <fweimer@redhat.com>
10739
10740 Implement allocate_once.
10741 * include/allocate_once.h: New file.
10742 * misc/allocate_once.c: Likewise.
10743 * misc/tst-allocate_once.c: Likewise.
10744 * misc/Makefile (routines): Add allocate_once.
10745 (tests-internal): Add tst-allocate_once.
10746 (generated): Add tst-allocate_once.mtrace,
10747 tst-allocate_once-mem.out.
10748 (tests-special): Add tst-allocate_once-mem.out.
10749 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10750 (tst-allocate_once-mem.out): Call mtrace.
10751 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10752
10753 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10754
10755 [BZ #23196]
10756 * string/test-memcpy.c (do_test1): New function.
10757 (test_main): Call it.
10758
10759 2018-05-23 Andreas Schwab <schwab@suse.de>
10760
10761 [BZ #23196]
10762 CVE-2018-11237
10763 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10764 (L(preloop_large)): Save initial destination pointer in %r11 and
10765 use it instead of %rax after the loop.
10766 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10767
10768 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10769
10770 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10771 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10772 -I../soft-fp. Moved from ....
10773 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10774 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10775 * sysdeps/aarch64/e_sqrtl.c: ... here.
10776 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10777 * sysdeps/aarch64/sfp-machine.h: ... here.
10778
10779 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10780 -Wmaybe-uninitialized around access to fq[0].
10781 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10782 Likewise.
10783
10784 [BZ #18471]
10785 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10786 aliases for non-libc case of versioned symbols.
10787 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10788 (llseek): Define as compat symbol if
10789 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10790 with link warning.
10791 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10792 Make into a compat symbol, disabled for minimum symbol version
10793 GLIBC_2.28 and later.
10794 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10795
10796 2018-05-22 Florian Weimer <fweimer@redhat.com>
10797
10798 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10799 not add -mpreferred-stack-boundary=4.
10800 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10801 (stack-align-test-flags): Likewise.
10802 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10803 Likewise.
10804 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10805 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10806 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10807 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10808 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10809 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10810 (CFLAGS-tst-align2.c): Likewise.
10811
10812 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10813
10814 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10815 (index_arch_Prefer_FSRM): Likewise.
10816 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10817 Also check Prefer_FSRM.
10818 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10819 Also return OPTIMIZE (erms) for Prefer_FSRM.
10820
10821 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10822
10823 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10824 (index_cpu_FSRM): Likewise.
10825 (reg_FSRM): Likewise.
10826
10827 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10828
10829 * math/gen-tgmath-tests.py: Import sys.
10830 (Tests.__init__): Initialize macros_seen.
10831 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10832 if requested to do so for this macro.
10833 (Tests.add_all_tests): Take argument for macro for which to
10834 generate tests.
10835 (Tests.check_macro_list): New function.
10836 (main): Handle check-list argument and argument specifying macro
10837 for which to generate tests.
10838 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10839 [PYTHON] (tgmath3-macro-tests): Likewise.
10840 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10841 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10842 not test-tgmath3.c.
10843 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10844 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10845 to CFLAGS.
10846 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10847 [PYTHON] ($(foreach
10848 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10849 rule.
10850 [PYTHON] (tests-special): Add
10851 $(objpfx)test-tgmath3-macro-list.out.
10852 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10853
10854 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10855 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10856 later.
10857
10858 [BZ #22639]
10859 * time/tzset.c (SECSPERDAY): Cast to time_t.
10860 * time/tst-y2039.c: New file.
10861 * time/Makefile (tests): Add tst-y2039.
10862
10863 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10864
10865 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10866 (PREFETCH_ONE_SET): Remove duplicate line.
10867
10868 2018-05-17 Florian Weimer <fweimer@redhat.com>
10869
10870 * sysdeps/generic/math-type-macros-double.h: Include
10871 <math-nan-payload-double.h> after <libm-alias-double.h>.
10872 * sysdeps/generic/math-type-macros-float.h: Include
10873 <math-nan-payload-float.h> after <libm-alias-float.h>.
10874 * sysdeps/generic/math-type-macros-float128.h: Include
10875 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10876 * sysdeps/generic/math-type-macros-ldouble.h: Include
10877 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10878
10879 2018-05-17 Andreas Schwab <schwab@suse.de>
10880
10881 * resolv/res_send.c (__res_context_send): Don't set errno when
10882 returing error after malloc failure.
10883
10884 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
10885
10886 * nptl/allocatestack.c (allocate_stack): Remove the
10887 !__ASSUME_PRIVATE_FUTEX paths.
10888 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
10889 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
10890 Likewise.
10891 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
10892 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10893 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10894 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10895 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
10896 !__ASSUME_PRIVATE_FUTEX path.
10897 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
10898 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
10899 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10900 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
10901 !__ASSUME_PRIVATE_FUTEX macros.
10902 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
10903 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
10904 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10905 * sysdeps/unix/sysv/linux/kernel-features.h
10906 (__ASSUME_PRIVATE_FUTEX): Removed.
10907
10908 2018-05-17 Joseph Myers <joseph@codesourcery.com>
10909
10910 * math/Makefile (libm-narrow-fns): Add div.
10911 (libm-test-funcs-narrow): Likewise.
10912 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
10913 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
10914 * math/gen-auto-libm-tests.c (test_functions): Add div.
10915 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
10916 (NARROW_DIV_ROUND_TO_ODD): Likewise.
10917 (NARROW_DIV_TRIVIAL): Likewise.
10918 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
10919 macro.
10920 (__ddivl): Likewise.
10921 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
10922 ddiv.
10923 (CFLAGS-nldbl-ddiv.c): New variable.
10924 (CFLAGS-nldbl-fdiv.c): Likewise.
10925 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10926 __nldbl_ddivl.
10927 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
10928 prototype.
10929 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
10930 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
10931 * math/auto-libm-test-in: Add tests of div.
10932 * math/auto-libm-test-out-narrow-div: New generated file.
10933 * math/libm-test-narrow-div.inc: New file.
10934 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
10935 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
10936 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
10937 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
10938 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
10939 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
10940 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
10941 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
10942 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
10943 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
10944 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
10945 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
10946 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
10947 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
10948 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
10949 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
10950 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
10951 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
10952 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10953 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
10954 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10955 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10956 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10957 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10958 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10959 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10960 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10961 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10962 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10963 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10964 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10965 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10966 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
10967 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
10968 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
10969 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
10970 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
10971 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10972 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10973 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10974 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10975 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10976 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10977 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10978
10979 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10980
10981 [BZ #23178]
10982 * nscd/nscd-client.h (sendfileall): Remove prototype.
10983 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
10984 (handle_request): Use writeall instead of sendfileall.
10985 * nscd/aicache.c (addhstaiX): Likewise.
10986 * nscd/grpcache.c (cache_addgr): Likewise.
10987 * nscd/hstcache.c (cache_addhst): Likewise.
10988 * nscd/initgrcache.c (addinitgroupsX): Likewise.
10989 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
10990 * nscd/pwdcache.c (cache_addpw): Likewise.
10991 * nscd/servicescache.c (cache_addserv): Likewise.
10992 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
10993 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
10994 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
10995 Remove define.
10996
10997 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
10998
10999 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11000 Include <string/strncat.c>.
11001 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11002 alias.
11003 (__GI___strncat): New hidden alias.
11004
11005 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11006
11007 * sysdeps/mips/mips32/libm-test-ulps: Update.
11008 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11009
11010 2018-05-16 Florian Weimer <fweimer@redhat.com>
11011
11012 * support/Makefile (libsupport-routines): Add support_quote_blob,
11013 support_test_compare_blob.
11014 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11015 * support/check.h (TEST_COMPARE_BLOB): Define.
11016 (support_test_compare_blob): Declare.
11017 * support/support.h (support_quote_blob): Declare.
11018 * support/support_quote_blob.c: New file.
11019 * support/support_test_compare_blob.c: Likewise.
11020 * support/tst-support_quote_blob.c: Likewise.
11021 * support/tst-test_compare_blob.c: Likewise.
11022
11023 2018-05-16 Florian Weimer <fweimer@redhat.com>
11024
11025 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11026 of <strtod_nan_double.h>.
11027 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11028 instead of SET_MANTISSA.
11029 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11030 of include <strtod_nan_float.h>.
11031 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11032 instead of <strtod_nan_ldouble.h>.
11033 * stdlib/strtod_nan_double.h: Move to ...
11034 * sysdeps/generic/math-nan-payload-double.h: ... here.
11035 (FLOAT): Remove definition.
11036 (SET_MANTISSA): Rename to ...
11037 (SET_NAN_PAYLOAD): ... this.
11038 * stdlib/strtod_nan_float.h: Move to ...
11039 * sysdeps/generic/math-nan-payload-float.h: ... here.
11040 (FLOAT): Remove definition.
11041 (SET_MANTISSA): Rename to ...
11042 (SET_NAN_PAYLOAD): ... this.
11043 * sysdeps/generic/math-type-macros-double.h: Include
11044 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11045 instead of <math-svid-compat.h>.
11046 * sysdeps/generic/math-type-macros-float.h: Include
11047 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11048 instead of <math-svid-compat.h>.
11049 * sysdeps/generic/math-type-macros-float128.h: Include
11050 <math-nan-payload-float128.h>.
11051 * sysdeps/generic/math-type-macros-ldouble.h: Include
11052 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11053 instead of <math-svid-compat.h>.
11054 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11055 check for definition.
11056 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11057 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11058 Include <ieee754_float128.h>.
11059 (FLOAT): Remove definition.
11060 (SET_MANTISSA): Rename to ...
11061 (SET_NAN_PAYLOAD): ... this.
11062 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11063 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11064 Do not include <float128_private.h>.
11065 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11066 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11067 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11068 (FLOAT): Remove definition.
11069 (SET_MANTISSA): Rename to ...
11070 (SET_NAN_PAYLOAD): ... this.
11071 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11072 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11073 (FLOAT): Remove definition.
11074 (SET_MANTISSA): Rename to ...
11075 (SET_NAN_PAYLOAD): ... this.
11076 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11077 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11078 (FLOAT): Remove definition.
11079 (SET_MANTISSA): Rename to ...
11080 (SET_NAN_PAYLOAD): ... this.
11081 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11082 of "../stdlib/strtod_nan_double.h".
11083 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11084 of "../stdlib/strtod_nan_float.h".
11085 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11086 instead of "../stdlib/strtod_nan_ldouble.h".
11087 * manual/arith.texi (Parsing of Floats): Adjust comment.
11088
11089 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11090
11091 * math/Makefile (libm-narrow-fns): Add mul.
11092 (libm-test-funcs-narrow): Likewise.
11093 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11094 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11095 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11096 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11097 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11098 (NARROW_MUL_TRIVIAL): Likewise.
11099 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11100 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11101 macro.
11102 (__dmull): Likewise.
11103 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11104 dmul.
11105 (CFLAGS-nldbl-dmul.c): New variable.
11106 (CFLAGS-nldbl-fmul.c): Likewise.
11107 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11108 __nldbl_dmull.
11109 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11110 prototype.
11111 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11112 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11113 * math/auto-libm-test-in: Add tests of mul.
11114 * math/auto-libm-test-out-narrow-mul: New generated file.
11115 * math/libm-test-narrow-mul.inc: New file.
11116 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11117 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11118 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11119 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11120 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11121 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11122 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11123 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11124 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11125 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11126 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11127 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11128 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11129 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11130 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11131 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11132 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11133 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11134 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11135 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11136 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11137 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11138 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11139 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11140 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11141 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11142 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11143 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11144 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11145 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11146 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11147 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11149 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11152 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11153 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11154 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11155 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11156 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11157 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11158 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11159 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11160
11161 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11162
11163 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11164 with *%eax in call.
11165
11166 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11167
11168 * sysdeps/i386/ldsodefs.h: Removed.
11169 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11170 * sysdeps/x86/ldsodefs.h: This.
11171 (La_i86_regs): New.
11172 (La_i86_retval): Likewise.
11173 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11174 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11175
11176 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11177
11178 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11179 unnecessary testl.
11180
11181 2018-05-13 Alan Modra <amodra@gmail.com>
11182
11183 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11184 R_PARISC_TLS_DTPOFF32 reloc addend.
11185
11186 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11187
11188 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11189 * math/math.h: Restrict the prototype definition for the functions
11190 issignaling(_Float128) and iszero(_Float128); and template
11191 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11192 __HAVE_FLOAT128_UNLIKE_LDBL.
11193 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11194 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11195 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11196 __f128() constants; define the type _Float128 as long double;
11197 and reuse long double in __CFLOAT128.
11198
11199 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11200
11201 * sysdeps/generic/math_private.h: Do not include
11202 <math-barriers.h>.
11203 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11204 <math_private.h>.
11205 * math/fromfp.h: Include <math-barriers.h>.
11206 * math/math-narrow.h: Likewise.
11207 * math/s_nextafter.c: Likewise.
11208 * math/s_nexttowardf.c: Likewise.
11209 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11210 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11211 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11212 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11213 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11214 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11215 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11216 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11217 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11218 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11219 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11220 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11221 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11222 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11223 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11224 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11225 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11226 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11227 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11228 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11229 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11230 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11231 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11232 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11233 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11234 * sysdeps/ieee754/k_standardl.c: Likewise.
11235 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11236 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11237 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11238 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11239 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11240 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11241 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11242 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11243 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11244 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11245 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11246 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11247 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11248 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11249 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11250 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11251 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11252 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11253 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11254 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11255 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11256 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11257
11258 2018-05-11 Florian Weimer <fweimer@redhat.com>
11259
11260 Use 64-bit epoch values in the time zone file parser.
11261 * include/time.h (internal_time_t): Define.
11262 (__tzfile_compute): Use it.
11263 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11264 member.
11265 (transitions): Switch to internal_time_t.
11266 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11267 types.
11268 (__tzfile_compute): Use internal_time_t for timer argument. Check
11269 for truncation before calling __offtime.
11270
11271 2018-05-11 Florian Weimer <fweimer@redhat.com>
11272
11273 [BZ #23166]
11274 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11275 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11276 Likewise.
11277 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11278 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11279 export without --enable-obsolete-rpc.
11280 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11281 symbol. This should not have been exported, ever.
11282
11283 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11284
11285 [BZ #23152]
11286 * localedata/locales/gd_GB (abmon): Fix typo in May:
11287 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11288
11289 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11290
11291 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11292 Use multiple registers to copy data in loop tail.
11293
11294 * sysdeps/aarch64/multiarch/memmove_falkor.S
11295 (__memmove_falkor): Use multiple registers to move data in
11296 loop tail.
11297
11298 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11299
11300 * math/math-underflow.h: New file.
11301 * sysdeps/generic/math_private.h: Do not include <float.h>.
11302 (fabs_tg): Remove macro. Moved to math-underflow.h.
11303 (min_of_type_f): Likewise.
11304 (min_of_type_): Likewise.
11305 (min_of_type_l): Likewise.
11306 (min_of_type_f128): Likewise.
11307 (min_of_type): Likewise.
11308 (math_check_force_underflow): Likewise.
11309 (math_check_force_underflow_nonneg): Likewise.
11310 (math_check_force_underflow_complex): Likewise.
11311 * math/e_exp2_template.c: Include <math-underflow.h>.
11312 * math/k_casinh_template.c: Likewise.
11313 * math/s_catan_template.c: Likewise.
11314 * math/s_catanh_template.c: Likewise.
11315 * math/s_ccosh_template.c: Likewise.
11316 * math/s_cexp_template.c: Likewise.
11317 * math/s_clog10_template.c: Likewise.
11318 * math/s_clog_template.c: Likewise.
11319 * math/s_csin_template.c: Likewise.
11320 * math/s_csinh_template.c: Likewise.
11321 * math/s_csqrt_template.c: Likewise.
11322 * math/s_ctan_template.c: Likewise.
11323 * math/s_ctanh_template.c: Likewise.
11324 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11325 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11326 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11327 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11328 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11329 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11330 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11331 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11332 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11333 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11334 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11335 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11336 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11337 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11338 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11339 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11340 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11341 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11342 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11343 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11344 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11345 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11346 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11347 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11348 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11349 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11350 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11351 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11352 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11353 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11354 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11355 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11356 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11357 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11358 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11359 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11360 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11361 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11362 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11363 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11364 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11365 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11366 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11367 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11368 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11369 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11370 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11371 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11372 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11373 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11374 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11375 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11376 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11377 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11378 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11379 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11380 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11381 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11382 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11383 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11384 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11385 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11386 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11387 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11388 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11389 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11390 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11391 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11392 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11393 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11394 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11395 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11396 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11397 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11398 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11399 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11400 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11401 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11402 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11403 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11404 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11405 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11406 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11407 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11408
11409 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11410
11411 * sysdeps/generic/math-barriers.h: New file.
11412 * sysdeps/generic/math_private.h [!math_opt_barrier]
11413 (math_opt_barrier): Move to math-barriers.h.
11414 [!math_opt_barrier] (math_force_eval): Likewise.
11415 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11416 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11417 math-barriers.h.
11418 (math_force_eval): Likewise.
11419 * sysdeps/alpha/fpu/math-barriers.h: New file.
11420 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11421 math-barriers.h.
11422 (math_force_eval): Likewise.
11423 * sysdeps/x86/fpu/math-barriers.h: New file.
11424 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11425 math-barriers.h.
11426 (math_force_eval): Likewise.
11427 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11428 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11429 multiple-include guard for rename.
11430 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11431 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11432 math-barriers.h.
11433 (math_force_eval): Likewise.
11434
11435 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11436
11437 [BZ #22786]
11438 CVE-2018-11236
11439 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11440 computation.
11441 * stdlib/Makefile (test-bz22786): New test.
11442 * stdlib/test-bz22786.c: New test.
11443
11444 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11445
11446 * include/math-narrow-eval.h: New file. Contents moved from ....
11447 * sysdeps/generic/math_private.h: ... here.
11448 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11449 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11450 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11451 * stdlib/strtod_l.c: Likewise.
11452 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11453 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11454 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11455 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11456 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11457 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11458 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11459 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11460 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11461 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11462 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11463 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11464 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11465 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11466 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11467 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11468 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11469 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11470 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11471 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11472 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11473 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11474 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11475 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11476 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11477 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11478 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11479 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11480 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11481
11482 2018-05-08 Andreas Schwab <schwab@suse.de>
11483
11484 * sysdeps/nptl/internaltypes.h: Fix comment.
11485
11486 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11487
11488 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11489 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11490 hidden.
11491
11492 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11493
11494 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11495 of I into loop header.
11496 * benchtests/bench-memmove-walk.c
11497 (test_main): Likewise.
11498
11499 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11500
11501 Revert:
11502 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11503 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11504
11505 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11506
11507 [BZ #20419]
11508 * elf/dl-load.c (open_verify): Fix stack overflow.
11509 * elf/Makefile (tst-big-note): New test.
11510 * elf/tst-big-note-lib.S: New.
11511 * elf/tst-big-note.c: New.
11512
11513 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11514
11515 * scripts/abilist.awk: Ignore absolute symbols.
11516 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11517 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11518 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11519 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11520 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11521 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11522 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11523 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11524 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11525 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11526 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11527 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11528 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11529 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11530 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11531 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11532 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11533 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11534 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11535 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11536 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11537 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11538 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11539 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11540 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11541 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11542 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11543 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11544 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11545 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11546 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11547 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11548 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11549 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11550 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11551 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11552 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11553 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11554 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11555 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11556 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11557 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11558 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11559 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11560 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11561 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11562 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11563 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11564 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11565 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11566 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11567 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11568 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11569 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11570 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11571 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11572 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11573 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11574 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11575 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11576 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11577 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11578 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11579 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11580 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11581 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11582 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11583 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11584 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11585 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11586 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11587 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11588 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11589 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11590 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11591 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11592 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11593 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11594 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11595 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11596 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11597 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11598 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11599 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11600 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11601 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11602 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11603 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11604 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11605 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11606 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11607 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11608 Likewise.
11609 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11610 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11611 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11612 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11613 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11614 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11615 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11616 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11617 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11618 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11619 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11620 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11621 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11622 Likewise.
11623 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11624 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11625 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11626 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11627 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11628 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11629 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11630 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11631 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11632 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11633 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11634 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11635 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11636 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11637 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11638 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11639 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11640 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11641 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11642 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11643 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11644 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11647 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11648 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11649 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11650 Likewise.
11651 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11666 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11667 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11669 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11670 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11671 Likewise.
11672 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11680 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11685 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11704 Likewise.
11705 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11710 Likewise.
11711 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11712 Likewise.
11713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11715 Likewise.
11716 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11718 Likewise.
11719 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11720 Likewise.
11721 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11722 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11724 Likewise.
11725 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11726 Likewise.
11727 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11728 Likewise.
11729 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11730 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11733 Likewise.
11734 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11736 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11737 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11738 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11739 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11740 Likewise.
11741 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11742 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11743 Likewise.
11744 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11745 Likewise.
11746 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11747 Likewise.
11748 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11749 Likewise.
11750 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11753 Likewise.
11754 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11755 Likewise.
11756 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11757 Likewise.
11758 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11761 Likewise.
11762 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11767 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11768 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11770 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11771 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11772 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11773 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11775 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11776 Likewise.
11777 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11778 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11779 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11780 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11781 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11782 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11783 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11784 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11785 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11786 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11788 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11789 Likewise.
11790 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11791 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11792 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11793 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11794 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11796 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11798 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11799 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11800 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11801 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11803 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11804 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11805 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11806 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11807 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11808 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11809 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11810 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11811 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11812 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11813 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11814 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11815 Likewise.
11816 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11817 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11818 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11819 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11820 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11821 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11822 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11823 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11824 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11825 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11826 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11827 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11828 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11829 Likewise.
11830 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11831 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11832 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11833 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11834 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11835 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11836 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11837 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11838 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11839 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11840 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11841 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11842 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11843 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11844 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11845 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11846 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11847 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11848 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11849 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11850 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11851 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11852 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11853 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11854 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11855 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11856 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11857 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11858 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11859 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11860 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11861 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11862 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11863 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11864 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11865 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11866 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11867 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11868
11869 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11870
11871 [BZ #23137]
11872 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11873 Use atomic_load_acquire to load __tid.
11874
11875 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11876
11877 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11878 Restore the pointer into %rdx, after syscall and use %rdx,
11879 instead of %rsi, to restore context.
11880
11881 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11882
11883 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
11884 Pop the pointer into %rdx after syscall and use %rdx, instead
11885 of %rsi, to restore context.
11886
11887 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11888
11889 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
11890 handlers after setjmp.
11891 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
11892 defined.
11893 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
11894 <libc-pointer-arith.h>.
11895 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
11896 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
11897 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
11898 _JUMP_BUF_SIGSET_BITS_PER_WORD.
11899 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
11900 * sysdeps/x86/__longjmp_cancel.S: New file.
11901 * sysdeps/x86/longjmp.c: Likewise.
11902 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
11903
11904 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11905
11906 * NEWS: Add ustat.h deprecation entry.
11907 * bits/ustat.h: Remove file.
11908 * misc/sys/ustat.h: Likewise.
11909 * misc/ustat.h: Likewise.
11910 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
11911 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
11912 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
11913 compatibility mode.
11914 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
11915 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
11916 generic Linux implementation.
11917
11918 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11919
11920 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
11921 * math/w_expl_compat.c: Likewise.
11922 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
11923
11924 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11925
11926 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11927
11928 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11929
11930 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
11931 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
11932 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
11933 Remove.
11934 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
11935 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11936 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11937 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
11938 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
11939 and SYSCALL_LL64.
11940
11941 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11942
11943 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
11944
11945 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
11946 * math/w_asin_template.c: Likewise.
11947 * math/w_atanh_template.c: Likewise.
11948
11949 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11950
11951 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
11952 to powerpc/powerpc64/be for big-endian.
11953 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
11954 little-endian.
11955
11956 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
11957 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
11958 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
11959 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
11960 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
11961 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
11962 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
11963 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
11964 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
11965 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
11966 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
11967 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
11968 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
11969 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
11970 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
11971 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
11972 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
11973 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
11974 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
11975 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
11976 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
11977 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
11978 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
11979 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
11980 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
11981 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
11982 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
11983 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
11984 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
11985 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
11986 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
11987 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
11988
11989 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
11990 adjusted to imply powerpc64 and older processors on powerpc64/be.
11991 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
11992 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
11993 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
11994 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
11995 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
11996 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
11997 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
11998 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
11999 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12000 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12001 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12002 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12003 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12004 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12005 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12006 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12007 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12008 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12009 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12010 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12011 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12012 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12013 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12014 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12015 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12016 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12017 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12018 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12019 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12020 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12021 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12022
12023 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12024 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12025 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12026 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12027
12028 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12029 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12030 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12031 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12032
12033 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12034 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12035 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12036 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12037 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12038 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12039 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12040 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12041 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12042 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12043 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12044
12045 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12046 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12047 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12048 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12049 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12050 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12051 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12052 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12053 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12054 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12055 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12056
12057 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12058 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12059 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12060 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12061 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12062 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12063 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12064 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12065 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12066 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12067 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12068 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12069
12070 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12071 and adjusted to imply olders processors.
12072 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12073 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12074 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12075 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12076 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12077 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12078 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12079 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12080 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12081 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12082 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12083
12084 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12085 powerpc64/le.
12086 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12087 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12088
12089 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12090 powerpc64le.
12091 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12092 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12093
12094 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12095 powerpc64/be.
12096 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12097 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12098 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12099
12100 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12101 powerpc64 and adjusted.
12102 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12104 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12105 Likewise.
12106
12107 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12108
12109 * sysdeps/tile: Remove.
12110 * sysdeps/unix/sysv/linux/tile: Likewise.
12111 * README (tilegx-*-linux-gnu): Remove from list of supported
12112 configurations.
12113 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12114 contribution of support for generic Linux kernel syscall
12115 interface.
12116 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12117 tilegx configurations.
12118 (Config.install_linux_headers): Do not handle tile.
12119 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12120 in comment.
12121 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12122 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12123 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12124 conditional undefine and redefine.
12125 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12126 in comment.
12127 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12128 conditional undefine and redefine.
12129
12130 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12131
12132 * signal/tst-sigaction.c: New file to test BZ #23069.
12133 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12134
12135 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12136
12137 [BZ #22766]
12138 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12139 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12140 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12141 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12142
12143 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12144
12145 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12146 _DIRENT_MATCHES_DIRENT64 is not defined.
12147 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12148 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12149 is defined.
12150 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12151 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12152
12153 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12154
12155 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12156 version to GCC 8 branch.
12157
12158 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12159
12160 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12161 (check_no_hidden): Use type of original function when declaring
12162 alias.
12163
12164 * sysdeps/unix/sysv/linux/sys/ptrace.h
12165 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12166 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12167 (struct __ptrace_seccomp_metadata): New type.
12168 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12169 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12170 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12171 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12172 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12173 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12174 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12175 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12176 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12177 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12178 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12179 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12180 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12181 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12182 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12183 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12184
12185 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12186
12187 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12188 defined.
12189 * dirent/versionsort.c (versionsort): Likewise.
12190 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12191 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12192 * dirent/versionsort64.c (versionsort64): Likewise.
12193 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12194 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12195 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12196 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12197 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12198 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12199 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12200 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12201 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12202 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12203 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12205 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12206 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12207
12208 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12209
12210 * elf/elf.h (NT_PPC_PKEY): New macro.
12211
12212 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12213
12214 [BZ #23094]
12215 * localedata/locales/hr_HR: fix thousands_sep and
12216 mon_thousands_sep
12217
12218 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12219
12220 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12221 (XTABS): Define to TAB3.
12222
12223 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12224
12225 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12226
12227 * dirent/scandir-tail-common.c: New file.
12228 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12229 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12230 * dirent/scandir.c: Use scandir-tail-common.c.
12231 * dirent/scandirat.c: Likewise.
12232 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12233 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12234 if _DIRENT_MATCHES_DIRENT64 is defined.
12235 * dirent/scandirat64.c (scandirat64): Likewise.
12236 * include/dirent.h (__scandir_tail): Only define iff
12237 _DIRENT_MATCHES_DIRENT64 is not defined.
12238 (__scandir64_tail): Define regardless.
12239 (__scandirat, scandirat64): Remove libc_hidden_proto.
12240 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12241 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12242 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12243 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12244 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12245 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12246 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12247
12248 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12249
12250 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12251 New macro.
12252 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12253 Increase to 24.
12254 (_dl_aarch64_cap_flags): Add asimdfhm.
12255
12256 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12257
12258 * sysdeps/nios2/libm-test-ulps: Update.
12259
12260 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12261
12262 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12263 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12264
12265 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12266 requirements.
12267 (_DIRENT_MATCHES_DIRENT64): Undef
12268 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12269 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12270 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12271 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12272 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12273 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12274 use getdents64 syscalls as base.
12275 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12276 symbol if required.
12277 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12278 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12279 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12280 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12281 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12282 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12283 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12284 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12285 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12286 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12287 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12288
12289 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12290
12291 * scripts/test_printers_common.py (init_test): Disable lock elision.
12292
12293 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12294
12295 * math/test-tgmath.c (count_double, count_float,
12296 count_ldouble, count_cdouble, count_cfloat,
12297 count_cldouble): Use volatile int.
12298
12299 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12300
12301 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12302 (conformtest-xfail-conds): Add i386-gnu.
12303 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12304 i386-gnu.
12305 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12306 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12307 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12308 msqid_ds.msg_lrpid): Likewise.
12309 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12310 Likewise.
12311 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12312 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12313 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12314 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12315 unsigned int.
12316 (struct statvfs64): Likewise.
12317 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12318 Likewise.
12319 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12320 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12321 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12322 instead of wait_queue.
12323 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12324 instead of vm_area_struct.
12325 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12326 struct sched_param definition to it.
12327 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12328 * bits/types/struct_sched_param.h: New file.
12329 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12330 <bits/types/struct_sched_param.h> instead of <sched.h>.
12331 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12332 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12333 generic version but include <bits/pthreadtypes.h> to make struct
12334 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12335 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12336 non-compliant.
12337 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12338 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12339 [__USE_XOPEN] (OFDEL): New macro.
12340 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12341 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12342 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12343 prototypes.
12344 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12345 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12346 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12347 non-compliant.
12348 * sysdeps/i386/sys/ucontext.h: Likewise.
12349 * sysdeps/m68k/sys/ucontext.h: Likewise.
12350 * sysdeps/mips/sys/ucontext.h: Likewise.
12351 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12352 * sysdeps/mach/hurd/i386/Makefile
12353 (test-xfail-POSIX/fcntl.h/conform): Add.
12354 (test-xfail-POSIX/signal.h/conform): Add.
12355 (test-xfail-POSIX/semaphore.h/conform): Add.
12356 (test-xfail-POSIX/regex.h/conform): Add.
12357 (test-xfail-POSIX/aio.h/conform): Add.
12358 (test-xfail-POSIX/mqueue.h/conform): Add.
12359 (test-xfail-POSIX/sys/types.h/conform): Add.
12360 (test-xfail-UNIX98/fcntl.h/conform): Add.
12361 (test-xfail-UNIX98/netdb.h/conform): Add.
12362 (test-xfail-UNIX98/signal.h/conform): Add.
12363 (test-xfail-UNIX98/semaphore.h/conform): Add.
12364 (test-xfail-UNIX98/regex.h/conform): Add.
12365 (test-xfail-UNIX98/aio.h/conform): Add.
12366 (test-xfail-UNIX98/ftw.h/conform): Add.
12367 (test-xfail-UNIX98/mqueue.h/conform): Add.
12368 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12369 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12370 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12371 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12372 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12373 (test-xfail-UNIX98/sys/types.h/conform): Add.
12374 (test-xfail-UNIX98/stdlib.h/conform): Add.
12375 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12376 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12377 (test-xfail-POSIX2008/netdb.h/conform): Add.
12378 (test-xfail-POSIX2008/signal.h/conform): Add.
12379 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12380 (test-xfail-POSIX2008/regex.h/conform): Add.
12381 (test-xfail-POSIX2008/aio.h/conform): Add.
12382 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12383 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12384 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12385 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12386 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12387 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12388 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12389 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12390 (test-xfail-XOPEN2K/signal.h/conform): Add.
12391 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12392 (test-xfail-XOPEN2K/regex.h/conform): Add.
12393 (test-xfail-XOPEN2K/aio.h/conform): Add.
12394 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12395 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12396 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12397 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12398 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12399 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12400 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12401 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12402 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12403 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12404 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12405 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12406 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12407 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12408 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12409 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12410 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12411 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12412 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12413 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12414 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12415 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12416 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12417 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12418 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12419 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12420 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12421 i386-gnu.
12422 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12423 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12424
12425 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12426
12427 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12428 --enable-obsolete for powerpc-linux-gnuspe.
12429
12430 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12431
12432 * conform/data/sys/un.h-data: Allow sun_ prefix.
12433 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12434 prototypes.
12435 * sysdeps/mach/include/mach.h: Likewise.
12436 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12437 * sysdeps/mach/include/mach_error.h: Likewise.
12438
12439 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12440
12441 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12442 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12443 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12444 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12445
12446 2018-04-16 Andreas Schwab <schwab@suse.de>
12447
12448 [BZ #19527]
12449 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12450
12451 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12452
12453 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12454 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12455
12456 2018-04-12 DJ Delorie <dj@redhat.com>
12457
12458 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12459 version to 4.16.
12460
12461 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12462
12463 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12464 (struct kernel_sigaction): Use the same definition on 31bit as is used
12465 on 64bit.
12466
12467 2018-04-09 Florian Weimer <fweimer@redhat.com>
12468
12469 [BZ #23037]
12470 * resolv/res_send.c (send_dg): Use designated initializers instead
12471 of assignment to zero-initialize other fields of struct mmsghdr.
12472
12473 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12474
12475 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12476 __READDIR_ALIAS): Undefine after usage.
12477 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12478 __READDIR_R_ALIAS): Likewise.
12479 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12480 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12481 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12482 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12483 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12484 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12485 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12486 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12487 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12488 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12489 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12490 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12491 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12492 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12493 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12494 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12495 * sysdeps/unix/sysv/linux/readdir.c: New file.
12496 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12497 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12498 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12499
12500 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12501
12502 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12503
12504 * manual/charset.texi (Converting a Character): Fix typo.
12505
12506 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12507
12508 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12509
12510 * sysdeps/arm/libm-test-ulps: Update.
12511
12512 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12513 as base implementation.
12514 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12515 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12516 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12517 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12518 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12519 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12520 remove unrequired definitions and update comments.
12521 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12522 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12523 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12524 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12525 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12526 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12527 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12528 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12529 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12530 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12531 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12532 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12533 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12534 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12535 and RESET_SA_RESTORER hooks.
12536
12537 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12538
12539 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12540
12541 2018-04-05 Florian Weimer <fweimer@redhat.com>
12542
12543 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12544 integer overflow, memory leak on error, and indeterminate errno
12545 value. Add a null wide character to terminate the result string.
12546 * manual/charset.texi (Converting a Character): Mention embedded
12547 null bytes in the mbrtowc input string. Explain what happens in
12548 the -2 result case. Do not claim that mbrtowc is simple or
12549 obvious to use. Adjust the description of the code example. Use
12550 @code, not @var, for concrete variables.
12551
12552 2018-04-05 Florian Weimer <fweimer@redhat.com>
12553
12554 * manual/examples/mbstouwcs.c: New file.
12555 * manual/charset.texi (Converting a Character): Include it.
12556
12557 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12558
12559 * include/dirent.h (dirfd): Add hidden proto.
12560 * dirent/dirfd.c (dirfd): Add hidden def.
12561 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12562 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12563
12564 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12565
12566 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12567 sin, cos and sincos to 1 ULP.
12568
12569 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12570
12571 [BZ #19818]
12572 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12573 symbols.
12574 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12575 * elf/tst-absolute-sym.c: New file.
12576 * elf/tst-absolute-sym-lib.c: New file.
12577 * elf/tst-absolute-sym-lib.lds: New file.
12578 * elf/Makefile (tests): Add `tst-absolute-sym'.
12579 (modules-names): Add `tst-absolute-sym-lib'.
12580 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12581 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12582 ($(objpfx)tst-absolute-sym): New dependency.
12583
12584 [BZ #19818]
12585 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12586 parameter.
12587 (SYMBOL_ADDRESS): New macro.
12588 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12589 SYMBOL_ADDRESS for symbol address calculation.
12590 * elf/dl-runtime.c (_dl_fixup): Likewise.
12591 (_dl_profile_fixup): Likewise.
12592 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12593 * elf/rtld.c (dl_main): Likewise.
12594 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12595 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12596 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12597 (elf_machine_rela): Likewise.
12598 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12599 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12600 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12601 (elf_machine_rela): Likewise.
12602 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12603 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12604 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12605 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12606 Likewise.
12607 (elf_machine_reloc): Likewise.
12608 (elf_machine_got_rel): Likewise.
12609 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12610 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12611 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12612 Likewise.
12613 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12614 Likewise.
12615 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12616 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12617 Likewise.
12618 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12619 Likewise.
12620 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12621 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12622 Likewise.
12623 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12624 Likewise.
12625 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12626 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12627
12628 2018-04-04 Zack Weinberg <zackw@panix.com>
12629
12630 * sysdeps/generic/internal-signals.h: Include signal.h,
12631 sigsetops.h, and stdbool.h.
12632 (__libc_signal_block_all): Actually block all signals.
12633 (__libc_signal_block_app): Likewise.
12634 (__libc_signal_restore_set): Actually restore the signal mask.
12635
12636 2018-04-04 Florian Weimer <fweimer@redhat.com>
12637
12638 inet: Actually build and run tst-deadline.
12639 * inet/Makefile (tests-internal): Add tst-deadline and do not
12640 overwrite the variable.
12641 (tests-static-internal): Remove variable.
12642
12643 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12644
12645 [BZ #22947]
12646 * bits/uio-ext.h (RWF_APPEND): New.
12647 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12648 * manual/llio.texi: Document RWF_APPEND.
12649 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12650 (RWF_SUPPORTED): Add RWF_APPEND.
12651
12652 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12653
12654 [BZ #22391]
12655 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12656 check for internal nptl signals.
12657 * nptl/sigaction.c (__sigaction): Likewise.
12658 * signal/sigaddset.c (sigaddset): Likewise.
12659 * signal/sigdelset.c (sigdelset): Likewise.
12660 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12661 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12662 value.
12663 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12664 to filter out internal nptl signals.
12665 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12666 also check realtime signals using standard macros.
12667 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12668 __is_internal_signal, __libc_signal_block_all,
12669 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12670 * sysdeps/nptl/sigfillset.c: Remove file.
12671 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12672 Change return to bool.
12673 (__clear_internal_signals): Remove SIGTIMER clean since it is
12674 equal to SIGCANEL on Linux.
12675 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12676 signal set was constructed using standard functions.
12677
12678 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12679
12680 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12681 ifname is too long.
12682 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12683 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12684 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12685 hidden def.
12686 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12687 * signal/sigaddset.c: Include <sigsetopts.h>.
12688 * signal/sigdelset.c: Likewise.
12689
12690 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12691
12692 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12693 (__cos): Likewise.
12694 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12695 logic as sin and cos.
12696
12697 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12698
12699 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12700 inputs. Return correct sign.
12701 (do_sincos): Remove small input check before do_sin, let do_sin set
12702 the sign.
12703 (__sin): Likewise.
12704 (__cos): Likewise.
12705
12706 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12707
12708 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12709 (do_cos_slow): Likewise.
12710 (do_sin_slow): Likewise.
12711 (reduce_and_compute): Likewise.
12712 (slow): Likewise.
12713 (slow1): Likewise.
12714 (slow2): Likewise.
12715 (sloww): Likewise.
12716 (sloww1): Likewise.
12717 (sloww2): Likewise.
12718 (bslow): Likewise.
12719 (bslow1): Likewise.
12720 (bslow2): Likewise.
12721 (cslow2): Likewise.
12722
12723 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12724
12725 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12726 (do_cos): Remove corp parameter and calculations.
12727 (do_sin): Likewise.
12728 (do_sincos): Remove cor variable.
12729 (__sin): Use do_sincos for huge inputs.
12730 (__cos): Likewise.
12731 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12732 (reduce_and_compute_sincos): Remove unused function.
12733
12734 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12735
12736 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12737 reduce_sincos, improve accuracy to 136 bits.
12738 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12739 (__sin): Use improved reduction and simplified do_sincos calculation.
12740 (__cos): Likewise.
12741 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12742
12743 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12744
12745 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12746 (do_sincos_2): Likewise.
12747 (__sin): Remove middle range reduction case.
12748 (__cos): Likewise.
12749 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12750 reduction case.
12751
12752 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12753
12754 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12755 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12756 inputs.
12757 (__cos): Likewise.
12758 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12759
12760 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12761
12762 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12763 version to 4.16
12764
12765 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12766
12767 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12768 Remove definitions.
12769 (opendir_oflags): Use O_DIRECTORY regardless.
12770 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12771 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12772
12773 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12774
12775 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12776 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12777 macros.
12778 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12779 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12780 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12781 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12782 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12783 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12784
12785 * htl/Makefile: Bump licence to LGPL 2.1+.
12786 * htl/alloca_cutoff.c: Likewise.
12787 * htl/cthreads-compat.c: Likewise.
12788 * htl/lockfile.c: Likewise.
12789 * htl/pt-alloc.c: Likewise.
12790 * htl/pt-cancel.c: Likewise.
12791 * htl/pt-cleanup.c: Likewise.
12792 * htl/pt-create.c: Likewise.
12793 * htl/pt-dealloc.c: Likewise.
12794 * htl/pt-detach.c: Likewise.
12795 * htl/pt-exit.c: Likewise.
12796 * htl/pt-getattr.c: Likewise.
12797 * htl/pt-initialize.c: Likewise.
12798 * htl/pt-internal.h: Likewise.
12799 * htl/pt-join.c: Likewise.
12800 * htl/pt-self.c: Likewise.
12801 * htl/pt-setcancelstate.c: Likewise.
12802 * htl/pt-setcanceltype.c: Likewise.
12803 * htl/pt-sigmask.c: Likewise.
12804 * htl/pt-spin-inlines.c: Likewise.
12805 * htl/pt-testcancel.c: Likewise.
12806 * htl/pt-yield.c: Likewise.
12807 * htl/tests/test-1.c: Likewise.
12808 * htl/tests/test-10.c: Likewise.
12809 * htl/tests/test-11.c: Likewise.
12810 * htl/tests/test-12.c: Likewise.
12811 * htl/tests/test-13.c: Likewise.
12812 * htl/tests/test-14.c: Likewise.
12813 * htl/tests/test-15.c: Likewise.
12814 * htl/tests/test-16.c: Likewise.
12815 * htl/tests/test-17.c: Likewise.
12816 * htl/tests/test-2.c: Likewise.
12817 * htl/tests/test-3.c: Likewise.
12818 * htl/tests/test-4.c: Likewise.
12819 * htl/tests/test-5.c: Likewise.
12820 * htl/tests/test-6.c: Likewise.
12821 * htl/tests/test-7.c: Likewise.
12822 * htl/tests/test-8.c: Likewise.
12823 * htl/tests/test-9.c: Likewise.
12824 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12825 * sysdeps/htl/bits/cancelation.h: Likewise.
12826 * sysdeps/htl/bits/pthread-np.h: Likewise.
12827 * sysdeps/htl/bits/pthread.h: Likewise.
12828 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12829 * sysdeps/htl/bits/semaphore.h: Likewise.
12830 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12831 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12832 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12833 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12834 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12835 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12836 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12837 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12838 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12839 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12840 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12841 * sysdeps/htl/old_pt-atfork.c: Likewise.
12842 * sysdeps/htl/pt-atfork.c: Likewise.
12843 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12844 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12845 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12846 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12847 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12848 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12849 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12850 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12851 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12852 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12853 * sysdeps/htl/pt-attr-init.c: Likewise.
12854 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12855 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12856 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12857 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12858 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12859 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12860 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12861 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12862 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12863 * sysdeps/htl/pt-attr.c: Likewise.
12864 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12865 * sysdeps/htl/pt-barrier-init.c: Likewise.
12866 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12867 * sysdeps/htl/pt-barrier.c: Likewise.
12868 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12869 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12870 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12871 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12872 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12873 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12874 * sysdeps/htl/pt-cond-init.c: Likewise.
12875 * sysdeps/htl/pt-cond-signal.c: Likewise.
12876 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12877 * sysdeps/htl/pt-cond-wait.c: Likewise.
12878 * sysdeps/htl/pt-cond.c: Likewise.
12879 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12880 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12881 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12882 * sysdeps/htl/pt-condattr-init.c: Likewise.
12883 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
12884 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
12885 * sysdeps/htl/pt-destroy-specific.c: Likewise.
12886 * sysdeps/htl/pt-equal.c: Likewise.
12887 * sysdeps/htl/pt-getconcurrency.c: Likewise.
12888 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
12889 * sysdeps/htl/pt-getschedparam.c: Likewise.
12890 * sysdeps/htl/pt-getspecific.c: Likewise.
12891 * sysdeps/htl/pt-init-specific.c: Likewise.
12892 * sysdeps/htl/pt-key-create.c: Likewise.
12893 * sysdeps/htl/pt-key-delete.c: Likewise.
12894 * sysdeps/htl/pt-key.h: Likewise.
12895 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
12896 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
12897 * sysdeps/htl/pt-mutex-init.c: Likewise.
12898 * sysdeps/htl/pt-mutex-lock.c: Likewise.
12899 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
12900 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
12901 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
12902 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
12903 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
12904 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
12905 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
12906 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
12907 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
12908 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
12909 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
12910 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
12911 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
12912 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
12913 * sysdeps/htl/pt-mutexattr.c: Likewise.
12914 * sysdeps/htl/pt-once.c: Likewise.
12915 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
12916 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
12917 * sysdeps/htl/pt-rwlock-init.c: Likewise.
12918 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
12919 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
12920 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
12921 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
12922 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
12923 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
12924 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
12925 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
12926 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
12927 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
12928 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
12929 * sysdeps/htl/pt-setconcurrency.c: Likewise.
12930 * sysdeps/htl/pt-setschedparam.c: Likewise.
12931 * sysdeps/htl/pt-setschedprio.c: Likewise.
12932 * sysdeps/htl/pt-setspecific.c: Likewise.
12933 * sysdeps/htl/pt-spin.c: Likewise.
12934 * sysdeps/htl/pt-startup.c: Likewise.
12935 * sysdeps/htl/pthread.h: Likewise.
12936 * sysdeps/htl/sem-close.c: Likewise.
12937 * sysdeps/htl/sem-destroy.c: Likewise.
12938 * sysdeps/htl/sem-getvalue.c: Likewise.
12939 * sysdeps/htl/sem-init.c: Likewise.
12940 * sysdeps/htl/sem-open.c: Likewise.
12941 * sysdeps/htl/sem-post.c: Likewise.
12942 * sysdeps/htl/sem-timedwait.c: Likewise.
12943 * sysdeps/htl/sem-trywait.c: Likewise.
12944 * sysdeps/htl/sem-unlink.c: Likewise.
12945 * sysdeps/htl/sem-wait.c: Likewise.
12946 * sysdeps/hurd/htl/pt-kill.c: Likewise.
12947 * sysdeps/i386/htl/pt-machdep.h: Likewise.
12948 * sysdeps/mach/htl/pt-block.c: Likewise.
12949 * sysdeps/mach/htl/pt-spin.c: Likewise.
12950 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
12951 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
12952 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
12953 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
12954 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
12955 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
12956 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
12957 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
12958 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
12959 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
12960 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
12961 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
12962 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
12963 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
12964 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
12965 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
12966 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
12967 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
12968 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
12969 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
12970 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
12971 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
12972 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
12973 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
12974 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
12975 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
12976 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
12977 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
12978 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
12979 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
12980 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
12981 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
12982 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
12983 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
12984 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
12985 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
12986 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
12987 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
12988 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
12989 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
12990 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
12991 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
12992 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
12993
12994 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
12995 * README: Remove the mention of out-of-tree patches needed for
12996 GNU/Hurd.
12997
12998 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
12999 (UTIME_NOW, UTIME_OMIT): Define macros.
13000
13001 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13002 instead of pthread_detach.
13003 (__cthread_fork): Call __pthread_create instead of pthread_create.
13004 (__cthread_keycreate): Call __pthread_key_create instead of
13005 pthread_key_create.
13006 (__cthread_getspecific): Call __pthread_getspecific instead of
13007 pthread_getspecific.
13008 (__cthread_setspecific): Call __pthread_setspecific instead of
13009 pthread_setspecific.
13010 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13011 __pthread_mutex_unlock instead of pthread_mutex_lock and
13012 pthread_mutex_unlock.
13013 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13014 ___pthread_get_cleanup_stack.
13015 (__pthread_get_cleanup_stack): New strong alias.
13016 * htl/pt-create.c: Include <pthreadP.h>.
13017 (entry_point): Call __pthread_exit instead of pthread_exit.
13018 (pthread_create): Rename to __pthread_create.
13019 (pthread_create): New strong alias.
13020 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13021 (pthread_detach): New strong alias.
13022 (__pthread_detach): Call __pthread_cond_broadcast instead of
13023 pthread_cond_broadcast.
13024 * htl/pt-exit.c: Include <pthreadP.h>.
13025 (__pthread_exit): Call __pthread_setcancelstate and
13026 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13027 __pthread_get_cleanup_stack.
13028 * htl/pt-testcancel.c: Include <pthreadP.h>.
13029 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13030 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13031 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13032 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13033 pthread_attr_getstacksize.
13034 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13035 Rename to __pthread_attr_getstackaddr.
13036 (pthread_attr_getstackaddr): New strong alias.
13037 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13038 Rename to __pthread_attr_getstacksize.
13039 (pthread_attr_getstacksize): New strong alias.
13040 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13041 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13042 (pthread_attr_setstack): New strong alias.
13043 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13044 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13045 pthread_attr_getstacksize, pthread_attr_setstacksize and
13046 pthread_attr_setstackaddr.
13047 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13048 Rename to __pthread_attr_setstackaddr.
13049 (pthread_attr_setstackaddr): New strong alias.
13050 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13051 Rename to __pthread_attr_setstacksize.
13052 (pthread_attr_setstacksize): New strong alias.
13053 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13054 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13055 pthread_exit.
13056 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13057 (__pthread_key_create): New hidden def.
13058 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13059 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13060 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13061 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13062 __pthread_setspecific, __pthread_setcancelstate,
13063 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13064 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13065 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13066 declarations.
13067 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13068 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13069 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13070 (pthread_attr_setstackaddr): New strong alias.
13071 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13072 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13073 (pthread_attr_setstacksize): New strong alias.
13074 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13075 (call_exit): Call __pthread_exit instead of pthread_exit.
13076 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13077 (_pthread_mutex_init): New hidden definition.
13078 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13079 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13080 instead of pthread_attr_init and pthread_attr_setstack.
13081
13082 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13083 __vm_deallocate instead of vm_allocate and vm_deallocate.
13084 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13085 setenv.
13086 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13087 of geteuid.
13088 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13089 strdup.
13090 * hurd/siginfo.c: Include <libioP.h>.
13091 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13092 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13093 munmap.
13094 * mach/devstream.c: Include <libioP.h>.
13095 (dealloc_ref): Call __mach_port_deallocate instead of
13096 mach_port_deallocate.
13097 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13098 Call __mach_port_deallocate instead of mach_port_deallocate.
13099 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13100 pathconf.
13101 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13102 munmap.
13103 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13104 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13105 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13106 of munmap.
13107 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13108 of close.
13109 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13110 instead of sysconf.
13111 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13112 __clock_gettime instead of clock_gettime.
13113 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13114 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13115 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13116 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13117 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13118 tcgetattr.
13119 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13120 __clock_gettime and __nanosleep instead of clock_gettime and
13121 nanosleep.
13122 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13123 __hurd_catch_signal.
13124 (hurd_catch_signal): New strong alias.
13125 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13126 __hurd_catch_signal instead of hurd_catch_signal.
13127 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13128 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13129 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13130 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13131 (_hurd_thread_sigstate): Add hidden def.
13132 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13133 mutex_unlock.
13134 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13135 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13136 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13137 __hurd_file_name_path_lookup.
13138 (hurd_file_name_path_lookup): New strong alias.
13139 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13140 hurd_file_name_path_lookup.
13141 * mach/errstring.c (mach_error_type): Add hidden def.
13142 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13143 * mach/mutex-init.c (__mutex_init): Add hidden def.
13144 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13145 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13146 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13147 * sysdeps/mach/hurd/getcwd.c
13148 (_hurd_canonicalize_directory_name_internal): Rename to
13149 __hurd_canonicalize_directory_name_internal.
13150 (_hurd_canonicalize_directory_name_internal): New strong alias.
13151 (__canonicalize_directory_name_internal, __getcwd): Call
13152 __hurd_canonicalize_directory_name_internal instead of
13153 _hurd_canonicalize_directory_name_internal.
13154 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13155 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13156 hidden defs.
13157 * sysdeps/hurd/include/hurd.h: New file.
13158 * sysdeps/hurd/include/hurd/fd.h: New file.
13159 * sysdeps/hurd/include/hurd/signal.h: New file.
13160 * sysdeps/mach/include/lock-intern.h: New file.
13161 * sysdeps/mach/include/mach.h: New file.
13162 * sysdeps/mach/include/mach/mig_support.h: New file.
13163 * sysdeps/mach/include/mach_error.h: New file.
13164 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13165 prototype.
13166 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13167 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13168 _HEADER_H_HIDDEN_DEF macro.
13169 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13170 _hurd_fd_error_signal): Add hidden prototype.
13171 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13172 hidden def.
13173 * libio/iolibio.h (_IO_puts): New hidden prototype.
13174 * libio/ioputs.c (_IO_puts): New hidden def.
13175 * sysdeps/mach/hurd/localplt.data: New file.
13176
13177 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13178 Amos Jeffries <squid3@treenet.co.nz>
13179 David Michael <fedora.dm0@gmail.com>
13180 Marco Gerards <marco@gnu.org>
13181 Marcus Brinkmann <marcus@gnu.org>
13182 Neal H. Walfield <neal@gnu.org>
13183 Pino Toscano <toscano.pino@tiscali.it>
13184 Richard Braun <rbraun@sceen.net>
13185 Roland McGrath <roland@gnu.org>
13186 Samuel Thibault <samuel.thibault@ens-lyon.org>
13187 Thomas DiModica <ricinwich@yahoo.com>
13188 Thomas Schwinge <tschwinge@gnu.org>
13189
13190 * htl: New directory.
13191 * sysdeps/htl: New directory.
13192 * sysdeps/hurd/htl: New directory.
13193 * sysdeps/i386/htl: New directory.
13194 * sysdeps/mach/htl: New directory.
13195 * sysdeps/mach/hurd/htl: New directory.
13196 * sysdeps/mach/hurd/i386/htl: New directory.
13197 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13198 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13199 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13200
13201 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13202
13203 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13204 signals in thread created for runing timers.
13205
13206 2018-04-01 Florian Weimer <fweimer@redhat.com>
13207
13208 * support/support_format_addrinfo.c (support_format_addrinfo):
13209 Include unknown error number in formatted result.
13210
13211 2018-03-29 Florian Weimer <fweimer@redhat.com>
13212
13213 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13214 capture SIGBUS.
13215
13216 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13217
13218 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13219 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13220 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13221 (__ASSUME_CLONE_BACKWARDS): Define.
13222
13223 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13224
13225 [BZ #23024]
13226 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13227 early when linux sentinel value is set.
13228
13229 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13230
13231 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13232
13233 2018-03-27 Andreas Schwab <schwab@suse.de>
13234
13235 [BZ #23005]
13236 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13237 allocation of private copy of nsaddr_list fails.
13238
13239 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13240
13241 [BZ #16552]
13242 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13243 * sysdeps/unix/sysv/linux/umount.c: ... here.
13244 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13245 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13246 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13247 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13248 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13249 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13250 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13251
13252 2018-03-26 Andreas Schwab <schwab@suse.de>
13253
13254 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13255 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13256 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13257 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13258 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13259 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13260 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13261 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13262 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13263 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13264 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13265 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13266 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13267 (R_RISCV_NUM): Define.
13268
13269 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13270
13271 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13272 TLS declaration of errno.
13273 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13274 __libc_setup_tls.
13275 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13276 (ARCH_SETUP_TLS): Likewise.
13277 * sysdeps/mach/hurd/libc-start.h: New file copied from
13278 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13279 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13280 instead of __libc_setup_tls.
13281 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13282 __libc_setup_tls before initializing libpthread and running _hurd_init
13283 which starts the signal thread.
13284 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13285 Declare function.
13286 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13287
13288 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13289
13290 [BZ #22998]
13291 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13292 after it is defined.
13293
13294 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13295 Max Horn <max@quendi.de>
13296
13297 [BZ #22644]
13298 CVE-2017-18269
13299 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13300 branch conditions.
13301 * string/test-memmove.c (do_test2): New testcase.
13302
13303 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13304
13305 * sysdeps/generic/frame.h: Remove file.
13306 * sysdeps/arm/frame.h: Likewise.
13307 * sysdeps/hppa/frame.h: Likewise.
13308 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13309 macro.
13310 (GET_FRAME): Likewise.
13311 (GET_STACK): Likewise.
13312 (CALL_SIGHANDLER): Likewise.
13313 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13314 Likewise.
13315 (GET_FRAME): Likewise.
13316 (GET_STACK): Likewise.
13317 (CALL_SIGHANDLER): Likewise.
13318 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13319 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13320 (GET_FRAME): Likewise.
13321 (GET_STACK): Likewise.
13322 (CALL_SIGHANDLER): Likewise.
13323 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13324 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13325 (GET_FRAME): Likewise.
13326 (GET_STACK): Likewise.
13327 (ADVANCE_STACK_FRAME): Likewise.
13328 (CALL_SIGHANDLER): Likewise.
13329 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13330 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13331 (GET_FRAME): Likewise.
13332 (GET_STACK): Likewise.
13333 (CALL_SIGHANDLER): Likewise.
13334 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13335 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13336 (GET_FRAME): Likewise.
13337 (GET_STACK): Likewise.
13338 (CALL_SIGHANDLER): Likewise.
13339 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13340 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13341 (GET_FRAME): Likewise.
13342 (GET_STACK): Likewise.
13343 (CALL_SIGHANDLER): Likewise.
13344 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13345 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13346 (GET_FRAME): Likewise.
13347 (GET_STACK): Likewise.
13348 (CALL_SIGHANDLER): Likewise.
13349 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13350 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13351 (GET_FRAME): Likewise.
13352 (GET_STACK): Likewise.
13353 (CALL_SIGHANDLER): Likewise.
13354 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13355 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13356 (GET_FRAME): Likewise.
13357 (GET_STACK): Likewise.
13358 (CALL_SIGHANDLER): Likewise.
13359 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13360 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13361 (GET_FRAME): Likewise.
13362 (GET_STACK): Likewise.
13363 (CALL_SIGHANDLER): Likewise.
13364 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13365 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13366 (GET_FRAME): Likewise.
13367 (GET_STACK): Likewise.
13368 (CALL_SIGHANDLER): Likewise.
13369 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13370 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13371 (GET_FRAME): Likewise.
13372 (GET_STACK): Likewise.
13373 (CALL_SIGHANDLER): Likewise.
13374 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13375 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13376 (FIRST_FRAME_POINTER): Likewise.
13377 (ADVANCE_STACK_FRAME): Likewise.
13378 (GET_STACK): Likewise.
13379 (GET_FRAME): Likewise.
13380 (CALL_SIGHANDLER): Likewise.
13381 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13382 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13383 (ADVANCE_STACK_FRAME): Likewise.
13384 (GET_STACK): Likewise.
13385 (GET_FRAME): Likewise.
13386 (CALL_SIGHANDLER): Likewise.
13387 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13388 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13389 (GET_FRAME): Likewise.
13390 (GET_STACK): Likewise.
13391 (CALL_SIGHANDLER): Likewise.
13392 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13393 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13394 (GET_FRAME): Likewise.
13395 (GET_STACK): Likewise.
13396 (CALL_SIGHANDLER): Likewise.
13397
13398 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13399
13400 * sysdeps/x86_64/backtrace.c: Move to ....
13401 * debug/backtrace.c: ... here.
13402 * sysdeps/aarch64/backtrace.c: Remove file.
13403 * sysdeps/alpha/backtrace.c: Likewise.
13404 * sysdeps/hppa/backtrace.c: Likewise.
13405 * sysdeps/ia64/backtrace.c: Likewise.
13406 * sysdeps/mips/backtrace.c: Likewise.
13407 * sysdeps/nios2/backtrace.c: Likewise.
13408 * sysdeps/riscv/backtrace.c: Likewise.
13409 * sysdeps/sh/backtrace.c: Likewise.
13410 * sysdeps/tile/backtrace.c: Likewise.
13411
13412 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13413
13414 [BZ #22987]
13415 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13416 function.
13417 (fdimf): Likewise.
13418 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13419
13420 [BZ #17343]
13421 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13422 possibly overflowing computations.
13423
13424 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13425
13426 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13427 values from Linux-specific section now that it is in the GNU section.
13428 * sysdeps/gnu/errlist.c: Regenerate.
13429
13430 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13431
13432 * math/Makefile (libm-narrow-fns): Add sub.
13433 (libm-test-funcs-narrow): Likewise.
13434 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13435 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13436 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13437 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13438 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13439 (NARROW_SUB_TRIVIAL): Likewise.
13440 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13441 macro.
13442 (__dsubl): Likewise.
13443 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13444 dsub.
13445 (CFLAGS-nldbl-dsub.c): New variable.
13446 (CFLAGS-nldbl-fsub.c): Likewise.
13447 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13448 __nldbl_dsubl.
13449 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13450 prototype.
13451 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13452 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13453 * math/auto-libm-test-in: Add tests of sub.
13454 * math/auto-libm-test-out-narrow-sub: New generated file.
13455 * math/libm-test-narrow-sub.inc: New file.
13456 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13457 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13458 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13459 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13460 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13461 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13462 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13463 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13464 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13465 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13466 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13467 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13468 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13469 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13470 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13471 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13472 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13473 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13474 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13475 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13476 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13477 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13478 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13479 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13480 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13481 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13482 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13483 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13484 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13485 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13486 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13487 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13488 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13489 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13490 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13491 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13492 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13493 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13494 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13495 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13496 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13497 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13498 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13499 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13500 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13501 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13502
13503 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13504
13505 [BZ #20079]
13506 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13507
13508 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13509
13510 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13511
13512 2018-03-18 Richard Braun <rbraun@sceen.net>
13513
13514 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13515 thread reference.
13516
13517 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13518
13519 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13520 (__libc_cleanup_fct): Define function.
13521 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13522 __libc_cleanup_end): Rewrite implementation using
13523 __attribute__ ((__cleanup__)).
13524 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13525 * hurd/Makefile (routines): Add hurdlock.
13526 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13527 interface.
13528 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13529 * hurd/hurdpid.c: Include <lowlevellock.h>
13530 (_S_msg_proc_newids): Use lll_wait to synchronize.
13531 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13532 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13533 * mach/Makefile (lock-headers): Remove machine-lock.h.
13534 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13535 <machine-lock.h>.
13536 (__spin_lock_t): New type.
13537 (__SPIN_LOCK_INITIALIZER): New macro.
13538 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13539 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13540 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13541 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13542 (__mutex_init): Initialize with lll.
13543 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13544 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13545 needing lll.
13546 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13547 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13548 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13549 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13550 (__setpgid): Use lll for synchronization.
13551 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13552 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13553 instead of <cthreads.h>.
13554 (_IO_lock_inexpensive): New macro
13555 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13556 (__libc_lock_self0): New declaration.
13557 (__libc_lock_owner_self): New macro.
13558 (__libc_key_t): Remove type.
13559 (_LIBC_LOCK_INITIALIZER): New macro.
13560 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13561 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13562 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13563 __libc_lock_define_initialized_recursive,
13564 __rtld_lock_define_initialized_recursive,
13565 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13566 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13567 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13568 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13569 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13570 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13571 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13572 New macros.
13573 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13574 * hurd/hurdlock.c: New file.
13575 * hurd/hurdlock.h: New file.
13576 * mach/lowlevellock.h: New file
13577
13578 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13579
13580 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13581 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13582 when opening a symlink with O_NOFOLLOW.
13583 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13584 path when flags contains O_NOFOLLOW.
13585 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13586 if flags contains O_DIRECTORY and the result is a directory.
13587 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13588 oneself when the pointer given in D is nul (as set by ext2fs).
13589 * sysdeps/mach/hurd/mlockall.c: New file.
13590 * sysdeps/mach/hurd/munlockall.c: New file.
13591
13592 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13593
13594 * hurd/hurdsig.c: Include <pthread.h>.
13595 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13596 get the signal thread stack layout.
13597 * hurd/Makefile (headers): Remove threadvar.h.
13598 (inline-headers): Remove threadvar.h.
13599 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13600 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13601 __hurd_threadvar_max, __hurd_errno_location.
13602 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13603 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13604 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13605 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13606 unless TLS is not initialized yet, in which case we do not need a
13607 critical section yet anyway.
13608 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13609 <machine-sp.h>.
13610 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13611 declarations.
13612 (__hurd_threadvar_index): Remove enum.
13613 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13614 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13615 inlines.
13616 (__hurd_reply_port0): New variable declaration.
13617 (__hurd_local_reply_port): New macro.
13618 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13619 (interrupted_reply_port_location): Add thread_t parameter. Use it
13620 with THREAD_TCB to access thread-local variables.
13621 (_hurdsig_abort_rpcs): Pass ss->thread to
13622 interrupted_reply_port_location.
13623 (_hurd_internal_post_signal): Likewise.
13624 (_hurdsig_init): Use presence of cthread_fork instead of
13625 __hurd_threadvar_stack_mask to start signal thread by hand.
13626 Remove signal thread threadvar initialization.
13627 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13628 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13629 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13630 of threadvar.
13631 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13632 __libc_lock_self0.
13633 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13634 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13635 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13636 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13637 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13638 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13639 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13640 define variables.
13641 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13642 <hurd/threadvar.h>.
13643 [IS_IN(rtld)] (rtld_errno): New variable.
13644 [IS_IN(rtld)] (__errno_location): New weak function.
13645 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13646 * sysdeps/mach/hurd/errno.c: Remove file.
13647 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13648 (__fork): Remove THREADVAR_SPACE macro and its use.
13649 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13650 variable.
13651 (init): Do not initialize threadvar.
13652 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13653 symbol.
13654 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13655 __hurd_local_reply_port instead of threadvar.
13656 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13657 _hurd_sigstate fields.
13658 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13659 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13660 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13661 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13662 instead of threadvar.
13663 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13664 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13665 (use_threadvar, global_reply_port): Remove variables.
13666 (__hurd_reply_port0): New variable.
13667 (__mig_get_reply_port): Use __hurd_local_reply_port and
13668 __hurd_reply_port0 instead of threadvar.
13669 (__mig_dealloc_reply_port): Likewise.
13670 (__mig_init): Do not initialize threadvar.
13671 * sysdeps/mach/hurd/profil.c: Fix comment.
13672 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13673 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13674 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13675 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13676 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13677 __cthread_setspecific.
13678 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13679 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13680 __cthread_t instead of cthread_fork, cthread_detach,
13681 pthread_getattr_np, pthread_attr_getstack.
13682 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13683 __cthread_keycreate.
13684 (cthread_getspecific): Rename to __cthread_getspecific.
13685 (cthread_setspecific): Rename to __cthread_setspecific.
13686 (__libc_getspecific): Use __cthread_getspecific instead of
13687 cthread_getspecific.
13688 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13689 __cthread_keycreate instead of cthread_keycreate.
13690 (__libc_setspecific): Use __cthread_setspecific instead of
13691 cthread_setspecific.
13692 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13693 Likewise.
13694 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13695 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13696 testing whether it is defined.
13697
13698 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13699
13700 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13701 Define macro.
13702 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13703 * sysdeps/mach/i386/thread_state.h
13704 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13705 i386_THREAD_STATE.
13706 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13707 i386_THREAD_STATE.
13708 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13709
13710 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13711 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13712
13713 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13714 macros.
13715 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13716 descriptor instead of creating a new one.
13717 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13718
13719 * mach/setup-thread.c: Include <ldsodefs.h>.
13720 (__mach_setup_thread): Call _dl_allocate_tls, pass
13721 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13722 MACHINE_THREAD_STATE_FLAVOR, before getting
13723 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13724 MACHINE_THREAD_STATE_FLAVOR with the result.
13725 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13726 MACHINE_THREAD_STATE_FIX_NEW.
13727 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13728 too. Add original thread parameter.
13729
13730 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13731
13732 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13733 Remove inline function.
13734
13735 * sysdeps/i386/fpu/libm-test-ulps: Update.
13736 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13737
13738 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13739
13740 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13741 commit.
13742
13743 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13744
13745 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13746 (__sincos_code): Remove define and undefine.
13747 [__FAST_MATH__] (__sincos): Remove inline function.
13748 [__FAST_MATH__] (__sincosf): Remove inline function.
13749 [__FAST_MATH__] (__sincosl): Remove inline function.
13750 (__atan2l): Remove inline functions.
13751 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13752 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13753 function.
13754 (floor): Remove inline function.
13755 (ceil): Likewise.
13756 [__FAST_MATH__] (__ldexp_code): Remove macro.
13757 [__FAST_MATH__] (ldexp): Remove inline function.
13758 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13759 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13760 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13761 [__USE_ISOC99] (__lrint_code): Remove macro.
13762 [__USE_ISOC99] (__llrint_code): Likewise.
13763 [__USE_ISOC99] (lrintf): Remove inline function.
13764 [__USE_ISOC99] (lrint): Likewise.
13765 [__USE_ISOC99] (lrintl): Likewise.
13766 [__USE_ISOC99] (llrint): Likewise.
13767 [__USE_ISOC99] (llrintf): Likewise.
13768 [__USE_ISOC99] (llrintl): Likewise.
13769
13770 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13771
13772 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13773 (__ieee754_sqrtf): Remove.
13774 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13775 (__ieee754_sqrtf): Remove.
13776 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13777 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13778 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13779 (__ieee754_sqrtf): Remove.
13780 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13781 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13782 (sqrtf): Remove.
13783 (sqrtl): Remove.
13784 (__ieee754_sqrt): Remove.
13785 (__ieee754_sqrtf): Remove.
13786 (__ieee754_sqrtl): Remove.
13787 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13788 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13789 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13790 (__ieee754_sqrtf): Remove.
13791 (__ieee754_sqrtl): Remove.
13792
13793 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13794
13795 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13796 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13797 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13798 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13799 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13800 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13801 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13802 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13803 Likewise.
13804 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13805 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13806 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13807 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13808 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13809 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13810 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13811 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13812 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13813 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13814 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13815 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13816 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13817 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13818 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13819 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13820 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13821 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13822 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13823 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13824 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13825 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13826 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13827 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13828 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13829 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13830 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13831 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13832 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13833 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13834 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13835 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13836 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13837 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13838 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13839 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13840 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13841 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13842 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13843 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13844
13845 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13846
13847 * include/math.h (sqrt): Declare with asm redirect.
13848 (sqrtf): Likewise.
13849 (sqrtl): Likewise.
13850 (sqrtf128): Likewise.
13851 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13852 nonlib and libnldbl with -fmath-errno.
13853 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13854 * math/w_sqrt_template.c: Likewise.
13855 * math/w_sqrtf_compat.c: Likewise.
13856 * math/w_sqrtl_compat.c: Likewise.
13857 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13858 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13859 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13860 complex.h.
13861
13862 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13863
13864 * benchtests/Makefile: Define _ISOMAC.
13865 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13866 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13867 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13868 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13869 * benchtests/bench-timing.h: Define attribute_hidden.
13870
13871 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13872
13873 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13874 mov + lsr.
13875
13876 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13877
13878 [BZ #22963]
13879 * localedata/locales/cs_CZ (mon): Rename to...
13880 (alt_mon): This.
13881 (mon): Import from CLDR (genitive case).
13882
13883 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13884
13885 [BZ #22937]
13886 * localedata/locales/el_CY (abmon): Rename to...
13887 (ab_alt_mon): This.
13888 (abmon): Import from CLDR (abbreviated genitive case).
13889 * localedata/locales/el_GR (abmon): Rename to...
13890 (ab_alt_mon): This.
13891 (abmon): Import from CLDR (abbreviated genitive case).
13892
13893 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13894
13895 [BZ #22932]
13896 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
13897
13898 2018-03-15 Robert Buj <robert.buj@gmail.com>
13899
13900 [BZ #22848]
13901 * localedata/locales/ca_ES (abmon): Rename to...
13902 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13903 (mon): Rename to...
13904 (alt_mon): This.
13905 (abmon): Import from CLDR (genitive case, month names preceded by
13906 "de" or "d’").
13907 (mon): Likewise.
13908 (abday): Synchronize with CLDR.
13909 (d_t_fmt): Likewise.
13910 (d_fmt): Likewise.
13911 (am_pm): Likewise.
13912
13913 (LC_TIME): Improve indentation.
13914 (LC_TELEPHONE): Likewise.
13915 (LC_NAME): Likewise.
13916 (LC_ADDRESS): Likewise.
13917
13918 2018-03-14 Joseph Myers <joseph@codesourcery.com>
13919
13920 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
13921 (lrintf): Remove definitions used only with old GCC.
13922 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
13923 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
13924 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
13925 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
13926 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
13927 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
13928 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
13929 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
13930 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
13931 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
13932 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
13933 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
13934 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
13935 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
13936 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
13937 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
13938 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
13939 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
13940 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
13941 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
13942 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
13943 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
13944 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
13945 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
13946 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
13947 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
13948 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
13949 [__FAST_MATH__] (__M_SQRT2): Remove macro.
13950
13951 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
13952
13953 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
13954 instruction to unbreak builds with binutils 2.26 and older.
13955
13956 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
13957
13958 * sysdeps/aarch64/strncmp.S (count): New macro.
13959 (strncmp): Store misaligned length in SRC1 in COUNT.
13960 (mutual_align): Adjust.
13961 (misaligned8): Load dword at a time when it is safe.
13962
13963 2018-03-12 Zack Weinberg <zackw@panix.com>
13964
13965 [BZ #1190]
13966 [BZ #19476]
13967 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
13968 if the _IO_EOF_SEEN bit is already set; update commentary.
13969 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
13970 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
13971
13972 * support/support_openpty.c, support/tty.h: New files.
13973 * support/Makefile (libsupport-routines): Add support_openpty.
13974
13975 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
13976 New test cases.
13977 * libio/Makefile (tests): Add tst-fgetc-after-eof.
13978 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
13979
13980 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
13981
13982 * po/pt_BR.po: Update translations.
13983
13984 2018-03-12 David Michael <fedora.dm0@gmail.com>
13985
13986 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
13987 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
13988 get a port to the startup server.
13989
13990 2018-03-11 Zack Weinberg <zackw@panix.com>
13991
13992 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
13993 before nldbl-compat.h.
13994
13995 2018-03-10 Zack Weinberg <zackw@panix.com>
13996
13997 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
13998 math.h or math_private.h.
13999
14000 * sysdeps/alpha/fpu/s_isnan.c
14001 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14002 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14003 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14004 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14005 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14006 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14007 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14008 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14009 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14010 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14011 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14012 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14013 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14014 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14015 Include math_private.h.
14016
14017 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14018 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14019 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14020 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14021 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14022 * sysdeps/powerpc/power7/fpu/s_logb.c:
14023 Include math.h and math_private.h.
14024
14025 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14026 uses of $at in .set noat / .set at.
14027
14028 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14029
14030 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14031 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14032 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14033 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14034 Likewise.
14035
14036 2018-03-09 Florian Weimer <fweimer@redhat.com>
14037
14038 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14039 in comment.
14040
14041 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14042
14043 [BZ #22919]
14044 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14045 Add nop before __startcontext, add explaining comments.
14046
14047 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14048
14049 [BZ #22926]
14050 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14051 empty for __SPE__.
14052 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14053 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14054 Do not build hardware transactional code for __SPE__.
14055 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14056 (__lll_trylock_elision): Likewise.
14057 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14058 (__lll_unlock_elision): Likewise.
14059
14060 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14061 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14062 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14063 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14064 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14065 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14066 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14067 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14068 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14069 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14070 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14071 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14072 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14073 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14074 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14075 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14076 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14077 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14078 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14079 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14080 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14081 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14082 (__ASSUME_CLONE_BACKWARDS): Define.
14083 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14084 __clone2 if __NR_clone2 is defined.
14085 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14086 (__ASSUME_CLONE_BACKWARDS): Likewise.
14087 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14088 (__ASSUME_CLONE_BACKWARDS): Likewise.
14089 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14090 (__ASSUME_CLONE2): Likewise.
14091 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14092 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14093 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14094 variants and the define architecture can use.
14095 (__ASSUME_CLONE_DEFAULT): Define as default.
14096 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14097 (__ASSUME_CLONE_BACKWARDS): Likewise.
14098 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14099 (__ASSUME_CLONE_BACKWARDS): Likewise.
14100 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14101 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14102
14103 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14104
14105 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14106
14107 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14108 time.
14109
14110 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14111 (do_test_limit): Likewise.
14112
14113 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14114 for every implementation.
14115 (do_test): Likewise.
14116
14117 * benchtests/bench-strncmp.c: Convert output to json.
14118
14119 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14120
14121 * io/futimens.c: Add missing start-of-file descriptive comment.
14122 * io/utime.c: Likewise.
14123 * misc/futimesat.c: Likewise.
14124 * misc/utimes.c: Likewise.
14125 * sysdeps/mach/hurd/futimesat.c: Likewise.
14126 * sysdeps/mach/hurd/utimes.c: Likewise.
14127 * sysdeps/posix/utime.c: Likewise.
14128 * sysdeps/posix/utimes.c: Likewise.
14129 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14130 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14131 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14132 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14133
14134 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14135
14136 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14137 hurd_futimes.
14138 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14139 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14140 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14141 (__futimens): Move implementation to...
14142 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14143 utime_tvalue_from_tspec): ... new helper functions.
14144 (hurd_futimens): New function.
14145 * sysdeps/mach/hurd/futimesat.c: New file.
14146 * sysdeps/mach/hurd/utimensat.c: New file.
14147
14148 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14149
14150 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14151 UTIME_OMIT): New macros.
14152 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14153 before reverting to converting time spec to time value and calling
14154 __file_utimes.
14155 * sysdeps/mach/hurd/utime-helper.c: New file.
14156 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14157 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14158 reverting to utime_tvalue_from_tval and __file_utimes.
14159 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14160 (__lutimes): Just call hurd_futimens after lookup.
14161 * sysdeps/mach/hurd/utimes.c: Likewise.
14162
14163 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14164
14165 * bits/sigaction.h: Add include guard.
14166 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14167 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14168 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14169 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14170 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14171 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14172 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14173 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14174 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14175
14176 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14177
14178 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14179 -Wmaybe-uninitialized for -Os.
14180 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14181 this disabling.
14182
14183 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14184
14185 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14186 __INO_T_MATCHES_INO64_T is defined.
14187 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14188 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14189 of definition.
14190 * dirent/alphasort64.c: Likewise.
14191 * dirent/scandir.c: Likewise.
14192 * dirent/scandir64-tail.c: Likewise.
14193 * dirent/scandir64.c: Likewise.
14194 * dirent/scandirat.c: Likewise.
14195 * dirent/scandirat64.c: Likewise.
14196 * dirent/versionsort.c: Likewise.
14197 * dirent/versionsort64.c: Likewise.
14198 * include/dirent.h: Likewise.
14199
14200 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14201 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14202 for socketpair endpoint.
14203 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14204 WRITE_BUFFER_SIZE as buffer size for sending socket.
14205 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14206 issue on system where send is implemented with sendto syscall.
14207 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14208 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14209 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14210 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14211
14212 [BZ #21269]
14213 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14214 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14215 sa_restorer for vDSO case.
14216 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14217
14218 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14219
14220 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14221 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14222 * hurd/hurd/ioctl.h: Include <mach/port.h>
14223 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14224 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14225 <mach/mach_types.h> and <mach/message.h>.
14226 (headers): Move mach/param.h to bits/mach/param.h.
14227 * sysdeps/mach/i386/mach/param.h: Move file to ...
14228 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14229 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14230 of <mach/param.h>.
14231 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14232 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14233 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14234 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14235 trivial, for C++ conformity.
14236 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14237 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14238 Process mig output through $(migheadersed).
14239 * hurd/Makefile (migheadersed): Define variable.
14240 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14241 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14242 headers.
14243 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14244 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14245 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14246 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14247 <bits/types/sigset_t.h>.
14248 [!defined __USE_GNU]: Do not #error out.
14249 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14250 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14251 Include <stddef.h> and <bits/types/sigset_t.h>
14252 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14253 instead of sighandler_t.
14254 * stdlib/errno.h (error_t): Move definition to...
14255 * bits/types/error_t.h: ... new header.
14256 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14257 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14258 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14259 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14260 * hurd/hurd.h: Include <bits/types/error_t.h>
14261 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14262 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14263 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14264 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14265 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14266 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14267 * sysdeps/mach/hurd/futimens.c: New file.
14268
14269 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14270
14271 [BZ #22918]
14272 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14273 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14274 * nscd/gai.c (__nss_hosts_database): Readd definition.
14275 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14276 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14277 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14278
14279 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14280
14281 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14282 (ifunc_one): Likewise.
14283
14284 2018-03-01 DJ Delorie <dj@delorie.com>
14285
14286 [BZ #22342]
14287 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14288 key value.
14289
14290 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14291
14292 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14293 `match_pid' parameter.
14294 (td_ta_thr_iter): Update accordingly.
14295
14296 2018-03-01 Florian Weimer <fweimer@redhat.com>
14297
14298 * nptl/Makefile (install-lib-ldscripts): Remove.
14299 (install): Remove rule.
14300 ($(inst_libdir)/libpthread.so): Likewise.
14301
14302 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14303
14304 [BZ #22896]
14305 * localedata/locales/an_ES: update month and day names,
14306 improve d_fmt, improve postal_fmt, add country_post,
14307 add country_isbn
14308
14309 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14310
14311 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14312 Ukrainian instead of Bulgarian.
14313
14314 2018-03-01 Florian Weimer <fweimer@redhat.com>
14315
14316 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14317 reference.
14318
14319 2018-03-01 Florian Weimer <fweimer@redhat.com>
14320
14321 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14322 * nptl/Makefile (routines): Add pthread_atfork.
14323 (static-only-routines): Set to pthread_atfork.
14324 (libpthread-routines): Remove pthread_atfork.
14325 (libpthread-static-only-routines): Remove.
14326 (install): Update comment.
14327 (libpthread.so): Do not install libpthread_nonshared.a.
14328 (tests): Do not link with libpthread_nonshared.a.
14329 (generated): Remove libpthread_nonshared.a.
14330 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14331 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14332 with libpthread_nonshared.a.
14333
14334 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14335
14336 [BZ #22902]
14337 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14338 (libc_feholdexcept_setroundf128): New macro.
14339 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14340
14341 [BZ #15105]
14342 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14343 libc_hidden_def.
14344 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14345 * include/inttypes.h: New file.
14346
14347 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14348
14349 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14350 -Os in two more places.
14351
14352 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14353
14354 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14355 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14356 be sorted correctly at the moment because of a bug.
14357
14358 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14359
14360 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14361 treat ñ as a primary different character, sync the collation
14362 for Spanish with CLDR.
14363 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14364 * localedata/Makefile: Add new test files.
14365 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14366 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14367 collation order.
14368 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14369 * localedata/am_ET.UTF-8.in: New test file.
14370 * localedata/az_AZ.UTF-8.in: Likewise.
14371 * localedata/be_BY.UTF-8.in: Likewise.
14372 * localedata/ber_DZ.UTF-8.in: Likewise.
14373 * localedata/ber_MA.UTF-8.in: Likewise.
14374 * localedata/bg_BG.UTF-8.in: Likewise.
14375 * localedata/br_FR.UTF-8.in: Likewise.
14376 * localedata/cmn_TW.UTF-8.in: Likewise.
14377 * localedata/crh_UA.UTF-8.in: Likewise.
14378 * localedata/csb_PL.UTF-8.in: Likewise.
14379 * localedata/cv_RU.UTF-8.in: Likewise.
14380 * localedata/cy_GB.UTF-8.in: Likewise.
14381 * localedata/dz_BT.UTF-8.in: Likewise.
14382 * localedata/eo.UTF-8.in: Likewise.
14383 * localedata/es_ES.UTF-8.in: Likewise.
14384 * localedata/fa_IR.UTF-8.in: Likewise.
14385 * localedata/fi_FI.UTF-8.in: Likewise.
14386 * localedata/fil_PH.UTF-8.in: Likewise.
14387 * localedata/fur_IT.UTF-8.in: Likewise.
14388 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14389 * localedata/ha_NG.UTF-8.in: Likewise.
14390 * localedata/ig_NG.UTF-8.in: Likewise.
14391 * localedata/ik_CA.UTF-8.in: Likewise.
14392 * localedata/kk_KZ.UTF-8.in: Likewise.
14393 * localedata/ku_TR.UTF-8.in: Likewise.
14394 * localedata/ky_KG.UTF-8.in: Likewise.
14395 * localedata/ln_CD.UTF-8.in: Likewise.
14396 * localedata/mi_NZ.UTF-8.in: Likewise.
14397 * localedata/ml_IN.UTF-8.in: Likewise.
14398 * localedata/mn_MN.UTF-8.in: Likewise.
14399 * localedata/mr_IN.UTF-8.in: Likewise.
14400 * localedata/mt_MT.UTF-8.in: Likewise.
14401 * localedata/nb_NO.UTF-8.in: Likewise.
14402 * localedata/om_KE.UTF-8.in: Likewise.
14403 * localedata/os_RU.UTF-8.in: Likewise.
14404 * localedata/ps_AF.UTF-8.in: Likewise.
14405 * localedata/ro_RO.UTF-8.in: Likewise.
14406 * localedata/ru_RU.UTF-8.in: Likewise.
14407 * localedata/sc_IT.UTF-8.in: Likewise.
14408 * localedata/se_NO.UTF-8.in: Likewise.
14409 * localedata/sq_AL.UTF-8.in: Likewise.
14410 * localedata/sv_SE.UTF-8.in: Likewise.
14411 * localedata/szl_PL.UTF-8.in: Likewise.
14412 * localedata/tg_TJ.UTF-8.in: Likewise.
14413 * localedata/tk_TM.UTF-8.in: Likewise.
14414 * localedata/tt_RU.UTF-8.in: Likewise.
14415 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14416 * localedata/ug_CN.UTF-8.in: Likewise.
14417 * localedata/uz_UZ.UTF-8.in: Likewise.
14418 * localedata/vi_VN.UTF-8.in: Likewise.
14419 * localedata/yi_US.UTF-8.in: Likewise.
14420 * localedata/yo_NG.UTF-8.in: Likewise.
14421 * localedata/zh_CN.UTF-8.in: Likewise.
14422 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14423 file and fix bugs in the collation.
14424 * localedata/locales/az_AZ: Likewise.
14425 * localedata/locales/be_BY: Likewise.
14426 * localedata/locales/ber_DZ: Likewise.
14427 * localedata/locales/ber_MA: Likewise.
14428 * localedata/locales/bg_BG: Likewise.
14429 * localedata/locales/br_FR: Likewise.
14430 * localedata/locales/br_FR@euro: Likewise.
14431 * localedata/locales/ca_ES: Likewise.
14432 * localedata/locales/cns11643_stroke: Likewise.
14433 * localedata/locales/crh_UA: Likewise.
14434 * localedata/locales/cs_CZ: Likewise.
14435 * localedata/locales/csb_PL: Likewise.
14436 * localedata/locales/cv_RU: Likewise.
14437 * localedata/locales/cy_GB: Likewise.
14438 * localedata/locales/da_DK: Likewise.
14439 * localedata/locales/dz_BT: Likewise.
14440 * localedata/locales/en_CA: Likewise.
14441 * localedata/locales/eo: Likewise.
14442 * localedata/locales/es_CU: Likewise.
14443 * localedata/locales/es_EC: Likewise.
14444 * localedata/locales/es_ES: Likewise.
14445 * localedata/locales/es_US: Likewise.
14446 * localedata/locales/et_EE: Likewise.
14447 * localedata/locales/fa_IR: Likewise.
14448 * localedata/locales/fi_FI: Likewise.
14449 * localedata/locales/fil_PH: Likewise.
14450 * localedata/locales/fur_IT: Likewise.
14451 * localedata/locales/gez_ER@abegede: Likewise.
14452 * localedata/locales/ha_NG: Likewise.
14453 * localedata/locales/hr_HR: Likewise.
14454 * localedata/locales/hsb_DE: Likewise.
14455 * localedata/locales/hu_HU: Likewise.
14456 * localedata/locales/ig_NG: Likewise.
14457 * localedata/locales/ik_CA: Likewise.
14458 * localedata/locales/is_IS: Likewise.
14459 * localedata/locales/iso14651_t1_pinyin: Likewise.
14460 * localedata/locales/kk_KZ: Likewise.
14461 * localedata/locales/ku_TR: Likewise.
14462 * localedata/locales/ky_KG: Likewise.
14463 * localedata/locales/ln_CD: Likewise.
14464 * localedata/locales/lt_LT: Likewise.
14465 * localedata/locales/lv_LV: Likewise.
14466 * localedata/locales/mi_NZ: Likewise.
14467 * localedata/locales/ml_IN: Likewise.
14468 * localedata/locales/mn_MN: Likewise.
14469 * localedata/locales/mr_IN: Likewise.
14470 * localedata/locales/mt_MT: Likewise.
14471 * localedata/locales/nb_NO: Likewise.
14472 * localedata/locales/om_KE: Likewise.
14473 * localedata/locales/os_RU: Likewise.
14474 * localedata/locales/pl_PL: Likewise.
14475 * localedata/locales/ps_AF: Likewise.
14476 * localedata/locales/ro_RO: Likewise.
14477 * localedata/locales/ru_RU: Likewise.
14478 * localedata/locales/ru_UA: Likewise.
14479 * localedata/locales/sc_IT: Likewise.
14480 * localedata/locales/se_NO: Likewise.
14481 * localedata/locales/si_LK: Likewise.
14482 * localedata/locales/sq_AL: Likewise.
14483 * localedata/locales/sv_FI: Likewise.
14484 * localedata/locales/sv_FI@euro: Likewise.
14485 * localedata/locales/sv_SE: Likewise.
14486 * localedata/locales/szl_PL: Likewise.
14487 * localedata/locales/tg_TJ: Likewise.
14488 * localedata/locales/ti_ER: Likewise.
14489 * localedata/locales/tk_TM: Likewise.
14490 * localedata/locales/tl_PH: Likewise.
14491 * localedata/locales/tr_TR: Likewise.
14492 * localedata/locales/tt_RU: Likewise.
14493 * localedata/locales/tt_RU@iqtelif: Likewise.
14494 * localedata/locales/ug_CN: Likewise.
14495 * localedata/locales/uk_UA: Likewise.
14496 * localedata/locales/uz_UZ: Likewise.
14497 * localedata/locales/uz_UZ@cyrillic: Likewise.
14498 * localedata/locales/vi_VN: Likewise.
14499 * localedata/locales/yi_US: Likewise.
14500 * localedata/locales/yo_NG: Likewise.
14501
14502 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14503
14504 * gen-locales.mk: Make test files which contain @ modifiers in their
14505 name work.
14506 * localedata/gen-locale.sh: Likewise.
14507
14508 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14509
14510 * posix/tst-fnmatch.input: Fix results for range expressions
14511 for non C locales.
14512 * posix/tst-regexloc.c: Do not use a range expression for
14513 de_DE.ISO-8859-1 locale.
14514
14515 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14516
14517 * posix/bug-regex5.c: Fix test case because with the new
14518 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14519 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14520 file.
14521
14522 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14523
14524 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14525 downloaded from ISO, the collation order of @-. and space has changed.
14526 Therefore, this test file needed to be adapted.
14527 * localedata/fr_CA.UTF-8.in: Likewise.
14528 * localedata/fr_FR.UTF-8.in: Likewise.
14529 * localedata/uk_UA.UTF-8.in: Likewise.
14530
14531 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14532
14533 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14534 order of ȥ in the new iso14651_t1_common file.
14535 * localedata/pl_PL.UTF-8.in: Likewise.
14536
14537 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14538
14539 * localedata/locales/iso14651_t1_common: Add sections for various
14540 scripts to the iso14651_t1_common file.
14541
14542 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14543
14544 * localedata/locales/iso14651_t1_common: Use the code point of a
14545 character in the fourth collation level instead of IGNORE for all
14546 entries which have IGNORE on all 4 levels.
14547
14548 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14549
14550 * localedata/locales/iso14651_t1_common: Add some convenient collation
14551 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14552 rules similar to those in CLDR.
14553
14554 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14555
14556 * localedata/locales/iso14651_t1_common: The new version of this
14557 file downloaded from ISO contained several syntax errors which
14558 are fixed by this patch.
14559
14560 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14561
14562 * localedata/locales/iso14651_t1_common: replace all <U.....>
14563 with <U000.....> because glibc understands only 4 digit or 8 digit
14564
14565 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14566
14567 * localedata/locales/iso14651_t1_common: Necessary changes
14568 to make the file downloaded from ISO usable by glibc.
14569
14570 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14571
14572 [BZ #14095]
14573 * localedata/locales/iso14651_t1_common: Update file to
14574 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14575
14576 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14577
14578 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14579 of <nptl/pthreadP.h>
14580 (thread_attr_compare): Move function to...
14581 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14582 * sysdeps/nptl/timer_routines.h: ... new header.
14583 * sysdeps/mach/hurd/gai_misc.h: New file.
14584
14585 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14586
14587 * string/strcoll_l.c: Include <libc-diag.h>.
14588 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14589 declarations of seq1 and seq2.
14590
14591 [BZ #15105]
14592 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14593 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14594
14595 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14596
14597 [BZ #22433]
14598 [BZ #22807]
14599 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14600 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14601 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14602 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14603 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14604 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14605
14606 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14607
14608 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14609 macros used in __ptrace_request.
14610
14611 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14612
14613 [BZ #22792]
14614 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14615 to $(CC).
14616 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14617 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14618 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14619 <tcb-offsets.h>.
14620
14621 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14622
14623 [BZ #15105]
14624 * ctype/ctype.c (tolower): Use libc_hidden_def.
14625 (toupper): Likewise.
14626 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14627 [!_ISOMAC] (toupper): Likewise.
14628
14629 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14630
14631 * localedata/Makefile: Remove --quiet argument when
14632 installing locales
14633
14634 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14635
14636 [BZ #17438]
14637 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14638 in d_fmt.
14639 * localedata/locales/pt_PT (LC_TIME): likewise
14640
14641 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14642
14643 [BZ #22646]
14644 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14645 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14646 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14647
14648 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14649
14650 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14651
14652 * nptl/Makefile (routines): Remove unregister-atfork.
14653 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14654 (fork_handler_alloc): Remove function.
14655 (fork_handlers, fork_handler_init): New variables.
14656 (__fork_lock): Rename to atfork_lock.
14657 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14658 to use a dynamic array to add/remove atfork handlers.
14659 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14660 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14661 Remove declaration.
14662 (fork_handler): Remove next, refcntr, and need_signal member.
14663 (__run_fork_handler_type): New enum.
14664 (__run_fork_handlers): New prototype.
14665 * nptl/register-atfork.c: Remove file.
14666 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14667
14668 * sysdeps/nptl/nptl-signals.h: Move to ...
14669 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14670 comments.
14671 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14672 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14673 unnecessary check for SIGTIMER.
14674 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14675 remove unnecessary removal of SIGTIMER.
14676 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14677 include-signals.h rename.
14678 * nptl/pthreadP.h: Likewise.
14679 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14680 __is_internal_signal instead of __nptl_is_internal_signal.
14681
14682 2018-02-22 Andrew Waterman <andrew@sifive.com>
14683
14684 [BZ # 22884]
14685 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14686 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14687 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14688 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14689
14690 2018-02-22 DJ Delorie <dj@delorie.com>
14691
14692 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14693
14694 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14695
14696 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14697 do_misaligned, not misaligned8.
14698
14699 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14700
14701 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14702 Add memcpy_thunderx2.
14703 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14704 Increment to 4.
14705 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14706 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14707 and IS_THUNDERX2PA checks.
14708 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14709 Use macro to set name appropriately.
14710 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14711 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14712 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14713 New macro.
14714 (IS_THUNDERX2): New macro.
14715
14716 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14717
14718 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14719
14720 2018-02-21 Zack Weinberg <zackw@panix.com>
14721
14722 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14723 Define here, unconditionally.
14724 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14725 * libio/libioP.h: Remove #if 0 blocks.
14726 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14727 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14728 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14729
14730 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14731 Assume weak_alias is always defined.
14732
14733 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14734 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14735 Remove #if 0 and #ifdef TODO blocks.
14736 Assume text_set_element is always defined.
14737
14738 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14739 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14740 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14741
14742 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14743 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14744 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14745 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14746 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14747 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14748 Reformat bit flags for _flags field to make occupancy clearer.
14749 Update commentary.
14750 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14751 Keep definitions consistent with those in libio/libio.h.
14752
14753 * libio/libio.h (_IO_file_flags): Remove macro.
14754 All uses changed to _flags.
14755
14756 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14757 (__HAVE_COLUMN, _IO_BE): Don't define.
14758 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14759 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14760 * libio/libioP.h (EOF): Don't define.
14761 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14762 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14763 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14764 testing _IO_UNIFIED_JUMPTABLES.
14765
14766 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14767 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14768 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14769 (_IO_size_t): Delete; all uses changed to size_t.
14770 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14771 (_IO_off_t): Delete; all uses changed to off_t.
14772 (_IO_off64_t): Delete; all uses changed to off64_t.
14773 (_IO_pid_t): Delete; all uses changed to pid_t.
14774 (_IO_uid_t): Delete; all uses changed to uid_t.
14775 (_IO_wint_t): Delete; all uses changed to wint_t.
14776 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14777 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14778 (_IO_cookie_io_functions_t): Delete; all uses changed to
14779 cookie_io_functions_t.
14780 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14781 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14782 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14783 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14784
14785 * libio/iofopncook.c: Remove unnecessary forward declarations.
14786 * libio/iolibio.h: Correct outdated commentary.
14787 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14788 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14789 Remove unnecessary casts.
14790 * stdio-common/getline.c: Use _IO_getdelim directly.
14791 Don't redefine ssize_t.
14792 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14793 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14794 Remove outdated comments.
14795 * stdio-common/vfscanf.c: Don't redefine va_list.
14796
14797 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14798 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14799 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14800 which are always true, and __cplusplus, which is always false.
14801
14802 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14803
14804 [BZ #15105]
14805 [BZ #19463]
14806 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14807 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14808 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14809 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14810 libc_hidden_proto.
14811 [!_ISOMAC] (putc_unlocked): Likewise.
14812 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14813 define inline if [__USE_EXTERN_INLINES].
14814 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14815 putc_unlocked.
14816
14817 [BZ #15105]
14818 [BZ #19463]
14819 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14820 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14821 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14822 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14823 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14824 getc_unlocked.
14825 * time/tzfile.c (__tzfile_read): Likewise.
14826
14827 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14828
14829 [BZ #22517]
14830 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14831
14832 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14833
14834 * io/fcntl.h: Fix a typo in a comment.
14835
14836 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14837
14838 [BZ #22862]
14839 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14840 define _DEFAULT_SOURCE.
14841 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14842
14843 2018-02-21 Florian Weimer <fweimer@redhat.com>
14844
14845 [BZ #20890]
14846 * elf/cache.c (save_cache): Call fsync on temporary file before
14847 renaming it.
14848 (save_aux_cache): Call fdatasync on temporary file before renaming
14849 it.
14850
14851 2018-02-21 Florian Weimer <fweimer@redhat.com>
14852
14853 [BZ #22787]
14854 * include/caller.h: Remove file.
14855 * elf/dl-caller.c: Likewise.
14856 * elf/Makefile (dl-routines): Remove dl-caller.
14857 (shared-only-routines): Do not add dl-caller.
14858 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14859 __check_caller.
14860 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14861 member.
14862 (dl_open_worker): Do not call __check_caller.
14863 (_dl_open): Do not set caller_dl_open member.
14864 * elf/rtld.c (_rtld_global_ro): Do not initialize
14865 _dl_check_caller member.
14866 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14867 _dl_check_caller member.
14868 (_dl_check_caller): Remove declaration.
14869 * sysdeps/unix/sysv/linux/dl-execstack.c
14870 (_dl_make_stack_executable): Do not call __check_caller.
14871
14872 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14873
14874 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14875 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14876
14877 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14878
14879 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14880 description.
14881
14882 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14883
14884 [BZ #16335]
14885 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
14886 of 199606L, 200112L, and 200809L.
14887 (_XOPEN_SOURCE): Document special values of 600 and 700.
14888 (_ISOC11_SOURCE): Document macro.
14889 (_ATFILE_SOURCE): Likewise.
14890 (_FORTIFY_SOURCE): Likewise.
14891
14892 2018-02-19 Joseph Myers <joseph@codesourcery.com>
14893
14894 [BZ #15105]
14895 [BZ #19463]
14896 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
14897 and define as weak alias of __ferror_unlocked. Use
14898 libc_hidden_weak.
14899 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
14900 libc_hidden_proto.
14901 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
14902 function if [__USE_EXTERN_INLINES].
14903 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
14904 ferror_unlocked.
14905
14906 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
14907
14908 [BZ #6889]
14909 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
14910
14911 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14912
14913 [BZ #22818]
14914 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
14915 the GLIBC_2.1 version.
14916
14917 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14918
14919 [BZ #21508]
14920 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
14921 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
14922 intl/tst-gettext-de.po from po/de.po by removing the
14923 POT-Creation-Date line.
14924 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
14925 ../po/de.po.
14926 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
14927 ../po/de.po.
14928
14929 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14930
14931 * mach/Makefile (headers): Add mach/param.h.
14932 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
14933 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
14934 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
14935 (__ptsname_r): Move implementation to...
14936 (__ptsname_internal): ... new function. Add filling the STP
14937 structure.
14938
14939 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
14940
14941 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
14942 idouble to 1 ULP.
14943
14944 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
14945
14946 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
14947 syntax.
14948
14949 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
14950
14951 * nptl/Makefile (tst-mutex8-ENV): Delete.
14952 * nptl/tst-mutex8.c (check_type):
14953 Add runtime check if mutex will be elided.
14954
14955 2018-02-15 Joseph Myers <joseph@codesourcery.com>
14956
14957 [BZ #20980]
14958 [BZ #21234]
14959 * manual/install.texi (Configuring and compiling): Describe
14960 passing CC and CFLAGS on configure command line, not as
14961 environment variables. Use @code markup on those variables.
14962 Specify what options go in CC and what go in CFLAGS. Note the
14963 requirement to compile with optimization.
14964 * INSTALL: Regenerated.
14965
14966 [BZ #18124]
14967 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
14968 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
14969 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
14970 __sigprocmask instead of sigprocmask.
14971 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
14972 Likewise.
14973 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
14974 __sigsetjmp and sigprocmask.
14975
14976 [BZ #15105]
14977 * include/argz.h (argz_next): Use libc_hidden_proto.
14978 (__argz_next): Likewise.
14979 * string-argz-next.c (__argz_next): Use libc_hidden_def.
14980 (argz_next): Use libc_hidden_weak.
14981
14982 [BZ #15105]
14983 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
14984 libc_hidden_proto.
14985 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
14986 libc_hidden_def.
14987
14988 [BZ #15105]
14989 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
14990 libc_hidden_proto.
14991 * libio/iofputs.c (fputs): Use libc_hidden_weak.
14992
14993 [BZ #15105]
14994 [BZ #19463]
14995 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
14996 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
14997 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
14998 (__feof_unlocked): New declaration, and inline function if
14999 [__USE_EXTERN_INLINES].
15000 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15001 instead of feof_unlocked.
15002 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15003 * nss/nsswitch.c (nss_parse_file): Likewise.
15004 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15005 Likewise.
15006 * time/getdate.c (__getdate_r): Likewise.
15007 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15008 Define as macro to call __feof_unlocked.
15009
15010 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15011
15012 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15013
15014 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15015
15016 * math/Makefile: Remove mpexp.c and mplog.c
15017 * sysdeps/i386/fpu/mpexp.c: Delete file.
15018 * sysdeps/i386/fpu/mplog.c: Likewise.
15019 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15020 * sysdeps/ia64/fpu/mplog.c: Likewise.
15021 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15022 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15023 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15024 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15025 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15026 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15027 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15028 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15029 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15030 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15031 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15032 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15033 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15034 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15035 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15036 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15037
15038 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15039
15040 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15041
15042 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15043
15044 * sysdeps/sh/libm-test-ulps: Update.
15045
15046 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15047
15048 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15049 idouble to 1 ULP.
15050
15051 2018-02-12 Zack Weinberg <zackw@panix.com>
15052
15053 [BZ #19239]
15054 * posix/sys/types.h: Don't include sys/sysmacros.h.
15055 * misc/sys/sysmacros.h: Remove the conditional deprecation
15056 warnings for the macros defined by this header.
15057
15058 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15059
15060 * manual/probes.texi: Remove slowexp probes.
15061 * math/Makefile: Remove slowexp.
15062 * sysdeps/generic/math_private.h (__slowexp): Remove.
15063 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15064 document error bounds.
15065 * sysdeps/i386/fpu/slowexp.c: Remove.
15066 * sysdeps/ia64/fpu/slowexp.c: Remove.
15067 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15068 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15069 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15070 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15071 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15072 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15073 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15074 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15075 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15076 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15077 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15078
15079 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15080
15081 [BZ #13932]
15082 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15083 * benchtests/pow-inputs: Update comment for slow path cases.
15084 * manual/probes.texi (slowpow_p10): Delete removed probe.
15085 (slowpow_p10): Likewise.
15086 * math/Makefile: Remove halfulp.c and slowpow.c.
15087 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15088 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15089 (__halfulp): Remove.
15090 (__slowpow): Remove.
15091 * sysdeps/i386/fpu/halfulp.c: Delete file.
15092 * sysdeps/i386/fpu/slowpow.c: Likewise.
15093 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15094 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15095 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15096 improve comments and add error analysis.
15097 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15098 (power1): Remove function:
15099 (log1): Remove error argument, add error analysis.
15100 (my_log2): Remove function.
15101 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15102 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15103 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15104 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15105 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15106 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15107 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15108 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15109 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15110 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15111 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15112 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15113 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15114 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15115
15116 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15117
15118 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15119 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15120
15121 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15122
15123 [BZ #22433]
15124 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15125 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15126 and PTRACE_SETHBPREGS.
15127
15128 2018-02-10 Zack Weinberg <zackw@panix.com>
15129
15130 [BZ #22830]
15131 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15132 correctly.
15133 * malloc/tst-malloc-stats-cancellation.c: New test case.
15134 * malloc/Makefile: Add new test case.
15135
15136 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15137
15138 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15139
15140 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15141
15142 * math/Makefile (libm-narrow-fns): Add add.
15143 (libm-test-funcs-narrow): Likewise.
15144 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15145 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15146 * math/gen-auto-libm-tests.c (test_functions): Add add.
15147 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15148 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15149 (NARROW_ADD_TRIVIAL): Likewise.
15150 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15151 macro.
15152 (__daddl): Likewise.
15153 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15154 dadd.
15155 (CFLAGS-nldbl-dadd.c): New variable.
15156 (CFLAGS-nldbl-fadd.c): Likewise.
15157 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15158 __nldbl_daddl.
15159 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15160 prototype.
15161 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15162 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15163 * math/auto-libm-test-in: Add tests of add.
15164 * math/auto-libm-test-out-narrow-add: New generated file.
15165 * math/libm-test-narrow-add.inc: New file.
15166 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15167 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15168 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15169 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15170 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15171 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15172 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15173 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15174 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15175 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15176 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15177 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15178 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15179 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15180 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15181 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15182 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15183 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15184 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15185 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15186 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15187 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15188 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15189 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15190 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15191 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15192 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15193 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15194 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15195 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15196 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15197 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15198 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15199 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15200 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15201 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15202 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15203 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15204 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15205 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15206 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15207 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15208 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15209 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15210 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15211 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15212
15213 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15214 (f128-pairs): New variable.
15215 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15216 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15217 to CFLAGS.
15218 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15219 Also make tests add $(f128-loader-link) to gnulib-tests.
15220
15221 2018-02-09 DJ Delorie <dj@redhat.com>
15222
15223 [BZ #22827]
15224 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15225 64-bit ELF type for 64-bit ELF objects.
15226
15227 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15228
15229 * math/libm-test-driver.c (snan_tests_arg): New variable.
15230 * math/libm-test-support.h (snan_tests_arg): New declaration.
15231 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15232
15233 * math/Makefile (test-type-pairs): New variable.
15234 (test-type-pairs-f64xf128-yes): Likewise.
15235 (tests): Add test-narrow-macros.
15236 (libm-test-funcs-narrow): New variable.
15237 (libm-test-c-narrow): Likewise.
15238 (generated): Add $(libm-test-c-narrow).
15239 (libm-tests-base-narrow): New variable.
15240 (libm-tests-narrow): Likewise.
15241 (libm-tests): Add $(libm-tests-narrow).
15242 (libm-tests-for-type): Handle $(libm-tests-narrow).
15243 (libm-test-c-narrow-obj): New variable.
15244 ($(libm-test-c-narrow-obj)): New rule.
15245 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15246 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15247 $(o-iterator) to set dependencies and CFLAGS.
15248 * math/gen-auto-libm-tests.c: Document use for narrowing
15249 functions.
15250 (output_for_one_input_case): Take argument NARROW.
15251 (generate_output): Likewise. Update call to
15252 output_for_one_input_case.
15253 (main): Take --narrow option. Update call to generate_output.
15254 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15255 (apply_lit): Update call to _apply_lit.
15256 (apply_arglit): New function.
15257 (parse_args): Handle "a" arguments.
15258 (parse_auto_input): Handle format names using ":".
15259 * math/README.libm-test: Document "a" parameter type.
15260 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15261 (ARG_TYPE_TRUE_MIN): Likewise.
15262 (ARG_TYPE_MAX): Likwise.
15263 (ARG_MIN_EXP): Likewise.
15264 (ARG_MAX_EXP): Likewise.
15265 (ARG_MANT_DIG): Likewise.
15266 (TEST_COND_arg_ibm128): Likewise.
15267 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15268 (TEST_COND_arg_fmt): New macro.
15269 (init_max_error): Update prototype.
15270 * math/libm-test-support.c (test_ibm128): New variable.
15271 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15272 instead of using [TEST_COND_ibm128] conditional.
15273 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15274 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15275 [TEST_NARROW] (TEST_MSG): New definition.
15276 (arg_plus_zero): New macro.
15277 (arg_minus_zero): Likewise.
15278 (arg_plus_infty): Likewise.
15279 (arg_minus_infty): Likewise.
15280 (arg_qnan_value_pl): Likewise.
15281 (arg_qnan_value): Likewise.
15282 (arg_snan_value_pl): Likewise.
15283 (arg_snan_value): Likewise.
15284 (arg_max_value): Likewise.
15285 (arg_min_value): Likewise.
15286 (arg_min_subnorm_value): Likewise.
15287 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15288 (RUN_TEST_LOOP_aa_f): New macro.
15289 (TEST_SUFF): New macro.
15290 (TEST_SUFF_STR): Likewise.
15291 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15292 (TEST_COND_any_ibm128): New macro.
15293 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15294 this_func. Update call to init_max_error.
15295 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15296 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15297 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15298 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15299 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15300 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15301 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15302 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15303 * math/test-math-vector.h (TEST_NARROW): Likewise.
15304 * math/test-arg-double.h: New file.
15305 * math/test-arg-float128.h: Likewise.
15306 * math/test-arg-float32x.h: Likewise.
15307 * math/test-arg-float64.h: Likewise.
15308 * math/test-arg-float64x.h: Likewise.
15309 * math/test-arg-ldouble.h: Likewise.
15310 * math/test-math-narrow.h: Likewise.
15311 * math/test-narrow-macros.c: Likewise.
15312 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15313 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15314 test-narrow-macros-ldbl-64.
15315 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15316
15317 * math/bits/mathcalls-narrow.h: New file.
15318 * include/bits/mathcalls-narrow.h: Likewise.
15319 * math/math-narrow.h: Likewise.
15320 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15321 (__MATHCALL_NARROW_ARGS_2): Likewise.
15322 (__MATHCALL_NARROW_ARGS_3): Likewise.
15323 (__MATHCALL_NARROW_NORMAL): Likewise.
15324 (__MATHCALL_NARROW_REDIR): Likewise.
15325 (__MATHCALL_NARROW): Likewise.
15326 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15327 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15328 defined.
15329 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15330 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15331 (libm-narrow-fns): New variable.
15332 (libm-narrow-types-basic): Likewise.
15333 (libm-narrow-types-ldouble-yes): Likewise.
15334 (libm-narrow-types-float128-yes): Likewise.
15335 (libm-narrow-types-float128-alias-yes): Likewise.
15336 (libm-narrow-types): Likewise.
15337 (libm-routines): Add narrowing functions.
15338 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15339 (libc_feholdexcept_setroundf128): New macro.
15340 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15341 * sysdeps/ieee754/float128/float128_private.h: Include
15342 <math/math-narrow.h>.
15343 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15344 Undefine and redefine.
15345 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15346 (libm_alias_float_ldouble): Undefine and redefine.
15347 (libm_alias_double_ldouble): Likewise.
15348
15349 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15350
15351 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15352
15353 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15354 FPCR/FPSR.
15355
15356 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15357
15358 * manual/creature.texi: Convert references to gcc.info to gcc.
15359 * manual/stdio.texi: Likewise.
15360 * manual/string.texi: Likewise.
15361
15362 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15363
15364 [BZ #17979]
15365 * posix/bits/types.h (__int_least8_t): New typedef.
15366 (__uint_least8_t): Likewise.
15367 (__int_least16_t): Likewise.
15368 (__uint_least16_t): Likewise.
15369 (__int_least32_t): Likewise.
15370 (__uint_least32_t): Likewise.
15371 (__int_least64_t): Likewise.
15372 (__uint_least64_t): Likewise.
15373 * sysdeps/generic/stdint.h (int_least8_t): Define using
15374 __int_least8_t.
15375 (int_least16_t): Define using __int_least16_t.
15376 (int_least32_t): Define using __int_least32_t.
15377 (int_least64_t): Define using __int_least64_t.
15378 (uint_least8_t): Define using __uint_least8_t.
15379 (uint_least16_t): Define using __uint_least16_t.
15380 (uint_least32_t): Define using __uint_least32_t.
15381 (uint_least64_t): Define using __uint_least64_t.
15382 * wcsmbs/uchar.h: Include <bits/types.h>.
15383 (char16_t): Define using __uint_least16_t conditional only on
15384 [!__USE_ISOCXX11].
15385 (char32_t): Define using __uint_least32_t conditional only on
15386 [!__USE_ISOCXX11].
15387 * wcsmbs/test-char-types.c: New file.
15388 * wcsmbs/Makefile (tests): Add test-char-types.
15389
15390 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15391 version to 4.0.1.
15392
15393 2018-02-07 Zack Weinberg <zackw@panix.com>
15394
15395 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15396 Delete all contents except for definitions of _G_HAVE_MMAP and
15397 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15398 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15399 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15400 change as above.
15401
15402 * libio/libio.h: Don't include bits/_G_config.h here.
15403 Include stddef.h with __need_wchar_t defined. Include
15404 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15405 Define _IO_iconv_t here, directly.
15406 Don't define _IO_HAVE_ST_BLKSIZE.
15407 * libio/libioP.h: Include _G_config.h here. Move include of
15408 shlib-compat.h up with rest of includes. Simplify conditionals
15409 controlling definition of _IO_JUMPS_OFFSET.
15410
15411 * csu/init.c: Remove always-true #if around entire file.
15412 Don't include stdio.h. Set _IO_stdin_used to hardwired
15413 constant 0x20001, and update commentary.
15414 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15415 Replace all uses of _G_va_list with __gnuc_va_list.
15416 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15417 instead of #if _IO_HAVE_ST_BLKSIZE.
15418 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15419 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15420 not #ifdef.
15421
15422 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15423 multiple-include guard to match.
15424 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15425 into this file.
15426 Remove preprocessor conditionals that are always true and/or
15427 redundant to other preprocessor conditionals in the same nest.
15428 Include shlib-compat.h unconditionally.
15429 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15430 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15431 defined after including stdio.h.
15432 Use __BEGIN_DECLS/__END_DECLS.
15433
15434 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15435 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15436 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15437
15438 2018-02-07 Zack Weinberg <zackw@panix.com>
15439
15440 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15441 New single-type headers split from _G_config.h.
15442 * libio/bits/types/cookie_io_functions_t.h
15443 * libio/bits/types/struct_FILE.h
15444 New single-type headers split from libio.h.
15445
15446 * libio/Makefile: Install the above new headers. Don't install
15447 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15448 bits/libio-ldbl.h.
15449 * libio/_G_config.h, libio/libio.h: Delete file.
15450
15451 * libio/bits/libio.h: Remove improper-inclusion guard.
15452 Include stdio.h and don't repeat anything that it does.
15453 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15454 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15455 __io_read_fn as cookie_read_function_t,
15456 __io_write_fn as cookie_write_function_t,
15457 __io_seek_fn as cookie_seek_function_t,
15458 __io_close_fn as cookie_close_function_t,
15459 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15460 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15461 here, in the "compatibility defines" section. Remove an #if 0
15462 block. Use the "body" macros from bits/types/struct_FILE.h to
15463 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15464 and _IO_ferror_unlocked.
15465 Move prototypes of __uflow and __overflow...
15466
15467 * libio/stdio.h: ...here. Don't include bits/libio.h.
15468 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15469 directly from stdarg.h. Include bits/types/__fpos_t.h,
15470 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15471 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15472 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15473 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15474 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15475 __ssize_t, not _IO_ssize_t. Unconditionally define
15476 BUFSIZ as 8192 and EOF as (-1).
15477
15478 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15479 macros from bits/types/struct_FILE.h instead of _IO_* macros
15480 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15481 instead of _IO_ssize_t.
15482 * libio/bits/stdio2.h: Similarly.
15483
15484 * libio/iolibio.h: Add multiple-include guard.
15485 Include bits/libio.h after stdio.h.
15486 * libio/libioP.h: Add multiple-include guard.
15487 Include stdio.h and bits/libio.h before iolibio.h.
15488
15489 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15490 * include/bits/types/cookie_io_functions_t.h
15491 * include/bits/types/struct_FILE.h: New wrappers.
15492
15493 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15494 Get definitions of _G_fpos_t and _G_fpos64_t from
15495 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15496 respectively. Remove improper-inclusion guards.
15497
15498 * conform/data/stdio.h-data: Update expectations of va_list.
15499 * scripts/check-installed-headers.sh: Remove special case for
15500 libio.h and _G_config.h.
15501
15502 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15503
15504 [BZ #15105]
15505 [BZ #19463]
15506 * include/sys/sysmacros.h [!_ISOMAC]
15507 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15508 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15509 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15510 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15511 libc_hidden_proto.
15512 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15513 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15514 Likewise.
15515 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15516 Undefine and redefine to add use __gnu_dev_ prefix.
15517 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15518 Likewise.
15519 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15520 and define as hidden inline function.
15521 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15522 Likewise.
15523 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15524 Likewise.
15525 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15526 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15527 (gnu_dev_minor): Likewise.
15528 (gnu_dev_makedev): Likewise.
15529 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15530 makedev.
15531 * posix/wordexp.c (exec_comm_child): Likewise.
15532 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15533 instead of minor and __gnu_dev_major instead of major.
15534 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15535 __gnu_dev_major instead of major.
15536 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15537 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15538 instead of gnu_dev_minor.
15539 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15540 (SLAVE_P): Likewise.
15541 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15542 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15543 instead of major.
15544
15545 [BZ #21313]
15546 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15547 in another place.
15548 * locale/weightwc.h (findidx): Likewise.
15549
15550 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15551
15552 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15553 (slowlog_inexact): Likewise
15554 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15555 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15556
15557 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15558
15559 [BZ #22797]
15560 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15561 missing second underscore to parameter name.
15562
15563 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15564
15565 [BZ #14508]
15566 [BZ #15512]
15567 [BZ #17082]
15568 [BZ #20530]
15569 * bits/byteswap.h: Update file comment. Do not include
15570 <bits/byteswap-16.h>.
15571 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15572 constant.
15573 (__bswap_16): Define as inline function.
15574 (__bswap_constant_32): Reformat definition.
15575 (__bswap_32): Always define as inline function, not macro, using
15576 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15577 otherwise __bswap_constant_32.
15578 (__bswap_constant_64): Reformat definition. Do not use
15579 __extension__ here.
15580 (__bswap_64): Always define as inline function, not macro. Use
15581 __extension__ on function definition. Use __builtin_bswap64 if
15582 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15583 * string/test-endian-file-scope.c: New file.
15584 * string/test-endian-sign-conversion.c: Likewise.
15585 * string/Makefile (headers): Remove bits/byteswap-16.h.
15586 (tests): Add test-endian-file-scope and
15587 test-endian-sign-conversion.
15588 (CFLAGS-test-endian-sign-conversion.c): New variable.
15589 * bits/byteswap-16.h: Remove file.
15590 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15591 * sysdeps/ia64/bits/byteswap.h: Likewise.
15592 * sysdeps/m68k/bits/byteswap.h: Likewise.
15593 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15594 * sysdeps/s390/bits/byteswap.h: Likewise.
15595 * sysdeps/tile/bits/byteswap.h: Likewise.
15596 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15597 * sysdeps/x86/bits/byteswap.h: Likewise.
15598
15599 [BZ #17721]
15600 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15601 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15602 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15603 199901L] (__restrict): Define to restrict.
15604
15605 [BZ #19667]
15606 * string/testcopy.c: Include <support/support.h>. Do not include
15607 <malloc.h>. Use <support/test-driver.c>.
15608 (main): Rename to do_test. Make static. Use xmalloc instead of
15609 malloc.
15610
15611 [BZ #13575]
15612 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15613 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15614 (SSIZE_MAX): Define to INT_MAX.
15615 * posix/test-ssize-max.c: New file.
15616 * posix/Makefile (tests): Add test-ssize-max.
15617
15618 [BZ #19668]
15619 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15620 <support/support.h>. Do not include <malloc.h>.
15621 (query_auxv): Use xmalloc instead of malloc.
15622
15623 [BZ #14553]
15624 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15625 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15626 instead of loff_t.
15627
15628 2018-02-06 Florian Weimer <fweimer@redhat.com>
15629
15630 [BZ #18023]
15631 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15632 Use scratch_buffer instead of extend_alloca.
15633
15634 2018-02-06 Zack Weinberg <zackw@panix.com>
15635
15636 * libio/stdio.h: Don't define getc or putc as macros.
15637 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15638 not _IO_getc and _IO_putc.
15639
15640 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15641 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15642
15643 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15644
15645 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15646 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15647
15648 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15649
15650 [BZ #14890]
15651 * elf/elf.h (NT_PRFPREG): New macro.
15652 (NT_S390_VXRS_LOW): Likewise.
15653 (NT_S390_VXRS_HIGH): Likewise.
15654 (NT_S390_GS_CB): Likewise.
15655 (NT_S390_GS_BC): Likewise.
15656 (NT_S390_RI_CB): Likewise.
15657
15658 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15659 (MAP_SYNC): New macro.
15660 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15661 Likewise.
15662 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15663 (MAP_SYNC): Likewise.
15664 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15665 (MAP_SYNC): Likewise.
15666 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15667 (MAP_SYNC): Likewise.
15668 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15669 (MAP_SYNC): Likewise.
15670 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15671 (MAP_SYNC): Likewise.
15672 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15673 (MAP_SYNC): Likewise.
15674 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15675 Likewise.
15676 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15677 Likewise.
15678
15679 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15680 (MAP_SHARED_VALIDATE): New macro.
15681 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15682 (MAP_SHARED_VALIDATE): Likewise.
15683
15684 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15685
15686 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15687 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15688 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15689
15690 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15691
15692 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15693 (DT_NUM): Updated to 35.
15694
15695 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15696
15697 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15698 __builtin_expect with __glibc_likely and __glibc_unlikely.
15699 (elf_machine_rela): Likewise.
15700 (elf_machine_lazy_rel): Likewise.
15701
15702 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15703
15704 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15705 __builtin_expect with __glibc_likely and __glibc_unlikely.
15706 (elf_machine_lazy_rel): Likewise.
15707
15708 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15709
15710 [BZ #22638]
15711 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15712 SHARED.
15713 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15714
15715 2018-02-05 Andreas Schwab <schwab@suse.de>
15716
15717 [BZ #22761]
15718 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15719 string.
15720
15721 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15722
15723 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15724 not check against PTHREAD_STACK_MIN.
15725
15726 2018-02-02 Sean McKean <smckean83@gmail.com>
15727
15728 [BZ #22735]
15729 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15730
15731 2018-02-02 Florian Weimer <fweimer@redhat.com>
15732
15733 [BZ #22753]
15734 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15735 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15736 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15737 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15738 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15739 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15740 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15741 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15742 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15743 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15744 * misc/tst-preadvwritev2.c (do_test): Call it.
15745 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15746
15747 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15748
15749 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15750
15751 * benchtests/bench-memcmp.c: Print json instead of plain text.
15752
15753 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15754 every test run.
15755
15756 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15757
15758 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15759 version to 4.15.
15760 (s390_sthyi): New syscall.
15761
15762 * sysdeps/generic/ldbl-classify-compat.h: New file.
15763 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15764 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15765 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15766 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15767 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15768 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15769 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15770 <ldbl-classify-compat.h>.
15771 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15772 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15773 <ldbl-classify-compat.h>.
15774 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15775 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15776 <ldbl-classify-compat.h>.
15777 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15778 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15779 <ldbl-classify-compat.h>.
15780 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15781 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15782 <ldbl-classify-compat.h>.
15783 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15784 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15785 <ldbl-classify-compat.h>.
15786 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15787 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15788 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15789 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15790 * sysdeps/microblaze/math_private.h: Likewise.
15791 * sysdeps/nios2/math_private.h: Likewise.
15792 * sysdeps/sh/math_private.h: Likewise.
15793
15794 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15795 * sysdeps/m68k/coldfire/math_private.h: ... here.
15796 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15797 * sysdeps/tile/math_private.h: Likewise.
15798 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15799 Remove macro.
15800 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15801 Likewise.
15802
15803 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15804 Remove macro.
15805 (libc_fetestexcept): Likewise.
15806 (libc_feupdateenv_test): Likewise.
15807 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15808 (libc_fetestexcept): Likewise.
15809 (libc_feupdateenv_test): Likewise.
15810 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15811 (libc_fetestexcept): Likewise.
15812 (libc_feupdateenv_test): Likewise.
15813 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15814 (libc_fetestexcept): Likewise.
15815 (libc_feupdateenv_test): Likewise.
15816
15817 * sysdeps/generic/math_private.h
15818 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15819 New inline function.
15820 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15821 Likewise.
15822
15823 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15824 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15825 * sysdeps/generic/math_private.h
15826 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15827 inline function.
15828 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15829 Likewise.
15830 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15831 Likewise.
15832 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15833 Likewise.
15834 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15835 Likewise.
15836 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15837 Likewise.
15838 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15839 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15840 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15841 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15842 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15843 (__fegetenv): Likewise.
15844 (fesetenv): Likewise.
15845 (__fesetenv): Likewise.
15846 (feupdateenv): Likewise.
15847 (__feupdateenv): Likewise.
15848 (fegetround): Likewise.
15849 (__fegetround): Likewise.
15850 (fesetround): Likewise.
15851 (__fesetround): Likewise.
15852
15853 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15854 (feraiseexcept): New macro.
15855 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15856 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15857 Remove macro.
15858 (__feraiseexcept): Likewise.
15859 (feclearexcept): Likewise.
15860 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15861 (__feraiseexcept): Likewise.
15862 (feclearexcept): Likewise.
15863 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15864 (__feraiseexcept): Likewise.
15865 (feclearexcept): Likewise.
15866 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15867 (__feraiseexcept): Likewise.
15868 (feclearexcept): Likewise.
15869 (fetestexcept): Likewise.
15870
15871 * sysdeps/m68k/coldfire/math-tests.h: New file.
15872
15873 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15874 * sysdeps/m68k/bits/fenv.h: ... here.
15875 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15876 not define.
15877 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15878 Likewise.
15879 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15880 Likewise.
15881 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15882 Likewise.
15883 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
15884 Likewise.
15885 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
15886 Define to 0.
15887 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
15888 (__FE_UNDEFINED): New enum constant.
15889 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
15890 Do not define.
15891 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
15892 Likewise.
15893 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
15894 Likewise.
15895 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
15896 to match generic bits/fenv.h.
15897 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
15898 Do not define.
15899
15900 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
15901 packed on bits.
15902 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
15903 * soft-fp/half.h (union _FP_UNION_H): Likewise.
15904 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
15905 * soft-fp/single.h (union _FP_UNION_S): Likewise.
15906
15907 2018-02-01 Carlos O'Donell <carlos@redhat.com>
15908 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
15909 Joseph Myers <joseph@codesourcery.com>
15910
15911 [BZ #21314]
15912 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
15913 (__log1p): Disable -Wmaybe-uninitialized for -Os around
15914 computation using c.
15915 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
15916 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
15917 computation using c.
15918
15919 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15920
15921 * version.h (RELEASE): Set to "development".
15922 (VERSION): Set to "2.27.9000".
15923 * NEWS (2.28): New section.
15924
15925 * version.h (RELEASE): Set to "stable".
15926 (VERSION): Set to "2.27".
15927 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
15928
15929 * NEWS: Add the list of bugs fixed in 2.27.
15930
15931 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15932
15933 * stdlib/test-atexit-race-common.c (do_test): Check stack size
15934 against PTHREAD_STACK_MIN.
15935
15936 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15937
15938 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
15939 New entries.
15940 (Rafal Luzynski, Andreas Schwab): Update.
15941
15942 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
15943
15944 [BZ #10871]
15945 * NEWS: List the languages which actually use the alternative
15946 months feature in this release. Also explain that "alt_mon" and
15947 "ab_alt_mon" are optional.
15948
15949 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
15950
15951 [BZ #22765]
15952 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
15953
15954 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
15955
15956 * manual/install.texi (Tools for Compilation): Update the newest
15957 versions of gcc, binutils, texinfo, gawk, bison, and sed.
15958 * INSTALL: Regenerated.
15959
15960 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
15961
15962 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
15963 instead of __builtin_expect.
15964
15965 2018-01-30 Florian Weimer <fweimer@redhat.com>
15966
15967 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
15968 data.
15969 * nss/tst-nss-getpwent.c (do_test): Likewise.
15970
15971 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
15972
15973 [BZ #10871]
15974 * localedata/locales/hr_HR (mon): Rename to...
15975 (alt_mon): This.
15976 (mon): Import from CLDR (genitive case).
15977 (d_t_fmt): Update the comment.
15978
15979 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
15980
15981 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
15982 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
15983 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
15984
15985 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
15986
15987 * mach/Versions: Fix version when __mach_host_self_ was added.
15988 * hurd/Versions: Fix version when _hurd_exec_paths was added.
15989 * sysdeps/mach/hurd/i386/ld.abilist: New file.
15990 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
15991 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
15992 * sysdeps/mach/hurd/i386/libc.abilist: New file.
15993 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
15994 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
15995 * sysdeps/mach/hurd/i386/libm.abilist: New file.
15996 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
15997 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
15998 * sysdeps/mach/hurd/i386/librt.abilist: New file.
15999 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16000 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16001 || to respect codestyle.
16002 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16003 (do_test_bz20181): Rename accordingly.
16004 * malloc/malloc.c: Include <assert.h>.
16005 (assert): Do not define.
16006 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16007 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16008 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16009 * sysdeps/mach/hurd/hp-timing.h: New file.
16010 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16011
16012 2018-01-29 Darius Rad <darius@bluespec.com>
16013
16014 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16015
16016 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16017
16018 * sysdeps/init_array/crti.S (.section .init_array): Add
16019 PREINIT_FUNCTION when defined.
16020 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16021 * config.h.in: Regenerate.
16022 * manual/platform.texi: Add RISC-V documenation for
16023 __riscv_flush_icache.
16024 * sysdeps/riscv/__longjmp.S: New file.
16025 * sysdeps/riscv/backtrace.c: Likewise.
16026 * sysdeps/riscv/bits/endian.h: Likewise.
16027 * sysdeps/riscv/bits/setjmp.h: Likewise.
16028 * sysdeps/riscv/bits/wordsize.h: Likewise.
16029 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16030 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16031 * sysdeps/riscv/dl-trampoline.S: Likewise.
16032 * sysdeps/riscv/gccframe.h: Likewise.
16033 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16034 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16035 * sysdeps/riscv/machine-gmon.h: Likewise.
16036 * sysdeps/riscv/memusage.h: Likewise.
16037 * sysdeps/riscv/setjmp.S: Likewise.
16038 * sysdeps/riscv/sys/asm.h: Likewise.
16039 * sysdeps/riscv/tls-macros.h: Likewise.
16040 * sysdeps/riscv/dl-tls.h: New file.
16041 * sysdeps/riscv/libc-tls.c: Likewise.
16042 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16043 * sysdeps/riscv/nptl/tls.h: Likewise.
16044 * sysdeps/riscv/stackinfo.h: Likewise.
16045 * sysdeps/riscv/bits/fenv.h: New file.
16046 * sysdeps/riscv/e_sqrtl.c: Likewise.
16047 * sysdeps/riscv/fpu_control.h: Likewise.
16048 * sysdeps/riscv/math-tests.h: Likewise.
16049 * sysdeps/riscv/nofpu/Implies: Likewise.
16050 * sysdeps/riscv/sfp-machine.h: Likewise.
16051 * sysdeps/riscv/tininess.h: Likewise.
16052 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16053 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16054 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16055 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16056 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16057 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16058 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16059 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16060 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16061 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16062 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16063 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16064 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16065 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16066 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16067 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16068 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16069 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16070 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16071 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16072 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16073 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16074 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16075 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16076 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16077 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16078 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16079 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16080 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16081 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16082 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16083 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16084 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16085 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16086 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16087 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16088 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16089 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16090 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16091 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16092 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16093 * sysdeps/riscv/rvf/math_private.h: Likewise.
16094 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16095 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16096 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16097 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16098 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16099 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16100 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16101 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16102 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16103 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16104 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16105 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16106 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16107 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16108 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16109 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16110 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16111 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16112 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16113 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16114 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16115 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16116 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16117 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16118 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16119 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16120 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16121 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16122 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16123 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16124 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16125 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16126 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16127 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16128 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16129 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16130 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16131 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16132 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16133 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16134 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16135 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16136 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16137 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16138 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16139 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16140 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16141 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16142 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16143 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16144 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16145 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16146 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16147 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16148 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16149 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16150 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16151 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16152 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16153 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16154 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16155 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16156 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16157 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16158 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16159 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16160 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16161 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16162 * sysdeps/riscv/Implies: New file.
16163 * sysdeps/riscv/Makefile: Likewise.
16164 * sysdeps/riscv/configure: Likewise.
16165 * sysdeps/riscv/configure.ac: Likewise.
16166 * sysdeps/riscv/nptl/Makefile: Likewise.
16167 * sysdeps/riscv/preconfigure: Likewise.
16168 * sysdeps/riscv/rv64/Implies-after: Likewise.
16169 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16170 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16171 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16172 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16173 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16174 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16175 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16176 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16177 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16178 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16179 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16180 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16181 (Config): Likewise.
16182
16183 2018-01-29 Florian Weimer <fweimer@redhat.com>
16184
16185 [BZ #22701]
16186 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16187 libnsl_hidden_proto.
16188 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16189 libnsl_hidden_proto.
16190 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16191 * nis/Makefile (libnsl-routines): Add nss-default only for
16192 build-obsolete-nsl.
16193 * nis/nis_defaults.c (__nis_default_ttl): Add
16194 libnsl_hidden_nolink_def.
16195 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16196 declaration.
16197 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16198 * nis/ypclnt.c (yp_maplist): Likewise.
16199
16200 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16201
16202 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16203 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16204
16205 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16206
16207 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16208 clean -dxfq for git updates when replacing sources.
16209
16210 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16211 --disable-libcilkrts unconditionally, not just for the final GCC
16212 build for Hurd.
16213
16214 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16215 version to 4.15.
16216
16217 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16218
16219 [BZ #10871]
16220 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16221 case).
16222
16223 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16224
16225 [BZ #10871]
16226 * localedata/locales/be_BY (mon): Rename to...
16227 (alt_mon): This, then synchronize with CLDR (nominative case).
16228 (abmon): Rename to...
16229 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16230 (mon): Import from CLDR (genitive case).
16231 (abmon): Likewise.
16232 * localedata/locales/be_BY@latin (mon): Rename to...
16233 (alt_mon): This.
16234 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16235
16236 * localedata/locales/be_BY@latin (lang_name): Reworded to
16237 "biełaruskaja mova".
16238
16239 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16240
16241 [BZ #10871]
16242 * localedata/locales/el_CY (mon): Renamed to...
16243 (alt_mon): This.
16244 (mon): Import from CLDR (genitive case).
16245 * localedata/locales/el_GR: Likewise.
16246
16247 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16248
16249 [BZ #10871]
16250 * localedata/locales/ru_RU (mon): Rename to...
16251 (alt_mon): This.
16252 (abmon): Rename to...
16253 (ab_alt_mon): This.
16254 (mon): Import from CLDR (genitive case).
16255 (abmon): Copy from the old content except the 5th month which is
16256 now in the genitive case, even when abbreviated.
16257 * localedata/locales/ru_UA: Likewise.
16258 * time/tst-strptime.c (day_tests): Add an actual example of
16259 a difference between %b and %Ob in Russian.
16260
16261 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16262
16263 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16264 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16265 a `c' variable.
16266 * resolv/res-close.c: Include <stdlib.h>.
16267 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16268 <sys/wait.h>, <time.h>, <sys/uio.h>.
16269 (NOT_CANCEL_H): Add inclusion guard.
16270 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16271 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16272 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16273 return 0.
16274 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16275 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16276 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16277 instead of void *.
16278 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16279 timer_ptr2id to cast struct timer_node * to void *.
16280 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16281 --disable-libcilkrts to gcc configure.
16282 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16283 and make them the default for now.
16284 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16285 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16286 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16287 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16288 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16289 MACH_IPC_COMPAT.
16290 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16291 __task_terminate would ever return successfully.
16292 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16293 to global scope.
16294 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16295 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16296 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16297 critical section to make code simpler and avoid warning.
16298 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16299 critical section to make code simpler and avoid warning.
16300 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16301 const char * instead of char *.
16302 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16303 __hurd_file_name_split, hurd_file_name_split,
16304 __hurd_directory_name_split, hurd_directory_name_split,
16305 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16306 hurd_file_name_path_lookup): Make lookup function parameter take a
16307 const char *name instead of char *name.
16308 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16309 __hurd_directory_name_split): Likewise.
16310 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16311 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16312 * sysdeps/mach/hurd/check_native.c: New file.
16313 * sysdeps/mach/hurd/check_pf.c: New file.
16314 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16315 (__freeifaddrs): Define macro to freeifaddrs.
16316 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16317 * sysdeps/mach/libmachuser.abilist: New file.
16318 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16319 (do_test_bz20181): Rename accordingly.
16320 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16321 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16322 <sys/mount.h>.
16323 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16324 version only if __USE_EXTERN_INLINES is defined.
16325 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16326 __hurd_sockfail): Likewise.
16327 (_hurd_fd_get): Always declare functions, and provide inline versions
16328 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16329 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16330 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16331 _hurd_port_set): Always declare functions, and provide inline versions
16332 only if __USE_EXTERN_INLINES and _LIBC are defined and
16333 IS_IN(libc).
16334 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16335 _hurd_critical_section_unlock): Likewise.
16336 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16337 * __hurd_threadvar_location): Likewise.
16338 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16339 _hurd_userlink_clear): Likewise.
16340 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16341 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16342 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16343 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16344 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16345 __spin_lock_locked): Likewise.
16346 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16347 __spin_lock_locked): Likewise.
16348 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16349 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16350 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16351 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16352 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16353 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16354 _POSIX_NO_TRUNC): Define to 0.
16355 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16356 check size against PTHREAD_STACK_MIN.
16357 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16358 IS_IN(libpthread)]: Include <sigsetops.h>.
16359 * mach/Makefile (user-interfaces): Add mach/gnumach.
16360 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16361 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16362 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16363 instead of invalid -1.
16364 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16365 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16366 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16367 <net/ppp_defs.h>.
16368
16369 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16370
16371 * hurd/fcntl-internal.h: New file.
16372
16373 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16374
16375 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16376
16377 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16378
16379 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16380
16381 [BZ #22701]
16382 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16383 Build only shared objects.
16384
16385 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16386
16387 * README: Update for hppa.
16388
16389 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16390
16391 * sysdeps/sparc/fpu/libm-test-ulps: Update
16392 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16393
16394 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16395
16396 Revert:
16397
16398 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16399
16400 [BZ #22563]
16401 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16402 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16403 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16404 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16405 to feature_1.
16406
16407 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16408
16409 [BZ #22563]
16410 * bits/types/__cancel_jmp_buf_tag.h: New file.
16411 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16412 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16413 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16414 * nptl/Makefile (headers): Add
16415 bits/types/__cancel_jmp_buf_tag.h.
16416 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16417 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16418 * sysdeps/nptl/pthread.h: Include
16419 <bits/types/__cancel_jmp_buf_tag.h>.
16420 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16421 __cancel_jmp_buf.
16422 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16423
16424 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16425
16426 [BZ #10871]
16427 * localedata/locales/uk_UA (mon): Renamed to...
16428 (alt_mon): This.
16429 (alt_digits): "0" removed and then renamed to...
16430 (mon): This.
16431 (date_fmt): Definition changed not to use the alternative
16432 digits hack.
16433
16434 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16435
16436 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16437 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16438 * elf/elf.h (EF_RISCV_RVC): New define.
16439 (EF_RISCV_FLOAT_ABI): Likewise.
16440 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16441 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16442 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16443 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16444 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16445 define.
16446 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16447
16448 2018-01-25 Andreas Schwab <schwab@suse.de>
16449
16450 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16451 single quotes.
16452 * sysdeps/gnu/configure: Regenerate.
16453 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16454 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16455 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16456 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16457 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16458 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16459 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16460 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16461
16462 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16463
16464 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16465 URL, and run autoconf, make it the default for now.
16466
16467 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16468
16469 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16470 soft-float ColdFire configuration.
16471
16472 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16473 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16474 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16475
16476 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16477 MicroBlaze file.
16478
16479 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16480 ....
16481 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16482 ... here.
16483 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16484 New file.
16485
16486 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16487 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16488 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16489 file.
16490
16491 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16492
16493 [BZ #22742]
16494 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16495 Rename to __reserved and add comment.
16496 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16497 Rename to __reserved.
16498
16499 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16500
16501 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16502 i686-gnu configurations.
16503 (Context.run_builds): Include mig, gnumach and hurd in components
16504 considered.
16505 (Context.checkout): Add mig, gnumach and hurd to components.
16506 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16507 hurd.
16508 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16509 (Config.build): Install gnumach headers, build mig and install
16510 hurd headers for 'gnu' OS.
16511 (Config.install_gnumach_headers): New function.
16512 (Config.install_hurd_headers): Likewise.
16513 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16514 when building for 'gnu' OS.
16515
16516 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16517
16518 * manual/tunables.texi (Hardware Capability Tunables): Fix
16519 spelling.
16520
16521 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16522
16523 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16524 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16525 (ALTMON_11, ALTMON_12): Improve documentation.
16526 * manual/time.texi (strftime): Likewise.
16527
16528 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16529
16530 [BZ #10871]
16531 * localedata/locales/pl_PL: Alternative month names added,
16532 primary month names are genitive now.
16533 * time/tst-strptime.c (day_tests): Actually use a genitive case
16534 of a month name in Polish language.
16535
16536 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16537
16538 [BZ #10871]
16539 * manual/locale.texi: Document ALTMON_1..12 constants for
16540 nl_langinfo. Specify when to use ALTMON instead of MON.
16541 * manual/time.texi (strftime, strptime): Document GNU extension
16542 permitting O modifier with %B and %b. Specify when to use
16543 %OB instead of %B.
16544
16545 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16546
16547 [BZ #10871]
16548 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16549 names, define them as the same as abbreviated month names explicitly.
16550 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16551 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16552 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16553 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16554 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16555 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16556 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16557 _NL_WABALTMON_12): New enum constants.
16558 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16559 wab_alt_mon, and ab_alt_mon_defined members.
16560 (time_output): Output ab_alt_mon and wab_alt_mon members.
16561 (time_read): Read them, initialize them as copies of abmon and wabmon
16562 respectively if they are missing, initialize ab_alt_mon_defined.
16563 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16564 * locale/programs/locfile-kw.h: Regenerate.
16565 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16566 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16567 and ru_RU.UTF-8.
16568 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16569 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16570 (__strftime_internal): Handle %Ob and %Oh formats.
16571 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16572 (__strptime_internal): Handle %Ob and %Oh formats.
16573 * time/tst-strptime.c (day_tests): Add more tests to parse different
16574 forms of month names including the new %Ob format specifier.
16575
16576 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16577
16578 [BZ #10871]
16579 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16580 define them as the same as primary full month names explicitly.
16581 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16582 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16583 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16584 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16585 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16586 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16587 _NL_WALTMON_12): New enum constants.
16588 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16589 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16590 macros.
16591 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16592 walt_mon, and alt_mon_defined members.
16593 (time_output): Output alt_mon and walt_mon members.
16594 (time_read): Read them, initialize them as copies of mon and wmon
16595 respectively if they are missing, initialize alt_mon_defined.
16596 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16597 * locale/programs/locfile-kw.h: Regenerate.
16598 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16599 * localedata/tst-langinfo.c (map): Add tests for the new constants
16600 ALTMON_1 .. ALTMON_12.
16601 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16602 and pl_PL.UTF-8.
16603 * time/strftime_l.c (f_altmonth): New macro.
16604 (__strftime_internal): Handle %OB format.
16605 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16606 (__strptime_internal): Handle %OB format.
16607 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16608 of month names including the new %OB format specifier.
16609
16610 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16611
16612 [BZ #22685]
16613 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16614 from ABORT_TRANSACTION.
16615 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16616 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16617 ABORT_TRANSACTION_IMPL): Likewise.
16618 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16619 Linux code, but remove the code that aborts transactions.
16620
16621 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16622
16623 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16624
16625 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16626
16627 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16628 in date: "2004-14-09" should be "2004-09-14".
16629 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16630 "2003-15-09" should be "2003-09-15".
16631
16632 2018-01-18 Arjun Shankar <arjun@redhat.com>
16633
16634 [BZ #22343]
16635 [BZ #22774]
16636 CVE-2018-6485
16637 CVE-2018-6551
16638 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16639 after padding.
16640 (_int_memalign): check for integer overflow before calling
16641 _int_malloc.
16642 * malloc/tst-malloc-too-large.c: New test.
16643 * malloc/Makefile: Add tst-malloc-too-large.
16644
16645 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16646
16647 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16648 in date: "2017-24-07" should be "2017-07-24".
16649 * localedata/locales/mai_IN: Likewise.
16650 * localedata/locales/mai_NP: Likewise.
16651
16652 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16653
16654 * po/ru.po: Update translations.
16655
16656 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16657
16658 [BZ #22719]
16659 * sysdeps/hppa/backtrace.c: New file.
16660
16661 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16662
16663 [BZ #22715]
16664 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16665 align La_x86_64_retval to VEC_SIZE.
16666
16667 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16668
16669 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16670 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16671
16672 2018-01-16 Florian Weimer <fweimer@redhat.com>
16673
16674 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16675 Move tst-thread-exit-clobber ...
16676 [$(CXX)] (tests-unsupported): ... to here.
16677
16678 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16679
16680 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16681 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16682 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16683 (_dl_aarch64_cap_flags): Update.
16684 (_DL_HWCAP_COUNT): Update.
16685
16686 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16687
16688 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16689 (_DL_HWCAP_LAST): Remove.
16690 (_DL_HWCAP_COUNT): Move to ...
16691 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16692 (_DL_HWCAP_COUNT): ... here.
16693
16694 2018-01-16 Florian Weimer <fweimer@redhat.com>
16695
16696 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16697 mode with GNU extensions.
16698
16699 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16700
16701 * elf/elf.h (NT_ARM_SVE): Define.
16702
16703 2018-01-15 Florian Weimer <fweimer@redhat.com>
16704
16705 [BZ #22636]
16706 * nptl/tst-minstack-throw.cc: New file.
16707 * nptl/Makefile (tests): Add tst-minstack-throw.
16708 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16709 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16710
16711 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16712
16713 * scripts/build-many-glibcs.py (Context.checkout): Default
16714 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16715 version to 1.1.0.
16716
16717 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16718
16719 [BZ #22707]
16720 * elf/elf.h (DF_1_STUB): Define.
16721 (DF_1_PIE): Define.
16722
16723 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16724
16725 [BZ #22697]
16726 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16727 Do not add 0.5 to integer or out-of-range arguments.
16728
16729 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16730
16731 * po/bg.po: Update translations.
16732 * po/cs.po: Likewise.
16733 * po/de.po: Likewise.
16734 * po/ko.po: Likewise.
16735 * po/pl.po: Likewise.
16736 * po/sv.po: Likewise.
16737 * po/uk.po: Likewise.
16738 * po/vi.po: Likewise.
16739
16740 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16741
16742 * aarch64/start.S (_start): Use __wrap_main.
16743 (__wrap_main): New local symbol.
16744
16745 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16746
16747 [BZ #22679]
16748 CVE-2018-1000001
16749 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16750 generic_getcwd if the path returned by getcwd syscall is not absolute.
16751 * io/tst-getcwd-abspath.c: New test.
16752 * io/Makefile (tests): Add tst-getcwd-abspath.
16753
16754 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16755
16756 * malloc/malloc.c (malloc_consolidate): Add size check.
16757
16758 2018-01-12 Florian Weimer <fweimer@redhat.com>
16759
16760 * support/write_message.c (write_message): Preserve errno.
16761 * support/check.c (print_failure): Likewise.
16762 * support/support_test_verify_impl.c (support_test_verify_impl):
16763 Likewise.
16764 * support/support_test_compare_failure.c
16765 (support_test_compare_failure): Likewise.
16766
16767 2018-01-12 Florian Weimer <fweimer@redhat.com>
16768
16769 [BZ #22701]
16770 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16771 Prevent installation of libnsl.so.
16772 (libnsl-inhibit-o): Do not build (or install) static libraries.
16773
16774 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16775
16776 [BZ #22657]
16777 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16778 before the day number which may produce a double space.
16779 (date_fmt): Likewise.
16780
16781 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16782
16783 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16784 instead of fegetenv.
16785
16786 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16787
16788 [BZ #22702]
16789 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16790 comment to say exceptions are discarded.
16791 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16792 __fegetenv.
16793 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16794 be enabled.
16795
16796 2018-01-11 Florian Weimer <fweimer@redhat.com>
16797
16798 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16799 and error message.
16800
16801 2018-01-11 Florian Weimer <fweimer@redhat.com>
16802
16803 [BZ #22636]
16804 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16805 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16806
16807 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16808
16809 [BZ #22693]
16810 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16811 negative arguments in test for NaN or infinity argument.
16812
16813 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16814
16815 * po/libc.pot: Regenerate.
16816
16817 2018-01-10 Florian Weimer <fweimer@redhat.com>
16818
16819 [BZ #22636]
16820 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16821 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16822
16823 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16824
16825 * hurd/hurd/fd.h: Include <fcntl.h>
16826 (__hurd_at_flags): New function.
16827 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16828 with call to __hurd_at_flags.
16829 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16830 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16831 __faccessat
16832 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16833 (__access_noerrno): Use __faccessat_common instead of access_common.
16834 (__access): Likewise.
16835 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16836 with a call to __faccessat.
16837 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16838 (__faccessat_common): ... this. Move implementation of __access into it when
16839 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16840 reauthenticate_cwdir_at helper to implement AT mechanism.
16841 (__faccessat_noerrno): New function, just calls __faccessat_common.
16842 (__faccessat): New function, just calls __faccessat_common.
16843 (faccessat): Define weak alias.
16844
16845 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16846
16847 [BZ #22691]
16848 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16849 (CFLAGS-s_fmaxmagl.c): New variable.
16850 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16851
16852 [BZ #22690]
16853 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16854 long int for arguments of possibly overflowing addition or
16855 subtraction.
16856 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16857
16858 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16859
16860 [BZ #22688]
16861 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16862 (CFLAGS-e_remainderl.c): New variable.
16863
16864 [BZ #22687]
16865 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16866 variable.
16867 (CFLAGS-s_cacoshl.c): Likewise.
16868 (CFLAGS-s_casinhl.c): Likewise.
16869 (CFLAGS-s_catanl.c): Likewise.
16870 (CFLAGS-s_catanhl.c): Likewise.
16871 (CFLAGS-s_cexpl.c): Likewise.
16872 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16873 (CFLAGS-s_csinhl.c): Likewise.
16874 (CFLAGS-s_clogl.c): Likewise.
16875 (CFLAGS-s_clog10l.c): Likewise.
16876 (CFLAGS-s_csinl.c): Likewise.
16877 (CFLAGS-s_csqrtl.c): Likewise.
16878
16879 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16880 2017-01-09 Svante Signell <svante.signell@gmail.com>
16881
16882 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
16883 (_hurd_exec_paths): New function.
16884 * hurd/hurd.h (_hurd_exec): Deprecate function.
16885 (_hurd_exec_paths): Declare function.
16886 * hurd/Versions: Export _hurd_exec_paths.
16887 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
16888 (__execve): Use __getcwd to build absolute path, and use
16889 _hurd_exec_paths instead of _hurd_exec.
16890 * sysdeps/mach/hurd/spawni.c: Likewise.
16891 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
16892 _hurd_exec.
16893
16894 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
16895
16896 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
16897 test instead of failing in case of ENOENT returned by posix_openpt.
16898
16899 2018-01-08 Florian Weimer <fweimer@redhat.com>
16900
16901 resolv: Support binary labels in test framework.
16902 * support/resolv_test.c (struct to_be_freed): Remove.
16903 (struct compressed_name): New.
16904 (allocate_compressed_name, ascii_tolower)
16905 (compare_compressed_name): New functions.
16906 (struct resolv_response_builder): Update type of
16907 compression_offsets for use with tsearch. Rempve to_be_freed.
16908 (response_push_pointer_to_free): Remove function.
16909 (resolv_response_add_name): Rewrite using struct compressed_name
16910 and tsearch instead of hsearch_r.
16911 (response_builder_allocate): Remove initialization of
16912 compression_offsets.
16913 (response_builder_free): Update for removal of to_be_freed. Use
16914 tdestroy instead of hdestroy_r.
16915 * resolv/Makefile (tests): Add tst-resolv-binary.
16916 (tst-resolv-binary): Link with -lresolv -lpthread.
16917
16918 2018-01-08 Florian Weimer <fweimer@redhat.com>
16919
16920 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
16921 time. Pass positive flag instead of negative flag to
16922 support_test_compare_failure.
16923 (support_test_compare_failure): Change negative parameter to
16924 positive.
16925 * support/support_test_compare_failure.c (report)
16926 (support_test_compare_failure): Likewise.
16927 * support/tst-test_compare.c (return_ssize_t, return_int): New.
16928 (do_test): Check int/size_t, ssize_t/size_t comparisons.
16929
16930 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
16931
16932 [BZ #22637]
16933 * nptl/descr.h (stackblock, stackblock_size): Update comments.
16934 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
16935 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
16936 stacksize.
16937 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
16938
16939 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
16940
16941 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16942 Add s_sincosf-sse2 and s_sincosf-fma.
16943 (CFLAGS-s_sincosf-fma.c): New.
16944 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
16945 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
16946 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
16947 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
16948 __sincosf is defined.
16949
16950 2018-01-08 Florian Weimer <fweimer@redhat.com>
16951
16952 * nptl/tst-thread-exit-clobber.cc: New file.
16953 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
16954 C++11 mode.
16955 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
16956 (tests): Add tst-thread-exit-clobber.
16957 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
16958
16959 2018-01-08 Florian Weimer <fweimer@redhat.com>
16960
16961 * support/check.h (support_static_assert): Define.
16962 (TEST_COMPARE): Use it.
16963
16964 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
16965
16966 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
16967 [!__RLIM_T_MATCHES_RLIM64_T]
16968 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
16969 __getrlimit64. Add libc_hidden_weak.
16970
16971 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
16972
16973 * elf/elf.h (R_RISCV_NONE): New define.
16974 (R_RISCV_32): Likewise.
16975 (R_RISCV_64): Likewise.
16976 (R_RISCV_RELATIVE): Likewise.
16977 (R_RISCV_COPY): Likewise.
16978 (R_RISCV_JUMP_SLOT): Likewise.
16979 (R_RISCV_TLS_DTPMOD32): Likewise.
16980 (R_RISCV_TLS_DTPMOD64): Likewise.
16981 (R_RISCV_TLS_DTPREL32): Likewise.
16982 (R_RISCV_TLS_DTPREL64): Likewise.
16983 (R_RISCV_TLS_TPREL32): Likewise.
16984 (R_RISCV_TLS_TPREL64): Likewise.
16985 * Makerules (make-link-multidir): Make directories before linking into
16986 them.
16987 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
16988 define.
16989 (VDSO_HASH_LINUX_4_15): Likewise.
16990 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
16991 in subdirectories of lib.
16992 * nptl/Makefile (/librt.so): Always depend on
16993 "$(shared-thread-library)".
16994
16995 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16996
16997 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
16998 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
16999 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17000 (___tls_get_addr).
17001 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17002 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17003 "-O2 -march=i686".
17004 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17005 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17006 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17007 * sysdeps/gnu/glob-lstat-compat.c: New file.
17008 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17009 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17010
17011 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17012
17013 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17014 Reserve 16 chars to reloc_addr before calling _itoa_word.
17015
17016 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17017
17018 [BZ #22678]
17019 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17020 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17021
17022 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17023 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17024
17025 * resource/tst-getrlimit.c: Add copyright header.
17026
17027 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17028 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17029
17030 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17031 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17032 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17033 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17034 instead.
17035 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17036 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17037 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17038 RLIM64_INFINITY): Fix values to match the kernel ones.
17039 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17040 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17041 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17042 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17043 getrlimit64@@GLIBC_2_27.
17044 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17045 and setrlimit64.
17046 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17047 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17048 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17049 setrlimit, getrlimit64 and setrlimit64.
17050
17051 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17052
17053 [BZ #22648]
17054 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17055 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17056
17057 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17058
17059 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17060 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17061 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17062
17063 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17064
17065 [BZ #15479]
17066 [BZ #22666]
17067 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17068 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17069
17070 [BZ #15479]
17071 [BZ #22665]
17072 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17073 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17074 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17075 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17076
17077 2018-01-04 Florian Weimer <fweimer@redhat.com>
17078
17079 [BZ #22667]
17080 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17081 Align the stack before calling exit.
17082 * stdlib/tst-makecontext-align.c: New file.
17083 * stdlib/Makefile (tests): Add tst-makecontext-align.
17084
17085 2018-01-04 Florian Weimer <fweimer@redhat.com>
17086
17087 Add support for calling dlvsym from libc.so.
17088 * include/dlfcn.h (__libc_dlvsym): Declare.
17089 * elf/Makefile (tests-static-internal): Add
17090 tst-libc_dlvsym-static.
17091 (tests-internal): Add tst-libc_dlvsym.
17092 (modules-names): Add tst-libc_dlvsym-dso.
17093 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17094 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17095 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17096 object tst-libc_dlvsym-dso.so needs to be built before running
17097 these tests.
17098 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17099 * elf/Versions: Export __libc_dlvsym.
17100 * elf/dl-libc.c (struct do_dlvsym_args): New.
17101 (do_dlvsym, __libc_dlvsym): New functions.
17102 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17103 (_dl_open_hook2): New variable.
17104 (__libc_register_dl_open_hook): Set it.
17105 * elf/tst-libc_dlvsym-dso.c: New file.
17106 * elf/tst-libc_dlvsym-static.c: Likewise.
17107 * elf/tst-libc_dlvsym.c: Likewise.
17108 * elf/tst-libc_dlvsym.h: Likewise.
17109
17110 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17111
17112 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17113 include <sys/mount.h>.
17114
17115 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17116
17117 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17118 Add __NO_MATH_ERRNO__ check.
17119
17120 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17121
17122 * sysdeps/mips/mips32/libm-test-ulps: Update.
17123 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17124
17125 2018-01-02 Florian Weimer <fweimer@redhat.com>
17126
17127 * misc/tst-pselect.c: Add copyright header.
17128
17129 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17130
17131 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17132 comment.
17133 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17134 comment.
17135 (settrlimit): Rename into setrlimit.
17136 (__sttrlimit): Rename into __setrlimit.
17137
17138 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17139 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17140 never defined in that case.
17141
17142 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17143
17144 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17145
17146 * sysdeps/arm/libm-test-ulps: Update.
17147
17148 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17149 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17150
17151 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17152
17153 * NEWS: Add cosf and sincosf to list of optimized functions.
17154
17155 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17156
17157 [BZ #22660]
17158 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17159 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17160 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17161 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17162
17163 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17164
17165 [BZ #22433]
17166 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17167
17168 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17169 making a copy of it.
17170
17171 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17172
17173 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17174 trailing whitespace removed.
17175 * scripts/config.guess: Update to version 2018-01-01.
17176 * scripts/config.sub: Update to version 2018-01-01.
17177 * scripts/move-if-change: Update from gnulib.
17178
17179 * NEWS: Update copyright dates.
17180 * catgets/gencat.c (print_version): Likewise.
17181 * csu/version.c (banner): Likewise.
17182 * debug/catchsegv.sh: Likewise.
17183 * debug/pcprofiledump.c (print_version): Likewise.
17184 * debug/xtrace.sh (do_version): Likewise.
17185 * elf/ldconfig.c (print_version): Likewise.
17186 * elf/ldd.bash.in: Likewise.
17187 * elf/pldd.c (print_version): Likewise.
17188 * elf/sotruss.sh: Likewise.
17189 * elf/sprof.c (print_version): Likewise.
17190 * iconv/iconv_prog.c (print_version): Likewise.
17191 * iconv/iconvconfig.c (print_version): Likewise.
17192 * locale/programs/locale.c (print_version): Likewise.
17193 * locale/programs/localedef.c (print_version): Likewise.
17194 * login/programs/pt_chown.c (print_version): Likewise.
17195 * malloc/memusage.sh (do_version): Likewise.
17196 * malloc/memusagestat.c (print_version): Likewise.
17197 * malloc/mtrace.pl: Likewise.
17198 * manual/libc.texinfo: Likewise.
17199 * nptl/version.c (banner): Likewise.
17200 * nscd/nscd.c (print_version): Likewise.
17201 * nss/getent.c (print_version): Likewise.
17202 * nss/makedb.c (print_version): Likewise.
17203 * posix/getconf.c (main): Likewise.
17204 * scripts/test-installation.pl: Likewise.
17205 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17206
17207 * All files with FSF copyright notices: Update copyright dates
17208 using scripts/update-copyrights.
17209 * locale/programs/charmap-kw.h: Regenerated.
17210 * locale/programs/locfile-kw.h: Likewise.
17211
17212 2017-12-31 Zack Weinberg <zackw@panix.com>
17213
17214 * libio/bits/libio-ldbl.h: Correct check for improper
17215 inclusion. Add own multiple include guard.
17216
17217 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17218 Dmitry V. Levin <ldv@altlinux.org>
17219
17220 [BZ #22625]
17221 CVE-2017-16997
17222 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17223 string token expansion. Check for NULL pointer or empty string possibly
17224 returned by expand_dynamic_string_token.
17225 (decompose_rpath): Check for empty path after dynamic string
17226 token expansion.
17227
17228 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17229
17230 [BZ #22433]
17231 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17232
17233 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17234 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17235 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17236 and PTRACE_SYSCALL.
17237 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17238 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17239 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17240 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17241 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17242 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17243
17244 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17245 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17246 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17247 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17248 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17249 bits/ptrace-shared.h.
17250 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17251 <bits/ptrace-shared.h>.
17252 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17253 __ptrace_peeksiginfo_flags, ptrace): Remove.
17254 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17255 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17256 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17257 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17258 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17259
17260 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17261
17262 [BZ #17804]
17263 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17264 end of the loop. Improve comments.
17265
17266 2017-12-29 Zack Weinberg <zackw@panix.com>
17267
17268 [BZ #22615]
17269 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17270 might be set on success.
17271
17272 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17273
17274 [BZ #22611]
17275 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17276 is unchanged on success.
17277
17278 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17279
17280 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17281 updated.
17282 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17283 expand_dynamic_string_token): Likewise.
17284 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17285 is_path argument.
17286
17287 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17288 contains ':'.
17289
17290 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17291 is set and name contains ':', and all code depending on these checks.
17292
17293 2017-12-24 Zack Weinberg <zackw@panix.com>
17294
17295 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17296 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17297 respectively.
17298 * libio/libio.h: Rename the original version of this file to
17299 libio/bits/libio.h. Error out if not included by stdio.h or the
17300 stub libio.h.
17301 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17302 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17303 if not included by bits/libio.h or the stub _G_config.h.
17304 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17305 sysdeps/unix/sysv/linux/bits. Error out if not included by
17306 bits/libio.h or the stub _G_config.h.
17307 * libio/stdio.h: Include bits/libio.h, not libio.h.
17308 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17309 well as libio.h and _G_config.h.
17310
17311 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17312 * libio/strfile.h, stdio-common/vfscanf.c
17313 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17314 Include stdio.h, not _G_config.h nor libio.h.
17315 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17316 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17317
17318 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17319
17320 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17321
17322 [BZ #22347]
17323 * stdlib/getrandom.c (getrandom): Fix comment.
17324 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17325
17326 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17327
17328 [BZ #21161]
17329 * manual/arith.texi (strtoul): Fix a typo.
17330
17331 [BZ #22596]
17332 * manual/arith.texi (finite): Fix the description of the return
17333 value.
17334
17335 2017-12-22 Eric Blake <ebb9@byu.net>
17336
17337 Avoid gcc warnings on cygwin
17338 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17339 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17340 Avoid unused variable.
17341
17342 2017-12-22 Florian Weimer <fweimer@redhat.com>
17343
17344 * io/Makefile (routines): Add copy_file_range.
17345 (tests): Add tst-copy_file_range.
17346 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17347 * io/Versions (GLIBC_2.27): Export copy_file_range.
17348 * io/copy_file_range-compat.c: New file.
17349 * io/copy_file_range.c: Likewise.
17350 * io/tst-copy_file_range-compat.c: Likewise.
17351 * io/tst-copy_file_range.c: Likewise.
17352 * manual/llio.texi (Copying File Data): New section.
17353 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17354 * support/Makefile (libsupport-routines): Add support-xfstat,
17355 xftruncate, xlseek.
17356 * support/support-xfstat.c: New file.
17357 * support/xftruncate.c: Likewise.
17358 * support/xlseek.c: Likewise.
17359 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17360 * sysdeps/unix/sysv/linux/**.abilist: Update.
17361 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17362
17363 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17364
17365 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17366 disable-multi-arch variant to aarch64-linux-gnu.
17367
17368 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17369
17370 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17371 trailing whitespace removed.
17372 * scripts/config.guess: Update to version 2017-12-17.
17373 * scripts/config.sub: Update to version 2017-11-23.
17374 * scripts/install-sh: Update to version 2017-09-23.17.
17375 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17376
17377 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17378
17379 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17380 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17381 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17382 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17383 * sysdeps/tile/crtn.S: Likewise.
17384 * sysdeps/tile/dl-start.S (_start): Likewise.
17385 * sysdeps/tile/dl-trampoline.S: Likewise.
17386 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17387 * sysdeps/tile/start.S (_start): Likewise.
17388 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17389 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17390 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17391 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17392 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17393 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17394 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17395
17396 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17397 comment.
17398 * sysdeps/tile/preconfigure: Remove tilegx folder.
17399 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17400 * sysdeps/tile/Implies: ... here.
17401 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17402 * sysdeps/tile/Makefile: ... here.
17403 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17404 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17405 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17406 * sysdeps/tile/bits/wordsize.h: ... here.
17407 * sysdeps/tile/tilegx/*: Move to ...
17408 * sysdeps/tile/*: ... here.
17409 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17410 * sysdeps/tile/tilegx32/Implies: ... here.
17411 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17412 * sysdeps/tile/tilegx64/Implies: ... here.
17413 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17414 to ...
17415 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17416 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17417 * sysdeps/unix/sysv/linux/tile/*: ... here.
17418 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17419 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17420 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17421 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17422
17423 * README: Remove tilepro-*-linux-gnu from supported architecture.
17424 * scripts/build-many-glibcs.py: Likewise.
17425 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17426 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17427 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17428 elf_machine_matches_host, elf_machine_dynamic,
17429 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17430 howto, elf_machine_rela): Likewise.
17431 * sysdeps/tile/dl-start.S (_start): Likewise.
17432 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17433 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17434 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17435 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17436 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17437 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17438 Likewise.
17439 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17440 * sysdeps/tile/preconfigure: Likewise.
17441 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17442 POINTER_CHK_GUARD): Likewise.
17443 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17444 * sysdeps/tile/start.S (_start): Likewise.
17445 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17446 Likewise.
17447 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17448 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17449 CMOVNEZ): Remove.
17450 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17451 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17452 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17453 Likewise.
17454 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17455 * sysdeps/tile/tilepro/Implies: Remove file.
17456 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17457 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17458 * sysdeps/tile/tilepro/memchr.c: Likewise.
17459 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17460 * sysdeps/tile/tilepro/memset.c: Likewise.
17461 * sysdeps/tile/tilepro/memusage.h: Likewise.
17462 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17463 * sysdeps/tile/tilepro/strchr.c: Likewise.
17464 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17465 * sysdeps/tile/tilepro/strlen.c: Likewise.
17466 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17467 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17468 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17469 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17470 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17471 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17472 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17473 Likewise.
17474 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17475 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17476 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17477 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17478 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17479 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17480 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17481 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17482 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17483 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17484 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17485 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17486 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17487 tilepro mention in comment.
17488
17489 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17490 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17491 * nptl/pthread_join_common.c: New file: common function used on
17492 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17493 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17494 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17495 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17496 (cleanup): Move definition to pthread_join_common.c.
17497 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17498 Remove superflous checks.
17499 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17500 Likewise.
17501
17502 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17503
17504 * sysdeps/aarch64/libm-test-ulps: Update.
17505
17506 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17507
17508 * sysdeps/aarch64/memset.S (MEMSET): Define.
17509
17510 2017-12-20 Florian Weimer <fweimer@redhat.com>
17511
17512 [BZ #22635]
17513 nptl: Provide full implementation of pthread_self in libc.so.
17514 * nptl/Makefile (routines): Add pthread_self.
17515 (libpthread-routines): Replace pthread_self with
17516 compat-pthread_self.
17517 * nptl/forward.c (pthread_self): Remove.
17518 * nptl/nptl-init.c (pthread_functions): Do not initialize
17519 ptr_pthread_self.
17520 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17521 * nptl/compat-pthread_self.c: New file.
17522 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17523 Remove ptr_pthread_self.
17524
17525 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17526
17527 * posix/regcomp.c: Fix spelling in comments.
17528 * posix/regex.h: Likewise.
17529 * posix/regex_internal.c: Likewise.
17530 * posix/regexec.c: Likewise.
17531
17532 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17533
17534 [BZ #22377]
17535 * math/Makefile [C++] (tests): Add test for iseqsig.
17536 * math/math.h [C++] (iseqsig): New implementation, which does
17537 not rely on __MATH_TG/__builtin_types_compatible_p.
17538 * math/test-math-iseqsig.cc: New file.
17539 * sysdeps/powerpc/powerpc64le/Makefile
17540 (CFLAGS-test-math-iseqsig.cc): New variable.
17541
17542 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17543
17544 * elf/dl-load.c (is_trusted_path): Remove.
17545 (fillin_rpath): Remove check_trusted argument and its use,
17546 all callers changed.
17547
17548 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17549
17550 [BZ #22630]
17551 * Makeconfig (link-pie-before-libc): Replace -pie with
17552 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17553 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17554 (tst-dlopen-aout-no-pie): New.
17555 (LDFLAGS-tst-prelink): Removed.
17556 (tst-prelink-no-pie): New.
17557 (LDFLAGS-tst-main1): Removed.
17558 (tst-main1-no-pie): New.
17559 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17560 (tst-gmon-no-pie): New.
17561
17562 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17563
17564 * manual/install.texi: Document that --enable-static-pie
17565 implies PIE.
17566 * INSTALL: Regenerated.
17567
17568 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17569
17570 [BZ #21309]
17571 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17572 unsigned.
17573
17574 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17575
17576 Revert:
17577
17578 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17579
17580 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17581
17582 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17583
17584 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17585 <errno.h>. Include "eexp.tbl".
17586 (half): New constant.
17587 (one): Likewise.
17588 (__ieee754_exp): Rewrite.
17589 (__slowexp): Remove prototype.
17590 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17591 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17592 * sysdeps/i386/fpu/slowexp.c: Likewise.
17593 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17594 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17595 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17596 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17597 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17598 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17599 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17600 comment.
17601 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17602 (CPPFLAGS-slowexp.c): Remove variable.
17603 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17604 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17605 (CFLAGS-slowexp-fma.c): Remove variable.
17606 (CFLAGS-slowexp-fma4.c): Likewise.
17607 (CFLAGS-slowexp-avx.c): Likewise.
17608 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17609 define as macro.
17610 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17611 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17612 * math/Makefile (type-double-routines): Remove slowexp.
17613 * manual/probes.texi (slowexp_p6): Remove.
17614 (slowexp_p32): Likewise.
17615
17616 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17617
17618 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17619 arithmetic.
17620
17621 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17622
17623 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17624
17625 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17626
17627 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17628
17629 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17630 <errno.h>. Include "eexp.tbl".
17631 (half): New constant.
17632 (one): Likewise.
17633 (__ieee754_exp): Rewrite.
17634 (__slowexp): Remove prototype.
17635 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17636 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17637 * sysdeps/i386/fpu/slowexp.c: Likewise.
17638 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17639 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17640 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17641 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17642 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17643 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17644 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17645 comment.
17646 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17647 (CPPFLAGS-slowexp.c): Remove variable.
17648 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17649 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17650 (CFLAGS-slowexp-fma.c): Remove variable.
17651 (CFLAGS-slowexp-fma4.c): Likewise.
17652 (CFLAGS-slowexp-avx.c): Likewise.
17653 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17654 define as macro.
17655 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17656 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17657 * math/Makefile (type-double-routines): Remove slowexp.
17658 * manual/probes.texi (slowexp_p6): Remove.
17659 (slowexp_p32): Likewise.
17660
17661 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17662 James Clarke <jrtc27@jrtc27.com>
17663
17664 [BZ #22603]
17665 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17666 addition.
17667
17668 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17669
17670 [BZ #22605]
17671 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17672 code.
17673
17674 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17675
17676 [BZ #22563]
17677 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17678 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17679 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17680 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17681 to feature_1.
17682
17683 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17684
17685 [BZ #22563]
17686 * bits/types/__cancel_jmp_buf_tag.h: New file.
17687 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17688 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17689 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17690 * nptl/Makefile (headers): Add
17691 bits/types/__cancel_jmp_buf_tag.h.
17692 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17693 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17694 * sysdeps/nptl/pthread.h: Include
17695 <bits/types/__cancel_jmp_buf_tag.h>.
17696 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17697 __cancel_jmp_buf.
17698 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17699
17700 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17701
17702 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17703 --enable-static-pie variants to x86_64, x32 and i686.
17704
17705 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17706
17707 [BZ #22631]
17708 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17709 argument for attrubutes. All callers changed.
17710 (__inline_mathop1): Likewise. All callers changed.
17711 (__inline_mathop): Likewise. All callers changed.
17712 [__USE_MISC] (scalbn): Use __inline_forward instead of
17713 __inline_forward_c.
17714 [__USE_ISOC99] (scalbln): Likewise.
17715 [__USE_ISOC99] (nearbyint): Likewise.
17716 [__USE_ISOC99] (lrint): Likewise.
17717 [__USE_MISC] (scalbnf): Likewise.
17718 [__USE_ISOC99] (scalblnf): Likewise.
17719 [__USE_ISOC99] (nearbyintf): Likewise.
17720 [__USE_ISOC99] (lrintf): Likewise.
17721 [__USE_MISC] (scalbnl): Likewise.
17722 [__USE_ISOC99] (scalblnl): Likewise.
17723 [__USE_ISOC99] (nearbyintl): Likewise.
17724 [__USE_ISOC99] (lrintl): Likewise.
17725 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17726 __inline_mathop and __m81_defun changed.
17727
17728 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17729 CPU or FPU for ARM hard-float configurations.
17730
17731 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17732
17733 * nptl/tst-attr3.c: Include <libc-diag.h>.
17734 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17735
17736 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17737
17738 * string/tester.c (test_strncat): Also disable -Warray-bounds
17739 warnings for two tests.
17740
17741 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17742
17743 [BZ #22614]
17744 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17745 $(cc-pie-default) == yes.
17746 * config.make.in (cc-pie-default): New.
17747 * configure.ac (libc_cv_pie_default): Renamed to ...
17748 (libc_cv_cc_pie_default): This.
17749 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17750 * configure: Regenerated.
17751
17752 2017-12-18 Florian Weimer <fweimer@redhat.com>
17753
17754 [BZ #20204]
17755 ld.so: Harden dl-libc/libdl hooks.
17756 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17757 (rtld_active): New function.
17758 * dlfcn/dladdr.c (__dladdr): Call it.
17759 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17760 * dlfcn/dlclose.c (__dlcose): Likewise.
17761 * dlfcn/dlerror.c (__dlerror): Likewise.
17762 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17763 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17764 * dlfcn/dlopen.c (__dlopen): Likewise.
17765 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17766 * dlfcn/dlsym.c (__dlsym): Likewise.
17767 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17768 * libio/vtables.c (_IO_vtable_check): Likewise.
17769 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17770 (__libc_dlclose): Likewise.
17771 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17772 assignment.
17773
17774 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17775
17776 [BZ #22446]
17777 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17778 buffers for readlink input and output.
17779
17780 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17781
17782 [BZ #22624]
17783 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17784 inhibit_stack_protector.
17785
17786 [BZ #22624]
17787 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17788 inhibit_stack_protector.
17789
17790 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17791
17792 [BZ #22627]
17793 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17794 code and invocation.
17795
17796 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17797
17798 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17799
17800 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17801
17802 [BZ #22505]
17803 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17804
17805 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17806
17807 * sysdeps/s390/fpu/libm-test-ulps: Update.
17808
17809 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17810
17811 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17812
17813 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17814
17815 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17816 constants to s_sincosf.h file.
17817 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17818 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17819 implementation.
17820 * sysdeps/ieee754/flt-32/s_sincosf.h:
17821 New file.
17822
17823 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17824
17825 [BZ #14681]
17826 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17827 before mtrace.
17828
17829 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17830
17831 [BZ #19574]
17832 * INSTALL: Regenerated.
17833 * Makeconfig (real-static-start-installed-name): New.
17834 (pic-default): Updated for --enable-static-pie.
17835 (pie-default): New for --enable-static-pie.
17836 (default-pie-ldflag): Likewise.
17837 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17838 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17839 Replace $(static-start-installed-name) with
17840 $(real-static-start-installed-name).
17841 (+prectorT): Updated for --enable-static-pie.
17842 (+postctorT): Likewise.
17843 (CFLAGS-.o): Add $(pie-default).
17844 (CFLAGS-.op): Likewise.
17845 * NEWS: Mention --enable-static-pie.
17846 * config.h.in (ENABLE_STATIC_PIE): New.
17847 * configure.ac (--enable-static-pie): New configure option.
17848 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17849 (have-static-pie): Likewise.
17850 Enable static PIE if linker supports --no-dynamic-linker.
17851 (ENABLE_STATIC_PIE): New AC_DEFINE.
17852 (enable-static-pie): New LIBC_CONFIG_VAR.
17853 * configure: Regenerated.
17854 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17855 gr$(start-installed-name) for --enable-static-pie.
17856 (extra-objs): Likewise.
17857 (install-lib): Likewise.
17858 (extra-objs): Add static-reloc.o and static-reloc.os
17859 ($(objpfx)$(start-installed-name)): Also depend on
17860 $(objpfx)static-reloc.o.
17861 ($(objpfx)r$(start-installed-name)): New.
17862 ($(objpfx)g$(start-installed-name)): Also depend on
17863 $(objpfx)static-reloc.os.
17864 ($(objpfx)gr$(start-installed-name)): New.
17865 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17866 in libc.a.
17867 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17868 initimage.
17869 * csu/static-reloc.c: New file.
17870 * elf/Makefile (routines): Add dl-reloc-static-pie.
17871 (elide-routines.os): Likewise.
17872 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17873 (tst-tls1-static-non-pie-no-pie): New.
17874 * elf/dl-reloc-static-pie.c: New file.
17875 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17876 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17877 STATIC_PIE_BOOTSTRAP.
17878 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17879 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17880 (tests-static): Likewise.
17881 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17882 (tst-gmon-static-no-pie): New.
17883 (CFLAGS-tst-gmon-static-pie.c): Likewise.
17884 (CRT-tst-gmon-static-pie): Likewise.
17885 (tst-gmon-static-pie-ENV): Likewise.
17886 (tests-special): Likewise.
17887 ($(objpfx)tst-gmon-static-pie.out): Likewise.
17888 (clean-tst-gmon-static-pie-data): Likewise.
17889 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
17890 * gmon/tst-gmon-static-pie.c: New file.
17891 * manual/install.texi: Document --enable-static-pie.
17892 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
17893 (_dl_get_dl_main_map): Likewise.
17894 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
17895 * sysdeps/x86_64/configure.ac: Likewise.
17896 * sysdeps/i386/configure: Regenerated.
17897 * sysdeps/x86_64/configure: Likewise.
17898 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
17899 (ASFLAGS-.op): Likewise.
17900
17901 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17902
17903 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
17904 * posix/tst-mmap-offset.c (fname): Use /tmp.
17905 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
17906
17907 2017-12-15 Steve Ellcey <sellcey@cavium.com>
17908
17909 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
17910
17911 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
17912
17913 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
17914 errno.
17915
17916 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17917
17918 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
17919 --with-float=hard for arm-linux-gnueabihf configurations.
17920
17921 [BZ #14121]
17922 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
17923 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
17924 ($(mo-installed)): Use $(objpfx)%.mo.
17925 (realclean): Remove rule.
17926
17927 * po/Makefile (linguas): Remove rule and dependencies.
17928 (linguas.mo): Likewise.
17929 (.PHONY): Do not depend on linguas and linguas.mo.
17930 (podir): Remove variable.
17931 (pofiles): Likewise.
17932 [$(pofiles)] (%.po): Remove rule.
17933
17934 * sysdeps/sparc/sparc32/Makefile
17935 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
17936 start-of-line whitespace in argument of echo.
17937 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
17938 with whitespace. Generate __wrap_.udiv alias.
17939 * sysdeps/sparc/sparc32/rem.S: Regenerated.
17940 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
17941 * sysdeps/sparc/sparc32/udiv.S: Likewise.
17942 * sysdeps/sparc/sparc32/urem.S: Likewise.
17943
17944 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17945
17946 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
17947 for aligned inputs.
17948
17949 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
17950
17951 * benchtests/bench-strcmp.c: Print output in JSON format.
17952
17953 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
17954
17955 2017-12-14 Florian Weimer <fweimer@redhat.com>
17956
17957 [BZ #22607]
17958 CVE-2017-1000409
17959 * elf/dl-load.c (_dl_init_paths): Compute number of components in
17960 the expanded path string.
17961
17962 2017-12-14 Florian Weimer <fweimer@redhat.com>
17963
17964 [BZ #22606]
17965 CVE-2017-1000408
17966 * elf/dl-load.c (system_dirs): Update comment.
17967 (nsystem_dirs_len): Use array_length.
17968 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
17969
17970 2017-12-14 Florian Weimer <fweimer@redhat.com>
17971
17972 Simplify compiling most of support/ outside of glibc.
17973 * support/check_addrinfo.c: Include <string.h>.
17974 * support/check_dns_packet.c: Likewise.
17975 * support/check_hostent.c: Likewise.
17976 * support/support_can_chroot.c: Include <support/xunistd.h>.
17977 * support/support_format_addrinfo.c: Include <stdlib.h>
17978 * support/support_format_dns_packet.c: Include <stdbool.h>.
17979 * support/support_format_hostent.c: Include <stdlib.h>.
17980 * support/support_format_netent.c: Likewise.
17981 * support/support_write_string.c: Include <support/xunistd.h>.
17982 * support/xdlfcn.c: Include <stddef.h>.
17983
17984 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
17985
17986 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
17987
17988 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17989 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17990
17991 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17992 (sysdeps_routines): Add memset-niagara7.
17993 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
17994 Likewise.
17995 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
17996 file.
17997 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
17998 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
17999 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18000 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18001 Add niagara7 option.
18002 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18003 memset.
18004
18005 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18006 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18007 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18008 Likewise.
18009 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18010 New file.
18011 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18012 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18013 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18014 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18015 and __memmove_niagara7.
18016 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18017 Add niagara7 option.
18018 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18019 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18020 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18021 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18022 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18023
18024 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18025
18026 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18027 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18028 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18029 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18030
18031 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18032 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18033 _dl_sparc_cap_flags array.
18034 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18035
18036 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18037
18038 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18039 time whenever possible.
18040
18041 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18042
18043 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18044 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18045
18046 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18047
18048 * soft-fp/fmadf4.c: Move to ....
18049 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18050 * soft-fp/fmasf4.c: Move to ....
18051 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18052 * soft-fp/fmatf4.c: Move to ....
18053 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18054 * sysdeps/ieee754/soft-fp/Makefile: New file.
18055 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18056 * sysdeps/arm/preconfigure: Regenerated.
18057 * sysdeps/arm/nofpu/Implies: New file.
18058 * sysdeps/arm/s_fma.c: Remove file.
18059 * sysdeps/arm/s_fmaf.c: Likewise.
18060 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18061 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18062 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18063 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18064 * sysdeps/microblaze/s_fma.c: Remove file.
18065 * sysdeps/microblaze/s_fmaf.c: Likewise.
18066 * sysdeps/mips/mips32/nofpu/Implies: New file.
18067 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18068 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18069 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18070 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18071 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18072 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18073 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18074 implementation.
18075 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18076 * sysdeps/nios2/s_fma.c: Remove file.
18077 * sysdeps/nios2/s_fmaf.c: Likewise.
18078 * sysdeps/sh/nofpu/Implies: New file.
18079 * sysdeps/sh/s_fma.c: Remove file.
18080 * sysdeps/sh/s_fmaf.c: Likewise.
18081 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18082 * sysdeps/tile/s_fma.c: Remove file.
18083 * sysdeps/tile/s_fmaf.c: Likewise.
18084
18085 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18086
18087 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18088 Add s_cosf-sse2 and s_cosf-fma.
18089 (CFLAGS-s_cosf-fma.c): New.
18090 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18091 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18092 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18093
18094 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18095
18096 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18097
18098 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18099
18100 * libio/Makefile (tests): Add tst-bz22415.
18101 (tst-bz22415-ENV): New rule.
18102 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18103 (tests-special): Add tst-bz22415-mem.out.
18104 ($(objpfx)tst-bz22415-mem.out): New rule.
18105 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18106 in case of a successful seek operation.
18107 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18108 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18109 buffer is required.
18110 * libio/tst-bz22415.c: New test.
18111
18112 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18113
18114 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18115
18116 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18117 __IPC_64 to 0 to avoid IPC_64 being set.
18118
18119 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18120
18121 [BZ #22593]
18122 * math/bits/mathcalls.h (nextafter): Remove const.
18123 (nexttoward): Likewise.
18124
18125 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18126
18127 * configure.ac (--with-fp): Remove configure option.
18128 (with_fp_cond): New variable.
18129 (libc_cv_with_fp): New configure test. Use this variable instead
18130 of with_fp.
18131 * configure: Regenerated.
18132 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18133 * manual/install.texi (Configuring and compiling): Remove
18134 --without-fp.
18135 * INSTALL: Regenerated.
18136 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18137 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18138 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18139 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18140 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18141 use --without-fp to configure glibc.
18142
18143 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18144
18145 * manual/locale.texi (nl_langinfo): Fix a typo.
18146
18147 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18148
18149 [BZ #22588]
18150 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18151
18152 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18153
18154 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18155 (CFLAGS-argp-parse.c): Likewise.
18156 (CFLAGS-argp-fmtstream.c): Likewise.
18157 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18158 (CPPFLAGS-sha512-crypt.c): Likewise.
18159 (CPPFLAGS-md5-crypt.c): Likewise.
18160 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18161 (CFLAGS-stack_chk_fail_local.c): Likewise.
18162 (CFLAGS-backtrace.c): Likewise.
18163 (CFLAGS-sprintf_chk.c): Likewise.
18164 (CFLAGS-snprintf_chk.c): Likewise.
18165 (CFLAGS-vsprintf_chk.c): Likewise.
18166 (CFLAGS-vsnprintf_chk.c): Likewise.
18167 (CFLAGS-asprintf_chk.c): Likewise.
18168 (CFLAGS-vasprintf_chk.c): Likewise.
18169 (CFLAGS-obprintf_chk.c): Likewise.
18170 (CFLAGS-dprintf_chk.c): Likewise.
18171 (CFLAGS-vdprintf_chk.c): Likewise.
18172 (CFLAGS-printf_chk.c): Likewise.
18173 (CFLAGS-fprintf_chk.c): Likewise.
18174 (CFLAGS-vprintf_chk.c): Likewise.
18175 (CFLAGS-vfprintf_chk.c): Likewise.
18176 (CFLAGS-gets_chk.c): Likewise.
18177 (CFLAGS-fgets_chk.c): Likewise.
18178 (CFLAGS-fgets_u_chk.c): Likewise.
18179 (CFLAGS-fread_chk.c): Likewise.
18180 (CFLAGS-fread_u_chk.c): Likewise.
18181 (CFLAGS-swprintf_chk.c): Likewise.
18182 (CFLAGS-vswprintf_chk.c): Likewise.
18183 (CFLAGS-wprintf_chk.c): Likewise.
18184 (CFLAGS-fwprintf_chk.c): Likewise.
18185 (CFLAGS-vwprintf_chk.c): Likewise.
18186 (CFLAGS-vfwprintf_chk.c): Likewise.
18187 (CFLAGS-fgetws_chk.c): Likewise.
18188 (CFLAGS-fgetws_u_chk.c): Likewise.
18189 (CFLAGS-read_chk.c): Likewise.
18190 (CFLAGS-pread_chk.c): Likewise.
18191 (CFLAGS-pread64_chk.c): Likewise.
18192 (CFLAGS-recv_chk.c): Likewise.
18193 (CFLAGS-recvfrom_chk.c): Likewise.
18194 (CFLAGS-tst-longjmp_chk.c): Likewise.
18195 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18196 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18197 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18198 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18199 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18200 (CFLAGS-tst-chk1.c): Likewise.
18201 (CFLAGS-tst-chk2.c): Likewise.
18202 (CFLAGS-tst-chk3.c): Likewise.
18203 (CFLAGS-tst-chk4.cc): Likewise.
18204 (CFLAGS-tst-chk5.cc): Likewise.
18205 (CFLAGS-tst-chk6.cc): Likewise.
18206 (CFLAGS-tst-lfschk1.c): Likewise.
18207 (CFLAGS-tst-lfschk2.c): Likewise.
18208 (CFLAGS-tst-lfschk3.c): Likewise.
18209 (CFLAGS-tst-lfschk4.cc): Likewise.
18210 (CFLAGS-tst-lfschk5.cc): Likewise.
18211 (CFLAGS-tst-lfschk6.cc): Likewise.
18212 (CFLAGS-tst-ssp-1.c): Likewise.
18213 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18214 (CFLAGS-scandir64.c): Likewise.
18215 (CFLAGS-scandir-tail.c): Likewise.
18216 (CFLAGS-scandir64-tail.c): Likewise.
18217 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18218 (CFLAGS-dl-tunables.c): Likewise.
18219 (CFLAGS-dl-runtime.c): Likewise.
18220 (CFLAGS-dl-lookup.c): Likewise.
18221 (CFLAGS-dl-iterate-phdr.c): Likewise.
18222 (CFLAGS-vismain.c): Likewise.
18223 (CFLAGS-tst-linkall-static.c): Likewise.
18224 (CFLAGS-tst-linkall-static.c): Likewise.
18225 (CPPFLAGS-dl-load.c): Likewise.
18226 (CFLAGS-ldconfig.c): Likewise.
18227 (CFLAGS-dl-cache.c): Likewise.
18228 (CFLAGS-cache.c): Likewise.
18229 (CFLAGS-rtld.c): Likewise.
18230 (CFLAGS-multiload.c): Likewise.
18231 (CFLAGS-filtmod1.c): Likewise.
18232 (CFLAGS-tst-align.c): Likewise.
18233 (CFLAGS-tst-align2.c): Likewise.
18234 (CFLAGS-tst-alignmod.c): Likewise.
18235 (CFLAGS-tst-alignmod2.c): Likewise.
18236 (CPPFLAGS-tst-execstack.c): Likewise.
18237 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18238 (CFLAGS-tst-latepthreadmod.c): Likewise.
18239 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18240 (CFLAGS-getgrnam_r.c): Likewise.
18241 (CFLAGS-getgrent_r.c): Likewise.
18242 (CFLAGS-getgrent.c): Likewise.
18243 (CFLAGS-fgetgrent.c): Likewise.
18244 (CFLAGS-fgetgrent_r.c): Likewise.
18245 (CFLAGS-putgrent.c): Likewise.
18246 (CFLAGS-initgroups.c): Likewise.
18247 (CFLAGS-getgrgid.c): Likewise.
18248 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18249 (CFLAGS-getsgent.c): Likewise.
18250 (CFLAGS-fgetsgent.c): Likewise.
18251 (CFLAGS-fgetsgent_r.c): Likewise.
18252 (CFLAGS-putsgent.c): Likewise.
18253 (CFLAGS-getsgnam.c): Likewise.
18254 (CFLAGS-getsgnam_r.c): Likewise.
18255 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18256 (CFLAGS-iconv_charmap.c): Likewise.
18257 (CFLAGS-dummy-repertoire.c): Likewise.
18258 (CFLAGS-charmap.c): Likewise.
18259 (CFLAGS-linereader.c): Likewise.
18260 (CFLAGS-simple-hash.c): Likewise.
18261 (CFLAGS-gconv_conf.c): Likewise.
18262 (CFLAGS-iconvconfig.c): Likewise.
18263 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18264 (CFLAGS-gethstbyad.c): Likewise.
18265 (CFLAGS-gethstbynm_r.c): Likewise.
18266 (CFLAGS-gethstbynm.c): Likewise.
18267 (CFLAGS-gethstbynm2_r.c): Likewise.
18268 (CFLAGS-gethstbynm2.c): Likewise.
18269 (CFLAGS-gethstent_r.c): Likewise.
18270 (CFLAGS-gethstent.c): Likewise.
18271 (CFLAGS-rcmd.c): Likewise.
18272 (CFLAGS-getnetbynm_r.c): Likewise.
18273 (CFLAGS-getnetbynm.c): Likewise.
18274 (CFLAGS-getnetbyad_r.c): Likewise.
18275 (CFLAGS-getnetbyad.c): Likewise.
18276 (CFLAGS-getnetent_r.c): Likewise.
18277 (CFLAGS-getnetent.c): Likewise.
18278 (CFLAGS-getaliasent_r.c): Likewise.
18279 (CFLAGS-getaliasent.c): Likewise.
18280 (CFLAGS-getrpcent_r.c): Likewise.
18281 (CFLAGS-getrpcent.c): Likewise.
18282 (CFLAGS-getservent_r.c): Likewise.
18283 (CFLAGS-getservent.c): Likewise.
18284 (CFLAGS-getprtent_r.c): Likewise.
18285 (CFLAGS-getprtent.c): Likewise.
18286 (CFLAGS-either_ntoh.c): Likewise.
18287 (CFLAGS-either_hton.c): Likewise.
18288 (CFLAGS-getnetgrent.c): Likewise.
18289 (CFLAGS-getnetgrent_r.c): Likewise.
18290 (CFLAGS-tst-checks-posix.c): Likewise.
18291 (CFLAGS-tst-sockaddr.c): Likewise.
18292 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18293 (CFLAGS-tst-translit.c): Likewise.
18294 (CFLAGS-tst-gettext2.c): Likewise.
18295 (CFLAGS-tst-codeset.c): Likewise.
18296 (CFLAGS-tst-gettext3.c): Likewise.
18297 (CFLAGS-tst-gettext4.c): Likewise.
18298 (CFLAGS-tst-gettext5.c): Likewise.
18299 (CFLAGS-tst-gettext6.c): Likewise.
18300 * io/Makefile (CFLAGS-open.c): Likewise.
18301 (CFLAGS-open64.c): Likewise.
18302 (CFLAGS-creat.c): Likewise.
18303 (CFLAGS-creat64.c): Likewise.
18304 (CFLAGS-fcntl.c): Likewise.
18305 (CFLAGS-poll.c): Likewise.
18306 (CFLAGS-ppoll.c): Likewise.
18307 (CFLAGS-lockf.c): Likewise.
18308 (CFLAGS-statfs.c): Likewise.
18309 (CFLAGS-fstatfs.c): Likewise.
18310 (CFLAGS-statvfs.c): Likewise.
18311 (CFLAGS-fstatvfs.c): Likewise.
18312 (CFLAGS-fts.c): Likewise.
18313 (CFLAGS-fts64.c): Likewise.
18314 (CFLAGS-ftw.c): Likewise.
18315 (CFLAGS-ftw64.c): Likewise.
18316 (CFLAGS-lockf.c): Likewise.
18317 (CFLAGS-posix_fallocate.c): Likewise.
18318 (CFLAGS-posix_fallocate64.c): Likewise.
18319 (CFLAGS-fallocate.c): Likewise.
18320 (CFLAGS-fallocate64.c): Likewise.
18321 (CFLAGS-read.c): Likewise.
18322 (CFLAGS-write.c): Likewise.
18323 (CFLAGS-test-stat.c): Likewise.
18324 (CFLAGS-test-lfs.c): Likewise.
18325 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18326 (CFLAGS-fputc.c): Likewise.
18327 (CFLAGS-fputwc.c): Likewise.
18328 (CFLAGS-freopen64.c): Likewise.
18329 (CFLAGS-freopen.c): Likewise.
18330 (CFLAGS-fseek.c): Likewise.
18331 (CFLAGS-fseeko64.c): Likewise.
18332 (CFLAGS-fseeko.c): Likewise.
18333 (CFLAGS-ftello64.c): Likewise.
18334 (CFLAGS-ftello.c): Likewise.
18335 (CFLAGS-fwide.c): Likewise.
18336 (CFLAGS-genops.c): Likewise.
18337 (CFLAGS-getc.c): Likewise.
18338 (CFLAGS-getchar.c): Likewise.
18339 (CFLAGS-getwc.c): Likewise.
18340 (CFLAGS-getwchar.c): Likewise.
18341 (CFLAGS-iofclose.c): Likewise.
18342 (CFLAGS-iofflush.c): Likewise.
18343 (CFLAGS-iofgetpos64.c): Likewise.
18344 (CFLAGS-iofgetpos.c): Likewise.
18345 (CFLAGS-iofgets.c): Likewise.
18346 (CFLAGS-iofgetws.c): Likewise.
18347 (CFLAGS-iofputs.c): Likewise.
18348 (CFLAGS-iofputws.c): Likewise.
18349 (CFLAGS-iofread.c): Likewise.
18350 (CFLAGS-iofsetpos64.c): Likewise.
18351 (CFLAGS-iofsetpos.c): Likewise.
18352 (CFLAGS-ioftell.c): Likewise.
18353 (CFLAGS-iofwrite.c): Likewise.
18354 (CFLAGS-iogetdelim.c): Likewise.
18355 (CFLAGS-iogetline.c): Likewise.
18356 (CFLAGS-iogets.c): Likewise.
18357 (CFLAGS-iogetwline.c): Likewise.
18358 (CFLAGS-ioputs.c): Likewise.
18359 (CFLAGS-ioseekoff.c): Likewise.
18360 (CFLAGS-ioseekpos.c): Likewise.
18361 (CFLAGS-iosetbuffer.c): Likewise.
18362 (CFLAGS-iosetvbuf.c): Likewise.
18363 (CFLAGS-ioungetc.c): Likewise.
18364 (CFLAGS-ioungetwc.c): Likewise.
18365 (CFLAGS-oldfileops.c): Likewise.
18366 (CFLAGS-oldiofclose.c): Likewise.
18367 (CFLAGS-oldiofgetpos64.c): Likewise.
18368 (CFLAGS-oldiofgetpos.c): Likewise.
18369 (CFLAGS-oldiofsetpos64.c): Likewise.
18370 (CFLAGS-oldiofsetpos.c): Likewise.
18371 (CFLAGS-peekc.c): Likewise.
18372 (CFLAGS-putc.c): Likewise.
18373 (CFLAGS-putchar.c): Likewise.
18374 (CFLAGS-putwc.c): Likewise.
18375 (CFLAGS-putwchar.c): Likewise.
18376 (CFLAGS-rewind.c): Likewise.
18377 (CFLAGS-wfileops.c): Likewise.
18378 (CFLAGS-wgenops.c): Likewise.
18379 (CFLAGS-oldiofopen.c): Likewise.
18380 (CFLAGS-iofopen.c): Likewise.
18381 (CFLAGS-iofopen64.c): Likewise.
18382 (CFLAGS-oldtmpfile.c): Likewise.
18383 (CFLAGS-tst_putwc.c): Likewise.
18384 * locale/Makefile (CFLAGS-md5.c): Likewise.
18385 (CFLAGS-charmap.c): Likewise.
18386 (CFLAGS-locfile.c): Likewise.
18387 (CFLAGS-charmap-dir.c): Likewise.
18388 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18389 (CFLAGS-getpt.c): Likewise.
18390 (CFLAGS-pt_chown.c): Likewise.
18391 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18392 (CFLAGS-obstack.c): Likewise.
18393 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18394 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18395 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18396 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18397 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18398 (CFLAGS-test-tgmath.c): Likewise.
18399 (CFLAGS-test-tgmath2.c): Likewise.
18400 (CFLAGS-test-tgmath-ret.c): Likewise.
18401 (CFLAGS-test-powl.c): Likewise.
18402 (CFLAGS-test-snan.c): Likewise.
18403 (CFLAGS-test-signgam-finite.c): Likewise.
18404 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18405 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18406 (CFLAGS-test-signgam-uchar.c): Likewise.
18407 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18408 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18409 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18410 (CFLAGS-test-signgam-uint.c): Likewise.
18411 (CFLAGS-test-signgam-uint-init.c): Likewise.
18412 (CFLAGS-test-signgam-uint-static.c): Likewise.
18413 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18414 (CFLAGS-test-signgam-ullong.c): Likewise.
18415 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18416 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18417 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18418 (CFLAGS-test-math-cxx11.cc): Likewise.
18419 (CFLAGS-test-math-isinff.cc): Likewise.
18420 (CFLAGS-test-math-iszero.cc): Likewise.
18421 (CFLAGS-test-math-issignaling.cc): Likewise.
18422 (CFLAGS-test-math-iscanonical.cc): Likewise.
18423 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18424 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18425 (CFLAGS-test-flt-eval-method.c): Likewise.
18426 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18427 (CFLAGS-test-finite-macros.c): Likewise.
18428 * misc/Makefile (CFLAGS-select.c): Likewise.
18429 (CFLAGS-tsearch.c): Likewise.
18430 (CFLAGS-lsearch.c): Likewise.
18431 (CFLAGS-pselect.c): Likewise.
18432 (CFLAGS-readv.c): Likewise.
18433 (CFLAGS-writev.c): Likewise.
18434 (CFLAGS-preadv.c): Likewise.
18435 (CFLAGS-preadv64.c): Likewise.
18436 (CFLAGS-pwritev.c): Likewise.
18437 (CFLAGS-pwritev64.c): Likewise.
18438 (CFLAGS-preadv2.c): Likewise.
18439 (CFLAGS-preadv64v2.c): Likewise.
18440 (CFLAGS-pwritev2.c): Likewise.
18441 (CFLAGS-pwritev64v2.c): Likewise.
18442 (CFLAGS-usleep.c): Likewise.
18443 (CFLAGS-syslog.c): Likewise.
18444 (CFLAGS-error.c): Likewise.
18445 (CFLAGS-getpass.c): Likewise.
18446 (CFLAGS-mkstemp.c): Likewise.
18447 (CFLAGS-mkstemp64.c): Likewise.
18448 (CFLAGS-getsysstats.c): Likewise.
18449 (CFLAGS-getusershell.c): Likewise.
18450 (CFLAGS-err.c): Likewise.
18451 (CFLAGS-tst-tsearch.c): Likewise.
18452 (CFLAGS-msync.c): Likewise.
18453 (CFLAGS-fdatasync.c): Likewise.
18454 (CFLAGS-fsync.c): Likewise.
18455 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18456 (CFLAGS-unwind.c): Likewise.
18457 (CFLAGS-unwind-forcedunwind.c): Likewise.
18458 (CFLAGS-pthread_cancel.c): Likewise.
18459 (CFLAGS-pthread_setcancelstate.c): Likewise.
18460 (CFLAGS-pthread_setcanceltype.c): Likewise.
18461 (CFLAGS-cancellation.c): Likewise.
18462 (CFLAGS-libc-cancellation.c): Likewise.
18463 (CFLAGS-pthread_exit.c): Likewise.
18464 (CFLAGS-forward.c): Likewise.
18465 (CFLAGS-pthread_testcancel.c): Likewise.
18466 (CFLAGS-pthread_join.c): Likewise.
18467 (CFLAGS-pthread_timedjoin.c): Likewise.
18468 (CFLAGS-pthread_once.c): Likewise.
18469 (CFLAGS-pthread_cond_wait.c): Likewise.
18470 (CFLAGS-sem_wait.c): Likewise.
18471 (CFLAGS-sem_timedwait.c): Likewise.
18472 (CFLAGS-fcntl.c): Likewise.
18473 (CFLAGS-lockf.c): Likewise.
18474 (CFLAGS-pread.c): Likewise.
18475 (CFLAGS-pread64.c): Likewise.
18476 (CFLAGS-pwrite.c): Likewise.
18477 (CFLAGS-pwrite64.c): Likewise.
18478 (CFLAGS-wait.c): Likewise.
18479 (CFLAGS-waitpid.c): Likewise.
18480 (CFLAGS-sigwait.c): Likewise.
18481 (CFLAGS-msgrcv.c): Likewise.
18482 (CFLAGS-msgsnd.c): Likewise.
18483 (CFLAGS-tcdrain.c): Likewise.
18484 (CFLAGS-open.c): Likewise.
18485 (CFLAGS-open64.c): Likewise.
18486 (CFLAGS-pause.c): Likewise.
18487 (CFLAGS-recv.c): Likewise.
18488 (CFLAGS-send.c): Likewise.
18489 (CFLAGS-accept.c): Likewise.
18490 (CFLAGS-sendto.c): Likewise.
18491 (CFLAGS-connect.c): Likewise.
18492 (CFLAGS-recvfrom.c): Likewise.
18493 (CFLAGS-recvmsg.c): Likewise.
18494 (CFLAGS-sendmsg.c): Likewise.
18495 (CFLAGS-close.c): Likewise.
18496 (CFLAGS-read.c): Likewise.
18497 (CFLAGS-write.c): Likewise.
18498 (CFLAGS-nanosleep.c): Likewise.
18499 (CFLAGS-sigsuspend.c): Likewise.
18500 (CFLAGS-msync.c): Likewise.
18501 (CFLAGS-fdatasync.c): Likewise.
18502 (CFLAGS-fsync.c): Likewise.
18503 (CFLAGS-pt-system.c): Likewise.
18504 (CFLAGS-tst-cleanup2.c): Likewise.
18505 (CFLAGS-tst-cleanupx2.c): Likewise.
18506 (CFLAGS-flockfile.c): Likewise.
18507 (CFLAGS-ftrylockfile.c): Likewise.
18508 (CFLAGS-funlockfile.c): Likewise.
18509 (CFLAGS-tst-initializers1.c): Likewise.
18510 (CFLAGS-tst-initializers1-c89.c): Likewise.
18511 (CFLAGS-tst-initializers1-c99.c): Likewise.
18512 (CFLAGS-tst-initializers1-c11.c): Likewise.
18513 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18514 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18515 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18516 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18517 (CFLAGS-nscd_getgr_r.c): Likewise.
18518 (CFLAGS-nscd_gethst_r.c): Likewise.
18519 (CFLAGS-nscd_getai.c): Likewise.
18520 (CFLAGS-nscd_initgroups.c): Likewise.
18521 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18522 (CFLAGS-pause.c): Likewise.
18523 (CFLAGS-pread.c): Likewise.
18524 (CFLAGS-pread64.c): Likewise.
18525 (CFLAGS-pwrite.c): Likewise.
18526 (CFLAGS-pwrite64.c): Likewise.
18527 (CFLAGS-sleep.c): Likewise.
18528 (CFLAGS-wait.c): Likewise.
18529 (CFLAGS-waitid.c): Likewise.
18530 (CFLAGS-waitpid.c): Likewise.
18531 (CFLAGS-getopt.c): Likewise.
18532 (CFLAGS-wordexp.c): Likewise.
18533 (CFLAGS-sysconf.c): Likewise.
18534 (CFLAGS-pathconf.c): Likewise.
18535 (CFLAGS-fpathconf.c): Likewise.
18536 (CFLAGS-spawn.c): Likewise.
18537 (CFLAGS-spawnp.c): Likewise.
18538 (CFLAGS-spawni.c): Likewise.
18539 (CFLAGS-glob.c): Likewise.
18540 (CFLAGS-glob64.c): Likewise.
18541 (CFLAGS-getconf.c): Likewise.
18542 (CFLAGS-nanosleep.c): Likewise.
18543 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18544 (CFLAGS-getpwent.c): Likewise.
18545 (CFLAGS-getpw.c): Likewise.
18546 (CFLAGS-fgetpwent_r.c): Likewise.
18547 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18548 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18549 (CFLAGS-mq_timedreceive.c): Likewise.
18550 (CFLAGS-mq_timedsend.c): Likewise.
18551 (CFLAGS-clock_nanosleep.c): Likewise.
18552 (CFLAGS-librt-cancellation.c): Likewise.
18553 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18554 (CFLAGS-getspent.c): Likewise.
18555 (CFLAGS-fgetspent.c): Likewise.
18556 (CFLAGS-fgetspent_r.c): Likewise.
18557 (CFLAGS-putspent.c): Likewise.
18558 (CFLAGS-getspnam.c): Likewise.
18559 (CFLAGS-getspnam_r.c): Likewise.
18560 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18561 (CFLAGS-sigsuspend.c): Likewise.
18562 (CFLAGS-sigtimedwait.c): Likewise.
18563 (CFLAGS-sigwait.c): Likewise.
18564 (CFLAGS-sigwaitinfo.c): Likewise.
18565 (CFLAGS-sigreturn.c): Likewise.
18566 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18567 (CFLAGS-vfwprintf.c): Likewise.
18568 (CFLAGS-tmpfile.c): Likewise.
18569 (CFLAGS-tmpfile64.c): Likewise.
18570 (CFLAGS-tempname.c): Likewise.
18571 (CFLAGS-psignal.c): Likewise.
18572 (CFLAGS-vprintf.c): Likewise.
18573 (CFLAGS-cuserid.c): Likewise.
18574 (CFLAGS-errlist.c): Likewise.
18575 (CFLAGS-siglist.c): Likewise.
18576 (CFLAGS-scanf15.c): Likewise.
18577 (CFLAGS-scanf17.c): Likewise.
18578 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18579 (CFLAGS-msort.c): Likewise.
18580 (CFLAGS-qsort.c): Likewise.
18581 (CFLAGS-system.c): Likewise.
18582 (CFLAGS-fmtmsg.c): Likewise.
18583 (CFLAGS-strfmon.c): Likewise.
18584 (CFLAGS-strfmon_l.c): Likewise.
18585 (CFLAGS-strfromd.c): Likewise.
18586 (CFLAGS-strfromf.c): Likewise.
18587 (CFLAGS-strfroml.c): Likewise.
18588 (CFLAGS-tst-bsearch.c): Likewise.
18589 (CFLAGS-tst-qsort.c): Likewise.
18590 (CFLAGS-tst-makecontext2.c): Likewise.
18591 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18592 (CFLAGS-xnlm_prot.c): Likewise.
18593 (CFLAGS-xrstat.c): Likewise.
18594 (CFLAGS-xyppasswd.c): Likewise.
18595 (CFLAGS-xklm_prot.c): Likewise.
18596 (CFLAGS-xrex.c): Likewise.
18597 (CFLAGS-xsm_inter.c): Likewise.
18598 (CFLAGS-xmount.c): Likewise.
18599 (CFLAGS-xrusers.c): Likewise.
18600 (CFLAGS-xspray.c): Likewise.
18601 (CFLAGS-xnfs_prot.c): Likewise.
18602 (CFLAGS-xrquota.c): Likewise.
18603 (CFLAGS-xkey_prot.c): Likewise.
18604 (CFLAGS-auth_unix.c): Likewise.
18605 (CFLAGS-key_call.c): Likewise.
18606 (CFLAGS-pmap_rmt.c): Likewise.
18607 (CFLAGS-clnt_perr.c): Likewise.
18608 (CFLAGS-openchild.c): Likewise.
18609 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18610 (CFLAGS-msgsnd.c): Likewise.
18611 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18612 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18613 (CFLAGS-tzset.c): Likewise.
18614 (CFLAGS-getdate.c): Likewise.
18615 (CFLAGS-test_time.c): Likewise.
18616 (CPPFLAGS-tst-tzname.c): Likewise.
18617 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18618 (CFLAGS-zic.c): Likewise.
18619 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18620 (CFLAGS-wcswidth.c): Likewise.
18621 (CFLAGS-wcstol.c): Likewise.
18622 (CFLAGS-wcstoul.c): Likewise.
18623 (CFLAGS-wcstoll.c): Likewise.
18624 (CFLAGS-wcstoull.c): Likewise.
18625 (CFLAGS-wcstod.c): Likewise.
18626 (CFLAGS-wcstold.c): Likewise.
18627 (CFLAGS-wcstof128.c): Likewise.
18628 (CFLAGS-wcstof.c): Likewise.
18629 (CFLAGS-wcstol_l.c): Likewise.
18630 (CFLAGS-wcstoul_l.c): Likewise.
18631 (CFLAGS-wcstoll_l.c): Likewise.
18632 (CFLAGS-wcstoull_l.c): Likewise.
18633 (CFLAGS-wcstod_l.c): Likewise.
18634 (CFLAGS-wcstold_l.c): Likewise.
18635 (CFLAGS-wcstof128_l.c): Likewise.
18636 (CFLAGS-wcstof_l.c): Likewise.
18637 (CPPFLAGS-tst-wchar-h.c): Likewise.
18638 (CPPFLAGS-wcstold_l.c): Likewise.
18639
18640 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18641
18642 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18643
18644 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18645 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18646
18647 * manual/tunables.texi (Hardware Capability Tunables): Document
18648 glibc.tune.cached_memopt.
18649 * sysdeps/powerpc/cpu-features.c: New file.
18650 * sysdeps/powerpc/cpu-features.h: New file.
18651 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18652 _dl_powerpc_cpu_features.
18653 * sysdeps/powerpc/dl-tunables.list: New file.
18654 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18655 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18656 (INIT_ARCH): Initialize use_aligned_memopt.
18657 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18658 IS_IN(rtld))]: Restrict dl_platform_init availability and
18659 initialize CPU features used by tunables.
18660 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18661 Add memcpy-power8-cached.
18662 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18663 __memcpy_power8_cached.
18664 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18665 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18666 New file.
18667
18668 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18669
18670 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18671 (CFLAGS-noinl-tester.c): Likewise.
18672 (CFLAGS-tst-strlen.c): Likewise.
18673 (CFLAGS-stratcliff.c): Likewise.
18674 (CFLAGS-test-ffs.c): Likewise.
18675 (CFLAGS-tst-inlcall.c): Likewise.
18676 (CFLAGS-tst-xbzero-opt.c): Likewise.
18677 (CFLAGS-memcpy.c): Likewise.
18678 (CFLAGS-wordcopy.c): Likewise.
18679
18680 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18681
18682 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18683 Store r15 on stack and add cfi rule.
18684 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18685 Likewise.
18686
18687 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18688
18689 [BZ #22577]
18690 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18691 call.
18692
18693 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18694
18695 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18696 Add s_sinf-sse2 and s_sinf-fma.
18697 (CFLAGS-s_sinf-fma.c): New.
18698 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18699 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18700 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18701
18702 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18703
18704 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18705
18706 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18707
18708 [BZ #22568]
18709 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18710 part of result to imaginary part of argument if it is zero and the
18711 real part of the argument is not finite.
18712 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18713 of result to real part of argument if it is zero and the imaginary
18714 part of the argument is not finite.
18715
18716 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18717
18718 [BZ #22524]
18719 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18720 and to the list of locales to be built for testing.
18721 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18722 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18723 and build the collation rules upon that.
18724
18725 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18726
18727 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18728 * manual/math.texi (Mathematics): Document support for _Float32.
18729 * math/Makefile (test-types): Add float32.
18730 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18731 * stdlib/Versions (GLIBC_2.27): Likewise.
18732 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18733 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18734 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18735 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18736 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18737 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18738 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18739 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18740 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18741 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18742 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18743 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18744 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18745 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18746 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18747 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18748 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18749 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18750 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18751 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18752 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18753 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18754 Likewise.
18755 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18756 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18757 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18758 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18759 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18760 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18761 Likewise.
18762 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18763 Likewise.
18764 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18765 Likewise.
18766 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18767 Likewise.
18768
18769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18770 Likewise.
18771 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18772 Likewise.
18773 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18774 Likewise.
18775 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18776 Likewise.
18777 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18778 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18779 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18780 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18781 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18782 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18783 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18784 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18785 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18786 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18787 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18788 Likewise.
18789 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18790 Likewise.
18791 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18792 Likewise.
18793 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18794 Likewise.
18795 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18796 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18797 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18798 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18799 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18800 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18801 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18802 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18803
18804 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18805
18806 * stdlib/strtof.c: Include <bits/floatn.h>
18807 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18808 and later undefine as macro. Define as weak alias if
18809 [!USE_WIDE_CHAR].
18810 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18811 and later undefine as macro. Define as weak alias if
18812 [USE_WIDE_CHAR].
18813 * stdlib/strtof_l.c: Include <bits/floatn.h>
18814 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18815 and later undefine as macro. Define as weak alias if
18816 [!USE_WIDE_CHAR].
18817 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18818 and later undefine as macro. Define as weak alias if
18819 [USE_WIDE_CHAR].
18820
18821 * stdlib/strfromf.c: Include <bits/floatn.h>.
18822 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18823 and later undefine as macro and define as weak alias.
18824
18825 * math/test-float32.h: New file.
18826
18827 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18828 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18829 (libm_alias_float_other_r): Create f32 alias.
18830 (libm_alias_float_r): Use semicolon before call to
18831 libm_alias_float_other_r.
18832
18833 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18834 second argument to libm_alias_float_other.
18835 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18836 second argument to libm_alias_float_other.
18837 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18838 argument to libm_alias_float_other.
18839
18840 [BZ #22561]
18841 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18842 real part of result for argument 0 + i * NaN.
18843 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18844 results for tests of 0 + i * NaN.
18845
18846 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18847
18848 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18849
18850 2017-12-06 David S. Miller <davem@davemloft.net>
18851
18852 * sysdeps/sparc/fpu/libm-test-ulps: Update
18853 exp_{downward,towardzero,upward} ulps.
18854
18855 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18856
18857 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18858 variables static.
18859
18860 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18861 (Y0_2D): Likewise.
18862 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18863 (Y0_2D): Likewise.
18864 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18865 (Y0_2D): Likewise.
18866 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18867 (Y0_2D): Likewise.
18868
18869 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18870
18871 [BZ #22515]
18872 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18873 and to the list of locales to be built for testing.
18874 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18875 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18876 and build the collation rules upon that.
18877
18878 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18879
18880 * NEWS: Add sinf to list of optimized functions.
18881
18882 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18883
18884 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
18885 (__HAVE_FLOAT32X): Likewise.
18886 * manual/math.texi (Mathematics): Document support for _Float64
18887 and _Float32x.
18888 * math/Makefile (test-types): Add float64 and float32x.
18889 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
18890 functions.
18891 * stdlib/Versions (GLIBC_2.27): Likewise.
18892 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18893 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18894 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18895 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18896 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18897 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18898 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18899 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18900 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18901 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18902 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18903 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18904 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18905 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18906 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18907 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18908 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18909 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18910 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18911 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18912 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18913 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18914 Likewise.
18915 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18916 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18917 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18918 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18919 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18920 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18921 Likewise.
18922 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18923 Likewise.
18924 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18925 Likewise.
18926 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18927 Likewise.
18928 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18929 Likewise.
18930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18931 Likewise.
18932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18933 Likewise.
18934 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18935 Likewise.
18936 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18937 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18938 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18939 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18940 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18941 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18942 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18943 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18944 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18945 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18946 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18947 Likewise.
18948 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18949 Likewise.
18950 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18951 Likewise.
18952 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18953 Likewise.
18954 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18955 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18956 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18957 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18958 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18959 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18960 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18961 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18962
18963 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18964
18965 * bits/floatn-common.h: Include <bits/long-double.h>.
18966 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18967 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
18968 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18969 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
18970 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18971 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
18972 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18973 (__builtin_huge_valf64): Use __builtin_huge_vall.
18974 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18975 (__builtin_inff64): Use __builtin_infl.
18976 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18977 (__builtin_nanf64): Use __builtin_nanl.
18978 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18979 (__builtin_nansf64): Use __builtin_nansl.
18980
18981 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
18982 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
18983 Carlos O'Donnell <carlos@redhat.com>
18984
18985 * elf/dl-tunables.list: Add elision parameters.
18986 * manual/tunables.texi: Add entries about elision tunable.
18987 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
18988 Add callback functions to dynamically enable/disable elision.
18989 Add multiple callbacks functions to set elision parameters.
18990 Deleted __libc_enable_secure check.
18991 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
18992 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
18993 * configure: Regenerated.
18994 * configure.ac: Option enable_lock_elision was deleted.
18995 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
18996 * config.make.in: Remove references to enable_lock_elision.
18997 * manual/install.texi: Elision configure option was removed.
18998 * INSTALL: Regenerated to remove enable_lock_elision.
18999 * nptl/Makefile:
19000 Disable elision so it can verify error case for destroying a mutex.
19001 * sysdeps/powerpc/nptl/elide.h:
19002 Cleanup ENABLE_LOCK_ELISION check.
19003 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19004 * sysdeps/s390/configure: Regenerated.
19005 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19006 * nptl/tst-mutex8.c:
19007 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19008 * sysdeps/powerpc/powerpc32/sysdep.h:
19009 Deleted all ENABLE_LOCK_ELISION checks.
19010 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19011 * sysdeps/powerpc/sysdep.h: Likewise.
19012 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19013 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19014 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19015 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19016 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19017 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19018 enable-lock-elision.
19019
19020 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19021
19022 * stdlib/strtod.c: Include <bits/floatn.h>.
19023 (BUILD_DOUBLE): New macro.
19024 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19025 (strtof64): Define and later undefine as macro. Define as weak
19026 alias if [!USE_WIDE_CHAR].
19027 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19028 (wcstof64): Define and later undefine as macro. Define as weak
19029 alias if [USE_WIDE_CHAR].
19030 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19031 (strtof32x): Define and later undefine as macro. Define as weak
19032 alias if [!USE_WIDE_CHAR].
19033 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19034 (wcstof32x): Define and later undefine as macro. Define as weak
19035 alias if [USE_WIDE_CHAR].
19036 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19037 (BUILD_DOUBLE): New macro.
19038 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19039 (strtof64_l): Define and later undefine as macro. Define as weak
19040 alias if [!USE_WIDE_CHAR].
19041 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19042 (wcstof64_l): Define and later undefine as macro. Define as weak
19043 alias if [USE_WIDE_CHAR].
19044 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19045 (strtof32x_l): Define and later undefine as macro. Define as weak
19046 alias if [!USE_WIDE_CHAR].
19047 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19048 (wcstof32x_l): Define and later undefine as macro. Define as weak
19049 alias if [USE_WIDE_CHAR].
19050
19051 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19052
19053 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19054 (reduced): Use ones as double instead of integer.
19055
19056 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19057
19058 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19059
19060 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19061
19062 * stdlib/strfromd.c: Include <bits/floatn.h>.
19063 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19064 and later undefine as macro and define as weak alias.
19065 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19066 Likewise.
19067
19068 * math/test-float32x.h: New file.
19069 * math/test-float64.h: Likewise.
19070
19071 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19072 (libm_alias_double_other_r_f64): New macro.
19073 (libm_alias_double_other_r_f32x): Likewise.
19074 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19075 libm_alias_double_other_r_f32x.
19076 (libm_alias_double_r): Use semicolon before call to
19077 libm_alias_double_other_r.
19078 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19079 <bits/floatn.h>.
19080 (libm_alias_double_other_r_f64): New macro.
19081 (libm_alias_double_other_r_f32x): Likewise.
19082 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19083 libm_alias_double_other_r_f32x.
19084
19085 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19086
19087 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19088 int.
19089 (SINF_FUNC): Likewise. Replace floor with simple casts.
19090
19091 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19092
19093 [BZ #22517]
19094 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19095 and to the list of locales to be built for testing.
19096 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19097 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19098 and build the collation rules upon that.
19099
19100 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19101
19102 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19103 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19104 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19105 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19106 instead of __insn__xxx.
19107 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19108 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19109 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19110 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19111 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19112 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19113
19114 2017-12-05 Florian Weimer <fweimer@redhat.com>
19115
19116 Linux: Implement interfaces for memory protection keys
19117 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19118 xsignal, xsysconf.
19119 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19120 * support/xunistd.h (xsysconf): Declare.
19121 * support/xraise.c: New file.
19122 * support/xsigaction.c: Likewise.
19123 * support/xsignal.c: Likewise.
19124 * support/xsysconf.c: Likewise.
19125 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19126 pkey_set, pkey_get, pkey_mprotect.
19127 [misc] (tests): Add tst-pkey.
19128 (tst-pkey): Link with -lpthread.
19129 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19130 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19131 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19132 (PKEY_DISABLE_WRITE): Define.
19133 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19134 Declare.
19135 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19136 (SEGV_PKUERR): Add.
19137 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19138 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19139 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19140 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19141 Add.
19142 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19143 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19144 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19145 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19146 * sysdeps/unix/sysv/linux/**.abilist: Update.
19147
19148 2017-12-05 Florian Weimer <fweimer@redhat.com>
19149
19150 * support/tst-test_compare.c (subprocess): Use long long instead
19151 of long argument for consistent type width across 32-bit and
19152 64-bit architectures.
19153 (do_test): Adjust expected output.
19154
19155 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19156
19157 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19158 (cosf): Define using libm_alias_float.
19159 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19160 (fabsf): Define using libm_alias_float.
19161 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19162 (fmaf): Define using libm_alias_float.
19163 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19164 (rintf): Define using libm_alias_float.
19165 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19166 (sinf): Define using libm_alias_float.
19167 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19168 <libm-alias-float.h>.
19169 (modff): Define using libm_alias_float.
19170 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19171 <libm-alias-float.h>.
19172 (logbf): Define using libm_alias_float.
19173 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19174 <libm-alias-float.h>.
19175 (ceilf): Define using libm_alias_float.
19176 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19177 <libm-alias-float.h>.
19178 (copysignf): Define using libm_alias_float.
19179 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19180 <libm-alias-float.h>.
19181 (floorf): Define using libm_alias_float.
19182 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19183 <libm-alias-float.h>.
19184 (llrintf): Define using libm_alias_float.
19185 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19186 <libm-alias-float.h>.
19187 (llroundf): Define using libm_alias_float.
19188 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19189 <libm-alias-float.h>.
19190 (lrintf): Define using libm_alias_float.
19191 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19192 <libm-alias-float.h>.
19193 (lroundf): Define using libm_alias_float.
19194 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19195 <libm-alias-float.h>.
19196 (nearbyintf): Define using libm_alias_float.
19197 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19198 <libm-alias-float.h>.
19199 (rintf): Define using libm_alias_float.
19200 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19201 <libm-alias-float.h>.
19202 (roundf): Define using libm_alias_float.
19203 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19204 <libm-alias-float.h>.
19205 (truncf): Define using libm_alias_float.
19206 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19207 Include <libm-alias-float.h>.
19208 (ceilf): Define using libm_alias_float.
19209 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19210 Include <libm-alias-float.h>.
19211 (copysignf): Define using libm_alias_float.
19212 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19213 Include <libm-alias-float.h>.
19214 (floorf): Define using libm_alias_float.
19215 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19216 Include <libm-alias-float.h>.
19217 (llrintf): Define using libm_alias_float.
19218 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19219 Include <libm-alias-float.h>.
19220 (llroundf): Define using libm_alias_float.
19221 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19222 Include <libm-alias-float.h>.
19223 (logbf): Define using libm_alias_float.
19224 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19225 Include <libm-alias-float.h>.
19226 (lrintf): Define using libm_alias_float.
19227 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19228 Include <libm-alias-float.h>.
19229 (lroundf): Define using libm_alias_float.
19230 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19231 Include <libm-alias-float.h>.
19232 (modff): Define using libm_alias_float.
19233 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19234 Include <libm-alias-float.h>.
19235 (roundf): Define using libm_alias_float.
19236 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19237 Include <libm-alias-float.h>.
19238 (truncf): Define using libm_alias_float.
19239 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19240 <libm-alias-float.h>.
19241 (llrintf): Define using libm_alias_float.
19242 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19243 <libm-alias-float.h>.
19244 (llroundf): Define using libm_alias_float.
19245 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19246 <libm-alias-float.h>.
19247 (ceilf): Define using libm_alias_float.
19248 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19249 <libm-alias-float.h>.
19250 (floorf): Define using libm_alias_float.
19251 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19252 <libm-alias-float.h>.
19253 (llroundf): Define using libm_alias_float.
19254 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19255 <libm-alias-float.h>.
19256 (lroundf): Define using libm_alias_float.
19257 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19258 <libm-alias-float.h>.
19259 (roundf): Define using libm_alias_float.
19260 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19261 <libm-alias-float.h>.
19262 (truncf): Define using libm_alias_float.
19263 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19264 <libm-alias-float.h>.
19265 (copysignf): Define using libm_alias_float.
19266 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19267 <libm-alias-float.h>.
19268 (llrintf): Define using libm_alias_float.
19269 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19270 <libm-alias-float.h>.
19271 (llroundf): Define using libm_alias_float.
19272 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19273 <libm-alias-float.h>.
19274 (lrintf): Define using libm_alias_float.
19275 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19276 <libm-alias-float.h>.
19277 (lroundf): Define using libm_alias_float.
19278 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19279 <libm-alias-float.h>.
19280 (ceilf): Define using libm_alias_float.
19281 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19282 <libm-alias-float.h>.
19283 (copysignf): Define using libm_alias_float.
19284 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19285 <libm-alias-float.h>.
19286 (cosf): Define using libm_alias_float.
19287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19288 <libm-alias-float.h>.
19289 (floorf): Define using libm_alias_float.
19290 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19291 <libm-alias-float.h>.
19292 (llrintf): Define using libm_alias_float.
19293 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19294 <libm-alias-float.h>.
19295 (llroundf): Define using libm_alias_float.
19296 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19297 <libm-alias-float.h>.
19298 (logbf): Define using libm_alias_float.
19299 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19300 <libm-alias-float.h>.
19301 (modff): Define using libm_alias_float.
19302 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19303 <libm-alias-float.h>.
19304 (roundf): Define using libm_alias_float.
19305 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19306 <libm-alias-float.h>.
19307 (sinf): Define using libm_alias_float.
19308 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19309 <libm-alias-float.h>.
19310 (truncf): Define using libm_alias_float.
19311 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19312 <libm-alias-float.h>.
19313 (ceilf): Define using libm_alias_float.
19314 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19315 <libm-alias-float.h>.
19316 (copysignf): Define using libm_alias_float.
19317 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19318 <libm-alias-float.h>.
19319 (floorf): Define using libm_alias_float.
19320 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19321 <libm-alias-float.h>.
19322 (llrintf): Define using libm_alias_float.
19323 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19324 <libm-alias-float.h>.
19325 (llroundf): Define using libm_alias_float.
19326 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19327 <libm-alias-float.h>.
19328 (nearbyintf): Define using libm_alias_float.
19329 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19330 <libm-alias-float.h>.
19331 (rintf): Define using libm_alias_float.
19332 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19333 <libm-alias-float.h>.
19334 (roundf): Define using libm_alias_float.
19335 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19336 <libm-alias-float.h>.
19337 (truncf): Define using libm_alias_float.
19338 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19339 <libm-alias-float.h>.
19340 (ceilf): Define using libm_alias_float.
19341 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19342 <libm-alias-float.h>.
19343 (floorf): Define using libm_alias_float.
19344 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19345 <libm-alias-float.h>.
19346 (llroundf): Define using libm_alias_float.
19347 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19348 <libm-alias-float.h>.
19349 (roundf): Define using libm_alias_float.
19350 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19351 <libm-alias-float.h>.
19352 (truncf): Define using libm_alias_float.
19353 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19354 <libm-alias-float.h>.
19355 (copysignf): Define using libm_alias_float.
19356 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19357 <libm-alias-float.h>.
19358 (llrintf): Define using libm_alias_float.
19359 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19360 <libm-alias-float.h>.
19361 (llroundf): Define using libm_alias_float.
19362 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19363 <libm-alias-float.h>.
19364 (cosf): Define using libm_alias_float.
19365 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19366 <libm-alias-float.h>.
19367 (llrintf): Define using libm_alias_float.
19368 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19369 <libm-alias-float.h>.
19370 (llroundf): Define using libm_alias_float.
19371 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19372 <libm-alias-float.h>.
19373 (sinf): Define using libm_alias_float.
19374
19375 2017-12-04 Florian Weimer <fweimer@redhat.com>
19376
19377 * support/check.h (TEST_COMPARE): Define.
19378 (support_test_compare_failure): Declare.
19379 * support/Makefile (libsupport-routines): Add
19380 support_test_compare_failure.
19381 (tests): Add tst-test_compare.
19382 * support /support_test_compare_failure.c: New file.
19383 * support/tst-test_compare.c: Likewise.
19384
19385 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19386
19387 [BZ #22527]
19388 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19389 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19390 available, this rewrite of the collation rules does reproduce
19391 the test file in the same order.
19392
19393 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19394
19395 [BZ #10580]
19396 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19397 digraphs in the month and day names. Using single code points for
19398 digraphs is deprecated. While there are dedicated Unicode
19399 codepoints, for the digraphs, these are included for backwards
19400 compatibility and modern texts use a sequence of Basic Latin
19401 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19402 This makes the month and day names agree exactly with CLDR now,
19403 CLDR does not use the single code points for the digraphs either.
19404
19405 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19406
19407 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19408
19409 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19410
19411 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19412 of floor.
19413
19414 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19415
19416 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19417 Define only for libc.so.
19418
19419 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19420
19421 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19422 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19423 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19424 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19425 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19426
19427 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19428
19429 [BZ #5997]
19430 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19431
19432 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19433
19434 [BZ libc/19170]
19435 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19436 PREINIT_FUNCTION_WEAK is nonzero.
19437 (gmon_initializer): New function. Put procedure label for it in
19438 .init_array section.
19439 (_init): Don't call PREINIT_FUNCTION.
19440 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19441 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19442 value when map argument is null.
19443
19444 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19445 depi instruction from PIC pc-relative sequence.
19446 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19447 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19448 (elf_machine_load_address): Likewise.
19449 (elf_machine_runtime_setup): Likewise.
19450
19451 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19452
19453 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19454 <libm-alias-double.h>.
19455 (logb): Define using libm_alias_double.
19456 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19457 <libm-alias-double.h>.
19458 (copysign): Define using libm_alias_double.
19459 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19460 <libm-alias-double.h>.
19461 (llrint): Define using libm_alias_double.
19462 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19463 <libm-alias-double.h>.
19464 (llround): Define using libm_alias_double.
19465 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19466 <libm-alias-double.h>.
19467 (lrint): Define using libm_alias_double.
19468 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19469 <libm-alias-double.h>.
19470 (lround): Define using libm_alias_double.
19471 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19472 Include <libm-alias-double.h>.
19473 (copysign): Define using libm_alias_double.
19474 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19475 Include <libm-alias-double.h>.
19476 (llrint): Define using libm_alias_double.
19477 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19478 Include <libm-alias-double.h>.
19479 (llround): Define using libm_alias_double.
19480 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19481 <libm-alias-double.h>.
19482 (logb): Define using libm_alias_double.
19483 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19484 Include <libm-alias-double.h>.
19485 (lrint): Define using libm_alias_double.
19486 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19487 Include <libm-alias-double.h>.
19488 (lround): Define using libm_alias_double.
19489 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19490 <libm-alias-double.h>.
19491 (llrint): Define using libm_alias_double.
19492 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19493 <libm-alias-double.h>.
19494 (llround): Define using libm_alias_double.
19495 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19496 <libm-alias-double.h>.
19497 (llround): Define using libm_alias_double.
19498 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19499 <libm-alias-double.h>.
19500 (lround): Define using libm_alias_double.
19501 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19502 <libm-alias-double.h>.
19503 (copysign): Define using libm_alias_double.
19504 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19505 <libm-alias-double.h>.
19506 (llrint): Define using libm_alias_double.
19507 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19508 <libm-alias-double.h>.
19509 (llround): Define using libm_alias_double.
19510 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19511 <libm-alias-double.h>.
19512 (lrint): Define using libm_alias_double.
19513 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19514 <libm-alias-double.h>.
19515 (lround): Define using libm_alias_double.
19516 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19517 <libm-alias-double.h>.
19518 (copysign): Define using libm_alias_double.
19519 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19520 <libm-alias-double.h>.
19521 (llrint): Define using libm_alias_double.
19522 (lrint): Likewise.
19523 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19524 <libm-alias-double.h>.
19525 (llround): Define using libm_alias_double.
19526 (lround): Likewise.
19527 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19528 <libm-alias-double.h>.
19529 (logb): Define using libm_alias_double.
19530 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19531 <libm-alias-double.h>.
19532 (copysign): Define using libm_alias_double.
19533 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19534 <libm-alias-double.h>.
19535 (llrint): Define using libm_alias_double.
19536 (lrint): Likewise.
19537 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19538 <libm-alias-double.h>.
19539 (llround): Define using libm_alias_double.
19540 (lround): Likewise.
19541 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19542 <libm-alias-double.h>.
19543 (llround): Define using libm_alias_double.
19544 (lround): Likewise.
19545 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19546 <libm-alias-double.h>.
19547 (copysign): Define using libm_alias_double.
19548 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19549 <libm-alias-double.h>.
19550 (llrint): Define using libm_alias_double.
19551 (lrint): Likewise.
19552 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19553 <libm-alias-double.h>.
19554 (llround): Define using libm_alias_double.
19555 (lround): Likewise.
19556 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19557 <libm-alias-double.h>.
19558 (llrint): Define using libm_alias_double.
19559 (lrint): Likewise.
19560 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19561 <libm-alias-double.h>.
19562 (llround): Define using libm_alias_double.
19563 (lround): Likewise.
19564
19565 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19566
19567 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19568 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19569 compat symbol based on llround.
19570
19571 * sysdeps/powerpc/power7/fpu/s_logb.c
19572 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19573 symbol based on __logb, not on logb.
19574 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19575 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19576 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19577 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19578
19579 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19580 (rint): Define using libm_alias_double.
19581 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19582 <libm-alias-double.h>.
19583 (modf): Define using libm_alias_double.
19584 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19585 <libm-alias-double.h>.
19586 (ceil): Define using libm_alias_double.
19587 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19588 <libm-alias-double.h>.
19589 (floor): Define using libm_alias_double.
19590 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19591 <libm-alias-double.h>.
19592 (nearbyint): Define using libm_alias_double.
19593 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19594 <libm-alias-double.h>.
19595 (rint): Define using libm_alias_double.
19596 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19597 <libm-alias-double.h>.
19598 (round): Define using libm_alias_double.
19599 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19600 <libm-alias-double.h>.
19601 (trunc): Define using libm_alias_double.
19602 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19603 <libm-alias-double.h>.
19604 (ceil): Define using libm_alias_double.
19605 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19606 Include <libm-alias-double.h>.
19607 (floor): Define using libm_alias_double.
19608 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19609 <libm-alias-double.h>.
19610 (modf): Define using libm_alias_double.
19611 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19612 Include <libm-alias-double.h>.
19613 (round): Define using libm_alias_double.
19614 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19615 Include <libm-alias-double.h>.
19616 (trunc): Define using libm_alias_double.
19617 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19618 <libm-alias-double.h>.
19619 (ceil): Define using libm_alias_double.
19620 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19621 <libm-alias-double.h>.
19622 (floor): Define using libm_alias_double.
19623 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19624 <libm-alias-double.h>.
19625 (round): Define using libm_alias_double.
19626 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19627 <libm-alias-double.h>.
19628 (trunc): Define using libm_alias_double.
19629 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19630 <libm-alias-double.h>.
19631 (ceil): Define using libm_alias_double.
19632 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19633 <libm-alias-double.h>.
19634 (floor): Define using libm_alias_double.
19635 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19636 <libm-alias-double.h>.
19637 (modf): Define using libm_alias_double.
19638 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19639 <libm-alias-double.h>.
19640 (round): Define using libm_alias_double.
19641 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19642 <libm-alias-double.h>.
19643 (trunc): Define using libm_alias_double.
19644 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19645 <libm-alias-double.h>.
19646 (ceil): Define using libm_alias_double.
19647 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19648 <libm-alias-double.h>.
19649 (floor): Define using libm_alias_double.
19650 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19651 <libm-alias-double.h>.
19652 (nearbyint): Define using libm_alias_double.
19653 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19654 <libm-alias-double.h>.
19655 (rint): Define using libm_alias_double.
19656 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19657 <libm-alias-double.h>.
19658 (round): Define using libm_alias_double.
19659 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19660 <libm-alias-double.h>.
19661 (trunc): Define using libm_alias_double.
19662 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19663 <libm-alias-double.h>.
19664 (ceil): Define using libm_alias_double.
19665 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19666 <libm-alias-double.h>.
19667 (floor): Define using libm_alias_double.
19668 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19669 <libm-alias-double.h>.
19670 (round): Define using libm_alias_double.
19671 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19672 <libm-alias-double.h>.
19673 (trunc): Define using libm_alias_double.
19674
19675 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19676 (fabs): Define using libm_alias_double.
19677 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19678 (fma): Define using libm_alias_double.
19679 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19680 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19681 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19682 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19683
19684 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19685
19686 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19687
19688 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19689 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19690 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19691
19692 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19693 due redirect macro.
19694
19695 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19696
19697 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19698
19699 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19700
19701 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19702 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19703 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19704 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19705
19706 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19707 (libm-sysdep_routines): Add s_nearbyintf-generic and
19708 s_nearbyint-generic.
19709 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19710 New file.
19711 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19712 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19713 Likewise.
19714 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19715 Likewise.
19716 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19717 file.
19718 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19719 Likewise.
19720
19721 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19722 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19723 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19724 file.
19725 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19726 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19727 Likewise.
19728 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19729 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19730 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19731
19732 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19733 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19734 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19735 file.
19736 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19737 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19738 Likewise.
19739 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19740 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19741 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19742
19743 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19744 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19745 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19746 file.
19747 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19748 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19749 Likewise.
19750 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19751 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19752 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19753
19754 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19755 (sysdep_calls): New rule.
19756 (sysdep_routines): Use sysdep_calls as base.
19757 (libm-sysdep_routines): Add generic rule for symbols shared with
19758 libc. Add s_copysign-generic and s_copysign-generic objects.
19759 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19760 New file.
19761 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19762 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19763 Likewise.
19764 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19765 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19766 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19767
19768 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19769
19770 [BZ #22519]
19771 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19772 the list of locales to be built for testing.
19773 * localedata/is_IS.UTF-8.in: New file.
19774 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19775 on iso14651_t1.
19776
19777 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19778
19779 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19780 <libm-alias-float.h>.
19781 (fabsf): Define using libm_alias_float.
19782
19783 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19784
19785 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19786
19787 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19788
19789 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19790 <libm-alias-float.h>.
19791 (fabsf): Define using libm_alias_float.
19792 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19793 <libm-alias-float.h>.
19794 (lrintf): Define using libm_alias_float.
19795 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19796 <libm-alias-float.h>.
19797 (rintf): Define using libm_alias_float.
19798
19799 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19800 <libm-alias-double.h>.
19801 (fabs): Define using libm_alias_double.
19802 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19803 <libm-alias-double.h>.
19804 (lrint): Define using libm_alias_double.
19805 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19806 <libm-alias-double.h>.
19807 (rint): Define using libm_alias_double.
19808
19809 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19810 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19811 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19812 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19813 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19814 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19815 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19816 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19817 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19818 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19819 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19820 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19821 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19822 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19823 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19824 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19825 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19826 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19827 s_atan_template.c.
19828 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19829 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19830 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19831 s_ceil_template.c.
19832 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19833 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19834 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19835 s_cos_template.c.
19836 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19837 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19838 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19839 s_expm1_template.c.
19840 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19841 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19842 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19843 s_fabs_template.c.
19844 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19845 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19846 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19847 s_floor_template.c.
19848 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19849 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19850 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19851 s_frexp_template.c.
19852 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19853 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19854 s_lrint_template.c.
19855 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19856 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19857 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19858 s_modf_template.c.
19859 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19860 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19861 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19862 s_nearbyint_template.c.
19863 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19864 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19865 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19866 s_remquo_template.c.
19867 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19868 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19869 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19870 s_rint_template.c.
19871 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19872 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19873 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19874 s_sin_template.c.
19875 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19876 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19877 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19878 s_sincos_template.c.
19879 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19880 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19881 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19882 s_tan_template.c.
19883 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
19884 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
19885 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
19886 s_tanh_template.c.
19887 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
19888 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
19889 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
19890 s_trunc_template.c.
19891 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
19892 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
19893 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
19894 s_atan.c instead of including s_atan.c.
19895 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
19896 s_atanf.c instead of including s_atanf.c.
19897 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
19898 s_atanl.c instead of including s_atanl.c.
19899 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
19900 instead of s_atan.c.
19901 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
19902 instead of s_atanf.c.
19903 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
19904 instead of s_atanl.c.
19905
19906 * scripts/update-copyrights: Do not handle intl/plural.c
19907 specially.
19908
19909 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
19910
19911 [BZ #22432]
19912 * configure.ac (BISON): Require to be present.
19913 * configure: Regenerated.
19914 * intl/Makefile (generated): Add plural.c.
19915 [$(BISON) != no]: Make code unconditional.
19916 (plural.c): Change rule to $(objpfx)plural.c.
19917 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
19918 * intl/plural.c: Remove.
19919 * manual/install.texi (Tools for Compilation): Document bison as
19920 required.
19921 * INSTALL: Regenerated.
19922
19923 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19924
19925 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
19926 <libm-alias-double.h>.
19927 (llrint): Define using libm_alias_double.
19928 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
19929 <libm-alias-float.h>.
19930 (llrintf): Define using libm_alias_float.
19931 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
19932 <libm-alias-ldouble.h>.
19933 (llrintl): Define using libm_alias_ldouble.
19934
19935 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
19936 declare_mgen_alias instead of weak_alias.
19937 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
19938 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
19939 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
19940
19941 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19942
19943 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19944 Add add_n-generic.
19945 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
19946 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
19947 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
19948
19949 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19950 Add submul_1-generic.
19951 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
19952 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
19953 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
19954
19955 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19956 Add addmul_1-generic.
19957 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
19958 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
19959 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
19960
19961 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19962 Add sub_n-generic.
19963 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
19964 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
19965 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
19966
19967 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19968 Add mul_1-generic.
19969 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
19970 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
19971 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
19972
19973 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19974
19975 According to CLDR, collation rules for Serbian and Bosnian
19976 should be the same as for Croatian.
19977
19978 [BZ #22534]
19979 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
19980 and to the list of locales to be built for testing.
19981 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19982 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19983 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
19984 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
19985
19986 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19987
19988 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
19989 to make test case pass.
19990 * localedata/hr_HR.UTF-8.in: Add more test strings.
19991
19992 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19993
19994 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
19995
19996 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
19997
19998 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
19999 the list of locales to built for testing.
20000 * localedata/hr_HR.UTF-8.in: New file.
20001
20002 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20003
20004 [BZ #10580]
20005 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20006 iso14651_t1.
20007 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20008 CLDR (except use ligatures for the digraphs, CLDR does not use
20009 the ligatures), add first_workday, some fixes in the date and time
20010 formats.
20011 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20012 for Đ and đ.
20013 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20014 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20015 Add int_p_cs_precedes and int_n_cs_precedes.
20016 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20017 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20018 LC_MONETARY now).
20019 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20020 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20021 name_miss.
20022 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20023 and lang_lib. Change postal_fmt.
20024
20025 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20026
20027 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20028 <setjmp.h>.
20029 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20030 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20031 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20032 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20033 * sysdeps/generic/setjmpP.h: New file.
20034 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20035 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20036 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20037 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20038 Add jmp_buf-ssp.sym.
20039 (tests): Add tst-saved_mask-1.
20040
20041 2017-11-30 Arjun Shankar <arjun@redhat.com>
20042
20043 [BZ #22375]
20044 CVE-2017-17426
20045 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20046 instead of request2size.
20047
20048 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20049
20050 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20051 (__lllrint): Remove alias.
20052 (lllrint): Likewise.
20053 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20054 (__lllrintf): Likewise.
20055 (lllrintf): Likewise.
20056
20057 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20058 <libm-alias-float.h>.
20059 (copysignf): Define using libm_alias_float.
20060 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20061 <libm-alias-float.h>.
20062 (fabsf): Define using libm_alias_float.
20063 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20064 Include <libm-alias-float.h>.
20065 (copysignf): Define using libm_alias_float.
20066 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20067 <libm-alias-float.h>.
20068 (fabsf): Define using libm_alias_float.
20069 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20070 <libm-alias-float.h>.
20071 (fdimf): Define using libm_alias_float.
20072 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20073 <libm-alias-float.h>.
20074 (fmaf): Define using libm_alias_float.
20075 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20076 <libm-alias-float.h>.
20077 (llrintf): Define using libm_alias_float.
20078 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20079 Include <libm-alias-float.h>.
20080 (nearbyintf): Define using libm_alias_float.
20081 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20082 <libm-alias-float.h>.
20083 (rintf): Define using libm_alias_float.
20084 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20085 <libm-alias-float.h>.
20086 (llrintf): Define using libm_alias_float.
20087 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20088 <libm-alias-float.h>.
20089 (lrintf): Define using libm_alias_float.
20090 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20091 <libm-alias-float.h>.
20092 (nearbyintf): Define using libm_alias_float.
20093 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20094 <libm-alias-float.h>.
20095 (rintf): Define using libm_alias_float.
20096 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20097 <libm-alias-float.h>.
20098 (ceilf): Define using libm_alias_float.
20099 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20100 <libm-alias-float.h>.
20101 (floorf): Define using libm_alias_float.
20102 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20103 <libm-alias-float.h>.
20104 (fmaf): Define using libm_alias_float.
20105 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20106 <libm-alias-float.h>.
20107 (lrintf): Define using libm_alias_float.
20108 (llrintf): Likewise.
20109 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20110 <libm-alias-float.h>.
20111 (nearbyintf): Define using libm_alias_float.
20112 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20113 <libm-alias-float.h>.
20114 (rintf): Define using libm_alias_float.
20115 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20116 <libm-alias-float.h>.
20117 (truncf): Define using libm_alias_float.
20118 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20119 <libm-alias-float.h>.
20120 (copysignf): Define using libm_alias_float.
20121 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20122 <libm-alias-float.h>.
20123 (fabsf): Define using libm_alias_float.
20124 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20125 <libm-alias-float.h>.
20126 (lrintf): Define using libm_alias_float.
20127 (llrintf): Likewise.
20128 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20129 <libm-alias-float.h>.
20130 (nearbyintf): Define using libm_alias_float.
20131 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20132 <libm-alias-float.h>.
20133 (rintf): Define using libm_alias_float.
20134
20135 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20136
20137 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20138 <libm-alias-double.h>.
20139 (copysign): Define using libm_alias_double.
20140 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20141 <libm-alias-double.h>.
20142 (fabs): Define using libm_alias_double.
20143 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20144 Include <libm-alias-double.h>.
20145 (copysign): Define using libm_alias_double.
20146 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20147 <libm-alias-double.h>.
20148 (fabs): Define using libm_alias_double.
20149 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20150 <libm-alias-double.h>.
20151 (fdim): Define using libm_alias_double.
20152 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20153 <libm-alias-double.h>.
20154 (fma): Define using libm_alias_double.
20155 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20156 <libm-alias-double.h>.
20157 (llrint): Define using libm_alias_double.
20158 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20159 Include <libm-alias-double.h>.
20160 (nearbyint): Define using libm_alias_double.
20161 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20162 <libm-alias-double.h>.
20163 (rint): Define using libm_alias_double.
20164 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20165 <libm-alias-double.h>.
20166 (fabs): Define using libm_alias_double.
20167 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20168 <libm-alias-double.h>.
20169 (llrint): Define using libm_alias_double.
20170 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20171 <libm-alias-double.h>.
20172 (nearbyint): Define using libm_alias_double.
20173 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20174 <libm-alias-double.h>.
20175 (rint): Define using libm_alias_double.
20176 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20177 <libm-alias-double.h>.
20178 (ceil): Define using libm_alias_double.
20179 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20180 <libm-alias-double.h>.
20181 (floor): Define using libm_alias_double.
20182 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20183 <libm-alias-double.h>.
20184 (fma): Define using libm_alias_double.
20185 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20186 <libm-alias-double.h>.
20187 (lrint): Define using libm_alias_double.
20188 (llrint): Likewise.
20189 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20190 <libm-alias-double.h>.
20191 (nearbyint): Define using libm_alias_double.
20192 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20193 <libm-alias-double.h>.
20194 (rint): Define using libm_alias_double.
20195 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20196 <libm-alias-double.h>.
20197 (trunc): Define using libm_alias_double.
20198 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20199 <libm-alias-double.h>.
20200 (copysign): Define using libm_alias_double.
20201 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20202 <libm-alias-double.h>.
20203 (fabs): Define using libm_alias_double.
20204 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20205 <libm-alias-double.h>.
20206 (lrint): Define using libm_alias_double.
20207 (llrint): Likewise.
20208 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20209 <libm-alias-double.h>.
20210 (nearbyint): Define using libm_alias_double.
20211 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20212 <libm-alias-double.h>.
20213 (rint): Define using libm_alias_double.
20214
20215 [BZ #22229]
20216 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20217 <math_ldbl_opt.h>.
20218 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20219
20220 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20221 SPARC --disable-multi-arch glibc variants.
20222
20223 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20224 <libm-alias-float.h>.
20225 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20226 if [SHARED].
20227 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20228 <libm-alias-float.h>.
20229 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20230 if [SHARED].
20231 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20232 <libm-alias-float.h>.
20233 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20234 if [SHARED].
20235 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20236 <libm-alias-float.h>.
20237 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20238 if [SHARED].
20239 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20240 <libm-alias-float.h>.
20241 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20242 if [SHARED].
20243 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20244 <libm-alias-float.h>.
20245 (ceilf): Define using libm_alias_float.
20246 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20247 <libm-alias-float.h>.
20248 (floorf): Define using libm_alias_float.
20249 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20250 <libm-alias-float.h>.
20251 (fmaf): Define using libm_alias_float.
20252 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20253 <libm-alias-float.h>.
20254 (nearbyintf): Define using libm_alias_float.
20255 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20256 <libm-alias-float.h>.
20257 (rintf): Define using libm_alias_float.
20258 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20259 <libm-alias-float.h>.
20260 (truncf): Define using libm_alias_float.
20261 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20262 (copysignf): Define using libm_alias_float.
20263 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20264 (cosf): Define using libm_alias_float.
20265 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20266 (fabsf): Define using libm_alias_float.
20267 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20268 (fmaxf): Define using libm_alias_float.
20269 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20270 (fminf): Define using libm_alias_float.
20271 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20272 (llrintf): Define using libm_alias_float.
20273 [!__ILP32__] (lrintf): Likewise.
20274 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20275 (sincosf): Define using libm_alias_float.
20276 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20277 (sinf): Define using libm_alias_float.
20278 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20279 (lrintf): Define using libm_alias_float.
20280
20281 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20282 <libm-alias-double.h>.
20283 (atan): Define using libm_alias_double.
20284 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20285 <libm-alias-double.h>.
20286 (ceil): Define using libm_alias_double.
20287 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20288 <libm-alias-double.h>.
20289 (floor): Define using libm_alias_double.
20290 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20291 <libm-alias-double.h>.
20292 (fma): Define using libm_alias_double.
20293 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20294 <libm-alias-double.h>.
20295 (nearbyint): Define using libm_alias_double.
20296 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20297 <libm-alias-double.h>.
20298 (rint): Define using libm_alias_double.
20299 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20300 <libm-alias-double.h>.
20301 (sin): Define using libm_alias_double.
20302 (cos): Likewise.
20303 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20304 <libm-alias-double.h>.
20305 (tan): Define using libm_alias_double.
20306 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20307 <libm-alias-double.h>.
20308 (trunc): Define using libm_alias_double.
20309 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20310 (copysign): Define using libm_alias_double.
20311 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20312 (fabs): Define using libm_alias_double.
20313 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20314 (fmax): Define using libm_alias_double.
20315 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20316 (fmin): Define using libm_alias_double.
20317 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20318 (llrint): Define using libm_alias_double.
20319 [!__ILP32__] (lrint): Likewise.
20320 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20321 (lrint): Define using libm_alias_double.
20322
20323 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20324
20325 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20326 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20327 objects.
20328 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20329 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20330 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20331 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20332 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20333 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20334
20335 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20336 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20337 objects.
20338 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20339 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20340 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20341 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20342 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20343 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20344
20345 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20346 (libm-sysdep_routines): Add s_nearbyint-generic and
20347 s_nearbyintf-generic objects.
20348 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20349 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20350 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20351 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20352 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20353 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20354
20355 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20356 Add s_finitef-generic and s_finite-generic objects.
20357 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20358 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20359 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20360 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20361 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20362 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20363
20364 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20365 Add s_isinff-generic and s_isinf-generic objects.
20366 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20367 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20368 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20369 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20370 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20371 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20372
20373 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20374 Add s_isnanf-generic and s_isnan-generic objects.
20375 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20376 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20377 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20378 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20379 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20380 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20381
20382 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20383 macro.
20384 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20385 rule.
20386 (sysdep_routines): Use sysdep_calls as base.
20387 (libm-sysdep_routines): Add generic rule for symbols shared with
20388 libc. Add s_signbit-generic and s_signbitf-generic objects.
20389 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20390 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20391 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20392 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20393 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20394 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20395
20396 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20397
20398 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20399 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20400 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20401 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20402 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20403 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20404 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20405 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20406 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20407 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20408 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20409 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20410 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20411 libm_alias_float_r.
20412 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20413 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20414 (logf): Likewise.
20415 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20416 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20417 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20418 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20419 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20420 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20421 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20422 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20423 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20424 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20425 libm_alias_float.
20426 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20427 (cosf): Likewise.
20428 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20429 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20430 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20431 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20432 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20433 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20434 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20435 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20436 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20437 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20438 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20439 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20440 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20441 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20442 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20443 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20444 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20445 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20446 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20447 libm_alias_float.
20448 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20449 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20450 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20451 * sysdeps/ia64/fpu/w_lgammaf_main.c
20452 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20453 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20454
20455 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20456 Alexandre Oliva <aoliva@redhat.com>
20457
20458 [BZ #17750]
20459 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20460 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20461 accents sorting.
20462 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20463 sorting.
20464 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20465 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20466 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20467 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20468 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20469 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20470 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20471 instead of “ifdef DIACRIT_BACKWARD”.
20472
20473 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20474
20475 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20476 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20477 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20478 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20479 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20480 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20481 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20482 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20483 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20484 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20485 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20486 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20487 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20488 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20489 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20490 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20491 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20492 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20493 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20494 ($(have-as-vis3) == yes): Remove conditional.
20495 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20496 Likewise.
20497 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20498 file.
20499 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20500 file.
20501 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20502 file.
20503 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20504 file.
20505 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20506 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20507 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20508 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20509 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20510 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20511 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20512 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20513
20514 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20515
20516 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20517 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20518 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20519 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20520 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20521 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20522 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20523 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20524 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20525 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20526 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20527 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20528 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20529 libm_alias_double_r.
20530 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20531 (log): Likewise.
20532 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20533 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20534 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20535 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20536 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20537 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20538 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20539 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20540 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20541 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20542 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20543 libm_alias_double.
20544 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20545 (cos): Likewise.
20546 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20547 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20548 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20549 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20550 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20551 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20552 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20553 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20554 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20555 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20556 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20557 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20558 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20559 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20560 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20561 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20562 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20563 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20564 libm_alias_double.
20565 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20566 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20567 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20568 * sysdeps/ia64/fpu/w_lgamma_main.c
20569 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20570 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20571
20572 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20573
20574 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20575 address of $global$ into %dp register earlier. Use pc-relative
20576 instruction sequence for PIC case.
20577
20578 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20579
20580 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20581 (asinhf): Define using libm_alias_float.
20582 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20583 (atanf): Define using libm_alias_float.
20584 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20585 (cbrtf): Define using libm_alias_float.
20586 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20587 (ceilf): Define using libm_alias_float.
20588 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20589 (copysignf): Define using libm_alias_float.
20590 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20591 (expm1f): Define using libm_alias_float.
20592 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20593 (fabsf): Define using libm_alias_float.
20594 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20595 (floorf): Define using libm_alias_float.
20596 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20597 (fmaxf): Define using libm_alias_float.
20598 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20599 (fminf): Define using libm_alias_float.
20600 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20601 (frexpf): Define using libm_alias_float.
20602 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20603 (llrintf): Define using libm_alias_float.
20604 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20605 (logbf): Define using libm_alias_float.
20606 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20607 (lrintf): Define using libm_alias_float.
20608 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20609 (nearbyintf): Define using libm_alias_float.
20610 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20611 (remquof): Define using libm_alias_float.
20612 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20613 (rintf): Define using libm_alias_float.
20614 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20615 (truncf): Define using libm_alias_float.
20616 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20617 <libm-alias-float.h>.
20618 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20619 if [SHARED].
20620 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20621 <libm-alias-float.h>.
20622 (expf): Define using libm_alias_float, or libm_alias_float_other
20623 if [SHARED].
20624 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20625 <libm-alias-float.h>.
20626 (log2f): Define using libm_alias_float, or libm_alias_float_other
20627 if [SHARED].
20628 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20629 <libm-alias-float.h>.
20630 (logf): Define using libm_alias_float, or libm_alias_float_other
20631 if [SHARED].
20632 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20633 <libm-alias-float.h>.
20634 (powf): Define using libm_alias_float, or libm_alias_float_other
20635 if [SHARED].
20636 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20637 <libm-alias-float.h>.
20638 (cosf): Define using libm_alias_float.
20639 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20640 <libm-alias-float.h>.
20641 (sincosf): Define using libm_alias_float.
20642 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20643 <libm-alias-float.h>.
20644 (sinf): Define using libm_alias_float.
20645 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20646 (fmaxf): Define using libm_alias_float.
20647 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20648 (fminf): Define using libm_alias_float.
20649 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20650 <libm-alias-float.h>.
20651 (fmaf): Define using libm_alias_float.
20652
20653 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20654 (asinh): Define using libm_alias_double.
20655 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20656 (atan): Define using libm_alias_double.
20657 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20658 (cbrt): Define using libm_alias_double.
20659 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20660 (ceil): Define using libm_alias_double.
20661 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20662 (copysign): Define using libm_alias_double.
20663 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20664 (expm1): Define using libm_alias_double.
20665 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20666 (fabs): Define using libm_alias_double.
20667 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20668 (fdim): Define using libm_alias_double.
20669 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20670 (floor): Define using libm_alias_double.
20671 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20672 (fmax): Define using libm_alias_double.
20673 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20674 (fmin): Define using libm_alias_double.
20675 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20676 (frexp): Define using libm_alias_double.
20677 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20678 (llrint): Define using libm_alias_double.
20679 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20680 (logb): Define using libm_alias_double.
20681 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20682 (lrint): Define using libm_alias_double.
20683 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20684 (nearbyint): Define using libm_alias_double.
20685 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20686 (remquo): Define using libm_alias_double.
20687 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20688 (rint): Define using libm_alias_double.
20689 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20690 (trunc): Define using libm_alias_double.
20691 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20692 (fmax): Define using libm_alias_double.
20693 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20694 (fmin): Define using libm_alias_double.
20695 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20696 (fma): Define using libm_alias_double.
20697
20698 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20699
20700 [BZ #22370]
20701 * elf/dl-hwcaps.c (ROUND): Removed.
20702 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20703 and ELF_NOTE_NEXT_OFFSET.
20704 * elf/dl-load.c (ROUND): Removed.
20705 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20706 * elf/readelflib.c (ROUND): Removed.
20707 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20708 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20709 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20710 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20711
20712 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20713
20714 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20715 [!__fmaf] (fmaf): Define using libm_alias_float.
20716
20717 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20718 [!__fma] (fma): Define using libm_alias_double.
20719 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20720
20721 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20722
20723 [BZ #22336]
20724 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20725 and implement the collation rules for cs from CLDR on top of that.
20726 * Makefile: Add cs_CZ.UTF-8 to test-input.
20727 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20728
20729 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20730
20731 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20732
20733 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20734 Icarus Sparry <icarus.w.sparry@intel.com>
20735
20736 * benchtests/Makefile:Add BENCHSET to allow subsets of
20737 benchmarks to be run.
20738 * benchtests/README: Add documentation for: Running subsets of
20739 benchmarks.
20740
20741 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20742
20743 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20744 range of tests names.
20745
20746 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20747 result from property and remove "max", min" and "mean" from
20748 required properties based on benchtests/bench-skeleton.c.
20749
20750 2017-11-28 Florian Weimer <fweimer@redhat.com>
20751
20752 [BZ #20826]
20753 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20754 due to Internet requirement.
20755 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20756 tst-getaddrinfo5.
20757 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20758
20759 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20760
20761 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20762 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20763 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20764 (sysdep_routines): Add memset-ultra1.
20765 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20766 file.
20767 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20768 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20769 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20770 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20771 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20772 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20773 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20774 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20775
20776 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20777 file.
20778 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20779 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20780 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20781 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20782 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20783 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20784 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20785 macro.
20786 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20787 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20788 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20789 (sysdep_routines): Add memcpy-ultra1.
20790 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20791 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20792
20793 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20794
20795 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20796 (cfloat_versions): Take function argument without trailing 'f'.
20797 Call libm_alias_float_other.
20798 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20799 * sysdeps/alpha/fpu/cargf.c: Likewise.
20800 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20801 * sysdeps/alpha/fpu/conjf.c: Likewise.
20802 * sysdeps/alpha/fpu/crealf.c: Likewise.
20803 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20804 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20805 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20806 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20807 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20808 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20809 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20810 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20811 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20812 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20813 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20814 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20815 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20816 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20817 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20818 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20819 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20820 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20821 (clog10f): Use libm_alias_float_other.
20822 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20823 (ceilf): Define using libm_alias_float.
20824 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20825 (copysignf): Define using libm_alias_float.
20826 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20827 (fabsf): Define using libm_alias_float.
20828 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20829 (floorf): Define using libm_alias_float.
20830 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20831 (fmaxf): Define using libm_alias_float.
20832 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20833 (fminf): Define using libm_alias_float.
20834 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20835 (lrintf): Define using libm_alias_float.
20836 (llrintf): Likewise.
20837 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20838 (lroundf): Define using libm_alias_float.
20839 (llroundf): Likewise.
20840 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20841 (rintf): Define using libm_alias_float.
20842 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20843 (truncf): Define using libm_alias_float.
20844
20845 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20846 (ceilf): Define using libm_alias_float.
20847 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20848 (floorf): Define using libm_alias_float.
20849 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20850 (fmaf): Define using libm_alias_float.
20851 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20852 (fmaxf): Define using libm_alias_float.
20853 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20854 (fminf): Define using libm_alias_float.
20855 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20856 (llrintf): Define using libm_alias_float.
20857 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20858 (llroundf): Define using libm_alias_float.
20859 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20860 (lrintf): Define using libm_alias_float.
20861 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20862 (lroundf): Define using libm_alias_float.
20863 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20864 <libm-alias-float.h>.
20865 (nearbyintf): Define using libm_alias_float.
20866 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20867 (rintf): Define using libm_alias_float.
20868 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20869 (roundf): Define using libm_alias_float.
20870 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20871 (truncf): Define using libm_alias_float.
20872
20873 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20874 (ceil): Define using libm_alias_double.
20875 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20876 (copysign): Define using libm_alias_double.
20877 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20878 (fabs): Define using libm_alias_double.
20879 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20880 (floor): Define using libm_alias_double.
20881 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20882 (fmax): Define using libm_alias_double.
20883 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
20884 (fmin): Define using libm_alias_double.
20885 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
20886 (lrint): Define using libm_alias_double.
20887 (llrint): Likewise.
20888 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
20889 (lround): Define using libm_alias_double.
20890 (llround): Likewise.
20891 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
20892 (rint): Define using libm_alias_double.
20893 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
20894 (trunc): Define using libm_alias_double.
20895
20896 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
20897 (libm_alias_double_r): Add semicolon after weak_alias call.
20898
20899 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20900
20901 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
20902 (ceil): Define using libm_alias_double.
20903 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
20904 (floor): Define using libm_alias_double.
20905 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
20906 (fma): Define using libm_alias_double.
20907 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
20908 (fmax): Define using libm_alias_double.
20909 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
20910 (fmin): Define using libm_alias_double.
20911 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
20912 (llrint): Define using libm_alias_double.
20913 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
20914 (llround): Define using libm_alias_double.
20915 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
20916 (lrint): Define using libm_alias_double.
20917 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
20918 (lround): Define using libm_alias_double.
20919 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
20920 (nearbyint): Define using libm_alias_double.
20921 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
20922 (rint): Define using libm_alias_double.
20923 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
20924 (round): Define using libm_alias_double.
20925 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
20926 (trunc): Define using libm_alias_double.
20927
20928 2017-11-27 Florian Weimer <fweimer@redhat.com>
20929
20930 * sysdeps/unix/sysv/linux/mlock2.c: New file.
20931 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
20932 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
20933 (tests): Add tst-mlock2.
20934 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
20935 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
20936 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
20937 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
20938 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
20939 for mlock. Document mlock2.
20940
20941 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20942
20943 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
20944 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
20945 Likewise.
20946 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
20947 Likewise.
20948 * sysdeps/x86/Makeconfig: New file.
20949 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
20950 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20951 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
20952 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20953 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20954 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20955 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
20956 Likewise.
20957 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20958 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20959 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20960 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20961 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20962 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20963 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20964 * manual/math.texi (Mathematics): Document support for _Float64x.
20965 * math/Versions (GLIBC_2.27): Add _Float64x functions.
20966 * stdlib/Versions (GLIBC_2.27): Likewise.
20967 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20968 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20969 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20970 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20971 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20972 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20973 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20974 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20975 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20976 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20977 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20978 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20979 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20980 Likewise.
20981 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20982 Likewise.
20983 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20984 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20985 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20986 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20987 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20988 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20989 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20990 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20991 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20992 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20993 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20994 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20995 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20996 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20997
20998 2017-11-27 Andreas Schwab <schwab@suse.de>
20999
21000 * elf/Makefile (dl-routines): Add dl-sort-maps.
21001 * elf/dl-sort-maps.c: New file.
21002 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21003 (_dl_sort_maps): Declare.
21004 * elf/dl-fini.c (_dl_sort_fini): Remove.
21005 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21006 * elf/dl-close.c (_dl_close_worker): Likewise.
21007 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21008 open-coding it.
21009 * elf/dl-open.c (dl_open_worker): Likewise.
21010
21011 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21012
21013 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21014 using libm_alias_float128.
21015 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21016 Likewise.
21017 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21018 Likewise.
21019 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21020 (setpayloadsigf128): Likewise.
21021 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21022 Likewise.
21023 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21024 Likewise.
21025
21026 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21027 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21028 -mfloat128 to CFLAGS.
21029 ($(foreach
21030 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21031 Likewise.
21032 (CFLAGS-libm-test-support-float64x.c): New variable.
21033 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21034 $(f128-loader-link) to gnulib-tests.
21035
21036 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21037 (libm_alias_float128_other_r): If
21038 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21039 alias.
21040 (libm_alias_float128_r): Add semicolon after weak_alias call.
21041 * sysdeps/generic/libm-alias-ldouble.h
21042 (libm_alias_ldouble_other_r_f128): New macro.
21043 (libm_alias_ldouble_other_r_f64x): Likewise.
21044 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21045 and libm_alias_ldouble_other_r_f64x.
21046 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21047 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21048 (libm_alias_ldouble_other_r_f128): New macro.
21049 (libm_alias_ldouble_other_r_f64x): Likewise.
21050 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21051 and libm_alias_ldouble_other_r_f64x.
21052
21053 * stdlib/strfroml.c: Always include <stdlib.h>.
21054 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21055 undefine as macro and define as weak alias.
21056 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21057 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21058 <stdlib.h>.
21059 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21060 Define and later undefine as macro and define as weak alias.
21061
21062 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21063 Define and later undefine as macro. Define as weak alias if
21064 [!USE_WIDE_CHAR].
21065 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21066 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21067 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21068 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21069 Define and later undefine as macro. Define as weak alias if
21070 [!USE_WIDE_CHAR].
21071 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21072 Define and later undefine as macro. Define as weak alias if
21073 [USE_WIDE_CHAR].
21074 * sysdeps/ieee754/float128/strtof128_l.c
21075 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21076 Define and later undefine as macro. Define as weak alias if
21077 [!USE_WIDE_CHAR].
21078 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21079 Define and later undefine as macro. Define as weak alias if
21080 [USE_WIDE_CHAR].
21081 * sysdeps/ieee754/ldbl-128/strtold_l.c
21082 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21083 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21084 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21085 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21086 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21087 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21088 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21089 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21090 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21091 * sysdeps/ieee754/ldbl-96/strtold_l.c
21092 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21093 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21094 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21095 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21096
21097 * math/test-float64x.h: New file.
21098 * math/Makefile (type-float64x-yes): New variable.
21099 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21100
21101 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21102 function-like macro.
21103 (min_of_type_): Likewise.
21104 (min_of_type_l): Likewise.
21105 (min_of_type_f128): Likewise.
21106 (min_of_type): Pass () as last argument of __MATH_TG.
21107
21108 * stdlib/tst-strtod-round-skeleton.c
21109 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21110 headers.
21111
21112 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21113 for combinations of long double with _Float64 and _Float64x.
21114
21115 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21116 (__DECL_SIMD_cosf32): Likewise.
21117 (__DECL_SIMD_cosf64): Likewise.
21118 (__DECL_SIMD_cosf32x): Likewise.
21119 (__DECL_SIMD_cosf64x): Likewise.
21120 (__DECL_SIMD_cosf128x): Likewise.
21121 (__DECL_SIMD_sinf16): Likewise.
21122 (__DECL_SIMD_sinf32): Likewise.
21123 (__DECL_SIMD_sinf64): Likewise.
21124 (__DECL_SIMD_sinf32x): Likewise.
21125 (__DECL_SIMD_sinf64x): Likewise.
21126 (__DECL_SIMD_sinf128x): Likewise.
21127 (__DECL_SIMD_sincosf16): Likewise.
21128 (__DECL_SIMD_sincosf32): Likewise.
21129 (__DECL_SIMD_sincosf64): Likewise.
21130 (__DECL_SIMD_sincosf32x): Likewise.
21131 (__DECL_SIMD_sincosf64x): Likewise.
21132 (__DECL_SIMD_sincosf128x): Likewise.
21133 (__DECL_SIMD_logf16): Likewise.
21134 (__DECL_SIMD_logf32): Likewise.
21135 (__DECL_SIMD_logf64): Likewise.
21136 (__DECL_SIMD_logf32x): Likewise.
21137 (__DECL_SIMD_logf64x): Likewise.
21138 (__DECL_SIMD_logf128x): Likewise.
21139 (__DECL_SIMD_expf16): Likewise.
21140 (__DECL_SIMD_expf32): Likewise.
21141 (__DECL_SIMD_expf64): Likewise.
21142 (__DECL_SIMD_expf32x): Likewise.
21143 (__DECL_SIMD_expf64x): Likewise.
21144 (__DECL_SIMD_expf128x): Likewise.
21145 (__DECL_SIMD_powf16): Likewise.
21146 (__DECL_SIMD_powf32): Likewise.
21147 (__DECL_SIMD_powf64): Likewise.
21148 (__DECL_SIMD_powf32x): Likewise.
21149 (__DECL_SIMD_powf64x): Likewise.
21150 (__DECL_SIMD_powf128x): Likewise.
21151
21152 * stdlib/Versions (libc): Move entries for wcstof128 and
21153 wcstof128_l to ....
21154 * wcsmbs/Versions (libc): ... here.
21155 Include <float128-abi.h>.
21156
21157 2017-11-24 Florian Weimer <fweimer@redhat.com>
21158
21159 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21160 bits/mman-shared.h.
21161 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21162 <bits/mman-shared.h>.
21163 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21164 to ...
21165 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21166 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21167 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21168 <bits/mman-shared.h>.
21169
21170 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21171
21172 [BZ #22457]
21173 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21174 posix_memalign/free.
21175 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21176
21177 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21178
21179 [BZ #22469]
21180 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21181 and implement the collation rules for pl from CLDR on top of that.
21182 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21183 of locales to be built for testing.
21184 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21185
21186 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21187
21188 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21189 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21190 libm_alias_ldouble_other.
21191 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21192 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21193 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21194 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21195 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21196 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21197 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21198 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21199 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21200 libm_alias_ldouble_r.
21201 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21202 libm_alias_ldouble_other.
21203 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21204 (log10l): Likewise.
21205 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21206 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21207 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21208 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21209 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21210 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21211 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21212 (atan2l): Likewise.
21213 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21214 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21215 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21216 libm_alias_ldouble.
21217 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21218 (cosl): Likewise.
21219 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21220 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21221 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21222 (expl): Likewise.
21223 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21224 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21225 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21226 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21227 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21228 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21229 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21230 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21231 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21232 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21233 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21234 libm_alias_ldouble.
21235 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21236 libm_alias_ldouble_other.
21237 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21238 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21239 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21240 libm_alias_ldouble.
21241 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21242 libm_alias_ldouble_other.
21243 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21244 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21245 * sysdeps/ia64/fpu/w_lgammal_main.c
21246 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21247 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21248
21249 2017-11-23 Florian Weimer <fweimer@redhat.com>
21250
21251 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21252 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21253 alike. Remove freeres marker.
21254 * malloc/arena.c (arena_thread_freeres): Call
21255 tcache_thread_shutdown.
21256
21257 2017-11-23 Florian Weimer <fweimer@redhat.com>
21258
21259 [BZ #22459]
21260 Export nscd hash function as __nss_hash.
21261 * include/nss.h (__nss_hash): Declare.
21262 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21263 symbol.
21264 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21265 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21266 of __nscd_hash.
21267 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21268 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21269 * nss/Makefiles (routines): Add nss_hash.
21270 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21271 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21272 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21273 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21274
21275 2017-11-23 Florian Weimer <fweimer@redhat.com>
21276
21277 [BZ #22478]
21278 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21279 Return error code, not -1.
21280 * signal/tst-sigwait-eintr.c: New file.
21281 * signal/Makefile (tests): Add tst-sigwait-eintr.
21282
21283 2017-11-23 Florian Weimer <fweimer@redhat.com>
21284
21285 Linux: Add memfd_create system call wrapper
21286 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21287 tst-memfd_create.
21288 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21289 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21290 [__USE_GNU] (memfd_create): Declare.
21291 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21292 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21293 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21294 * sysdeps/unix/sysv/linux/**.abilist: Update.
21295 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21296
21297 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21298
21299 * localedata/gen-locale.sh: Fix typo in variable name.
21300
21301 * resolv/res_debug.c (p_secstodate): Condition definition on
21302 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21303 directly as __p_secstodate, and as a compat symbol. Do not use
21304 libresolv_hidden_def.
21305 * resolv/resolv.h (p_secstodate): Remove macro and function
21306 declaration.
21307 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21308 using p_secstodate.
21309 * include/resolv.h (__p_secstodate): Do not use
21310 libresolv_hidden_proto.
21311 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21312 (tests-internal): ... here.
21313 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21314 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21315 and declare and use __p_secstodate and use compat_symbol_reference
21316 in that case.
21317 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21318 implementation returning 77.
21319
21320 [BZ #22463]
21321 * resolv/res_debug.c: Include <libc-diag.h>.
21322 (p_secstodate): Assert time_t at least as wide as u_long. On
21323 overflow, use integer seconds since the epoch as output, or use
21324 "<overflow>" as output and set errno to EOVERFLOW if integer
21325 seconds since the epoch would be 14 or more characters.
21326 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21327 for sprintf call.
21328 * resolv/tst-p_secstodate.c: New file.
21329 * resolv/Makefile (tests): Add tst-p_secstodate.
21330 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21331
21332 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21333 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21334 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21335
21336 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21337
21338 * posix/regcomp.c (init_word_char): Add comments.
21339
21340 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21341
21342 [BZ #22447]
21343 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21344 strlen to compute length of ut_user and set trailing NUL byte of
21345 result explicitly.
21346
21347 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21348
21349 [BZ #15537]
21350 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21351 using “copy "iso14651_t1"” and then implementing the
21352 collation rules for lv from CLDR on top of that.
21353 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21354 of locales to be built for testing.
21355 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21356 sorting.
21357
21358 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21359
21360 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21361 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21362 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21363 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21364 [__USE_MISC] (MADV_HWPOISON): New macro.
21365 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21366
21367 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21368
21369 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21370 -Wmissing-braces on GCC 4.9.
21371
21372 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21373
21374 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21375 * sysdeps/s390/s390-32/start.S (_start): Likewise
21376 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21377 (thread_start): Likewise.
21378 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21379 (thread_start): Likewise.
21380 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21381 (__makecontext_ret): Likewise.
21382 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21383 (__makecontext_ret): Likewise.
21384
21385 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21386
21387 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21388 __wcschrnul): Remove attribute_hidden.
21389
21390 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21391
21392 regex: don't assume uint64_t or uint32_t
21393 This avoids -Werror=overflow errors for 32-bit systems in
21394 the 64-bit case. Problem reported by Joseph Myers in:
21395 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21396 Also, when this code is used in Gnulib it ports to platforms
21397 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21398 them, and on some 32-bit compilers there is no uint64_t.
21399 Problem reported by Gianluigi Tiesi in:
21400 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21401 * posix/regcomp.c (init_word_char): Don't assume that the types
21402 uint64_t and uint32_t exist. Adapted from Gnulib patch
21403 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21404 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21405
21406 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21407
21408 * sysdeps/aarch64/memset-reg.h: New file.
21409 * sysdeps/aarch64/memset.S: Use it.
21410 (__memset): Rename to MEMSET macro.
21411 [ZVA_MACRO]: Use zva_macro.
21412 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21413 Add memset_generic and memset_falkor.
21414 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21415 (__libc_ifunc_impl_list): Add memset ifuncs.
21416 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21417 local variable zva_size.
21418 * sysdeps/aarch64/multiarch/memset.c: New file.
21419 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21420 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21421 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21422 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21423 (DCZID_DZP_MASK): New macro.
21424 (DCZID_BS_MASK): Likewise.
21425 (init_cpu_features): Read and set zva_size.
21426 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21427 (struct cpu_features): New member zva_size.
21428
21429 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21430 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21431 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21432
21433 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21434 backwards. Fix timing computation.
21435 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21436 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21437 on memset by N at a time. Fix timing computation.
21438
21439 2017-11-20 Florian Weimer <fweimer@redhat.com>
21440
21441 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21442 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21443
21444 2017-11-19 Florian Weimer <fweimer@redhat.com>
21445
21446 manual: Document mprotect
21447 * manual/memory.texi (Memory Protection): New section.
21448 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21449 documentation of PROT_* flags and reference the Memory Protection
21450 section instead.
21451
21452 2017-11-19 Florian Weimer <fweimer@redhat.com>
21453
21454 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21455 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21456 (Scatter-Gather): ... to here. Remove misleading comment.
21457
21458 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21459
21460 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21461 style.
21462
21463 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21464 when /proc/<pid>/setgroups does not exist.
21465
21466 2017-11-18 Florian Weimer <fweimer@redhat.com>
21467
21468 * sysdeps/unix/sysv/linux/tst-ttyname.c
21469 (become_root_in_mount_ns): Remove.
21470 (do_in_chroot_1): Call support_enter_mount_namespace.
21471 (do_in_chroot_2): Likewise.
21472 (do_test): Call support_become_root early.
21473
21474 2017-11-18 Florian Weimer <fweimer@redhat.com>
21475
21476 * support/namespace.h (support_enter_mount_namespace): Declare.
21477 * support/support_enter_mount_namespace.c: New file.
21478 * support/Makefile (libsupport-routines): Add
21479 support_enter_mount_namespace.
21480
21481 2017-11-18 Florian Weimer <fweimer@redhat.com>
21482
21483 * support/temp_file.c (support_create_temp_directory): Use
21484 test_dir and do not rely on the presence of the XXXXXX suffix.
21485 * support/temp_file.h (support_create_temp_directory): Update
21486 comment.
21487 * support/tst-xreadlink.c (do_test): Adjust.
21488 * support/support_chroot.c (support_chroot_create): Likewise.
21489
21490 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21491
21492 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21493 macro.
21494 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21495 htm-no-suspend.
21496
21497 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21498
21499 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21500 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21501 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21502 (ceill): Define using libm_alias_ldouble.
21503 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21504 <libm-alias-ldouble.h>.
21505 (copysignl): Define using libm_alias_ldouble.
21506 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21507 (fabsl): Define using libm_alias_ldouble.
21508 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21509 (floorl): Define using libm_alias_ldouble.
21510 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21511 (fmaxl): Define using libm_alias_ldouble.
21512 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21513 (fminl): Define using libm_alias_ldouble.
21514 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21515 (llrintl): Define using libm_alias_ldouble.
21516 (lrintl): Likewise.
21517 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21518 <libm-alias-ldouble.h>.
21519 (nearbyintl): Define using libm_alias_ldouble.
21520 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21521 (truncl): Define using libm_alias_ldouble.
21522 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21523 <libm-alias-ldouble.h>.
21524 (lrintl): Define using libm_alias_ldouble.
21525
21526 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21527 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21528 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21529 (asinhl): Define using libm_alias_ldouble.
21530 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21531 (atanl): Define using libm_alias_ldouble.
21532 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21533 (cbrtl): Define using libm_alias_ldouble.
21534 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21535 (ceill): Define using libm_alias_ldouble.
21536 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21537 (copysignl): Define using libm_alias_ldouble.
21538 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21539 (fabsl): Define using libm_alias_ldouble.
21540 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21541 (floorl): Define using libm_alias_ldouble.
21542 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21543 (fmaxl): Define using libm_alias_ldouble.
21544 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21545 (fminl): Define using libm_alias_ldouble.
21546 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21547 (frexpl): Define using libm_alias_ldouble.
21548 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21549 (llrintl): Define using libm_alias_ldouble.
21550 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21551 (logbl): Define using libm_alias_ldouble.
21552 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21553 (lrintl): Define using libm_alias_ldouble.
21554 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21555 (nearbyintl): Define using libm_alias_ldouble.
21556 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21557 (nextafterl): Define using libm_alias_ldouble.
21558 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21559 (remquol): Define using libm_alias_ldouble.
21560 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21561 (rintl): Define using libm_alias_ldouble.
21562 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21563 (truncl): Define using libm_alias_ldouble.
21564 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21565 (fmaxl): Define using libm_alias_ldouble.
21566 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21567 (fminl): Define using libm_alias_ldouble.
21568
21569 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21570 to C syntax instead of availability and properties of types.
21571 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21572 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21573 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21574 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21575 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21576 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21577
21578 2017-11-17 Florian Weimer <fweimer@redhat.com>
21579
21580 support_become_root: Enable file creation in namespaces.
21581 * support/support_become_root.c (setup_mapping): New function.
21582 (support_become_root): Call it.
21583
21584 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21585
21586 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21587 macro.
21588
21589 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21590
21591 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21592 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21593
21594 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21595
21596 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21597
21598 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21599 version to 4.14.
21600
21601 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21602
21603 * INSTALL: Fix botched up regeneration.
21604
21605 * NEWS: Update sourceare link to https.
21606 * configure.ac: Likewise.
21607 * crypt/md5test-giant.c: Likewise.
21608 * dlfcn/bug-atexit1.c: Likewise.
21609 * dlfcn/bug-atexit2.c: Likewise.
21610 * localedata/README: Likewise.
21611 * malloc/tst-mallocfork.c: Likewise.
21612 * manual/install.texi: Likewise.
21613 * nptl/tst-pthread-getattr.c: Likewise.
21614 * stdio-common/tst-fgets.c: Likewise.
21615 * stdio-common/tst-fwrite.c: Likewise.
21616 * sunrpc/Makefile: Likewise.
21617 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21618 * wcsmbs/tst-mbrtowc2.c: Likewise.
21619 * configure: Regenerate.
21620 * INSTALL: Regenerate.
21621
21622 2017-11-15 Martin Sebor <msebor@redhat.com>
21623
21624 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21625 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21626 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21627
21628 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21629
21630 [BZ #22145]
21631 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21632 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21633
21634 [BZ #22145]
21635 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21636 Defer is_pty check until end of the function.
21637 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21638
21639 [BZ #22145]
21640 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21641 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21642 (ttyname): Likewise.
21643 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21644 (__ttyname_r): Likewise.
21645
21646 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21647 int to bool.
21648
21649 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21650
21651 * manual/terminal.texi (Is It a Terminal):
21652 Mention ENODEV for ttyname and ttyname_r.
21653
21654 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21655
21656 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21657 constant and macro.
21658
21659 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21660 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21661 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21662 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21663 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21664 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21665
21666 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21667
21668 * signal/sigrelse.c (sigrelse): Optimize implementation.
21669
21670 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21671 (__sigpause): Rely on __sigsuspend to implement single thread
21672 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21673
21674 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21675
21676 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21677 kernel version to 4.14.
21678
21679 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21680
21681 [BZ #22442]
21682 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21683 Check if ifname is too long.
21684
21685 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21686
21687 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21688
21689 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21690
21691 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21692 was accidentally lost.
21693
21694 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21695
21696 * localedata/locales/az_IR: Add standard copyright header.
21697
21698 2017-11-15 Florian Weimer <fweimer@redhat.com>
21699
21700 [BZ #22439]
21701 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21702 not just the top one. Output a new "subheaps" statistic.
21703
21704 2017-11-15 Florian Weimer <fweimer@redhat.com>
21705
21706 [BZ #22408]
21707 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21708 under the per-arena lock.
21709 * malloc/Makefile (tests): Add tst-malloc_info.
21710 (tst-malloc_info): Link with libpthread.
21711 * malloc/tst-malloc_info.c: New file.
21712
21713 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21714
21715 [BZ #21660]
21716 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21717 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21718 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21719 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21720 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21721 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21722 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21723 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21724 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21725 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21726 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21727 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21728 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21729 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21730 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21731 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21732 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21733 (__floating_type): Likewise.
21734 (__real_integer_type): Likewise.
21735 (__complex_integer_type): Likewise.
21736 (__expr_is_real): Likewise.
21737 (__tgmath_real_type_sub): Likewise.
21738 (__tgmath_real_type): Likewise.
21739 (__tgmath_complex_type_sub): Likewise.
21740 (__tgmath_complex_type): Likewise.
21741 (__TGMATH_F128): Likewise.
21742 (__TGMATH_CF128): Likewise.
21743 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21744 new macros.
21745 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21746 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21747 Likewise.
21748 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21749 Likewise.
21750 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21751 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21752 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21753 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21754 Likewise.
21755 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21756 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21757 Likewise.
21758 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21759 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21760 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21761 Likewise.
21762 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21763 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21764 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21765 (cimag): Likewise.
21766 (creal): Likewise.
21767
21768 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21769
21770 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21771 for stpncpy calls for GCC 8.
21772 (test_strncat): Disable -Wstringop-truncation warning for strncat
21773 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21774 strncat call for GCC 7.
21775 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21776 calls for GCC 8.
21777 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21778 trailing NUL.
21779
21780 * string/bug-strncat1.c: Include <libc-diag.h>.
21781 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21782
21783 2017-11-13 Claude Paroz <claude@2xlibre.net>
21784
21785 [BZ #22387]
21786 * localedata/locales/aa_DJ: Improved readibility by replacing
21787 <Uxxxx> sequences in the ASCII printable range by their ASCII
21788 character equivalents.
21789 * localedata/locales/aa_ER: Likewise.
21790 * localedata/locales/aa_ER@saaho: Likewise.
21791 * localedata/locales/aa_ET: Likewise.
21792 * localedata/locales/af_ZA: Likewise.
21793 * localedata/locales/agr_PE: Likewise.
21794 * localedata/locales/ak_GH: Likewise.
21795 * localedata/locales/am_ET: Likewise.
21796 * localedata/locales/anp_IN: Likewise.
21797 * localedata/locales/ar_AE: Likewise.
21798 * localedata/locales/ar_BH: Likewise.
21799 * localedata/locales/ar_DZ: Likewise.
21800 * localedata/locales/ar_EG: Likewise.
21801 * localedata/locales/ar_IN: Likewise.
21802 * localedata/locales/ar_IQ: Likewise.
21803 * localedata/locales/ar_JO: Likewise.
21804 * localedata/locales/ar_KW: Likewise.
21805 * localedata/locales/ar_LB: Likewise.
21806 * localedata/locales/ar_LY: Likewise.
21807 * localedata/locales/ar_MA: Likewise.
21808 * localedata/locales/ar_OM: Likewise.
21809 * localedata/locales/ar_QA: Likewise.
21810 * localedata/locales/ar_SA: Likewise.
21811 * localedata/locales/ar_SD: Likewise.
21812 * localedata/locales/ar_SS: Likewise.
21813 * localedata/locales/ar_SY: Likewise.
21814 * localedata/locales/ar_TN: Likewise.
21815 * localedata/locales/ar_YE: Likewise.
21816 * localedata/locales/as_IN: Likewise.
21817 * localedata/locales/ast_ES: Likewise.
21818 * localedata/locales/ayc_PE: Likewise.
21819 * localedata/locales/az_AZ: Likewise.
21820 * localedata/locales/az_IR: Likewise.
21821 * localedata/locales/be_BY: Likewise.
21822 * localedata/locales/be_BY@latin: Likewise.
21823 * localedata/locales/bem_ZM: Likewise.
21824 * localedata/locales/ber_DZ: Likewise.
21825 * localedata/locales/ber_MA: Likewise.
21826 * localedata/locales/bg_BG: Likewise.
21827 * localedata/locales/bhb_IN: Likewise.
21828 * localedata/locales/bho_IN: Likewise.
21829 * localedata/locales/bi_VU: Likewise.
21830 * localedata/locales/bn_BD: Likewise.
21831 * localedata/locales/bn_IN: Likewise.
21832 * localedata/locales/bo_CN: Likewise.
21833 * localedata/locales/bo_IN: Likewise.
21834 * localedata/locales/br_FR: Likewise.
21835 * localedata/locales/brx_IN: Likewise.
21836 * localedata/locales/bs_BA: Likewise.
21837 * localedata/locales/byn_ER: Likewise.
21838 * localedata/locales/ca_AD: Likewise.
21839 * localedata/locales/ca_ES: Likewise.
21840 * localedata/locales/ca_FR: Likewise.
21841 * localedata/locales/ca_IT: Likewise.
21842 * localedata/locales/ce_RU: Likewise.
21843 * localedata/locales/chr_US: Likewise.
21844 * localedata/locales/cmn_TW: Likewise.
21845 * localedata/locales/crh_UA: Likewise.
21846 * localedata/locales/cs_CZ: Likewise.
21847 * localedata/locales/csb_PL: Likewise.
21848 * localedata/locales/cv_RU: Likewise.
21849 * localedata/locales/cy_GB: Likewise.
21850 * localedata/locales/da_DK: Likewise.
21851 * localedata/locales/de_AT: Likewise.
21852 * localedata/locales/de_BE: Likewise.
21853 * localedata/locales/de_CH: Likewise.
21854 * localedata/locales/de_DE: Likewise.
21855 * localedata/locales/de_IT: Likewise.
21856 * localedata/locales/de_LI: Likewise.
21857 * localedata/locales/de_LU: Likewise.
21858 * localedata/locales/doi_IN: Likewise.
21859 * localedata/locales/dv_MV: Likewise.
21860 * localedata/locales/dz_BT: Likewise.
21861 * localedata/locales/el_CY: Likewise.
21862 * localedata/locales/el_GR: Likewise.
21863 * localedata/locales/en_AG: Likewise.
21864 * localedata/locales/en_AU: Likewise.
21865 * localedata/locales/en_BW: Likewise.
21866 * localedata/locales/en_CA: Likewise.
21867 * localedata/locales/en_DK: Likewise.
21868 * localedata/locales/en_GB: Likewise.
21869 * localedata/locales/en_HK: Likewise.
21870 * localedata/locales/en_IE: Likewise.
21871 * localedata/locales/en_IL: Likewise.
21872 * localedata/locales/en_IN: Likewise.
21873 * localedata/locales/en_NG: Likewise.
21874 * localedata/locales/en_NZ: Likewise.
21875 * localedata/locales/en_PH: Likewise.
21876 * localedata/locales/en_SG: Likewise.
21877 * localedata/locales/en_US: Likewise.
21878 * localedata/locales/en_ZA: Likewise.
21879 * localedata/locales/en_ZM: Likewise.
21880 * localedata/locales/en_ZW: Likewise.
21881 * localedata/locales/eo: Likewise.
21882 * localedata/locales/es_AR: Likewise.
21883 * localedata/locales/es_BO: Likewise.
21884 * localedata/locales/es_CL: Likewise.
21885 * localedata/locales/es_CO: Likewise.
21886 * localedata/locales/es_CR: Likewise.
21887 * localedata/locales/es_CU: Likewise.
21888 * localedata/locales/es_DO: Likewise.
21889 * localedata/locales/es_EC: Likewise.
21890 * localedata/locales/es_ES: Likewise.
21891 * localedata/locales/es_GT: Likewise.
21892 * localedata/locales/es_HN: Likewise.
21893 * localedata/locales/es_MX: Likewise.
21894 * localedata/locales/es_NI: Likewise.
21895 * localedata/locales/es_PA: Likewise.
21896 * localedata/locales/es_PE: Likewise.
21897 * localedata/locales/es_PR: Likewise.
21898 * localedata/locales/es_PY: Likewise.
21899 * localedata/locales/es_SV: Likewise.
21900 * localedata/locales/es_US: Likewise.
21901 * localedata/locales/es_UY: Likewise.
21902 * localedata/locales/es_VE: Likewise.
21903 * localedata/locales/et_EE: Likewise.
21904 * localedata/locales/eu_ES: Likewise.
21905 * localedata/locales/eu_ES@euro: Likewise.
21906 * localedata/locales/fa_IR: Likewise.
21907 * localedata/locales/ff_SN: Likewise.
21908 * localedata/locales/fi_FI: Likewise.
21909 * localedata/locales/fil_PH: Likewise.
21910 * localedata/locales/fo_FO: Likewise.
21911 * localedata/locales/fr_BE: Likewise.
21912 * localedata/locales/fr_CA: Likewise.
21913 * localedata/locales/fr_CH: Likewise.
21914 * localedata/locales/fr_FR: Likewise.
21915 * localedata/locales/fr_LU: Likewise.
21916 * localedata/locales/fur_IT: Likewise.
21917 * localedata/locales/fy_DE: Likewise.
21918 * localedata/locales/fy_NL: Likewise.
21919 * localedata/locales/ga_IE: Likewise.
21920 * localedata/locales/gd_GB: Likewise.
21921 * localedata/locales/gez_ER: Likewise.
21922 * localedata/locales/gez_ET: Likewise.
21923 * localedata/locales/gl_ES: Likewise.
21924 * localedata/locales/gu_IN: Likewise.
21925 * localedata/locales/gv_GB: Likewise.
21926 * localedata/locales/ha_NG: Likewise.
21927 * localedata/locales/hak_TW: Likewise.
21928 * localedata/locales/he_IL: Likewise.
21929 * localedata/locales/hi_IN: Likewise.
21930 * localedata/locales/hif_FJ: Likewise.
21931 * localedata/locales/hne_IN: Likewise.
21932 * localedata/locales/hr_HR: Likewise.
21933 * localedata/locales/hsb_DE: Likewise.
21934 * localedata/locales/ht_HT: Likewise.
21935 * localedata/locales/hu_HU: Likewise.
21936 * localedata/locales/hy_AM: Likewise.
21937 * localedata/locales/i18n: Likewise.
21938 * localedata/locales/ia_FR: Likewise.
21939 * localedata/locales/id_ID: Likewise.
21940 * localedata/locales/ig_NG: Likewise.
21941 * localedata/locales/ik_CA: Likewise.
21942 * localedata/locales/is_IS: Likewise.
21943 * localedata/locales/it_CH: Likewise.
21944 * localedata/locales/it_IT: Likewise.
21945 * localedata/locales/iu_CA: Likewise.
21946 * localedata/locales/ja_JP: Likewise.
21947 * localedata/locales/ka_GE: Likewise.
21948 * localedata/locales/kk_KZ: Likewise.
21949 * localedata/locales/kl_GL: Likewise.
21950 * localedata/locales/kn_IN: Likewise.
21951 * localedata/locales/ko_KR: Likewise.
21952 * localedata/locales/kok_IN: Likewise.
21953 * localedata/locales/ks_IN: Likewise.
21954 * localedata/locales/ks_IN@devanagari: Likewise.
21955 * localedata/locales/ku_TR: Likewise.
21956 * localedata/locales/kw_GB: Likewise.
21957 * localedata/locales/ky_KG: Likewise.
21958 * localedata/locales/lb_LU: Likewise.
21959 * localedata/locales/lg_UG: Likewise.
21960 * localedata/locales/li_BE: Likewise.
21961 * localedata/locales/li_NL: Likewise.
21962 * localedata/locales/lij_IT: Likewise.
21963 * localedata/locales/ln_CD: Likewise.
21964 * localedata/locales/lo_LA: Likewise.
21965 * localedata/locales/lt_LT: Likewise.
21966 * localedata/locales/lv_LV: Likewise.
21967 * localedata/locales/lzh_TW: Likewise.
21968 * localedata/locales/mag_IN: Likewise.
21969 * localedata/locales/mai_IN: Likewise.
21970 * localedata/locales/mg_MG: Likewise.
21971 * localedata/locales/mhr_RU: Likewise.
21972 * localedata/locales/mi_NZ: Likewise.
21973 * localedata/locales/mk_MK: Likewise.
21974 * localedata/locales/ml_IN: Likewise.
21975 * localedata/locales/mn_MN: Likewise.
21976 * localedata/locales/mni_IN: Likewise.
21977 * localedata/locales/mr_IN: Likewise.
21978 * localedata/locales/ms_MY: Likewise.
21979 * localedata/locales/mt_MT: Likewise.
21980 * localedata/locales/my_MM: Likewise.
21981 * localedata/locales/nan_TW: Likewise.
21982 * localedata/locales/nan_TW@latin: Likewise.
21983 * localedata/locales/nb_NO: Likewise.
21984 * localedata/locales/nds_DE: Likewise.
21985 * localedata/locales/nds_NL: Likewise.
21986 * localedata/locales/ne_NP: Likewise.
21987 * localedata/locales/nhn_MX: Likewise.
21988 * localedata/locales/niu_NU: Likewise.
21989 * localedata/locales/niu_NZ: Likewise.
21990 * localedata/locales/nl_AW: Likewise.
21991 * localedata/locales/nl_BE: Likewise.
21992 * localedata/locales/nl_NL: Likewise.
21993 * localedata/locales/nn_NO: Likewise.
21994 * localedata/locales/nr_ZA: Likewise.
21995 * localedata/locales/nso_ZA: Likewise.
21996 * localedata/locales/oc_FR: Likewise.
21997 * localedata/locales/om_ET: Likewise.
21998 * localedata/locales/om_KE: Likewise.
21999 * localedata/locales/or_IN: Likewise.
22000 * localedata/locales/os_RU: Likewise.
22001 * localedata/locales/pa_IN: Likewise.
22002 * localedata/locales/pa_PK: Likewise.
22003 * localedata/locales/pap_AW: Likewise.
22004 * localedata/locales/pap_CW: Likewise.
22005 * localedata/locales/pl_PL: Likewise.
22006 * localedata/locales/ps_AF: Likewise.
22007 * localedata/locales/pt_BR: Likewise.
22008 * localedata/locales/pt_PT: Likewise.
22009 * localedata/locales/quz_PE: Likewise.
22010 * localedata/locales/raj_IN: Likewise.
22011 * localedata/locales/ro_RO: Likewise.
22012 * localedata/locales/ru_RU: Likewise.
22013 * localedata/locales/ru_UA: Likewise.
22014 * localedata/locales/rw_RW: Likewise.
22015 * localedata/locales/sa_IN: Likewise.
22016 * localedata/locales/sat_IN: Likewise.
22017 * localedata/locales/sc_IT: Likewise.
22018 * localedata/locales/sd_IN: Likewise.
22019 * localedata/locales/sd_IN@devanagari: Likewise.
22020 * localedata/locales/se_NO: Likewise.
22021 * localedata/locales/sgs_LT: Likewise.
22022 * localedata/locales/shs_CA: Likewise.
22023 * localedata/locales/si_LK: Likewise.
22024 * localedata/locales/sid_ET: Likewise.
22025 * localedata/locales/sk_SK: Likewise.
22026 * localedata/locales/sl_SI: Likewise.
22027 * localedata/locales/sm_WS: Likewise.
22028 * localedata/locales/so_DJ: Likewise.
22029 * localedata/locales/so_ET: Likewise.
22030 * localedata/locales/so_KE: Likewise.
22031 * localedata/locales/so_SO: Likewise.
22032 * localedata/locales/sq_AL: Likewise.
22033 * localedata/locales/sq_MK: Likewise.
22034 * localedata/locales/sr_ME: Likewise.
22035 * localedata/locales/sr_RS: Likewise.
22036 * localedata/locales/sr_RS@latin: Likewise.
22037 * localedata/locales/ss_ZA: Likewise.
22038 * localedata/locales/st_ZA: Likewise.
22039 * localedata/locales/sv_FI: Likewise.
22040 * localedata/locales/sv_SE: Likewise.
22041 * localedata/locales/sw_KE: Likewise.
22042 * localedata/locales/sw_TZ: Likewise.
22043 * localedata/locales/szl_PL: Likewise.
22044 * localedata/locales/ta_IN: Likewise.
22045 * localedata/locales/ta_LK: Likewise.
22046 * localedata/locales/tcy_IN: Likewise.
22047 * localedata/locales/te_IN: Likewise.
22048 * localedata/locales/tg_TJ: Likewise.
22049 * localedata/locales/th_TH: Likewise.
22050 * localedata/locales/the_NP: Likewise.
22051 * localedata/locales/ti_ER: Likewise.
22052 * localedata/locales/ti_ET: Likewise.
22053 * localedata/locales/tig_ER: Likewise.
22054 * localedata/locales/tk_TM: Likewise.
22055 * localedata/locales/tl_PH: Likewise.
22056 * localedata/locales/tn_ZA: Likewise.
22057 * localedata/locales/to_TO: Likewise.
22058 * localedata/locales/tpi_PG: Likewise.
22059 * localedata/locales/tr_CY: Likewise.
22060 * localedata/locales/tr_TR: Likewise.
22061 * localedata/locales/ts_ZA: Likewise.
22062 * localedata/locales/tt_RU: Likewise.
22063 * localedata/locales/tt_RU@iqtelif: Likewise.
22064 * localedata/locales/ug_CN: Likewise.
22065 * localedata/locales/uk_UA: Likewise.
22066 * localedata/locales/unm_US: Likewise.
22067 * localedata/locales/ur_IN: Likewise.
22068 * localedata/locales/ur_PK: Likewise.
22069 * localedata/locales/uz_UZ: Likewise.
22070 * localedata/locales/uz_UZ@cyrillic: Likewise.
22071 * localedata/locales/ve_ZA: Likewise.
22072 * localedata/locales/vi_VN: Likewise.
22073 * localedata/locales/wa_BE: Likewise.
22074 * localedata/locales/wae_CH: Likewise.
22075 * localedata/locales/wal_ET: Likewise.
22076 * localedata/locales/wo_SN: Likewise.
22077 * localedata/locales/xh_ZA: Likewise.
22078 * localedata/locales/yi_US: Likewise.
22079 * localedata/locales/yo_NG: Likewise.
22080 * localedata/locales/yue_HK: Likewise.
22081 * localedata/locales/yuw_PG: Likewise.
22082 * localedata/locales/zh_CN: Likewise.
22083 * localedata/locales/zh_HK: Likewise.
22084 * localedata/locales/zh_SG: Likewise.
22085 * localedata/locales/zh_TW: Likewise.
22086 * localedata/locales/zu_ZA: Likewise.
22087
22088 2017-11-13 Florian Weimer <fweimer@redhat.com>
22089
22090 * support/next_to_fault.h, support/next_to_fault.c: New files.
22091 * support/Makefile (libsupport-routines): Add next_to_fault.
22092 * resolv/tst-inet_pton.c (struct next_to_fault)
22093 (next_to_fault_allocate, next_to_fault_free): Remove.
22094 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22095
22096 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22097
22098 * elf/dl-support.c: Include <dl-procruntime.c>.
22099 * include/link.h: Include <link_map.h>.
22100 * sysdeps/generic/dl-procruntime.c: New file.
22101 * sysdeps/generic/link_map.h: Likewise.
22102 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22103 the writable ld.so namespace.
22104
22105 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22106
22107 timezone: pacify GCC -Wstringop-truncation
22108 Problem reported by Martin Sebor in:
22109 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22110 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22111
22112 2017-11-12 Florian Weimer <fweimer@redhat.com>
22113
22114 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22115 tst-xreadlink.
22116 (tests): Add tst-xreadlink.
22117 * support/support.h (xstrndup): Declare.
22118 * support/xunistd.h (xunlink, xreadlink): Declare.
22119 * support/temp_file.h (support_create_temp_directory): Declare.
22120 * support/temp_file.c (support_create_temp_directory): New function.
22121 * support/support_chroot.c (support_chroot_create): Use it.
22122 * support/xreadlink.c: New file.
22123 * support/xstrndup.c: Likewise.
22124 * support/xunlink.c: Likewise.
22125 * support/tst-xreadlink.c: Likewise.
22126
22127 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22128
22129 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22130
22131 2017-11-11 Florian Weimer <fweimer@redhat.com>
22132
22133 [BZ #22409]
22134 [BZ #22412]
22135 * resolv/res_comp.c (printable_string, binary_hnok)
22136 (binary_leading_dash): New functions.
22137 (res_hnok): Reimplement using these functions and ns_name_pton.
22138 (res_ownok): Likewise.
22139 (res_mailok): Reimplement using printable_string, ns_name_pton and
22140 binary_hnok.
22141 (res_dnok): Reimplement using printable_string and ns_name_pton.
22142 * resolv/tst-res_hnok.c (tests): Add additional tests.
22143 (LETTERDIGITS, PRINTABLE): Define.
22144 (do_test): Adjust one_char results.
22145
22146 2017-11-11 Florian Weimer <fweimer@redhat.com>
22147
22148 [BZ #22413]
22149 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22150 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22151
22152 2017-11-11 Florian Weimer <fweimer@redhat.com>
22153
22154 * resolv/tst-ns_name_pton.c: New file.
22155 * resolv/Makefile (tests): Add tst-ns_name_pton.
22156 (tst-ns_name_pton): Link against libresolv.
22157
22158 2017-11-11 Florian Weimer <fweimer@redhat.com>
22159
22160 * resolv/tst-res_hnok.c: New file.
22161 * resolv/Makefile (tests): Add tst-res_hnok.
22162 (tst-res_hnok): Link against libresolv.
22163
22164 2017-11-11 Florian Weimer <fweimer@redhat.com>
22165
22166 * resolv/tst-resolv-network.c: Use test framework instead explicit
22167 main function.
22168
22169 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22170
22171 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22172 <jmp_buf-macros.h>.
22173 [!_ISOMAC] (STR_HELPER): New.
22174 [!_ISOMAC] (STR): Likewise.
22175 [!_ISOMAC] (TEST_SIZE): Likewise.
22176 [!_ISOMAC] (TEST_ALIGN): Likewise.
22177 [!_ISOMAC] (TEST_OFFSET): Likewise.
22178 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22179 field offsets of jmp_buf as well as sigjmp_buf.
22180 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22181 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22182 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22183 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22184 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22185 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22186 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22187 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22188 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22189 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22190 Likewise.
22191 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22192 Likewise.
22193 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22195 Likewise.
22196 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22197 Likewise.
22198 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22199 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22200 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22201 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22202 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22203 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22204 Likewise.
22205 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22206 Likewise.
22207 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22208 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22209 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22210
22211 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22212
22213 * include/float.h
22214 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22215 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22216 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22217 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22218 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22219 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22220 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22221 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22222 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22223 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22224 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22225 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22226 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22227 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22228 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22229 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22230 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22231 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22232 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22233 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22234 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22235 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22236 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22237 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22238 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22239 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22240 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22241 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22242 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22243 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22244 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22245 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22246 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22247 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22248 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22249 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22250 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22251 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22252 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22253 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22254 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22255 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22256 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22257 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22258 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22259 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22260 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22261 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22262 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22263 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22264 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22265 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22266 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22267 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22268 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22269 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22270 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22271 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22272 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22273 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22274 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22275 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22276 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22277 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22278 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22279 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22280 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22281 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22282 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22283 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22284 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22285 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22286 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22287 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22288 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22289 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22290 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22291 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22292 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22293 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22294 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22295 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22296 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22297 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22298 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22299 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22300 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22301 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22302
22303 * stdlib/tst-strtod.h (F16): New macro.
22304 (F32): Likewise.
22305 (F64): Likewise.
22306 (F32X): Likewise.
22307 (F64X): Likewise.
22308 (F128X): Likewise.
22309 (IF_FLOAT16): Likewise.
22310 (IF_FLOAT32): Likewise.
22311 (IF_FLOAT64): Likewise.
22312 (IF_FLOAT32X): Likewise.
22313 (IF_FLOAT64X): Likewise.
22314 (IF_FLOAT128X): Likewise.
22315 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22316 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22317 (STRTOD_TEST_FOREACH): Likewise.
22318 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22319 (CHOOSE_f64): Likewise.
22320 (CHOOSE_f32x): Likewise.
22321 (CHOOSE_f64x): Likewise.
22322
22323 2017-11-07 Andreas Schwab <schwab@suse.de>
22324
22325 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22326
22327 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22328
22329 [BZ #22403]
22330 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22331 to be escaped.
22332 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22333 to be escaped.
22334
22335 2017-11-07 Claude Paroz <claude@2xlibre.net>
22336
22337 [BZ #22403]
22338 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22339 to be escaped.
22340 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22341 to be escaped.
22342 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22343 to be escaped.
22344
22345 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22346
22347 [BZ #22298]
22348 * nptl/allocatestack.c (allocate_stack): Check if
22349 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22350 __PTHREAD_MUTEX_HAVE_PREV is defined.
22351 * nptl/descr.h (pthread): Likewise.
22352 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22353 Likewise.
22354 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22355 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22356 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22357 * sysdeps/nptl/bits/thread-shared-types.h
22358 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22359 defines.
22360 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22361 of __WORDSIZE for internal layout.
22362 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22363 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22364 instead of __WORDSIZE whether to use an union for __spins and __list
22365 fields.
22366 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22367 case.
22368 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22369 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22370 defines.
22371 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22372 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22373 Likewise.
22374 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22375 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22376 Likewise.
22377 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22378 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22379 Likewise.
22380 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22381 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22382 Likewise.
22383 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22384 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22385 Likewise.
22386 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22387 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22388 Likewise.
22389 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22390 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22391 Likewise.
22392 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22393 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22394 Likewise.
22395 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22396 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22397 Likewise.
22398 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22399 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22400 Likewise.
22401 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22402 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22403 Likewise.
22404 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22405 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22406 Likewise.
22407 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22408 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22409 Likewise.
22410 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22411 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22412 Likewise.
22413
22414 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22415 New macros.
22416 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22417 checks for expected input type size.
22418 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22419 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22420 Likewise.
22421 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22422 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22423 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22424 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22425 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22426 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22427 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22428 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22429 superflous runtime assert check.
22430 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22431 Likewise.
22432 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22433 Likewise.
22434 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22435 Likewise.
22436 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22437 Likewise.
22438 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22439 Likewise.
22440 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22441 Likewise.
22442 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22443 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22444 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22445 Likewise.
22446 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22447 Likewise.
22448 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22449 Likewise.
22450 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22451 Likewise.
22452 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22453 Likewise.
22454 * nptl/pthread_attr_setinheritsched.c
22455 (__pthread_attr_setinheritsched): Likewise.
22456 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22457 Likewise.
22458 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22459 Likewise.
22460 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22461 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22462 __old_pthread_attr_setstack): Likewise.
22463 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22464 Likewise.
22465 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22466 Likewise.
22467 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22468 Likewise.
22469 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22470 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22471 Likewise.
22472 * nptl/tst-typesizes.c: Remove file.
22473
22474 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22475 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22476 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22477 checks for internal pthread_mutex_t offsets.
22478 * sysdeps/aarch64/nptl/pthread-offsets.h
22479 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22480 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22481 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22482 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22483 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22484 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22485 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22486 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22487 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22488 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22489 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22490 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22491 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22492 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22493 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22494 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22495 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22496 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22497
22498 2017-11-07 Florian Weimer <fweimer@redhat.com>
22499
22500 * bits/mman-linux.h: Move ...
22501 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22502 comment.
22503 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22504 outdated comment.
22505
22506 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22507
22508 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22509 Redefine STRNLEN as __strnlen_power8.
22510
22511 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22512
22513 * signal/sighold.c (sighold): Optimize implementation.
22514
22515 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22516 __NR_rt_sigqueueinfo.
22517
22518 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22519 __sigtimedwait.
22520 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22521 assume __NR_rt_sigtimedwait.
22522 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22523 and add LIBC_CANCEL_HANDLED for cancellation marking.
22524 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22525
22526 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22527 (sysdeps_routines): Add memchr_noneon.
22528 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22529 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22530 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22531 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22532 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22533 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22534 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22535
22536 * sysdeps/arm/arm-ifunc.h: New file.
22537 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22538 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22539 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22540 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22541 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22542 (__memcpy_neon): Avoid create hidden alias.
22543 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22544 (__memcpy_vfp): Likewise.
22545 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22546 (sysdep_routines): Add memcpy_arm.
22547 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22548
22549 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22550
22551 [BZ #22362]
22552 * Makerules (make-link-multidir): New.
22553 * config.make.in (multidir): New.
22554 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22555 * configure: Regenerated.
22556 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22557 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22558 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22559 New target.
22560
22561 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22562
22563 [BZ #22402]
22564 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22565 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22566
22567 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22568
22569 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22570 to be escaped.
22571
22572 2017-11-04 Florian Weimer <fweimer@redhat.com>
22573
22574 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22575
22576 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22577
22578 * math/math.h [__HAVE_DISTINCT_FLOAT16
22579 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22580 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22581 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22582 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22583 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22584 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22585 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22586 (__MATH_TG_F32): New macro.
22587 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22588 (__MATH_TG_F64X): Likewise.
22589 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22590 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22591
22592 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22593
22594 * po/de.po: Update translations.
22595 * po/ru.po: Likewise.
22596
22597 2017-11-03 Florian Weimer <fweimer@redhat.com>
22598
22599 * manual/filesys.texi (Hard Links): Document linkat.
22600
22601 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22602
22603 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22604 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22605 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22606 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22607 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22608 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22609 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22610 the same as _Float128.
22611 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22612 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22613 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22614
22615 * stdlib/stdlib.h
22616 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22617 Declare.
22618 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22619 Likewise.
22620 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22621 Likewise.
22622 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22623 (strtof32x): Likewise.
22624 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22625 (strtof64x): Likewise.
22626 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22627 (strtof128x): Likewise.
22628 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22629 (strfromf16): Likewise.
22630 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22631 (strfromf32): Likewise.
22632 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22633 (strfromf64): Likewise.
22634 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22635 (strfromf32x): Likewise.
22636 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22637 (strfromf64x): Likewise.
22638 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22639 (strfromf128x): Likewise.
22640 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22641 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22642 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22643 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22644 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22645 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22646
22647 2017-11-03 Richard Henderson <rth@twiddle.net>
22648
22649 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22650
22651 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22652
22653 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22654
22655 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22656
22657 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22658 DT_TLSDESC_GOT initialization.
22659 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22660 (_dl_tlsdesc_resolve_hold): Likewise.
22661 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22662 (_dl_tlsdesc_resolve_hold): Likewise.
22663 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22664 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22665
22666 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22667
22668 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22669
22670 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22671
22672 [BZ #18572]
22673 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22674 non-lazily for R_ARM_TLS_DESC.
22675
22676 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22677
22678 [BZ #17078]
22679 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22680 R_ARM_TLS_DESC case.
22681 (elf_machine_lazy_rel): Remove the prelink check.
22682
22683 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22684
22685 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22686 DT_TLSDESC_GOT initialization.
22687 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22688 (_dl_tlsdesc_resolve_rela): Likewise.
22689 (_dl_tlsdesc_resolve_hold): Likewise.
22690 (_dl_tlsdesc_undefweak): Remove ldar.
22691 (_dl_tlsdesc_dynamic): Likewise.
22692 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22693 (_dl_tlsdesc_resolve_rela): Likewise.
22694 (_dl_tlsdesc_resolve_hold): Likewise.
22695 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22696 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22697 (_dl_tlsdesc_resolve_rela): Likewise.
22698 (_dl_tlsdesc_resolve_hold): Likewise.
22699
22700 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22701
22702 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22703 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22704
22705 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22706
22707 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22708 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22709
22710 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22711
22712 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22713 Declare.
22714 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22715 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22716 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22717 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22718 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22719 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22720 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22721 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22722 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22723 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22724 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22725
22726 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22727
22728 [BZ #22382]
22729 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22730 * localedata/locales/tpi_PG: Add standard header.
22731
22732 2017-11-02 Florian Weimer <fweimer@redhat.com>
22733
22734 test-errno-linux: quotactl can fail with EPERM in containers.
22735 * sysdeps/unix/sysv/linux/test-errno-linux.c
22736 (LIST, LIST_FORWARD): New macros.
22737 (check_error_in_list): New function.
22738 (test_wrp_rv): Accept list of permitted error codes.
22739 (test_wrp_rv2): Remove.
22740 (test_wrp): Call test_wrp_rv with list of error codes.
22741 (test_wrp2): Accept list of error codes.
22742 (do_test): Adjust. Allow EPERM for quotactl.
22743
22744 2017-11-02 Florian Weimer <fweimer@redhat.com>
22745
22746 * stdio-common/bug16.c (do_test): Use array_length.
22747 * stdio-common/errlist.c (_sys_nerr): Likewise.
22748 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22749 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22750 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22751 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22752 (do_test): Use array_length.
22753 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22754 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22755 * stdio-common/tst-printf-round.c (do_test): Likewise.
22756 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22757 (CHECK): Use array_length.
22758 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22759 * stdio-common/tstscanf.c (main): Likewise.
22760 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22761
22762 2017-11-02 Florian Weimer <fweimer@redhat.com>
22763
22764 Add array_length and array_end macros.
22765 * include/array_length.h: New file.
22766
22767 2017-11-02 Florian Weimer <fweimer@redhat.com>
22768
22769 [BZ #22332]
22770 * posix/tst-glob-tilde.c (do_noescape): New variable.
22771 (one_test): Process it.
22772 (do_test): Set do_noescape. Add unescaping test case.
22773
22774 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22775
22776 * math/complex.h
22777 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22778 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22779 with appropriate macros defined and undefined.
22780 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22781 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22782 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22783 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22784 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22785 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22786 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22787 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22788 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22789 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22790
22791 * math/complex.h
22792 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22793 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22794 that for long double. Do not condition define and undefine of
22795 _Mdouble_complex_ on [__CFLOAT128].
22796
22797 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22798
22799 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22800 of <sysdeps/generic/sysdep.h>.
22801 (ALIGNARG): Removed.
22802 (ASM_SIZE_DIRECTIVE): Likewise.
22803 (ENTRY): Likewise.
22804 (END): Likewise.
22805 (ENTRY_CHK): Likewise.
22806 (END_CHK): Likewise.
22807 (syscall_error): Likewise.
22808 (mcount): Likewise.
22809 (PSEUDO_END): Likewise.
22810 (L): Likewise.
22811 (atom_text_section): Likewise.
22812 * sysdeps/x86/sysdep.h: New file.
22813 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22814 of <sysdeps/generic/sysdep.h>.
22815 (ALIGNARG): Removed.
22816 (ASM_SIZE_DIRECTIVE): Likewise.
22817 (ENTRY): Likewise.
22818 (END): Likewise.
22819 (ENTRY_CHK): Likewise.
22820 (END_CHK): Likewise.
22821 (syscall_error): Likewise.
22822 (mcount): Likewise.
22823 (PSEUDO_END): Likewise.
22824 (L): Likewise.
22825 (atom_text_section): Likewise.
22826
22827 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22828
22829 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22830 category of LC_CTYPE set to "i18n:2012".
22831 * localedata/locales/i18n_ctype: Regenerate.
22832
22833 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22834
22835 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22836 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22837 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22838 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22839
22840 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22841 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22842 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22843 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22844
22845 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22846
22847 * math/complex.h
22848 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22849 New macro.
22850 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22851 Likewise.
22852 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22853 Likewise.
22854 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22855 (CMPLXF32X): Likewise.
22856 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22857 (CMPLXF64X): Likewise.
22858 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22859 (CMPLXF128X): Likewise.
22860
22861 * math/math.h
22862 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22863 (__MATH_EVAL_FMT2): Define to add 0.0f.
22864
22865 2017-10-31 Alan Modra <amodra@gmail.com>
22866
22867 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22868 include sysdep.h.
22869 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22870 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22871 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22872 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22873 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22874 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22875 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22876 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22877 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22878 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22879 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22880 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22881 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22882 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
22883 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
22884 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
22885 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
22886 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
22887 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
22888 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
22889 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
22890 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
22891 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
22892 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
22893 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
22894 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
22895 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
22896 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
22897 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
22898 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
22899 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
22900 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
22901 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
22902 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
22903 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
22904 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
22905 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
22906 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
22907 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
22908 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
22909 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
22910 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
22911 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
22912 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
22913 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
22914 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
22915 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
22916 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
22917 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22918 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
22919 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
22920 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
22921 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
22922 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
22923 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
22924 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
22925 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
22926 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
22927 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22928 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22929 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
22930 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
22931 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
22932 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
22933 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
22934 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
22935 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
22936 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
22937 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
22938
22939 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
22940 include sysdep.h and math_ldbl_opt.h.
22941
22942 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
22943 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
22944 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
22945 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
22946 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
22947 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
22948 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
22949 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
22950 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
22951 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
22952 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
22953 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
22954 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
22955 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
22956 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
22957 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
22958 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
22959 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
22960 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
22961 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
22962 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
22963 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
22964 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
22965 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
22966 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
22967 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
22968
22969 2017-10-31 Alan Modra <amodra@gmail.com>
22970
22971 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
22972 string/strncase_l.c, not string/strncase.c.
22973 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
22974 (libc_hidden_def): Redefine.
22975
22976 2017-10-31 Alan Modra <amodra@gmail.com>
22977
22978 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
22979 (__STRCMP, STRCMP, __strcasecmp_l): Define.
22980 (__strcasecmp): Don't define.
22981
22982 2017-10-31 Alan Modra <amodra@gmail.com>
22983
22984 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
22985 IS_IN (libc).
22986 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22987 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22988 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22989
22990 2017-10-31 Alan Modra <amodra@gmail.com>
22991
22992 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
22993 USE_AS_STPNCPY.
22994
22995 2017-10-31 Alan Modra <amodra@gmail.com>
22996
22997 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
22998 Redefine only when SHARED.
22999
23000 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23001
23002 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23003 Include <bits/math-finite.h> with appropriate macros defined and
23004 undefined.
23005 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23006 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23007 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23008 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23009 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23010
23011 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23012 [!_Mlong_double_] (_Mlong_double_): Likewise.
23013 [!_Mfloat16_] (_Mfloat16_): Likewise.
23014 [!_Mfloat32_] (_Mfloat32_): Likewise.
23015 [!_Mfloat64_] (_Mfloat64_): Likewise.
23016 [!_Mfloat128_] (_Mfloat128_): Likewise.
23017 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23018 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23019 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23020 (_Mdouble_): Define without indirection through those macros.
23021 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23022 [!_Mfloat128_] (_Mfloat128_): Likewise.
23023 [_Mlong_double_] (_Mlong_double_): Likewise.
23024 (_Mdouble_): Define without indirection through those macros.
23025 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23026 not add -D_Mlong_double_=double.
23027 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23028 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23029
23030 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23031
23032 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23033
23034 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23035
23036 * sysdeps/x86/libc-start.c: Reformat.
23037
23038 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23039
23040 [BZ #22353]
23041 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23042 (1): Renamed to ...
23043 (L(Src0)): This.
23044 (L(Src1)): New.
23045 (L(Src2)): Likewise.
23046 (L(1)): Renamed to ...
23047 (L(Src3)): This.
23048
23049 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23050
23051 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23052 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23053 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23054 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23055 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23056 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23057 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23058 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23059 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23060 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23061 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23062 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23063 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23064 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23065 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23066 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23067 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23068 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23069 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23070 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23071 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23072 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23073 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23074 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23075 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23076 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23077 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23078 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23079 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23080 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23081 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23082 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23083 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23084 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23085 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23086 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23087 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23088 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23089 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23090 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23091 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23092 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23093 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23094 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23095 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23096 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23097 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23098 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23099 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23100 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23101 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23102 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23103 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23104 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23105 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23106 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23107 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23108 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23109 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23110 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23111 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23112 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23113 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23114 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23115 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23116 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23117
23118 2017-10-30 Florian Weimer <fweimer@redhat.com>
23119
23120 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23121 always defined.
23122 * io/tst-mkdirat.c (do_test): Likewise.
23123 * io/tst-mkfifoat.c (do_test): Likewise.
23124 * io/tst-mknodat.c (do_test): Likewise.
23125 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23126 * locale/programs/locale.c (select_dirs): Likewise.
23127 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23128 * posix/bug-glob2.c (my_readdir): Likewise.
23129 * posix/tst-dir.c (main): Likewise.
23130 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23131 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23132
23133 2017-10-30 Florian Weimer <fweimer@redhat.com>
23134
23135 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23136 just __USE_GNU.
23137
23138 2017-10-30 Florian Weimer <fweimer@redhat.com>
23139
23140 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23141 Convert to support/test-driver.c.
23142 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23143 New macro parameters.
23144 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23145 * posix/tst-gnuglob.c: New file.
23146 * posix/tst-gnuglob64.c: Likewise.
23147 * posix/Makefile (tests): Add tst-gnuglob64.
23148
23149 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23150
23151 [BZ #19485]
23152 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23153 and use a better translation for March in “mon”.
23154 * localedata/locales/csb_PL: Use more ASCII to improve the
23155 readability of the source.
23156
23157 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23158
23159 [BZ #13953]
23160 * localedata/locales/km_KH: Use ASCII as much
23161 as possible for better readability of the source and
23162 remove useless comments.
23163 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23164 was commented out and apparently wrong anyway because it was
23165 using Lao characters. If Buddhist era should be used
23166 for km_KH, a native speaker should write the correct formaat
23167 for Khmer.
23168 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23169 (According to CLDR, the first weekday for Cambodia is Sunday).
23170 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23171 (These were using Lao characters which must be wrong. If we get
23172 the correct data from a native speaker, we could add it back, until
23173 then it is better not to have name_mr and name_mrs at all than
23174 having it wrong).
23175
23176 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23177
23178 * locale/loadlocale.c: Correct size of
23179 _nl_value_type_LC_<category> arrays.
23180
23181 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23182
23183 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23184 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23185 with appropriate macros defined and undefined.
23186 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23187 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23188 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23189 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23190 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23191
23192 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23193
23194 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23195 "-O2 -march=i586".
23196
23197 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23198
23199 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23200 with lowercase letters to make it agree with CLDR.
23201
23202 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23203
23204 [BZ #15260]
23205 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23206 first letters of yesstr and nostr in yesexpr and noexpr,
23207 not for the full words.
23208 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23209 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23210 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23211 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23212 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23213 first letters of yesstr and nostr in yesexpr and noexpr,
23214 until now only English was matched in yesexpr and noexpr.
23215 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23216 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23217 fil but not for tl. As tl and fil are very similar, using fil
23218 is probably better than using English.
23219
23220 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23221
23222 [BZ #21706]
23223 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23224 in yesstr and nostr.
23225
23226 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23227
23228 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23229 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23230 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23231 Likewise.
23232 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23233 Likewise.
23234 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23235 Likewise.
23236 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23237 Likewise.
23238 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23239 (SNANF128X): Likewise.
23240
23241 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23242 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23243 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23244 (HUGE_VAL_F32): Likewise.
23245 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23246 (HUGE_VAL_F64): Likewise.
23247 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23248 (HUGE_VAL_F32X): Likewise.
23249 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23250 (HUGE_VAL_F64X): Likewise.
23251 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23252 (HUGE_VAL_F128X): Likewise.
23253
23254 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23255
23256 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23257 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23258 for the br_FR locale.
23259
23260 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23261
23262 [BZ #21706]
23263 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23264
23265 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23266
23267 * locale/programs/record-status.h: Define globals, and function
23268 prototypes. Move function bodies...
23269 * locale/programs/record-status.c: ... to here. New file.
23270 * iconv/Makefile (iconv_prog-modules): Add record-status.
23271 * locale/Makefile (lib-modules): Likewise.
23272 * iconv/iconv_prog.c: Remove verbose.
23273 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23274 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23275 record a warning about ASCII compatibility.
23276 * locale/programs/ld-monetary.c (monetary_finish): If
23277 warn_int_curr_symbol is true then record a warning about the symbol
23278 not being in our ISO 4217 list.
23279 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23280 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23281 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23282 (OPT_NO_WARN): Define.
23283 (OPT_WARN): Define.
23284 (options): Add entry for --no-warnings, and --warnings.
23285 (set_warnings): New function to enable/disable warnings.
23286 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23287 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23288 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23289 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23290 Pass flags to generate_locale.
23291 (generate_locale): Accept new flag argument and pass it to localedef
23292 invocation.
23293 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23294 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23295
23296 * localedata/Makefile (test-input-data): Use full file name.
23297 * localedata/da_DK.in: Rename to...
23298 * localedata/da_DK.ISO-8859-1.in: ...this.
23299 * localedata/de_DE.in: Rename to...
23300 * localedata/de_DE.ISO-8859-1.in: ...this.
23301 * localedata/en_US.in: Rename to...
23302 * localedata/en_US.ISO-8859-1.in: ...this.
23303 * localedata/fr_FR.in: Rename to...
23304 * localedata/fr_FR.UTF-8.in: ... this.
23305 * localedata/hr_HR.in: Rename to...
23306 * localedata/hr_HR.ISO-8859-2.in: ...this.
23307 * localedata/hu_HU.in: Rename to...
23308 * localedata/hu_HU.UTF-8.in: ...this.
23309 * localedata/si_LK.in: Rename to...
23310 * localedata/si_LK.UTF-8.in: ...this.
23311 * localedata/sv_SE.in: Rename to...
23312 * localedata/sv_SE.ISO-8859-1.in: ...this.
23313 * localedata/tr_TR.in: Rename to...
23314 * localedata/tr_TR.UTF-8.in: ...this.
23315 * localedata/uk_UA.in: Rename to...
23316 * localedata/uk_UA.UTF-8.in: ...this.
23317 * localedata/sort-test.sh: Test file is locale name with the
23318 suffix.
23319
23320 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23321 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23322 file.
23323 * localedata/locales/i18n_ctype: Regenerate.
23324 * localedata/locales/tr_TR: Likewise.
23325 * localedata/locales/translit_circle: Likewise.
23326 * localedata/locales/translit_cjk_compat: Likewise.
23327 * localedata/locales/translit_combining: Likewise.
23328 * localedata/locales/translit_compat: Likewise.
23329 * localedata/locales/translit_font: Likewise.
23330 * localedata/locales/translit_fraction: Likewise.
23331
23332 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23333
23334 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23335 lxvd2x/stxvd2x with lvx/stvx.
23336 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23337
23338 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23339
23340 * include/alloc_buffer.h: Replace "if if " with "if " in
23341 comments.
23342 * sysdeps/mips/memcpy.S: Likkewise.
23343 * sysdeps/mips/memset.S: Likewise.
23344 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23345 Likewise.
23346 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23347 Likewise.
23348 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23349 Likewise.
23350
23351 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23352
23353 [BZ #15261]
23354 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23355 yesexpr and noexpr.
23356 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23357 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23358 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23359 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23360 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23361 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23362 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23363
23364 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23365
23366 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23367 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23368 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23369 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23370 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23371 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23372 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23373 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23374 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23375 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23376 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23377 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23378
23379 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23380
23381 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23382 as possible for better readability of the source.
23383 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23384 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23385 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23386 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23387 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23388 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23389 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23390 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23391 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23392 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23393 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23394 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23395 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23396 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23397 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23398 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23399 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23400 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23401 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23402 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23403 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23404 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23405 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23406 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23407 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23408 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23409 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23410 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23411 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23412 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23413 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23414 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23415 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23416 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23417 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23418 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23419 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23420 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23421 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23422 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23423 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23424 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23425 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23426 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23427 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23428 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23429 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23430 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23431 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23432 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23433 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23434 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23435 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23436 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23437 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23438 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23439 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23440 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23441 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23442 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23443 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23444 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23445 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23446 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23447 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23448 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23449 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23450 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23451 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23452 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23453 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23454 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23455 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23456 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23457 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23458 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23459 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23460 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23461 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23462 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23463 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23464 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23465 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23466 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23467 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23468 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23469 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23470 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23471 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23472 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23473 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23474 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23475 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23476 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23477 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23478 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23479 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23480 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23481 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23482 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23483 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23484 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23485 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23486 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23487 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23488 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23489 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23490 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23491 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23492 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23493 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23494 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23495 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23496 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23497 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23498 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23499 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23500 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23501 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23502 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23503 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23504 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23505 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23506 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23507 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23508 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23509 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23510 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23511 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23512 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23513 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23514 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23515 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23516 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23517 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23518 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23519 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23520 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23521 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23522 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23523 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23524 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23525 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23526 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23527 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23528 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23529 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23530 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23531 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23532 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23533 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23534 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23535 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23536 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23537 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23538 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23539 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23540 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23541 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23542 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23543 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23544 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23545 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23546 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23547 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23548 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23549 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23550 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23551 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23552 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23553 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23554 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23555 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23556 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23557
23558 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23559
23560 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23561 (Use first letters of yesstr and nostr correctly instead of using
23562 full words).
23563
23564 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23565
23566 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23567 (Use first letters of yesstr and nostr correctly).
23568
23569 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23570
23571 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23572 also check for the first characters of yesstr and nostr.
23573 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23574 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23575
23576 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23577
23578 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23579 also check for Chinese characters.
23580
23581 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23582
23583 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23584 match also for the contents of yesstr and nostr. As the first letter
23585 of yesstr and nostr is equal, checking only for the first letter
23586 is not enough.
23587
23588 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23589
23590 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23591 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23592
23593 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23594
23595 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23596 of main contributor.
23597
23598 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23599
23600 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23601 instead of using English.
23602
23603 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23604
23605 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23606 by including the first letters of nostr and yesexpr in the regexp.
23607 Also make it more readable by using ASCII where possible.
23608
23609 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23610
23611 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23612 the first letter of nostr in the regexp. It agrees with CLDR now.
23613 Also make it more readable by using ASCII where possible.
23614
23615 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23616
23617 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23618 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23619 these strings contain a U+17D6 (which somewhat looks like a colon)
23620 instead of a real colon to separate the full words for “yes”
23621 and “no” from the single letter responses.
23622
23623 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23624
23625 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23626 it agree with CLDR (include the first letter of yesstr).
23627 Also make it more readable by using ASCII where possible.
23628
23629 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23630
23631 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23632 and improve yesexpr and noexpr. The yesstr and nostr apparently
23633 came from CLDR. And CLDR has a bug there: these strings contain
23634 a U+0903 (which looks like a colon) instead of a real colon
23635 to separate the full words for “yes” and “no” from the single
23636 letter responses.
23637
23638 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23639
23640 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23641 letters of the full yesstr and nostr in yesexpr and noexpr.
23642
23643 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23644
23645 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23646 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23647 * localedata/locales/an_ES: Make source more readable by using ASCII
23648 where possible.
23649
23650 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23651
23652 [BZ #20952]
23653 * localedata/locales/yuw_PG: New file.
23654 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23655 * locale/iso-639.def: Add Yau (Uruwa).
23656
23657 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23658
23659 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23660
23661 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23662
23663 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23664 (__libc_realloc): Likewise.
23665 (_mid_memalign): Likewise.
23666 (__libc_calloc): Likewise.
23667
23668 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23669
23670 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23671 by adding the generic +1 and -0 as in all other locales.
23672 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23673 day names and make it more readable by using ASCII where possible.
23674
23675 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23676
23677 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23678 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23679
23680 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23681
23682 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23683 WNOHANG in waitpid call.
23684
23685 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23686
23687 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23688 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23689
23690 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23691 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23692 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23693 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23694 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23695 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23696 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23697 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23698 variables.
23699
23700 2017-10-23 Michael Collison <michael.collison@arm.com>
23701
23702 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23703 with __builtin_sqrt.
23704 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23705 with __builtin_sqrtf.
23706 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23707 with __builtin_ceil.
23708 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23709 with __builtin_ceilf.
23710 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23711 with __builtin_floor.
23712 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23713 with __builtin_floorf.
23714 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23715 with __builtin_fma.
23716 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23717 with __builtin_fmaf.
23718 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23719 with __builtin_fmax.
23720 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23721 with __builtin_fmaxf.
23722 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23723 with __builtin_fmin.
23724 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23725 with __builtin_fminf.
23726 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23727 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23728 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23729 with builtin_rint and conversion to int.
23730 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23731 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23732 with builtin_llround.
23733 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23734 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23735 with builtin_rint and conversion to long int.
23736 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23737 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23738 with builtin_lround.
23739 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23740 with builtin_lroundf.
23741 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23742 statements with __builtin_nearbyint.
23743 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23744 statements with __builtin_nearbyintf.
23745 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23746 with __builtin_rint.
23747 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23748 with __builtin_rintf.
23749 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23750 with __builtin_round.
23751 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23752 with __builtin_roundf.
23753 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23754 with __builtin_trunc.
23755 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23756 with __builtin_truncf.
23757 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23758 and s_l[l]round[f].c too.
23759
23760 2017-10-23 Alan Modra <amodra@gmail.com>
23761
23762 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23763 Adjust stack after restoring regs. Add missing LR cfi_restore.
23764
23765 2017-10-23 Alan Modra <amodra@gmail.com>
23766
23767 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23768 Move LR save and frame setup/teardown and LR restore to
23769 immediately around memset call. Provide cfi.
23770
23771 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23772
23773 * sysdeps/i386/fpu/e_powf.S: Removed.
23774 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23775 * sysdeps/i386/fpu/w_powf.c: Likewise.
23776 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23777 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23778 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23779 Add e_powf-sse2.
23780 (CFLAGS-e_powf-sse2.c): New.
23781 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23782 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23783
23784 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23785
23786 * sysdeps/i386/fpu/e_log2f.S: Removed.
23787 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23788 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23789 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23790 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23791 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23792 Add e_log2f-sse2.
23793 (CFLAGS-e_log2f-sse2.c): New.
23794 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23795 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23796
23797 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23798
23799 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23800 Add e_powf-fma.
23801 (CFLAGS-e_powf-fma.c): New.
23802 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23803 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23804
23805 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23806
23807 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23808 Add e_log2f-fma.
23809 (CFLAGS-e_log2f-fma.c): New.
23810 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23811 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23812
23813 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23814
23815 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23816 Add e_logf-fma.
23817 (CFLAGS-e_logf-fma.c): New.
23818 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23819 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23820
23821 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23822
23823 * sysdeps/i386/fpu/e_logf.S: Removed.
23824 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23825 * sysdeps/i386/fpu/w_logf.c: Likewise.
23826 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23827 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23828 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23829 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23830 Add e_logf-sse2.
23831 (CFLAGS-e_logf-sse2.c): New.
23832 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23833 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23834
23835 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23836
23837 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23838 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23839 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23840 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23841 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23842 Add e_exp2f-sse2.
23843 (CFLAGS-e_exp2f-sse2.c): New.
23844 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23845 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23846
23847 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23848
23849 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23850 Add e_exp2f-fma.
23851 (CFLAGS-e_exp2f-fma.c): New.
23852 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23853 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23854
23855 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23856
23857 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23858 * sysdeps/i386/fpu/e_expf.S: Likewise.
23859 * sysdeps/i386/fpu/math_errf.c: Likewise.
23860 * sysdeps/i386/fpu/w_expf.c: Likewise.
23861 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23862 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23863 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23864 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23865 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23866 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23867 Remove e_expf-ia32.
23868 (CFLAGS-e_expf-sse2.c): New.
23869 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23870 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23871
23872 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23873
23874 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23875 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23876 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23877 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23878 e_expf.c.
23879 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23880 New.
23881 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23882 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
23883 Renamed to ...
23884 (__redirect_expf): This.
23885 (SYMBOL_NAME): Changed to expf.
23886 (__ieee754_expf): Renamed to ...
23887 (__expf): This.
23888 (__GI___expf): This.
23889 (__ieee754_expf): Add strong_alias.
23890 (__expf_finite): Likewise.
23891 (__expf): New.
23892 Include <sysdeps/ieee754/flt-32/e_expf.c>.
23893
23894 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
23895
23896 [BZ #22332]
23897 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
23898 unescaping.
23899
23900 2017-10-21 Florian Weimer <fweimer@redhat.com>
23901
23902 * posix/Makefile (tests): Add tst-glob-tilde.
23903 (tests-special): Add tst-glob-tilde-mem.out
23904 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
23905 (tst-glob-tilde-mem.out): Add mtrace check.
23906 * posix/tst-glob-tilde.c: New file.
23907
23908 2017-10-20 Joseph Myers <joseph@codesourcery.com>
23909
23910 * bits/floatn-common.h: New file.
23911 * math/Makefile (headers): Add bits/floatn-common.h.
23912 * bits/floatn.h: Include <bits/floatn-common.h>.
23913 * sysdeps/ia64/bits/floatn.h: Likewise.
23914 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
23915 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
23916 * sysdeps/powerpc/bits/floatn.h: Likewise.
23917 * sysdeps/x86/bits/floatn.h: Likewise.
23918
23919 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23920
23921 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
23922 indicates whether compiler emits an warning for alias for
23923 functions with incompatible types.
23924
23925 [BZ #22273]
23926 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
23927 the auxiliary process is terminated by a signal before calling _exit
23928 or execve.
23929
23930 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23931
23932 [BZ #21265]
23933 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
23934 New.
23935 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
23936 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
23937 and bit_arch_XSAVEC_Usable if needed.
23938 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
23939 and bit_arch_Use_dl_runtime_resolve_opt.
23940 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
23941 Removed.
23942 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
23943 (bit_arch_Prefer_No_AVX512): Updated.
23944 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
23945 (bit_arch_XSAVEC_Usable): New.
23946 (STATE_SAVE_OFFSET): Likewise.
23947 (STATE_SAVE_MASK): Likewise.
23948 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
23949 (cpu_features): Add xsave_state_size and xsave_state_full_size.
23950 (index_arch_Use_dl_runtime_resolve_opt): Removed.
23951 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
23952 (index_arch_XSAVEC_Usable): New.
23953 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
23954 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
23955 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
23956 is enabled.
23957 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
23958 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
23959 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
23960 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
23961 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
23962 _dl_runtime_resolve_xsavec.
23963 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
23964 Removed.
23965 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
23966 instead of VEC_SIZE.
23967 (REGISTER_SAVE_BND0): Removed.
23968 (REGISTER_SAVE_BND1): Likewise.
23969 (REGISTER_SAVE_BND3): Likewise.
23970 (REGISTER_SAVE_RAX): Always defined to 0.
23971 (VMOV): Removed.
23972 (_dl_runtime_resolve_avx): Likewise.
23973 (_dl_runtime_resolve_avx_slow): Likewise.
23974 (_dl_runtime_resolve_avx_opt): Likewise.
23975 (_dl_runtime_resolve_avx512): Likewise.
23976 (_dl_runtime_resolve_avx512_opt): Likewise.
23977 (_dl_runtime_resolve_sse): Likewise.
23978 (_dl_runtime_resolve_sse_vex): Likewise.
23979 (USE_FXSAVE): New.
23980 (_dl_runtime_resolve_fxsave): Likewise.
23981 (USE_XSAVE): Likewise.
23982 (_dl_runtime_resolve_xsave): Likewise.
23983 (USE_XSAVEC): Likewise.
23984 (_dl_runtime_resolve_xsavec): Likewise.
23985 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
23986 Removed.
23987 (_dl_runtime_resolve_avx512_opt): Likewise.
23988 (_dl_runtime_resolve_avx): Likewise.
23989 (_dl_runtime_resolve_avx_opt): Likewise.
23990 (_dl_runtime_resolve_sse): Likewise.
23991 (_dl_runtime_resolve_sse_vex): Likewise.
23992 (_dl_runtime_resolve_fxsave): New.
23993 (_dl_runtime_resolve_xsave): Likewise.
23994 (_dl_runtime_resolve_xsavec): Likewise.
23995
23996 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
23997
23998 [BZ #22320]
23999 CVE-2017-15670
24000 * posix/glob.c (__glob): Fix one-byte overflow.
24001
24002 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24003
24004 * malloc/malloc.c (sysdep-cancel.h): Add include.
24005
24006 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24007
24008 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24009
24010 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24011
24012 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24013 (tests): Remove $(objpfx)ga_test depdendency.
24014 * resolv/ga_test.c: Remove file.
24015
24016 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24017
24018 [BZ #18812]
24019 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24020 * localedata/locales/kab_DZ: New file.
24021
24022 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24023
24024 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24025 _dl_relocate_static_pie instead of _dl_start to compute load
24026 address in static PIE.
24027
24028 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24029
24030 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24031
24032 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24033
24034 [BZ #13605]
24035 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24036 * localedata/locales/shn_MM: New file.
24037
24038 2017-10-20 Florian Weimer <fweimer@redhat.com>
24039
24040 [BZ #22321]
24041 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24042 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24043 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24044 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24045 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24046 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24047
24048 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24049
24050 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24051
24052 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24053
24054 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24055
24056 [BZ #22322]
24057 * sysdeps/mips/bits/long-double.h: Move to ....
24058 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24059
24060 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24061
24062 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24063
24064 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24065 H.J. Lu <hongjiu.lu@intel.com>
24066
24067 [BZ #22299]
24068 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24069 GLRO(dl_platform) to NULL.
24070 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24071 (modules-names): Add tst-platformmod-1 and
24072 x86_64/tst-platformmod-2.
24073 (CFLAGS-tst-platform-1.c): New.
24074 (CFLAGS-tst-platformmod-1.c): Likewise.
24075 (CFLAGS-tst-platformmod-2.c): Likewise.
24076 (LDFLAGS-tst-platformmod-2.so): Likewise.
24077 ($(objpfx)tst-platform-1): Likewise.
24078 ($(objpfx)tst-platform-1.out): Likewise.
24079 (tst-platform-1-ENV): Likewise.
24080 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24081 * sysdeps/x86_64/tst-platform-1.c: New file.
24082 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24083 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24084
24085 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24086
24087 [BZ #13994]
24088 * locale/iso-639.def: Add Karbi.
24089 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24090 * localedata/locales/mjw_IN: New file.
24091
24092 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24093
24094 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24095 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24096 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24097 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24098 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24099 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24100 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24101 <bits/floatn.h>.
24102 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24103 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24104 * manual/math.texi (Mathematics): Document additional architecture
24105 support for _Float128.
24106 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24107 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24108 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24109 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24110 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24111 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24112 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24113 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24114 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24115 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24116 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24117 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24118 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24119 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24120 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24121
24122 2017-10-18 Renlin Li <renlin.li@arm.com>
24123
24124 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24125 _DYNAMIC symbol to calculate load address.
24126
24127 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24128
24129 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24130 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24131 summary bits.
24132 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24133 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24134
24135 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24136
24137 [BZ #16777]
24138 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24139 and improve readability by using more ASCII.
24140 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24141 and improve readability by using more ASCII.
24142
24143 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24144
24145 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24146 not all targets support atomics on bool.
24147
24148 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24149
24150 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24151 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24152 __f128.
24153 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24154 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24155 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24156 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24157 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24158 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24159
24160 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24161
24162 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24163 defines.
24164
24165 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24166
24167 [BZ #22159]
24168 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24169 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24170 (do_check_remalloced_chunk): Fix build bug.
24171 (do_check_malloc_state): Add assert that checks arena->top.
24172 (malloc_consolidate): Remove initialization.
24173 (int_mallinfo): Remove call to malloc_consolidate.
24174 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24175
24176 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24177
24178 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24179 (have_fastchunks): Remove.
24180 (clear_fastchunks): Remove.
24181 (set_fastchunks): Remove.
24182 (malloc_state): Add have_fastchunks.
24183 (malloc_init_state): Use have_fastchunks.
24184 (do_check_malloc_state): Remove incorrect invariant checks.
24185 (_int_malloc): Use have_fastchunks.
24186 (_int_free): Likewise.
24187 (malloc_consolidate): Likewise.
24188
24189 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24190
24191 * malloc/malloc.c (tcache_put): Inline.
24192 (tcache_get): Inline.
24193
24194 2017-10-17 Jordi Mallach <jordi@gnu.org>
24195
24196 Aurelien Jarno <aurelien@aurel32.net>
24197 [BZ #2522]
24198 * localedata/locales/ca_ES@valencia: New file.
24199 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24200
24201 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24202
24203 [BZ #22296]
24204 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24205 < 6.x
24206
24207 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24208
24209 * scripts/build-many-glibcs.py (Context.add_all_configs):
24210 Add arm-linux-gnueabihf multiarch extra_glibcs.
24211
24212 * sysdeps/generic/ifunc-init.h: New file.
24213 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24214
24215 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24216
24217 [BZ #22019]
24218 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24219 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24220 * stdlib/tst-strfmon_l.c: adapt test case.
24221
24222 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24223
24224 * sysdeps/generic/float128-abi.h: New file.
24225 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24226 non-__prefixed symbols to ....
24227 * math/Versions: ... here. Include <float128-abi.h>.
24228 * stdlib/Versions ... and here. Include <float128-abi.h>
24229
24230 2017-10-16 Florian Weimer <fweimer@redhat.com>
24231
24232 * version.h (VERSION): Switch to ".9000" as the development
24233 version suffix.
24234
24235 2017-10-16 Florian Weimer <fweimer@redhat.com>
24236
24237 [BZ #22050]
24238 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24239 compat_symbol_reference to access non-default version.
24240
24241 2017-10-16 Florian Weimer <fweimer@redhat.com>
24242
24243 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24244
24245 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24246
24247 * include/shlib-compat.h (compat_symbol_reference): Update
24248 comment.
24249
24250 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24251
24252 * math/Makefile (test-types): Add
24253 $(type-float128-$(float128-alias-fcts)).
24254 * math/test-float128.h (TYPE_STR): Define conditional on
24255 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24256 (ULP_IDX): Likewise.
24257 (ULP_I_IDX): Likewise.
24258
24259 * stdlib/strtold.c: Include <bits/floatn.h>
24260 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24261 and later undefine as macro. Define as weak alias if
24262 [!USE_WIDE_CHAR].
24263 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24264 and later undefine as macro. Define as weak alias if
24265 [USE_WIDE_CHAR].
24266 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24267 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24268 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24269 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24270 Define and later undefine as macro. Define as weak alias if
24271 [USE_WIDE_CHAR].
24272 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24273 <bits/floatn.h>.
24274 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24275 Define and later undefine as macro. Define as weak alias if
24276 [!USE_WIDE_CHAR].
24277 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24278 Define and later undefine as macro. Define as weak alias if
24279 [USE_WIDE_CHAR].
24280
24281 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24282
24283 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24284 record_verbose messages.
24285
24286 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24287
24288 [BZ #22052]
24289 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24290 to silence -O3 -Wall warning with GCC 7.
24291
24292 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24293
24294 * Makeconfig (+link-static-before-libc): Use the first of
24295 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24296 * gmon/Makefile (tests): Add tst-gmon-static.
24297 (tests-static): Likewise.
24298 (CFLAGS-tst-gmon-static.c): New.
24299 (CRT-tst-gmon-static): Likewise.
24300 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24301 (tst-gmon-static-ENV): Likewise.
24302 (tests-special): Likewise.
24303 ($(objpfx)tst-gmon-static.out): Likewise.
24304 (clean-tst-gmon-static-data): Likewise.
24305 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24306 * gmon/tst-gmon-static-gprof.sh: New file.
24307 * gmon/tst-gmon-static.c: Likewise.
24308
24309 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24310
24311 [BZ #22295]
24312 * locale/programs/linereader.c (get_string): Don't warn on
24313 non-symbolic character.
24314
24315 [BZ #22294]
24316 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24317 int_curr_symbol.
24318
24319 [BZ #22292]
24320 * locale/programs/record-status.h: New file
24321 * locale/programs/locale.c: Add comment.
24322 * locale/programs/charmap-dir.c: Don't include error.h.
24323 (charmap_opendir): Use record_error.
24324 * locale/programs/charmap.c: Don't include error.h.
24325 (charmap_read): Use record_error, and record_warning.
24326 (parse_charmap): Likewise.
24327 * locale/programs/ld-address.c: Don't include error.h.
24328 (address_finish): Use record_error, and record_warning.
24329 * locale/programs/ld-collate.c: Don't include error.h.
24330 (collate_finish): Use record_error, and record_error_at_line.
24331 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24332 (ctype_class_new): Likewise.
24333 (ctype_map_new): Likewise.
24334 (set_one_default): Likewise.
24335 (set_class_defaults): Likewise.
24336 (translit_flatten): Likewise.
24337 (allocate_arrays): Use record_error, and record_verbose.
24338 * locale/programs/ld-identification.c: Don't include error.h.
24339 (indentation_finish): Use record_error and record_warning.
24340 * locale/programs/ld-measurement.c: Don't include error.h.
24341 (measurement_finish): Use record_error.
24342 * locale/programs/ld-messages.c
24343 (message_finish): Likewise.
24344 * locale/programs/ld-monetary.c
24345 (monetary_finish): Likewise.
24346 * locale/programs/ld-name.c (name_finish): Use record_error
24347 and record_warning.
24348 * locale/programs/ld-numeric.c
24349 (numeric_finish): Use record_error.
24350 * locale/programs/ld-paper.c: Don't include error.h.
24351 (paper_finish): Use record_error.
24352 * locale/programs/ld-telephone.c: Don't include error.h.
24353 (telephone_finish): Use record_error.
24354 * locale/programs/ld-time.c (time_finish): Likewise.
24355 * locale/programs/linereader.h (lr_error): Make inline func.
24356 * locale/programs/localedef.c: Define recorded_warning_count,
24357 and recorded_error_count.
24358 (main): Use record_error. Use recorded_error_count and
24359 recorded_warning_count to issue correct error returns.
24360 (add_to_readlist): Use record_error.
24361 (find_locale): Likewise.
24362 (load_locale): Likewise.
24363 * locale/programs/localedef.h: Remove be_quiet
24364 and WITH_CUR_LOCALE.
24365 * locale/programs/locarchive.c (compare_from_file): Use
24366 record_error.
24367 * locale/programs/locfile.c (write_locale_data): Use
24368 record_error.
24369 * locale/programs/repertoire.c: Dont include error.h.
24370 (repertoire_complain): Use record_error.
24371 * localedata/tst-fmon.sh: Expect failures from localedef.
24372 * localedata/tst-locale.sh: Likewise.
24373 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24374
24375 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24376 (REPORTS): Likewise.
24377 (check): Likewise.
24378 (i18n): Rename to...
24379 (i18n_ctype): ...this.
24380 (i18n-report): Rename to...
24381 (i18n_ctype-report): ...this.
24382 * localedata/locales/i18n_ctype: Regenerate.
24383 * localedata/locales/i18n: copy i18n_ctype.
24384
24385 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24386
24387 * stdlib/strfroml.c: Include <bits/floatn.h>.
24388 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24389 Define before include of <stdlib.h> and undefine afterwards, then
24390 define as weak alias.
24391
24392 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24393 Undefine and restore default definition. Use
24394 libm_alias_ldouble_other.
24395
24396 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24397
24398 [BZ #22153]
24399 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24400 in coredumps.
24401
24402 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24403
24404 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24405 Assign sym_map to be map for local symbols, as TLS relocations
24406 use sym_map to determine whether the symbol is defined and to
24407 extract the TLS information.
24408 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24409 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24410
24411 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24412
24413 [BZ #22189]
24414 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24415 (math_force_eval): Add powerpc version.
24416
24417 [BZ #22142]
24418 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24419 -DBL_MAX.
24420 (do_test): Likewise.
24421 * stdio-common/tst-printf.sh: Likewise.
24422 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24423 ifdef clause in order to set the carry bit right. Replace r0 by
24424 0 without changing the behavior.
24425
24426 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24427
24428 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24429 <libm-alias-ldouble.h>.
24430 (fabsl): Define using libm_alias_ldouble.
24431 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24432 <libm-alias-ldouble.h>.
24433 (fabsl): Define using libm_alias_ldouble.
24434
24435 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24436 Remove conditional code.
24437
24438 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24439 Rename to __clog10_internal_l.
24440 (__clog10_internal_l): Define aliases using
24441 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24442 with __clog10.
24443
24444 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24445
24446 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24447 * benchtests/sincosf-inputs: New file.
24448 * benchtests/cosf-inputs: New file.
24449 * benchtests/sinf-inputs: New file.
24450
24451 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24452
24453 * posix/tst-spawn.c (do_test): Wait for both children.
24454
24455 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24456
24457 [BZ #22284]
24458 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24459 tests-pie): Add tst-gmon-pie.
24460 (CFLAGS-tst-gmon-pie.c): New.
24461 (CRT-tst-gmon-pie): Likewise.
24462 (tst-gmon-pie-ENV): Likewise.
24463 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24464 ($(objpfx)tst-gmon-pie.out): Likewise.
24465 (clean-tst-gmon-pie-data): Likewise.
24466 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24467 * gmon/gmon.c [PIC]: Include <link.h>.
24468 [PIC] (callback): New function.
24469 (write_hist): Add an argument for load address. Subtract load
24470 address from PCs.
24471 (write_call_graph): Likewise.
24472 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24473 it to write_hist and write_call_graph.
24474 * gmon/tst-gmon-pie.c: New file.
24475
24476 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24477
24478 * math/Makefile (test-types-basic): New variable.
24479 (test-types): Likewise.
24480 (libm-test-support): Use $(test-types) instead of $(types).
24481 (libm-tests-base-normal): Likewise.
24482 (libm-tests-base-finite): Likewise.
24483 (libm-tests-base-inline): Likewise.
24484 (generated): Likewise.
24485 ($(objpfx)libm-test-support-$(t).c): Likewise.
24486 (libm-tests-for-type iterator): Likewise.
24487 (libm-test-support iterator): Likewise.
24488 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24489 (ulp_idx): Use ULP_IDX.
24490 * math/test-ldouble.h: Include <float.h>.
24491 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24492 (ULP_IDX): New macro.
24493 (ULP_I_IDX): Likewise.
24494 * math/test-double.h (ULP_IDX): Likewise.
24495 (ULP_I_IDX): Likewise.
24496 * math/test-float.h (ULP_IDX): Likewise.
24497 (ULP_I_IDX): Likewise.
24498 * math/test-float128.h (ULP_IDX): Likewise.
24499 (ULP_I_IDX): Likewise.
24500
24501 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24502
24503 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24504 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24505 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24506 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24507 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24508 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24509 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24510 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24511 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24512 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24513 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24514 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24515 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24516 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24517 (SINGLE_THREAD_BY_GLOBAL): Define.
24518 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24519 Likewise.
24520 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24521 Likewise.
24522 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24523 Likewise.
24524 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24525 Likewise.
24526 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24527 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24528 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24529 Likewise.
24530
24531 2017-10-11 Andreas Schwab <schwab@suse.de>
24532
24533 * nis/Makefile (aux): Remove.
24534 * nscd/Makefile (aux): Add nscd_hash.
24535 (nscd-modules): Likewise.
24536 ($(objpfx)nscd): Don't depend on libnsl.
24537 * nscd/nscd_hash.c: New file.
24538 * nscd/nscd_hash.h: Likewise.
24539 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24540 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24541 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24542 instead of <nis/rpcsvc/nis.h>.
24543 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24544
24545 2017-10-11 Florian Weimer <fweimer@redhat.com>
24546
24547 [BZ #22078]
24548 Avoid large NSS buffers with many addresses, aliases.
24549 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24550 using dynarrays and struct alloc_buffer.
24551 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24552 (tst-nss-files-hosts-multi): Link with -ldl.
24553 * nss/tst-nss-files-hosts-multi.c: New file.
24554
24555 2017-10-11 Florian Weimer <fweimer@redhat.com>
24556
24557 [BZ #18023]
24558 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24559 scratch_buffer. Eliminate gotos.
24560
24561 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24562
24563 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24564 libm_alias_ldouble_other.
24565 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24566 undefine and redefine.
24567 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24568 (exp10l): Do not define here.
24569 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24570 (weak_alias): Undefine and redefine.
24571 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24572 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24573 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24574 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24575
24576 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24577 [!__fma] (fma): Define using libm_alias_double.
24578 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24579 [!__fmaf] (fmaf): Define using libm_alias_float.
24580 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24581 (fmal): Define using libm_alias_ldouble.
24582
24583 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24584
24585 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24586 New macro.
24587 (libm_alias_double_other): Likewise.
24588 (libm_alias_double_r): Use libm_alias_double_other_r.
24589 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24590 New macro.
24591 (libm_alias_float_other): Likewise.
24592 (libm_alias_float_r): Use libm_alias_float_other_r.
24593 * sysdeps/generic/libm-alias-float128.h
24594 (libm_alias_float128_other_r): New macro.
24595 (libm_alias_float128_other): Likewise.
24596 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24597 * sysdeps/generic/libm-alias-ldouble.h
24598 (libm_alias_ldouble_other_r): New macro.
24599 (libm_alias_ldouble_other): Likewise.
24600 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24601 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24602 (libm_alias_double_other_r): New macro.
24603 (libm_alias_double_other): Likewise.
24604 (libm_alias_double_r): Use libm_alias_double_other_r.
24605 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24606 (libm_alias_ldouble_other_r): New macro.
24607 (libm_alias_ldouble_other): Likewise.
24608 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24609 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24610 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24611 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24612 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24613 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24614 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24615 * math/w_exp2f.c: Use libm_alias_float_other.
24616 * math/w_expf.c: Likewise.
24617 * math/w_log2f.c: Likewise.
24618 * math/w_logf.c: Likewise.
24619 * math/w_powf.c: Likewise.
24620 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24621 [!__exp2f]: Use libm_alias_float_other.
24622 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24623 [!__expf]: Use libm_alias_float_other.
24624 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24625 [!__log2f]: Use libm_alias_float_other.
24626 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24627 [!__logf]: Use libm_alias_float_other.
24628 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24629 [!__powf]: Use libm_alias_float_other.
24630
24631 2017-10-10 Florian Weimer <fweimer@redhat.com>
24632
24633 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24634 function.
24635 (_nss_files_gethostbyname3_r): Call it.
24636
24637 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24638
24639 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24640 error. Remove default definition of declare_mgen_alias.
24641 [!declare_mgen_alias_r]: Likewise.
24642 * sysdeps/generic/math-type-macros-double.h
24643 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24644 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24645 (declare_mgen_alias_r): Likewise.
24646 * sysdeps/generic/math-type-macros-float128.h
24647 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24648 * sysdeps/generic/math-type-macros-ldouble.h
24649 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24650 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24651 macro.
24652 (declare_mgen_alias_r_s): Likewise.
24653 (declare_mgen_alias_r): Likewise.
24654 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24655 (lgamma_r): Define using libm_alias_double_r.
24656 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24657 (lgammaf_r): Define using libm_alias_float_r.
24658 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24659 (lgammal_r): Define using libm_alias_ldouble_r.
24660 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24661 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24662
24663 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24664
24665 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24666 extern declaration.
24667
24668 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24669
24670 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24671
24672 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24673
24674 [BZ #21326]
24675 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24676 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24677 * math/Makefile (test-math-cxx11): New test.
24678 * math/test-math-cxx11.cc: New file.
24679
24680 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24681
24682 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24683
24684 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24685 call to allocate the slave pty file descriptor.
24686
24687 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24688
24689 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24690 [!__fma] (fma): Define using libm_alias_double.
24691 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24692 [!__fma] (fma): Define using libm_alias_double.
24693
24694 * sysdeps/ieee754/float128/float128_private.h: Include
24695 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24696 (libm_alias_ldouble_r): Undefine and redefine.
24697 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24698 <libm-alias-ldouble.h>.
24699 (asinhl): Define using libm_alias_ldouble.
24700 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24701 <libm-alias-ldouble.h>.
24702 (atanl): Define using libm_alias_ldouble.
24703 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24704 <libm-alias-ldouble.h>.
24705 (cbrtl): Define using libm_alias_ldouble.
24706 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24707 <libm-alias-ldouble.h>.
24708 (ceill): Define using libm_alias_ldouble.
24709 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24710 <libm-alias-ldouble.h>.
24711 (copysignl): Define using libm_alias_ldouble.
24712 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24713 <libm-alias-ldouble.h>.
24714 (cosl): Define using libm_alias_ldouble.
24715 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24716 <libm-alias-ldouble.h>.
24717 (erfl): Define using libm_alias_ldouble.
24718 (erfcl): Likewise.
24719 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24720 <libm-alias-ldouble.h>.
24721 (expm1l): Define using libm_alias_ldouble.
24722 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24723 <libm-alias-ldouble.h>.
24724 (fabsl): Define using libm_alias_ldouble.
24725 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24726 <libm-alias-ldouble.h>.
24727 (floorl): Define using libm_alias_ldouble.
24728 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24729 <libm-alias-ldouble.h>.
24730 (fmal): Define using libm_alias_ldouble.
24731 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24732 <libm-alias-ldouble.h>.
24733 (frexpl): Define using libm_alias_ldouble.
24734 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24735 libm_alias_ldouble.
24736 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24737 <libm-alias-ldouble.h>.
24738 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24739 libm_alias_ldouble.
24740 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24741 <libm-alias-ldouble.h>.
24742 (getpayloadl): Define using libm_alias_ldouble.
24743 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24744 <libm-alias-ldouble.h>.
24745 (llrintl): Define using libm_alias_ldouble.
24746 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24747 <libm-alias-ldouble.h>.
24748 (llroundl): Define using libm_alias_ldouble.
24749 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24750 <libm-alias-ldouble.h>.
24751 (logbl): Define using libm_alias_ldouble.
24752 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24753 <libm-alias-ldouble.h>.
24754 (lrintl): Define using libm_alias_ldouble.
24755 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24756 <libm-alias-ldouble.h>.
24757 (lroundl): Define using libm_alias_ldouble.
24758 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24759 <libm-alias-ldouble.h>.
24760 (modfl): Define using libm_alias_ldouble.
24761 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24762 <libm-alias-ldouble.h>.
24763 (nearbyintl): Define using libm_alias_ldouble.
24764 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24765 <libm-alias-ldouble.h>.
24766 (nextafterl): Define using libm_alias_ldouble.
24767 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24768 <libm-alias-ldouble.h>.
24769 (nextupl): Define using libm_alias_ldouble.
24770 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24771 <libm-alias-ldouble.h>.
24772 (remquol): Define using libm_alias_ldouble.
24773 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24774 <libm-alias-ldouble.h>.
24775 (rintl): Define using libm_alias_ldouble.
24776 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24777 <libm-alias-ldouble.h>.
24778 (roundevenl): Define using libm_alias_ldouble.
24779 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24780 <libm-alias-ldouble.h>.
24781 (roundl): Define using libm_alias_ldouble.
24782 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24783 using libm_alias_ldouble.
24784 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24785 <libm-alias-ldouble.h>.
24786 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24787 Define using libm_alias_ldouble.
24788 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24789 <libm-alias-ldouble.h>.
24790 (sincosl): Define using libm_alias_ldouble.
24791 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24792 <libm-alias-ldouble.h>.
24793 (sinl): Define using libm_alias_ldouble.
24794 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24795 <libm-alias-ldouble.h>.
24796 (tanhl): Define using libm_alias_ldouble.
24797 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24798 <libm-alias-ldouble.h>.
24799 (tanl): Define using libm_alias_ldouble.
24800 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24801 <libm-alias-ldouble.h>.
24802 (totalorderl): Define using libm_alias_ldouble.
24803 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24804 <libm-alias-ldouble.h>.
24805 (totalordermagl): Define using libm_alias_ldouble.
24806 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24807 <libm-alias-ldouble.h>.
24808 (truncl): Define using libm_alias_ldouble.
24809 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24810 libm_alias_ldouble.
24811 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24812 libm_alias_ldouble.
24813 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24814 <libm-alias-ldouble.h>.
24815 (weak_alias): Do not undefine and redefine.
24816 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24817 (copysignl): Define with long_double_symbol only if [IS_IN
24818 (libc)].
24819 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24820 <libm-alias-ldouble.h>.
24821 (weak_alias): Do not undefine and redefine.
24822 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24823 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24824 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24825 <libm-alias-ldouble.h>.
24826 (weak_alias): Do not undefine and redefine.
24827 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24828 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24829 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24830 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24831 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24832 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24833 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24834 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24835 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24836 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24837 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24838 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24839 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24840 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24841 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24842 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24843 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24844 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24845 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24846 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24847 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24848 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24849 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24850 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24851 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24852 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24853
24854 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24855
24856 [BZ #22111]
24857 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24858 (tcache_thread_freeres): Set tcache_shutting_down before
24859 freeing the tcache.
24860 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24861 * malloc/tst-malloc-tcache-leak.c: New file.
24862
24863 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24864
24865 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24866 back to powerpc32 file.
24867 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24868 (memrchr): Add __memrchr_power8 to ifunc list.
24869 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24870 extra bytes for unaligned inputs.
24871
24872 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24873
24874 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24875 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24876 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24877 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24878 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24879
24880 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24881
24882 * sysdeps/arm/libm-test-ulps: Update.
24883
24884 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
24885 <libm-alias-ldouble.h>.
24886 (asinhl): Define using libm_alias_ldouble.
24887 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
24888 <libm-alias-ldouble.h>.
24889 (cbrtl): Define using libm_alias_ldouble.
24890 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
24891 <libm-alias-ldouble.h>.
24892 (copysignl): Define using libm_alias_ldouble.
24893 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
24894 <libm-alias-ldouble.h>.
24895 (cosl): Define using libm_alias_ldouble.
24896 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
24897 <libm-alias-ldouble.h>.
24898 (erfl): Define using libm_alias_ldouble.
24899 (erfcl): Likewise.
24900 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
24901 <libm-alias-ldouble.h>.
24902 (fmal): Define using libm_alias_ldouble.
24903 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
24904 <libm-alias-ldouble.h>.
24905 (frexpl): Define using libm_alias_ldouble.
24906 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
24907 libm_alias_ldouble.
24908 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
24909 <libm-alias-ldouble.h>.
24910 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
24911 libm_alias_ldouble.
24912 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
24913 <libm-alias-ldouble.h>.
24914 (getpayloadl): Define using libm_alias_ldouble.
24915 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
24916 <libm-alias-ldouble.h>.
24917 (llrintl): Define using libm_alias_ldouble.
24918 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
24919 <libm-alias-ldouble.h>.
24920 (llroundl): Define using libm_alias_ldouble.
24921 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
24922 <libm-alias-ldouble.h>.
24923 (lrintl): Define using libm_alias_ldouble.
24924 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
24925 <libm-alias-ldouble.h>.
24926 (lroundl): Define using libm_alias_ldouble.
24927 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
24928 <libm-alias-ldouble.h>.
24929 (modfl): Define using libm_alias_ldouble.
24930 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
24931 <libm-alias-ldouble.h>.
24932 (nextupl): Define using libm_alias_ldouble.
24933 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
24934 <libm-alias-ldouble.h>.
24935 (remquol): Define using libm_alias_ldouble.
24936 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
24937 <libm-alias-ldouble.h>.
24938 (roundevenl): Define using libm_alias_ldouble.
24939 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
24940 <libm-alias-ldouble.h>.
24941 (roundl): Define using libm_alias_ldouble.
24942 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
24943 using libm_alias_ldouble.
24944 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
24945 <libm-alias-ldouble.h>.
24946 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
24947 <libm-alias-ldouble.h>.
24948 (setpayloadsigl): Define using libm_alias_ldouble.
24949 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
24950 <libm-alias-ldouble.h>.
24951 (sincosl): Define using libm_alias_ldouble.
24952 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
24953 <libm-alias-ldouble.h>.
24954 (sinl): Define using libm_alias_ldouble.
24955 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
24956 <libm-alias-ldouble.h>.
24957 (tanhl): Define using libm_alias_ldouble.
24958 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
24959 <libm-alias-ldouble.h>.
24960 (tanl): Define using libm_alias_ldouble.
24961 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
24962 <libm-alias-ldouble.h>.
24963 (totalorderl): Define using libm_alias_ldouble.
24964 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
24965 <libm-alias-ldouble.h>.
24966 (totalordermagl): Define using libm_alias_ldouble.
24967 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
24968 libm_alias_ldouble.
24969 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
24970 libm_alias_ldouble.
24971
24972 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
24973
24974 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
24975 memmove_falkor.
24976 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24977 (__libc_ifunc_impl_list): Likewise.
24978 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
24979 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
24980
24981 * benchtests/bench-memmove-walk.c: New file.
24982 * benchtests/Makefile (string-benchset): Add it.
24983
24984 * benchtests/bench-memset-walk.c: New file.
24985 * benchtests/Makefile (string-benchset): Add it.
24986
24987 * benchtests/bench-memcpy-walk.c: New file.
24988 * benchtests/Makefile (string-benchset): Add it.
24989
24990 2017-10-05 Florian Weimer <fweimer@redhat.com>
24991
24992 nscd: Eliminate compilation time dependency in the build output.
24993 * nscd/nscd_stat.c (STATDATA_VERSION)
24994 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
24995 (STATDATA_VERSION_FULL): New macro definitions.
24996 (compilation): Remove.
24997 (struct statdata): Adjust version member.
24998 (send_stats): Set version from STATDATA_VERSION_FULL.
24999 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25000
25001 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25002
25003 * configure.ac (--enable-add-ons): Remove option.
25004 (machine): Do not mention add-ons in comment.
25005 (LIBC_PRECONFIGURE): Likewise.
25006 (add_ons): Remove variable and sanity checks and logic to locate
25007 add-ons.
25008 (add_ons_automatic): Remove variable.
25009 (configured_add_ons): Likewise.
25010 (add_ons_sfx): Likewise.
25011 (add_ons_pfx): Likewise.
25012 (add_on_subdirs): Likewise.
25013 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25014 consideration of add-ons in Implies handling.
25015 (sysdeps_add_ons): Likewise.
25016 * configure: Regenerated.
25017 * libidn/configure.ac: Remove.
25018 * libidn/configure: Likewise.
25019 * sysdeps/unix/inet/configure.ac: New file.
25020 * sysdeps/unix/inet/configure: New generated file.
25021 * sysdeps/unix/inet/Subdirs: Add libidn.
25022 * Makeconfig (sysdeps-srcdirs): Remove variable.
25023 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25024 ($(common-objpfx)config.status): Do not depend on add-on files.
25025 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25026 comment.
25027 (all-subdirs): Do not include $(add-on-subdirs).
25028 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25029 * config.make.in (add-ons): Remove variable.
25030 (add-on-subdirs): Likewise.
25031 (sysdeps-add-ons): Likewise.
25032 * manual/Makefile (add-chapters): Remove.
25033 ($(objpfx)texis): Do not depend on $(add-chapters).
25034 (nonexamples): Do not handle $(add-chapters).
25035 (examples): Do not handle $(add-ons).
25036 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25037 libc-texinfo.sh.
25038 * manual/install.texi (Installation): Do not mention add-ons.
25039 (--enable-add-ons): Do not document configure option.
25040 * INSTALL: Regenerated.
25041 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25042 * manual/maint.texi (Hierarchy Conventions): Do not mention
25043 add-ons.
25044 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25045 --enable-add-ons.
25046 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25047 add-ons.
25048 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25049 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25050
25051 2017-10-05 Andreas Schwab <schwab@suse.de>
25052
25053 [BZ #15142]
25054 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25055 (_IO_flush_all_lockp): Always lock list_all_lock.
25056 (_IO_flush_all_linebuffered): Likewise.
25057 (_IO_unbuffer_all): Likewise.
25058
25059 2017-10-05 Florian Weimer <fweimer@redhat.com>
25060
25061 [BZ #15436]
25062 Do not flush stdio streams on abort.
25063 * stdlib/abort.c (fflush): Remove macro definition.
25064 (abort): Remove stages related to stdio flushing.
25065
25066 2017-10-05 Florian Weimer <fweimer@redhat.com>
25067
25068 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25069
25070 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25071
25072 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25073
25074 2017-10-05 Florian Weimer <fweimer@redhat.com>
25075
25076 * support/support_format_hostent.c (support_format_hostent): Add
25077 more error information for NETDB_INTERNAL.
25078
25079 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25080
25081 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25082 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25083 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25084 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25085 AC_DEFINE if multi-arch is enabled.
25086 * sysdeps/i386/configure: Regenerated.
25087
25088 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25089
25090 * Makeconfig (+link-static-before-libc): Use
25091 $(DEFAULT-LDFLAGS-$(@F)).
25092 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25093 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25094 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25095
25096 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25097
25098 * elf/Makefile (tests): Add tst-main1.
25099 (modules-names): Add tst-main1mod.
25100 ($(objpfx)tst-main1): New.
25101 (CRT-tst-main1): Likewise.
25102 (LDFLAGS-tst-main1): Likewise.
25103 (LDLIBS-tst-main1): Likewise.
25104 (tst-main1mod.so-no-z-defs): Likewise.
25105 * elf/tst-main1.c: New file.
25106 * elf/tst-main1mod.c: Likewise.
25107
25108 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25109
25110 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25111
25112 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25113
25114 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25115 (fma): Define using libm_alias_double.
25116 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25117 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25118 <math_ldbl_opt.h>.
25119 (fmal): Do not define as compat symbol here.
25120 * sysdeps/alpha/fpu/s_fma.c: New file.
25121
25122 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25123
25124 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25125
25126 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25127
25128 [BZ #22229]
25129 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25130 <math_ldbl_opt.h>
25131 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25132 and libc.
25133 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25134 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25135 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25136 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25137 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25138 Include <math_ldbl_opt.h>
25139 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25140 and libc.
25141 (compat_symbol): Undefine and redefine.
25142 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25143 <math_ldbl_opt.h>
25144 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25145 (compat_symbol): Undefine and redefine.
25146 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25147 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25148 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25149 GLIBC_2_1 for libm.
25150 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25151 GLIBC_2.0 copysignl symbol.
25152 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25153 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25154
25155 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25156
25157 2017-10-04 Florian Weimer <fweimer@redhat.com>
25158
25159 * scripts/check-local-headers.sh: Ignore nspr4 header file
25160 directory in addition to nspr.
25161
25162 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25163
25164 [BZ #17956]
25165 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25166 * configure: Regenerate.
25167 * crypt/Makefile (nss-cpp-flags): New variable.
25168 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25169 (CPPFLAGS-md5-crypt.c): Use it.
25170 * scripts/check-local-headers.sh: Ignore nspr header file
25171 directory.
25172
25173 2017-10-04 Andreas Schwab <schwab@suse.de>
25174
25175 * nis/Makefile (services): Remove compat.
25176 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25177 ($(objpfx)libnss_compat.so): Remove rule.
25178 * nis/Versions (libnss_compat): Remove.
25179 * nss/Makefile (services): Add compat.
25180 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25181 * nss/Versions (libnss_compat): Define.
25182 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25183 Don't include <rpc/types.h>. Replace bool_t by bool.
25184 * nss/nss_compat/compat-initgroups.c: Likewise.
25185 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25186 instead of <rpcsrv/ypclnt.h>.
25187 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25188 yp_get_default_domain.
25189 * nss/nss_compat/compat-pwd.c: Likewise.
25190 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25191 yp_get_default_domain.
25192 * nss/nss_compat/nisdomain.c: New file.
25193 * nss/nss_compat/nisdomain.h: Likewise.
25194
25195 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25196
25197 [BZ #22244]
25198 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25199 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25200
25201 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25202
25203 [BZ #22243]
25204 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25205 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25206
25207 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25208
25209 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25210 "movl main@GOTOFF(%ebx), %eax".
25211
25212 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25213
25214 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25215 allow undefined _DYNAMIC in PIE libc.a.
25216 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25217 Likewse.
25218
25219 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25220
25221 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25222 check _DYNAMIC.
25223
25224 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25225
25226 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25227 check _DYNAMIC.
25228
25229 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25230
25231 * math/test-math-iscanonical.cc (error): Replace bool with int.
25232
25233 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25234
25235 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25236 (modf): Define using libm_alias_double, only if [!__modf].
25237 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25238 <libm-alias-double.h>.
25239 (modf): Define using libm_alias_double, only if [!__modf].
25240 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25241 compat symbol here.
25242 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25243 (weak_alias): Do not undefine and redefine.
25244 (strong_alias): Likewise.
25245 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25246 (weak_alias): Likewise.
25247 (strong_alias): Likewise.
25248
25249 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25250 (logb): Define using libm_alias_double, only if [!__logb].
25251 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25252 <libm-alias-double.h>.
25253 (logb): Define using libm_alias_double, only if [!__logb].
25254 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25255 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25256 (weak_alias): Do not undefine and redefine.
25257 (strong_alias): Likewise.
25258 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25259 (weak_alias): Likewise.
25260 (strong_alias): Likewise.
25261
25262 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25263
25264 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25265 Check SHARED instead PIC.
25266
25267 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25268
25269 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25270 [!__fmaf] (fmaf): Define using libm_alias_float.
25271
25272 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25273 (frexp): Define using libm_alias_double.
25274 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25275 <libm-alias-double.h>.
25276 (frexp): Define using libm_alias_double.
25277 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25278 compat symbol here.
25279
25280 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25281
25282 [BZ #22235]
25283 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25284 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25285 (CFLAGS-test-math-iscanonical.cc): New variable.
25286 * math/test-math-iscanonical.cc: New file.
25287 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25288 Provide a C++ implementation based on function overloading,
25289 rather than using __MATH_TG, which uses C-only builtins.
25290 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25291 Likewise.
25292 * sysdeps/powerpc/powerpc64le/Makefile
25293 (CFLAGS-test-math-iscanonical.cc): New variable.
25294
25295 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25296
25297 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25298 (ceil): Define using libm_alias_double.
25299 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25300 (floor): Define using libm_alias_double.
25301 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25302 <libm-alias-double.h>.
25303 (llround): Define using libm_alias_double.
25304 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25305 <libm-alias-double.h>.
25306 (lround): Define using libm_alias_double.
25307 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25308 <libm-alias-double.h>.
25309 (nearbyint): Define using libm_alias_double.
25310 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25311 <libm-alias-double.h>.
25312 (remquo): Define using libm_alias_double.
25313 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25314 (rint): Define using libm_alias_double.
25315 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25316 (round): Define using libm_alias_double.
25317 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25318 (trunc): Define using libm_alias_double.
25319 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25320 <libm-alias-double.h>.
25321 (ceil): Define using libm_alias_double.
25322 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25323 <libm-alias-double.h>.
25324 (floor): Define using libm_alias_double.
25325 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25326 <libm-alias-double.h>.
25327 (llround): Define using libm_alias_double.
25328 [_LP64] (lround): Likewise.
25329 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25330 <libm-alias-double.h>.
25331 [!_LP64] (lround): Define using libm_alias_double.
25332 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25333 <libm-alias-double.h>.
25334 (nearbyint): Define using libm_alias_double.
25335 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25336 <libm-alias-double.h>.
25337 (remquo): Define using libm_alias_double.
25338 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25339 <libm-alias-double.h>.
25340 (rint): Define using libm_alias_double.
25341 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25342 <libm-alias-double.h>.
25343 (round): Define using libm_alias_double.
25344 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25345 <libm-alias-double.h>.
25346 (trunc): Define using libm_alias_double.
25347 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25348 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25349 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25350 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25351 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25352 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25353 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25354 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25355 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25356
25357 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25358
25359 * math/w_remainder.c: New file.
25360 * math/w_remainderf.c: New file.
25361 * math/w_remainderl.c: New file.
25362
25363 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25364
25365 * elf/rtld.c (BOOTSTRAP_MAP): New.
25366 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25367 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25368 Likewise.
25369 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25370 Likewise.
25371 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25372 Likewise.
25373
25374 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25375
25376 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25377 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25378 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25379 rtld_hidden_data_ver): Define to empty.
25380 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25381 __assert_perror_fail): Likewise.
25382 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25383 (__rewinddir): Likewise.
25384 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25385 (__profile_frequency): Likewise.
25386 * include/setjmp.h (__sigsetjmp): Likewise.
25387 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25388 __libc_sigaction): Likewise.
25389 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25390 not set hidden attribute.
25391 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25392 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25393 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25394 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25395 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25396 __fxstatat64): Likewise.
25397 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25398 (__uname): Likewise.
25399 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25400 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25401 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25402 (NO_RTLD_HIDDEN): Set.
25403 * sysdeps/mach/hurd/configure: Refresh.
25404 * config.h.in: Refresh.
25405
25406 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25407
25408 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25409 (atan): Define using libm_alias_double.
25410 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25411 (tan): Define using libm_alias_double.
25412 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25413 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25414
25415 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25416 define as weak alias of __atan. Do not define any aliases if
25417 [__atan].
25418 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25419 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25420 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25421 as weak alias of __tan. Do not define any aliases if [__tan].
25422 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25423 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25424 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25425 __atan.
25426 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25427 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25428 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25429 and define as weak alias of __atan.
25430 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25431 __atan.
25432 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25433 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25434 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25435 define as weak alias of __tan.
25436
25437 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25438
25439 * math/w_lgamma.c: New file.
25440 * math/w_lgammaf.c: New file.
25441 * math/w_lgammal.c: New file.
25442
25443 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25444
25445 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25446 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25447 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25448 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25449 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25450 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25451 * sysdeps/i386/fpu/w_log2f.c: New file.
25452 * sysdeps/i386/fpu/w_logf.c: New file.
25453 * sysdeps/i386/fpu/w_powf.c: New file.
25454 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25455 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25456 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25457
25458 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25459 H.J. Lu <hongjiu.lu@intel.com>
25460
25461 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25462 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25463 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25464 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25465 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25466 the new expf code.
25467 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25468 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25469 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25470 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25471 * sysdeps/i386/fpu/w_exp2f.c: New file.
25472 * sysdeps/i386/fpu/w_expf.c: New file.
25473 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25474 * sysdeps/x86_64/fpu/w_expf.c: New file.
25475
25476 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25477
25478 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25479 (log2f): Likewise.
25480 (powf): Likewise.
25481 * math/w_log2f.c: New file.
25482 * math/w_logf.c: New file.
25483 * math/w_powf.c: New file.
25484 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25485 * math/w_logf_compat.c (__logf_compat): Likewise.
25486 * math/w_powf_compat.c (__powf_compat): Likewise.
25487 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25488 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25489 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25490 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25491 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25492 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25493 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25494 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25495 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25496 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25497 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25498 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25499 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25500 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25501 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25503 Likewise.
25504 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25505 Likewise.
25506 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25507 Likewise.
25508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25509 Likewise.
25510 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25511 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25512 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25513 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25514 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25515 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25516 Likewise.
25517 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25518 Likewise.
25519 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25520 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25521 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25522
25523 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25524
25525 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25526 (sysdep_routines): Add memrchr_power8.
25527 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25528 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25529 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25530 New file.
25531 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25532 (memrchr): Add __memrchr_power8 to ifunc list.
25533 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25534
25535 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25536
25537 [BZ #18822]
25538 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25539 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25540 libc_hidden_def.
25541 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25542 (__posix_fallocate64_l64): Likewise.
25543
25544 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25545
25546 [BZ #18822]
25547 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25548 (__sched_setaffinity_new): Add libc_hidden_proto and
25549 libc_hidden_def.
25550
25551 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25552
25553 [BZ #18822]
25554 * include/glob.h (__glob64): Add libc_hidden_proto.
25555 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25556 libc_hidden_def.
25557
25558 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25559
25560 [BZ #18822]
25561 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25562 attribute_hidden.
25563
25564 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25565
25566 [BZ #18822]
25567 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25568
25569 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25570
25571 [BZ #18822]
25572 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25573 libc_hidden_def.
25574
25575 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25576
25577 [BZ #18822]
25578 * csu/version.c (__libc_print_version): Add attribute_hidden.
25579
25580 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25581
25582 [BZ #18822]
25583 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25584
25585 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25586
25587 [BZ #18822]
25588 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25589
25590 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25591
25592 [BZ #18822]
25593 * nscd/nscd_helper.c (__nis_hash): New prototype.
25594
25595 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25596
25597 [BZ #18822]
25598 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25599 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25600 libc_hidden_def.
25601 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25602 * termios/tcgetattr.c (__tcgetattr): Likewise.
25603
25604 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25605
25606 [BZ #18822]
25607 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25608 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25609 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25610 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25611 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25612
25613 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25614
25615 [BZ #18822]
25616 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25617
25618 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25619
25620 [BZ #18822]
25621 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25622 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25623
25624 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25625
25626 [BZ #18822]
25627 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25628
25629 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25630
25631 [BZ #18822]
25632 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25633 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25634
25635 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25636
25637 [BZ #18822]
25638 * include/ifreq.h: New file.
25639 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25640 (__ifreq): Likewise.
25641 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25642 (__ifreq): Likewise.
25643
25644 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25645
25646 [BZ #18822]
25647 * include/idna.h: New file.
25648 * inet/getnameinfo.c: Include <idna.h> instead of
25649 <libidn/idna.h>.
25650 (__idna_to_unicode_lzlz): Removed.
25651 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25652 <libidn/idna.h>.
25653 (__idna_to_ascii_lz): Removed.
25654 (__idna_to_unicode_lzlz): Likewise.
25655
25656 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25657
25658 [BZ #18822]
25659 * include/plural-exp.h: New file.
25660 * intl/plural-exp.c: Include <plural-exp.h> instead of
25661 "plural-exp.h".
25662
25663 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25664
25665 [BZ #18822]
25666 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25667 "getsourcefilter.h".
25668 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25669 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25670 "getsourcefilter.h".
25671 (__get_sol): Removed.
25672
25673 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25674
25675 [BZ #18822]
25676 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25677 to ...
25678 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25679
25680 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25681
25682 [BZ #18822]
25683 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25684 attribute_hidden.
25685
25686 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25687
25688 [BZ #18822]
25689 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25690
25691 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25692
25693 [BZ #18822]
25694 * include/search.h (__tdestroy): Add libc_hidden_proto.
25695 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25696
25697 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25698
25699 [BZ #18822]
25700 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25701
25702 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25703
25704 [BZ #18822]
25705 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25706 attribute_hidden.
25707
25708 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25709
25710 [BZ #18822]
25711 * include/signal.h (__kill): Add libc_hidden_proto.
25712 (__sigblock): Likewise.
25713 (__sigprocmask): Likewise.
25714 (__sigaltstack): Likewise.
25715 * signal/kill.c (__kill): Add libc_hidden_def.
25716 * signal/sigblock.c (__sigblock): Likewise.
25717 * signal/sigprocmask.c (__sigprocmask): Likewise.
25718 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25719 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25720 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25721 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25722 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25723 Likewise.
25724 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25725 Likewise.
25726 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25727 (__sigprocmask): Likewise.
25728 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25729 Likewise.
25730 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25731 (__sigprocmask): Likewise.
25732 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25733 Likewise.
25734
25735 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25736
25737 [BZ #18822]
25738 * include/string.h (__strsep): Add libc_hidden_proto.
25739 * string/strsep.c (__strsep): Add libc_hidden_def.
25740
25741 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25742
25743 [BZ #18822]
25744 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25745 attribute_hidden.
25746 (__spawni): Likewise.
25747
25748 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25749
25750 [BZ #18822]
25751 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25752 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25753 libc_hidden_def.
25754
25755 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25756
25757 [BZ #18822]
25758 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25759
25760 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25761
25762 [BZ #18822]
25763 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25764 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25765 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25766 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25767 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25768 Likewise.
25769 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25770 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25771
25772 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25773
25774 [BZ #18822]
25775 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25776 (__dcigettext): Likewise.
25777
25778 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25779
25780 [BZ #18822]
25781 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25782 libc_hidden_proto.
25783 (__get_nprocs): Likewise.
25784 (__get_phys_pages): Likewise.
25785 (__get_avphys_pages): Likewise.
25786 (__get_child_max): Add attribute_hidden.
25787 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25788 (__get_nprocs): Likewise.
25789 (__get_phys_pages): Likewise.
25790 (__get_avphys_pages): Likewise.
25791 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25792 libc_hidden_def.
25793 (__get_nprocs): Likewise.
25794 (__get_phys_pages): Likewise.
25795 (__get_avphys_pages): Likewise.
25796 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25797 libc_hidden_def.
25798 (__get_nprocs_conf): Likewise.
25799 (__get_phys_pages): Likewise.
25800 (__get_avphys_pages): Likewise.
25801
25802 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25803
25804 [BZ #18822]
25805 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25806 attribute_hidden.
25807 (__netlink_close): Likewise.
25808 (__netlink_free_handle): Likewise.
25809 (__netlink_request): Likewise.
25810
25811 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25812
25813 [BZ #18822]
25814 * include/rpc/rpc.h (__rpc_thread_variables): Add
25815 attribute_hidden.
25816 (__rpc_thread_svc_cleanup): Likewise.
25817 (__rpc_thread_clnt_cleanup): Likewise.
25818 (__rpc_thread_key_cleanup): Likewise.
25819
25820 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25821
25822 [BZ #18822]
25823 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25824 (__writev): Likewise.
25825 * misc/readv.c (__readv): Add libc_hidden_def.
25826 * misc/writev.c (__writev): Likewise.
25827 * sysdeps/posix/readv.c (__readv): Likewise.
25828 * sysdeps/posix/writev.c (__writev): Likewise.
25829 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25830 (__readv): Likewise.
25831 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25832 (__writev): Likewise.
25833
25834 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25835
25836 [BZ #18822]
25837 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25838 (__regcomp): Add libc_hidden_proto.
25839 (__regexec): Likewise.
25840 (__regfree): Likewise.
25841 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25842 (__regfree): Likewise.
25843 * posix/regexec.c (__regexec): Likewise.
25844
25845 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25846
25847 [BZ #18822]
25848 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25849 (__getutent): Likewise.
25850 (__getutid): Likewise.
25851 (__getutline): Likewise.
25852 (__pututline): Likewise.
25853 (__getutent_r): Likewise.
25854 (__getutid_r): Likewise.
25855 (__getutline_r): Likewise.
25856 (__utmpname): Add attribute_hidden.
25857 (__setutent): Likewise.
25858 (__endutent): Likewise.
25859 * login/getutent.c (__getutent): Add libc_hidden_def.
25860 * login/getutent_r.c (__getutent_r): Likewise.
25861 (__pututline): Likewise.
25862 * login/getutid.c (__getutid): Likewise.
25863 * login/getutid_r.c (__getutid_r): Likewise.
25864 * login/getutline.c (__getutline): Likewise.
25865 * login/getutline_r.c (__getutline_r): Likewise.
25866 * login/updwtmp.c (__updwtmp): Likewise.
25867
25868 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25869
25870 [BZ #18822]
25871 * include/dirent.h (__opendir): Always add attribute_hidden.
25872 (__fdopendir): Likewise.
25873 (__closedir): Likewise.
25874 (__readdir): Likewise.
25875 (__readdir64): Add libc_hidden_proto.
25876 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25877 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25878 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25879 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25880 New alias.
25881
25882 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25883
25884 [BZ #18822]
25885 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
25886 * include/netdb.h (__gethostbyaddr_r): Likewise.
25887 (__gethostbyname_r): Likewise.
25888 (__gethostbyname2_r): Likewise.
25889 (__getnetbyaddr_r): Likewise.
25890 (__getnetbyname_r): Likewise.
25891 (__getservbyname_r): Likewise.
25892 (__getservbyport_r): Likewise.
25893 (__getprotobyname_r): Likewise.
25894 (__getprotobynumber_r): Likewise.
25895 (__getnetgrent_r): Likewise.
25896 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
25897 (__getrpcbynumber_r): Likewise.
25898 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
25899
25900 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25901
25902 [BZ #18822]
25903 * include/stdio.h (__fcloseall): Add attribute_hidden.
25904 (__getline): Likewise.
25905 (__path_search): Likewise.
25906 (__gen_tempname): Likewise.
25907 (__libc_message): Likewise.
25908 (__flockfile): Likewise.
25909 (__funlockfile): Likewise.
25910 (__fxprintf): Likewise.
25911 (__fxprintf_nocancel): Likewise.
25912
25913 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25914
25915 [BZ #18822]
25916 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
25917 (__sgetsgent_r): Likewise.
25918
25919 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25920
25921 [BZ #18822]
25922 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
25923 (__statfs64): Likewise.
25924 (__fstatfs64): Likewise.
25925 * include/sys/statvfs.h (__statvfs64): Likewise.
25926 (__fstatvfs64): Likewise.
25927 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
25928 (__statfs_filesize_max): Likewise.
25929 (__statfs_symlinks): Likewise.
25930 (__statfs_chown_restricted): Likewise.
25931
25932 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25933
25934 [BZ #18822]
25935 * include/time.h (__tzstring): Add attribute_hidden.
25936 (__tzfile_read): Likewise.
25937 (__tzfile_compute): Likewise.
25938 (__tzfile_default): Likewise.
25939 (__tzset_parse_tz): Likewise.
25940 (__offtime): Likewise.
25941 (__asctime_r): Likewise.
25942 (__tzset): Likewise.
25943 (__tz_convert): Likewise.
25944 (__getdate_r): Likewise.
25945 (__getclktck): Likewise.
25946
25947 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25948
25949 [BZ #18822]
25950 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
25951 (__nscd_unmap): Likewise.
25952 (__nscd_cache_search): Likewise.
25953 (__nscd_get_nl_timestamp): Likewise.
25954 (__nscd_getpwnam_r): Likewise.
25955 (__nscd_getpwuid_r): Likewise.
25956 (__nscd_getgrnam_r): Likewise.
25957 (__nscd_getgrgid_r): Likewise.
25958 (__nscd_gethostbyname_r): Likewise.
25959 (__nscd_gethostbyname2_r): Likewise.
25960 (__nscd_gethostbyaddr_r): Likewise.
25961 (__nscd_getai): Likewise.
25962 (__nscd_getgrouplist): Likewise.
25963 (__nscd_getservbyname_r): Likewise.
25964 (__nscd_getservbyport_r): Likewise.
25965 (__nscd_innetgr): Likewise.
25966 (__nscd_setnetgrent): Likewise.
25967
25968 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25969
25970 [BZ #18822]
25971 * include/gmp.h: Declare internal functions only if _ISOMAC is
25972 undefined.
25973 (__mpn_extract_double): Add attribute_hidden.
25974 (__mpn_extract_long_double): Likewise.
25975 (__mpn_extract_float128): Likewise.
25976 (__mpn_construct_float): Likewise.
25977 (__mpn_construct_double): Likewise.
25978 (__mpn_construct_long_double): Likewise.
25979 (__mpn_construct_float128): Likewise.
25980 (mpn_add_1): Likewise.
25981 (mpn_addmul_1): Likewise.
25982 (mpn_add_n): Likewise.
25983 (mpn_cmp): Likewise.
25984 (mpn_divrem): Likewise.
25985 (mpn_lshift): Likewise.
25986 (mpn_mul): Likewise.
25987 (mpn_mul_1): Likewise.
25988 (mpn_rshift): Likewise.
25989 (mpn_sub_1): Likewise.
25990 (mpn_submul_1): Likewise.
25991 (mpn_sub_n): Likewise.
25992
25993 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25994
25995 [BZ #18822]
25996 * include/wchar.h (__wcsnlen): Add attribute_hidden.
25997 (__wcscat): Likewise.
25998 (__btowc): Likewise.
25999 (__wcrtomb): Likewise.
26000 (__mbsrtowcs): Likewise.
26001 (__wcsrtombs): Likewise.
26002 (__mbsnrtowcs): Likewise.
26003 (__wcsnrtombs): Likewise.
26004 (__wcsncpy): Likewise.
26005 (__wcpncpy): Likewise.
26006 (__wmemcpy): Likewise.
26007 (__wmempcpy): Likewise.
26008 (__wmemmove): Likewise.
26009 (__wcschrnul): Likewise.
26010 (__vfwscanf): Likewise.
26011 (__vswprintf): Likewise.
26012 (__fwprintf): Likewise.
26013 (__vfwprintf): Likewise.
26014
26015 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26016
26017 [BZ #18822]
26018 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26019 (__getgrgid_r): Likewise.
26020 (__getgrnam_r): Likewise.
26021 * include/pwd.h (__getpwuid_r): Likewise.
26022 (__getpwnam_r): Likewise.
26023 (__fgetpwent_r): Likewise.
26024 * include/shadow.h (__getspnam_r): Likewise.
26025 (__sgetspent_r): Likewise.
26026 (__fgetspent_r): Likewise.
26027
26028 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26029
26030 [BZ #18822]
26031 * include/unistd.h (__access): Add attribute_hidden.
26032 (__lseek64): Likewise.
26033 (__libc_pread64): Likewise.
26034 (__pipe2): Likewise.
26035 (__sleep): Likewise.
26036 (__chdir): Likewise.
26037 (__fchdir): Likewise.
26038 (__getcwd): Likewise.
26039 (__rmdir): Likewise.
26040 (__execvpe): Likewise.
26041 (__execve): Likewise.
26042 (__setsid): Likewise.
26043 (__getuid): Likewise.
26044 (__geteuid): Likewise.
26045 (__getgid): Likewise.
26046 (__getegid): Likewise.
26047 (__getgroups): Likewise.
26048 (__group_member): Likewise.
26049 (__ttyname_r): Likewise.
26050 (__isatty): Likewise.
26051 (__readlink): Likewise.
26052 (__unlink): Likewise.
26053 (__gethostname): Likewise.
26054 (__profil): Likewise.
26055 (__getdtablesize): Likewise.
26056 (__brk): Likewise.
26057 (__ftruncate): Likewise.
26058 (__ftruncate64): Likewise.
26059
26060 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26061
26062 [BZ #18822]
26063 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26064 * argp/argp-fs-xinl.c: Likewise.
26065 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26066 * argp/argp-parse.c: Include <argp.h>.
26067 * argp/argp-xinl.c: Likewise.
26068 * include/argp-fmtstream.h: New file.
26069 * include/argp.h (__argp_error): Add attribute_hidden.
26070 (__argp_failure): Likewise.
26071 (__argp_input): Likewise.
26072 (__argp_state_help): Likewise.
26073
26074 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26075
26076 [BZ #18822]
26077 * include/wchar.h (____wcstof_l_internal): New prototype.
26078 (____wcstod_l_internal): Likewise.
26079 (____wcstold_l_internal): Likewise.
26080 (____wcstol_l_internal): Likewise.
26081 (____wcstoul_l_internal): Likewise.
26082 (____wcstoll_l_internal): Likewise.
26083 (____wcstoull_l_internal): Likewise.
26084 (____wcstof128_l_internal): Likewise.
26085 * sysdeps/ieee754/float128/wcstof128.c
26086 (____wcstof128_l_internal): Removed.
26087 * sysdeps/ieee754/float128/wcstof128_l.c
26088 (____wcstof128_l_internal): Likewise.
26089 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26090 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26091 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26092 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26093 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26094 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26095 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26096 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26097 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26098 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26099
26100 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26101
26102 [BZ #18822]
26103 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26104 instead of <sys/statvfs.h>.
26105 (__internal_statvfs): Removed.
26106 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26107 instead of <sys/statvfs.h>.
26108 (__internal_statvfs64): Removed.
26109 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26110 "internal_statvfs.h" instead of <sys/statvfs.h>.
26111 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26112 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26113 instead of <sys/statvfs.h>.
26114 (__internal_statvfs): Removed.
26115 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26116 instead of <sys/statvfs.h>.
26117 (__internal_statvfs64): Removed.
26118
26119 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26120
26121 [BZ #18822]
26122 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26123 (__gconv_close): Likewise.
26124 (__gconv): Likewise.
26125 (__gconv_find_transform): Likewise.
26126 (__gconv_lookup_cache): Likewise.
26127 (__gconv_compare_alias_cache): Likewise.
26128 (__gconv_load_cache): Likewise.
26129 (__gconv_get_path): Likewise.
26130 (__gconv_close_transform): Likewise.
26131 (__gconv_release_cache): Likewise.
26132 (__gconv_find_shlib): Likewise.
26133 (__gconv_release_shlib): Likewise.
26134 (__gconv_get_builtin_trans): Likewise.
26135 (__gconv_compare_alias): Likewise.
26136 * include/dlfcn.h (_dlerror_run): Likewise.
26137 * include/stdio.h (__fortify_fail_abort): Likewise.
26138 * include/time.h (__tz_compute): Likewise.
26139 (__strptime_internal): Likewise.
26140 * intl/gettextP.h (_nl_find_domain): Likewise.
26141 (_nl_load_domain): Likewise.
26142 (_nl_find_msg): Likewise.
26143 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26144 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26145 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26146 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26147 (__gai_find_request): Likewise.
26148 (__gai_remove_request): Likewise.
26149 (__gai_notify): Likewise.
26150 (__gai_notify_only): Likewise.
26151 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26152 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26153 (_dl_non_dynamic_init): Likewise.
26154 (_dl_aux_init): Likewise.
26155 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26156 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26157 Likewise.
26158 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26159 (__wcsmbs_clone_conv): Likewise.
26160 (__wcsmbs_named_conv): Likewise.
26161
26162 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26163
26164 [BZ #18822]
26165 * include/stdlib.h (__random): Add attribute_hidden.
26166 (__random_r): Likewise.
26167 (__srandom_r): Likewise.
26168 (__initstate_r): Likewise.
26169 (__setstate_r): Likewise.
26170 (__erand48_r): Likewise.
26171 (__nrand48_r): Likewise.
26172 (__jrand48_r): Likewise.
26173 (__srand48_r): Likewise.
26174 (__seed48_r): Likewise.
26175 (__lcong48_r): Likewise.
26176 (__drand48_iterate): Likewise.
26177 (__setenv): Likewise.
26178 (__unsetenv): Likewise.
26179 (__clearenv): Likewise.
26180 (__ptsname_r): Likewise.
26181 (__posix_openpt): Likewise.
26182 (__add_to_environ): Likewise.
26183 (__realpath): Add libc_hidden_proto.
26184 (__ecvt_r): Likewise.
26185 (__fcvt_r): Likewise.
26186 (__qecvt_r): Likewise.
26187 (__qfcvt_r): Likewise.
26188 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26189 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26190
26191 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26192
26193 [BZ #18822]
26194 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26195 * include/time.h (__mktime_internal): Likewise.
26196 * libio/iolibio.h (__fopen_internal): Likewise.
26197
26198 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26199
26200 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26201 pointer in frame.
26202 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26203 Correct offset used to restore PIC register.
26204
26205 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26206
26207 [BZ libc/22165]
26208 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26209 code to load address of __getcontext_ret when generating PIC code.
26210
26211 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26212
26213 * elf/Makefile (tests-static-internal): Add
26214 tst-tls1-static-non-pie.
26215 (LDFLAGS-tst-tls1-static-non-pie): New.
26216 * elf/tst-tls1-static-non-pie.c: New file.
26217
26218 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26219
26220 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26221 (asinh): Define using libm_alias_double.
26222 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26223 (cbrt): Define using libm_alias_double.
26224 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26225 <libm-alias-double.h>.
26226 (copysign): Define using libm_alias_double.
26227 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26228 (erf): Define using libm_alias_double.
26229 (erfc): Likewise.
26230 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26231 (expm1): Define using libm_alias_double.
26232 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26233 (fabs): Define using libm_alias_double.
26234 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26235 libm_alias_double.
26236 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26237 <libm-alias-double.h>.
26238 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26239 libm_alias_double.
26240 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26241 <libm-alias-double.h>.
26242 (getpayload): Define using libm_alias_double.
26243 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26244 <libm-alias-double.h>.
26245 (llrint): Define using libm_alias_double.
26246 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26247 (lrint): Define using libm_alias_double.
26248 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26249 <libm-alias-double.h>.
26250 (nextup): Define using libm_alias_double.
26251 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26252 <libm-alias-double.h>.
26253 (roundeven): Define using libm_alias_double.
26254 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26255 libm_alias_double.
26256 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26257 <libm-alias-double.h>.
26258 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26259 using libm_alias_double.
26260 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26261 (cos): Define using libm_alias_double.
26262 (sin): Likewise.
26263 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26264 <libm-alias-double.h>.
26265 (sincos): Define using libm_alias_double.
26266 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26267 (tanh): Define using libm_alias_double.
26268 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26269 <libm-alias-double.h>.
26270 (totalorder): Define using libm_alias_double.
26271 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26272 <libm-alias-double.h>.
26273 (totalordermag): Define using libm_alias_double.
26274 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26275 libm_alias_double.
26276 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26277 libm_alias_double.
26278 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26279 <libm-alias-double.h>.
26280 (getpayload): Define using libm_alias_double.
26281 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26282 <libm-alias-double.h>.
26283 (roundeven): Define using libm_alias_double.
26284 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26285 <libm-alias-double.h>.
26286 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26287 <libm-alias-double.h>.
26288 (totalorder): Define using libm_alias_double.
26289 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26290 <libm-alias-double.h>.
26291 (totalordermag): Define using libm_alias_double.
26292 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26293 libc compat symbol here.
26294 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26295 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26296 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26297 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26298 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26299 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26300 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26301 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26302 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26303 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26304
26305 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26306
26307 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26308 _dl_relocate_static_pie instead of _dl_start to compute load
26309 address in static PIE. Return 0 if _DYNAMIC is undefined for
26310 static executable.
26311
26312 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26313
26314 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26315 _DYNAMIC is undefined for static executable.
26316
26317 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26318
26319 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26320
26321 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26322
26323 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26324
26325 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26326
26327 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26328 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26329 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26330 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26331 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26332 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26333 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26334 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26335 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26336 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26337 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26338 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26339 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26340 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26341 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26342 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26343 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26344
26345 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26346
26347 * math/bits/cmathcalls.h (cimag): Remove inline.
26348 (creal): Remove inline.
26349 (conj): Remove inline.
26350
26351 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26352
26353 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26354 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26355 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26356 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26357 (issignalingf_inline): Likewise.
26358 (POWF_LOG2_TABLE_BITS): Likewise.
26359 (POWF_LOG2_POLY_ORDER): Likewise.
26360 (POWF_SCALE_BITS): Likewise.
26361 (POWF_SCALE): Likewise.
26362 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26363 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26364 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26365
26366 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26367
26368 * math/Makefile (type-float-routines): Add e_log2f_data.
26369 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26370 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26371 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26372 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26373 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26374 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26375 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26376
26377 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26378
26379 * math/Makefile (type-float-routines): Add e_logf_data.
26380 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26381 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26382 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26383 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26384 * sysdeps/i386/fpu/e_logf_data.c: New file.
26385 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26386 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26387
26388 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26389
26390 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26391 undefined _DYNAMIC in PIE libc.a.
26392 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26393 Likewse.
26394
26395 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26396
26397 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26398 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26399 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26400 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26401 (__signbit): Remove.
26402 (__signbitl): Remove.
26403 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26404 (__signbit): Remove.
26405 (__signbitl): Remove.
26406 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26407 (__signbit): Remove.
26408 (__signbitl): Remove.
26409 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26410 (__signbit): Remove.
26411 (__signbitl): Remove.
26412 * sysdeps/tile/bits/mathinline.h: Delete file.
26413 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26414 (__signbit): Remove.
26415 (__signbitl): Remove.
26416
26417 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26418
26419 * math/math.h: Improve handling of C99 isgreater macros.
26420 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26421 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26422 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26423 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26424 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26425
26426 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26427
26428 * sysdeps/aarch64/libm-test-ulps: Update.
26429
26430 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26431
26432 [BZ #22225]
26433 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26434 math_opt_barrier on argument when doing arithmetic on it.
26435 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26436 Likewise. Use math_force_eval not math_opt_barrier after
26437 arithmetic.
26438 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26439 math_opt_barrier on argument when doing arithmetic on it.
26440 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26441 Likewise.
26442
26443 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26444
26445 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26446 libc_hidden_def.
26447 (__freeifaddrs): Likewise.
26448
26449 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26450
26451 * include/dirent.h (__dirfd): New declaration.
26452 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26453 alias.
26454 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26455 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26456 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26457 * include/unistd.h (__revoke): New declaration.
26458 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26459 alias.
26460 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26461 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26462 revoke.
26463 * include/dirent.h (__seekdir): New declaration.
26464 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26465 redefine as weak alias.
26466 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26467 of seekdir.
26468 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26469 and use libc_hidden_def on them.
26470 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26471 them.
26472 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26473 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26474 instead of getifaddrs and freeifaddrs.
26475
26476 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26477
26478 [BZ #18822]
26479 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26480 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26481 (__dso_handle): Remove declaration.
26482 * dlfcn/tstatexit.c (__dso_handle): Removed.
26483 (main): Don't check __dso_handle.
26484 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26485 (main): Don't check __dso_handle.
26486 * include/dso_handle.h: New file.
26487 * malloc/mtrace.c: Include <dso_handle.h>.
26488 (mtrace): Pass __dso_handle directly.
26489 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26490 (__dso_handle): Remove declaration.
26491 (__pthread_atfork): Pass __dso_handle directly.
26492 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26493 (__dso_handle): Removed.
26494 * posix/wordexp-test.c: Include <dso_handle.h>.
26495 (__dso_handle): Remove declaration.
26496 (__app_register_atfork): Pass __dso_handle directly.
26497 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26498 (__dso_handle): Remove declaration.
26499 (at_quick_exit): Pass __dso_handle directly.
26500 * stdlib/atexit.c: Include <dso_handle.h>.
26501 (__dso_handle): Remove declaration.
26502 (atexit): Pass __dso_handle directly.
26503 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26504 (__dso_handle): Removed.
26505
26506 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26507
26508 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26509 using VDSO.
26510
26511 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26512
26513 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26514 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26515 values to correct default value for given type.
26516
26517 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26518
26519 [BZ #22101]
26520 * elf/Makefile (tests): Add tst-debug1.
26521 ($(objpfx)tst-debug1): New.
26522 ($(objpfx)tst-debug1.out): Likewise.
26523 ($(objpfx)tst-debug1mod1.so): Likewise.
26524 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26525 with p_filesz == 0.
26526 * elf/tst-debug1.c: New file.
26527
26528 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26529
26530 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26531 Define using __ifunc.
26532
26533 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26534
26535 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26536 exp2f() values.
26537
26538 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26539
26540 [BZ #22156]
26541 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26542
26543 2017-09-26 Florian Weimer <fweimer@redhat.com>
26544
26545 * resolv/Makefile (tests-internal): Fix typo in comment.
26546
26547 2017-09-26 Florian Weimer <fweimer@redhat.com>
26548
26549 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26550
26551 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26552
26553 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26554 Use an union instead of a max_align_t array for __space,
26555 so that __space is the same size on all platforms.
26556 * malloc/scratch_buffer_grow_preserve.c
26557 (__libc_scratch_buffer_grow_preserve): Likewise.
26558
26559 [BZ #22183]
26560 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26561 version to 2.
26562 * posix/Makefile (routines): Add glob-lstat-compat and
26563 glob64-lstat-compat.
26564 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26565 * posix/glob-lstat-compat.c: New file.
26566 * posix/glob64-lstat-compat.c: Likewise.
26567 * posix/tst-glob_lstat_compat.c: Likewise.
26568 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26569 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26570 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26571 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26572 Likewise.
26573 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26574 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26575 * posix/glob.c (glob_lstat): New function.
26576 (glob): Rename to __glob and add versioned symbol to 2.27.
26577 (glob_in_dir): Use glob_lstat.
26578 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26579 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26580 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26581 2.27.
26582 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26583 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26584 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26585 gl_lstat on glob call.
26586 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26587 and glob64 symbols.
26588 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26589 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26590 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26591 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26592 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26593 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26594 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26595 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26596 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26597 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26598 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26599 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26600 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26601 Likewise.
26602 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26604 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26605 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26606 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26607 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26608 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26609 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26610 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26611 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26612 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26613 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26614
26615 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26616
26617 * configure.ac (AS): Require binutils 2.25 or later.
26618 * configure: Regenerated.
26619
26620 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26621
26622 [BZ #22207]
26623 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26624 VM size.
26625
26626 2017-09-25 DJ Delorie <dj@redhat.com>
26627
26628 [BZ #22161]
26629 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26630 resetting timeout.
26631
26632 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26633
26634 * sysdeps/ieee754/dbl-64/sincos32.h
26635 [SINCCOS32_H]: Remove define.
26636 [SINCOS32_H]: Define.
26637
26638 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26639
26640 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26641 (exp2f): Likewise.
26642 * math/w_exp2f.c: New file.
26643 * math/w_expf.c: New file.
26644 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26645 * math/w_expf_compat.c (__expf_compat): Likewise.
26646 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26647 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26648 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26649 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26650 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26651 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26652 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26653 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26654 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26655 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26656 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26657 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26658 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26659 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26660 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26661 Likewise.
26662 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26663 Likewise.
26664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26665 Likewise.
26666 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26667 Likewise.
26668 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26669 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26670 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26671 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26672 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26673 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26674 Likewise.
26675 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26676 Likewise.
26677 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26678 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26679 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26680
26681 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26682
26683 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26684 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26685 (roundtoint, converttoint): Likewise.
26686 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26687 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26688 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26689 * sysdeps/ieee754/flt-32/math_config.h: New file.
26690 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26691 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26692 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26693 * sysdeps/i386/fpu/math_errf.c: New file.
26694 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26695 * sysdeps/ia64/fpu/math_errf.c: New file.
26696 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26697 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26698
26699 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26700
26701 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26702 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26703 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26704 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26705 to make sure that these symbols are defined.
26706 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26707 of <limits.h>
26708 (__need_NULL): Do not define.
26709 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26710 alignment.
26711 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26712 CMGROUP_MAX, cmsgcred): Do not define.
26713 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26714 NULL.
26715 * bits/socket.h: Likewise.
26716 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26717 __gettimeofday instead of gettimeofday.
26718 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26719 instead of settimeofday.
26720
26721 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26722
26723 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26724 (asinhf): Define using libm_alias_float.
26725 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26726 (atanf): Define using libm_alias_float.
26727 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26728 (cbrtf): Define using libm_alias_float.
26729 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26730 (ceilf): Define using libm_alias_float.
26731 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26732 <libm-alias-float.h>.
26733 (copysignf): Define using libm_alias_float.
26734 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26735 (cosf): Define using libm_alias_float.
26736 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26737 (erff): Define using libm_alias_float.
26738 (erfcf): Likewise.
26739 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26740 (expm1f): Define using libm_alias_float.
26741 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26742 (fabsf): Define using libm_alias_float.
26743 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26744 (floorf): Define using libm_alias_float.
26745 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26746 (frexpf): Define using libm_alias_float.
26747 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26748 libm_alias_float.
26749 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26750 <libm-alias-float.h>.
26751 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26752 libm_alias_float.
26753 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26754 <libm-alias-float.h>.
26755 (getpayloadf): Define using libm_alias_float.
26756 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26757 <libm-alias-float.h>.
26758 (llrintf): Define using libm_alias_float.
26759 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26760 <libm-alias-float.h>.
26761 (llroundf): Define using libm_alias_float.
26762 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26763 (logbf): Define using libm_alias_float.
26764 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26765 (lrintf): Define using libm_alias_float.
26766 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26767 (lroundf): Define using libm_alias_float.
26768 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26769 (modff): Define using libm_alias_float.
26770 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26771 <libm-alias-float.h>.
26772 (nearbyintf): Define using libm_alias_float.
26773 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26774 <libm-alias-float.h>.
26775 (nextafterf): Define using libm_alias_float.
26776 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26777 <libm-alias-float.h>.
26778 (nextupf): Define using libm_alias_float.
26779 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26780 <libm-alias-float.h>.
26781 (remquof): Define using libm_alias_float.
26782 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26783 (rintf): Define using libm_alias_float.
26784 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26785 <libm-alias-float.h>.
26786 (roundevenf): Define using libm_alias_float.
26787 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26788 (roundf): Define using libm_alias_float.
26789 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26790 using libm_alias_float.
26791 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26792 <libm-alias-float.h>.
26793 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26794 Define using libm_alias_float.
26795 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26796 <libm-alias-float.h>.
26797 (sincosf): Define using libm_alias_float.
26798 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26799 (sinf): Define using libm_alias_float.
26800 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26801 (tanf): Define using libm_alias_float.
26802 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26803 (tanhf): Define using libm_alias_float.
26804 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26805 <libm-alias-float.h>.
26806 (totalorderf): Define using libm_alias_float.
26807 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26808 <libm-alias-float.h>.
26809 (totalordermagf): Define using libm_alias_float.
26810 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26811 (truncf): Define using libm_alias_float.
26812 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26813 libm_alias_float.
26814 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26815 libm_alias_float.
26816
26817 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26818
26819 [BZ #22146]
26820 math/math.h: Let fpclassify use the builtin in C++ mode, even
26821 when optimazing for size.
26822
26823 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26824
26825 * csu/Makefile (generated): Do not add version-info.h.
26826 (before-compile): Likewise.
26827 (all-Banner-files): Remove variable.
26828 ($(objpfx)version-info.h): Remove rule.
26829 * csu/version.c (banner): Do not include "version-info.h".
26830 * libidn/Banner: Remove.
26831 * manual/contrib.texi (Simon Josefsson): New entry.
26832
26833 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26834
26835 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26836 Remove conditionals on LDBL_MANT_DIG.
26837 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26838 (__ieee754_lgammal_r): Likewise.
26839
26840 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26841
26842 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26843 _Float128 and L().
26844 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26845 _Float128 and L(). Replace _Float128 with long double and L(x)
26846 with xL, throughout the file.
26847 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26848 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26849 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26850 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26851
26852 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26853
26854 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26855 sysdeps/ieee754/ldbl-128ibm.
26856 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26857 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26858 of including it. Keep _Float128 and L() intact. These will be
26859 reviewed by a separate patch.
26860 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26861 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26862 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26863 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26864
26865 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26866
26867 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26868 (__finitef128): Define to __redirect___finitef128.
26869 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26870 (__isinff128): Define to __redirect___isinff128.
26871 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26872 (__isnanf128): Define to __redirect___isnanf128.
26873
26874 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26875
26876 * sysdeps/powerpc/powerpc64le/Makefile
26877 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26878 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26879
26880 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26881 Carlos O'Donell <carlos@redhat.com>
26882
26883 [BZ #22180]
26884 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
26885 * stdlib/test-dlclose-exit-race.c: New file.
26886 * stdlib/test-dlclose-exit-race-helper.c: New file.
26887 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
26888
26889 2017-09-21 Joseph Myers <joseph@codesourcery.com>
26890
26891 * crypt/Banner: Remove file.
26892 * nptl/Banner: Likewise.
26893 * resolv/Banner: Likewise.
26894 * soft-fp/Banner: Likewise.
26895 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
26896 ($(objpfx)version.d): Remove dependency on banner.h.
26897 ($(objpfx)version.os): Likewise.
26898 * nptl/version.c (banner): Do not include banner.h.
26899 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
26900 Jelinek and BIND code.
26901
26902 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26903 Carlos O'Donell <carlos@redhat.com>
26904
26905 * support/xdlfcn.h: New file.
26906 * support/xdlfcn.c: New file.
26907 * support/Makefile (libsupport-routines): Add xdlfcn.
26908 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
26909
26910 2017-09-20 Joseph Myers <joseph@codesourcery.com>
26911
26912 [BZ #20142]
26913 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26914 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
26915 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
26916 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
26917 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
26918 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
26919 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
26920 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
26921
26922 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26923 Ricky Zhou <rickyz@google.com>
26924 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26925
26926 [BZ #14333]
26927 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
26928 Remove atomics.
26929 (__new_exitfn): Fail registration when we finished at_exit processing.
26930 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
26931 * stdlib/on_exit.c (__on_exit): Likewise.
26932 * stdlib/exit.c (__exit_funcs_done): New variable.
26933 (__run_exit_handlers): Use __exit_funcs_lock.
26934 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
26935 declarations.
26936 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
26937 (test-cxa_atexit-race, test-on_exit-race): New tests.
26938 * stdlib/test-atexit-race-common.c: New file.
26939 * stdlib/test-atexit-race.c: New file.
26940 * stdlib/test-at_quick_exit-race.c: New file.
26941 * stdlib/test-cxa_atexit-race.c: New file.
26942 * stdlib/test-on_exit-race.c: New file.
26943
26944 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
26945
26946 * benchtests/Makefile: Add exp2f and log2f benchmarks.
26947 * benchtests/exp2f-inputs: Copy of expf-inputs.
26948 * benchtests/log2f-inputs: Copy of logf-inputs.
26949
26950 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26951
26952 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
26953 Explicitly take address of first element of array arguments in
26954 call to INLINE_SYSCALL.
26955
26956 2017-09-19 Andreas Schwab <schwab@suse.de>
26957
26958 [BZ #22134]
26959 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
26960 execveat first.
26961 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
26962 unimplemented.
26963 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
26964 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
26965 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
26966 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
26967 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26968 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26969 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
26970 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26971 * posix/Makefile (tests): Add tst-fexecve.
26972 * posix/tst-fexecve.c: New file.
26973
26974 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26975
26976 * benchtests/Makefile: Add logf benchmark.
26977 * benchtests/logf-inputs: Add reduced trace from wrf_r.
26978
26979 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26980
26981 * benchtests/Makefile: Add expf benchmark.
26982 * benchtests/expf-inputs: Add reduced trace from wrf_r.
26983
26984 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26985
26986 * csu/Makefile: Add -funwind-tables to libc-start.c.
26987 * debug/Makefile: Add -funwind-tables to backtrace.c.
26988 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
26989 * sysdeps/arm/Makefile: Likewise.
26990 * sysdeps/i386/Makefile: Likewise.
26991 * sysdeps/m68k/Makefile: Likewise.
26992 * sysdeps/mips/Makefile: Likewise.
26993 * sysdeps/nios2/Makefile: Likewise.
26994 * sysdeps/sh/Makefile: Likewise.
26995 * sysdeps/sparc/Makefile: Likewise.
26996
26997 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26998
26999 * benchtests/Makefile (bench-math): Add trunc and truncf.
27000 (CFLAGS-bench-trunc.c): New variable.
27001 (CFLAGS-bench-truncf.c): Likewise.
27002 * benchtests/trunc-inputs: New file.
27003 * benchtests/truncf-inputs: Likewise.
27004
27005 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27006
27007 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27008
27009 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27010
27011 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27012 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27013 redefine.
27014 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27015 (exp10l): Define as weak alias.
27016 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27017 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27018 and redefine.
27019 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27020 (remainderl): Define as weak alias.
27021
27022 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27023 (fmal): Define using libm_alias_ldouble.
27024 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27025 (acoshl): Define using libm_alias_ldouble.
27026 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27027 (acosl): Define using libm_alias_ldouble.
27028 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27029 (asinl): Define using libm_alias_ldouble.
27030 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27031 (atan2l): Define using libm_alias_ldouble.
27032 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27033 (atanhl): Define using libm_alias_ldouble.
27034 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27035 (coshl): Define using libm_alias_ldouble.
27036 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27037 (exp10l): Define using libm_alias_ldouble.
27038 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27039 (exp2l): Define using libm_alias_ldouble.
27040 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27041 (expl): Define using libm_alias_ldouble.
27042 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27043 (fmodl): Define using libm_alias_ldouble.
27044 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27045 (hypotl): Define using libm_alias_ldouble.
27046 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27047 (j0l): Define using libm_alias_ldouble.
27048 (y0l): Likewise.
27049 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27050 (j1l): Define using libm_alias_ldouble.
27051 (y1l): Likewise.
27052 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27053 (jnl): Define using libm_alias_ldouble.
27054 (ynl): Likewise.
27055 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27056 (log10l): Define using libm_alias_ldouble.
27057 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27058 (log2l): Define using libm_alias_ldouble.
27059 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27060 (logl): Define using libm_alias_ldouble.
27061 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27062 (powl): Define using libm_alias_ldouble.
27063 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27064 (remainderl): Define using libm_alias_ldouble.
27065 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27066 (sinhl): Define using libm_alias_ldouble.
27067 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27068 (sqrtl): Define using libm_alias_ldouble.
27069 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27070 (tgammal): Define using libm_alias_ldouble.
27071 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27072 (exp10l): Do not use long_double_symbol here.
27073 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27074 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27075 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27076 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27077 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27078 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27079 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27080 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27081 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27082 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27083 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27084 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27085 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27086 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27087 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27088 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27089 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27090 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27091 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27092 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27093 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27094 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27095
27096 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27097
27098 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27099 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27100
27101 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27102
27103 * io/read.c (read): Add libc_hidden_weak.
27104 * sysdeps/mach/hurd/read.c (read): Likewise.
27105 * io/write.c (write): Likewise.
27106 * sysdeps/mach/hurd/write.c (write): Likewise.
27107 * io/pread64.c (__pread64): Likewise.
27108 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27109 * posix/pread64.c (__pread64): Add libc_hidden_def.
27110
27111 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27112
27113 * benchtests/scripts/compare_strings.py: New option -g.
27114 (draw_graph): Print a message that a graph is being generated.
27115 (process_results): Generate graph only if -g is passed.
27116 (main): Process option -g.
27117
27118 * benchtests/scripts/compare_strings.py (process_results):
27119 Better spacing for output.
27120
27121 * benchtests/scripts/compare_strings.py: Use argparse.
27122 * benchtests/README: Document existence of compare_strings.py.
27123
27124 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27125
27126 * math/s_fma.c: Include <libm-alias-double.h>.
27127 (fma): Define using libm_alias_double.
27128 * math/s_nextafter.c: Include <libm-alias-double.h>.
27129 (nextafter): Define using libm_alias_double.
27130 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27131 (acos): Define using libm_alias_double.
27132 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27133 (aocsh): Define using libm_alias_double.
27134 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27135 (asin): Define using libm_alias_double.
27136 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27137 (atan2): Define using libm_alias_double.
27138 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27139 (atanh): Define using libm_alias_double.
27140 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27141 (cosh): Define using libm_alias_double.
27142 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27143 (exp10): Define using libm_alias_double.
27144 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27145 (exp2): Define using libm_alias_double.
27146 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27147 (exp): Define using libm_alias_double.
27148 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27149 (fmod): Define using libm_alias_double.
27150 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27151 (hypot): Define using libm_alias_double.
27152 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27153 (j0): Define using libm_alias_double.
27154 (y0): Likewise.
27155 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27156 (j1): Define using libm_alias_double.
27157 (y1): Likewise.
27158 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27159 (jn): Define using libm_alias_double.
27160 (yn): Likewise.
27161 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27162 (log10): Define using libm_alias_double.
27163 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27164 (log2): Define using libm_alias_double.
27165 * math/w_log_compat.c: Include <libm-alias-double.h>.
27166 (log): Define using libm_alias_double.
27167 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27168 (pow): Define using libm_alias_double.
27169 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27170 (remainder): Define using libm_alias_double.
27171 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27172 (sinh): Define using libm_alias_double.
27173 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27174 (sqrt): Define using libm_alias_double.
27175 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27176 (tgamma): Define using libm_alias_double.
27177 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27178 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27179 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27180 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27181 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27182 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27183 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27184 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27185 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27186 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27187 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27188 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27189 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27190 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27191 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27192 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27193 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27194 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27195 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27196 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27197 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27198 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27199 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27200 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27201 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27202
27203 * math/e_acoshl.c: Remove.
27204 * math/e_acosl.c: Likewise.
27205 * math/e_asinl.c: Likewise.
27206 * math/e_atan2l.c: Likewise.
27207 * math/e_atanhl.c: Likewise.
27208 * math/e_coshl.c: Likewise.
27209 * math/e_expl.c: Likewise.
27210 * math/e_fmodl.c: Likewise.
27211 * math/e_gammal_r.c: Likewise.
27212 * math/e_hypotl.c: Likewise.
27213 * math/e_j0l.c: Likewise.
27214 * math/e_j1l.c: Likewise.
27215 * math/e_jnl.c: Likewise.
27216 * math/e_lgammal_r.c: Likewise.
27217 * math/e_log10l.c: Likewise.
27218 * math/e_log2l.c: Likewise.
27219 * math/e_logl.c: Likewise.
27220 * math/e_powl.c: Likewise.
27221 * math/e_rem_pio2l.c: Likewise.
27222 * math/e_sinhl.c: Likewise.
27223 * math/e_sqrtf128.c: Likewise.
27224 * math/e_sqrtl.c: Likewise.
27225 * math/k_cosl.c: Likewise.
27226 * math/k_sinl.c: Likewise.
27227 * math/k_tanl.c: Likewise.
27228 * math/s_asinhl.c: Likewise.
27229 * math/s_atanl.c: Likewise.
27230 * math/s_cbrtl.c: Likewise.
27231 * math/s_erfl.c: Likewise.
27232 * math/s_expm1l.c: Likewise.
27233 * math/s_log1pl.c: Likewise.
27234 * math/s_tanhl.c: Likewise.
27235
27236 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27237
27238 [BZ #21745]
27239 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27240 [$(subdir) = math] (sysdep_calls): New variable. Has the
27241 previous contents of sysdep_routines, but re-sorted..
27242 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27243 sysdep_calls.
27244 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27245 defined in sysdep_calls and replace by the respective m_* names.
27246 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27247 (compat_symbol): Undefine to avoid duplicated compat symbols in
27248 libc.
27249
27250 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27251
27252 * math/s_fmaf.c: Include <libm-alias-float.h>.
27253 (fmaf): Define using libm_alias_float.
27254 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27255 (acosf): Define using libm_alias_float.
27256 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27257 (acoshf): Define using libm_alias_float.
27258 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27259 (asinf): Define using libm_alias_float.
27260 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27261 (atan2f): Define using libm_alias_float.
27262 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27263 (atanhf): Define using libm_alias_float.
27264 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27265 (coshf): Define using libm_alias_float.
27266 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27267 (exp10f): Define using libm_alias_float.
27268 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27269 (fmodf): Define using libm_alias_float.
27270 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27271 (hypotf): Define using libm_alias_float.
27272 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27273 (j0f): Define using libm_alias_float.
27274 (y0f): Likewise.
27275 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27276 (j1f): Define using libm_alias_float.
27277 (y1f): Likewise.
27278 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27279 (jnf): Define using libm_alias_float.
27280 (ynf): Likewise.
27281 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27282 (log10f): Define using libm_alias_float.
27283 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27284 (log2f): Define using libm_alias_float.
27285 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27286 (logf): Define using libm_alias_float.
27287 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27288 (powf): Define using libm_alias_float.
27289 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27290 (remainderf): Define using libm_alias_float.
27291 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27292 (sinhf): Define using libm_alias_float.
27293 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27294 (sqrtf): Define using libm_alias_float.
27295 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27296 (tgammaf): Define using libm_alias_float.
27297
27298 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27299
27300 * include/math.h (roundeven): Change hidden_proto call to
27301 __roundeven.
27302 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27303 alias.
27304 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27305 (y0): Rename to __y0 and define as weak alias.
27306 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27307 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27308 alias.
27309 (y0f): Rename to __y0f and define as weak alias.
27310 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27311 alias.
27312 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27313 (y1): Rename to __y1 and define as weak alias.
27314 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27315 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27316 alias.
27317 (y1f): Rename to __y1f and define as weak alias.
27318 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27319 alias.
27320 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27321 (yn): Rename to __yn and define as weak alias.
27322 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27323 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27324 alias.
27325 (ynf): Rename to __ynf and define as weak alias.
27326 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27327 (fromfp): Define as weak alias.
27328 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27329 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27330 (fromfpx): Define as weak alias.
27331 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27332 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27333 __getpayload and define as weak alias.
27334 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27335 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27336 __roundeven and define as weak alias.
27337 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27338 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27339 __setpayload.
27340 (setpayload): Define as weak alias.
27341 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27342 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27343 __setpayloadsig.
27344 (setpayloadsig): Define as weak alias.
27345 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27346 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27347 __totalorder and define as weak alias.
27348 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27349 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27350 to __totalordermag and define as weak alias.
27351 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27352 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27353 (ufromfp): Define as weak alias.
27354 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27355 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27356 __ufromfpx.
27357 (ufromfpx): Define as weak alias.
27358 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27359 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27360 Rename to __getpayload and define as weak alias.
27361 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27362 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27363 Rename to __roundeven and define as weak alias.
27364 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27365 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27366 Rename to __totalorder and define as weak alias.
27367 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27368 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27369 (totalordermag): Rename to __totalordermag and define as weak
27370 alias.
27371 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27372 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27373 macro.
27374 (__roundevenl): Likewise.
27375 (__totalorderl): Likewise.
27376 (__totalordermagl): Likewise
27377 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27378 __fromfpf128.
27379 (fromfpf128): Define as weak alias.
27380 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27381 __fromfpxf128.
27382 (fromfpxf128): Define as weak alias.
27383 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27384 __setpayloadf128.
27385 (setpayloadf128): Define as weak alias.
27386 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27387 __setpayloadsigf128.
27388 (setpayloadsigf128): Define as weak alias.
27389 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27390 __ufromfpf128.
27391 (ufromfpf128): Define as weak alias.
27392 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27393 __ufromfpxf128.
27394 (ufromfpxf128): Define as weak alias.
27395 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27396 (fromfpf): Define as weak alias.
27397 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27398 __fromfpxf.
27399 (fromfpxf): Define as weak alias.
27400 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27401 __getpayloadf and define as weak alias.
27402 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27403 __roundevenf and define as weak alias.
27404 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27405 __setpayloadf.
27406 (setpayloadf): Define as weak alias.
27407 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27408 __setpayloadsigf.
27409 (setpayloadsigf): Define as weak alias.
27410 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27411 __totalorderf and define as weak alias.
27412 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27413 Rename to __totalordermagf and define as weak alias.
27414 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27415 __ufromfpf.
27416 (ufromfpf): Define as weak alias.
27417 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27418 __ufromfpxf.
27419 (ufromfpxf): Define as weak alias.
27420 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27421 __fromfpl.
27422 (fromfpl): Define as weak alias.
27423 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27424 __fromfpxl.
27425 (fromfpxl): Define as weak alias.
27426 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27427 to __getpayloadl and define as weak alias.
27428 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27429 __roundevenl and define as weak alias.
27430 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27431 __setpayloadl.
27432 (setpayloadl): Define as weak alias.
27433 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27434 __setpayloadsigl.
27435 (setpayloadsigl): Define as weak alias.
27436 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27437 to __totalorderl and define as weak alias.
27438 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27439 Rename to __totalordermagl and define as weak alias.
27440 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27441 __ufromfpl.
27442 (ufromfpl): Define as weak alias.
27443 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27444 __ufromfpxl.
27445 (ufromfpxl): Define as weak alias.
27446 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27447 __fromfpl.
27448 (fromfpl): Define as weak alias.
27449 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27450 __fromfpxl.
27451 (fromfpxl): Define as weak alias.
27452 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27453 Rename to __getpayloadl and define as weak alias.
27454 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27455 to __roundevenl and define as weak alias. Call __roundeven
27456 instead of roundeven.
27457 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27458 __setpayloadl.
27459 (setpayloadl): Define as weak alias.
27460 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27461 __setpayloadsigl.
27462 (setpayloadsigl): Define as weak alias.
27463 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27464 Rename to __totalorderl and define as weak alias.
27465 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27466 Rename to __totalordermagl and define as weak alias.
27467 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27468 __ufromfpl.
27469 (ufromfpl): Define as weak alias.
27470 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27471 __ufromfpxl.
27472 (ufromfpxl): Define as weak alias.
27473 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27474 __fromfpl.
27475 (fromfpl): Define as weak alias.
27476 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27477 __fromfpxl.
27478 (fromfpxl): Define as weak alias.
27479 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27480 __getpayloadl and define as weak alias.
27481 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27482 __roundevenl and define as weak alias.
27483 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27484 __setpayloadl.
27485 (setpayloadl): Define as weak alias.
27486 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27487 __setpayloadsigl.
27488 (setpayloadsigl): Define as weak alias.
27489 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27490 __totalorderl and define as weak alias.
27491 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27492 Rename to __totalordermagl and define as weak alias.
27493 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27494 __ufromfpl.
27495 (ufromfpl): Define as weak alias.
27496 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27497 __ufromfpxl.
27498 (ufromfpxl): Define as weak alias.
27499
27500 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27501
27502 * benchtests/bench-string.h (realloc_bufs): New function.
27503 (test_init): Call it.
27504 * benchtests/bench-memset-large.c (do_test): Likewise.
27505 * benchtests/bench-memset.c (do_test): Likewise.
27506
27507 * benchtests/bench-memset-large.c: Print output in JSON
27508 format.
27509 * benchtests/bench-memset.c: Likewise.
27510
27511 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27512
27513 [BZ #21084]
27514 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27515 * iconvdata/Makefile: Add IBM858.
27516 * iconvdata/gconv-modules: Likewise.
27517 * iconvdata/tst-tables.sh: Likewise.
27518 * iconvdata/ibm858.c: New file.
27519 * localedata/charmaps/IBM858: Likewise.
27520
27521 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27522
27523 [BZ #22023]
27524 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27525 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27526
27527 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27528
27529 [BZ #22112]
27530 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27531 and add tel_int_fmt.
27532
27533 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27534
27535 * sysdeps/generic/libm-alias-float128.h: New file.
27536 * sysdeps/generic/math-type-macros-float128.h: Include
27537 <libm-alias-float128.h>.
27538 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27539
27540 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27541
27542 * sysdeps/generic/libm-alias-ldouble.h: New file.
27543 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27544 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27545 * sysdeps/generic/math-type-macros-ldouble.h: Include
27546 <libm-alias-ldouble.h>.
27547 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27548 libm_alias_ldouble.
27549
27550 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27551
27552 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27553 * math/w_exp_compat.c: ... here.
27554 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27555 * math/w_expf_compat.c: ... here.
27556 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27557 * math/w_expl_compat.c: ... here.
27558 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27559 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27560 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27561 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27562
27563 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27564
27565 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27566 redefine.
27567 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27568 macro.
27569 (ldexpl): Only define as compat symbol for libc, not libm.
27570 (scalbnl): Define as compat symbol for libc here.
27571 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27572 define for [IS_IN (libc)].
27573 (__ldexpl_2): Remove alias.
27574 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27575 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27576 name in long_double_symbol call.
27577 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27578 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27579 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27580 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27581 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27582 Remove macro.
27583 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27584 Define as compat symbol.
27585
27586 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27587
27588 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27589 * sysdeps/unix/sysv/linux/alpha/Makefile
27590 [$(subdir) = csu] (sysdep_routines): Remove rule.
27591
27592 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27593
27594 * sysdeps/generic/libm-alias-double.h: New file.
27595 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27596 * sysdeps/generic/math-type-macros-double.h: Include
27597 <libm-alias-double.h>.
27598 [declare_mgen_alias] (declare_mgen_alias): Define to use
27599 libm_alias_double.
27600 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27601 (M_LIBM_NEED_COMPAT): Remove macro.
27602 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27603 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27604 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27605 code.
27606 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27607 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27608 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27609 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27610 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27611 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27612 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27613 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27614 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27615 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27616 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27617 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27618 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27619 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27620 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27621 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27622 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27623 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27624 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27625 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27626 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27627 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27628 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27629 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27630 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27631 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27632 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27633 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27634 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27635 macro.
27636 (declare_mgen_alias): New macro.
27637 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27638 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27639 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27640 (M_LIBM_NEED_COMPAT): Remove macro.
27641 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27642 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27643 <first-versions.h>.
27644 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27645 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27646
27647 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27648
27649 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27650 (declare_mgen_alias_2): Remove.
27651 * sysdeps/generic/math-type-macros-double.h
27652 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27653 Likewise.
27654 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27655 alias.
27656 (ldexp): Define with declare_mgen_alias.
27657 (scalbn): Likewise.
27658
27659 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27660
27661 * grp/initgroups.c: Include config.h.
27662 (DEFAULT_CONFIG): New macro.
27663 (internal_getgrouplist): Use DEFAULT_CONFIG.
27664 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27665 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27666 (DEFAULT_DEFCONFIG): New macro.
27667 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27668 * nss/grp-lookup.c: Include config.h
27669 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27670 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27671 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27672 * manual/nss.texi: Update default values section.
27673
27674 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27675
27676 [BZ #21967]
27677 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27678 New.
27679 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27680 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27681 Handle MathVec_Prefer_No_AVX512.
27682 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27683 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27684 is set.
27685
27686 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27687
27688 * posix/sched_primax.c (__sched_get_priority_max): Add
27689 libc_hidden_def.
27690 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27691 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27692 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27693 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27694 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27695 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27696 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27697 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27698 Add aliases.
27699
27700 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27701
27702 * sysdeps/generic/libm-alias-float.h: New file.
27703 * sysdeps/generic/math-type-macros-float.h: Include
27704 <libm-alias-float.h>.
27705 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27706
27707 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27708
27709 [BZ #22093]
27710 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27711 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27712 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27713 (HWCAP_IMPORTANT): Likewise.
27714 (HWCAP_X86_64): New enum.
27715 (HWCAP_X86_AVX512_1): Updated.
27716 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27717 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27718 (modules-names): Add x86_64/tst-x86_64mod-1.
27719 (LDFLAGS-tst-x86_64mod-1.so): New.
27720 ($(objpfx)tst-x86_64-1): Likewise.
27721 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27722 (tst-x86_64-1-clean): Likewise.
27723 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27724 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27725
27726 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27727
27728 * po/sv.po: Update translations.
27729 * po/fr.po: Likewise.
27730
27731 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27732
27733 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27734 seconds.
27735 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27736 seconds.
27737 * elf/rtld-Rules: Fix $(error) use.
27738
27739 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27740
27741 [BZ #14925]
27742 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27743 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27744 * localedata/locales/bn_BD: “Bengali” was still used in some
27745 comments. Change it to “Bangla”.
27746
27747 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27748
27749 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27750
27751 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27752
27753 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27754 thunderx2t99p1 to list of cpu names.
27755 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27756 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27757
27758 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27759
27760 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27761 Use strcmp instead of tunable_is_name.
27762
27763 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27764
27765 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27766 (F_GET_RW_HINT): New macro.
27767 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27768 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27769 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27770 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27771 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27772 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27773 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27774 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27775 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27776
27777 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27778 (F_ADD_SEALS): New macro.
27779 [__USE_GNU] (F_GET_SEALS): Likewise.
27780 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27781 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27782 [__USE_GNU] (F_SEAL_GROW): Likewise.
27783 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27784
27785 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27786
27787 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27788 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27789 * posix/glob_internal.h (__glob_pattern_type):
27790 * posix/glob.c (glob):
27791 * posix/glob_pattern_p.c (__glob_pattern_p):
27792 Use them.
27793
27794 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27795 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27796 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27797 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27798 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27800 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27801 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27802 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27803 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27804 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27805 * sysdeps/wordsize-64/glob.c: Likewise.
27806 * sysdeps/wordsize-64/glob64.c: Likewise.
27807 * sysdeps/wordsize-64/globfree.c: Likewise.
27808 * sysdeps/wordsize-64/globfree64.c: Likewise.
27809 * sysdeps/unix/sysv/linux/glob.c: New file.
27810 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27811 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27812 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27813 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27814 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27815 adds !GLOB_NO_OLD_VERSION as an extra condition.
27816 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27817 using relative path instead of absolute one.
27818 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27819 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27820 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27821 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27822 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27823 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27824
27825 [BZ #1062]
27826 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27827 (glob): Use the same scratch buffer for both getlogin_r and
27828 getpwnam_r. Don’t require preallocation of the login name. This
27829 simplifies storage allocation, and corrects the handling of
27830 long login names.
27831
27832 [BZ #1062]
27833 * posix/glob.c (glob): Port recent patches to platforms
27834 lacking getpwnam_r.
27835 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27836 returns an error number rather than setting errno.
27837
27838 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27839 instead of GCC extension.
27840 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27841 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27842 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27843
27844 [BZ #866]
27845 [BZ #1062]
27846 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27847 * posix/bug-glob1.c: Remove file.
27848 * posix/tst-glob_symlinks.c: New file.
27849 * posix/glob.c (__lstat64): New macro.
27850 (is_dir): New function.
27851 (glob, glob_in_dir): Match symlinks even if they are dangling.
27852 (link_stat, link_exists_p): Remove. All uses removed.
27853
27854 [BZ #1062]
27855 [BZ #19971]
27856 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27857 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27858 All uses removed.
27859
27860 [BZ #1062]
27861 CVE-2017-15671
27862 * posix/Makefile (routines): Add globfree, globfree64, and
27863 glob_pattern_p.
27864 * posix/flexmember.h: New file.
27865 * posix/glob_internal.h: Likewise.
27866 * posix/glob_pattern_p.c: Likewise.
27867 * posix/globfree.c: Likewise.
27868 * posix/globfree64.c: Likewise.
27869 * sysdeps/gnu/globfree64.c: Likewise.
27870 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27871 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27872 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27873 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27874 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27875 * sysdeps/wordsize-64/globfree.c: Likewise.
27876 * sysdeps/wordsize-64/globfree64.c: Likewise.
27877 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27878 [NDEBUG): Remove comments.
27879 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27880 (dirent_type): New type. Use uint_fast8_t not
27881 uint8_t, as C99 does not require uint8_t.
27882 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
27883 (struct readdir_result): Use dirent_type. Do not define skip_entry
27884 unless it is needed; this saves a byte on platforms lacking d_ino.
27885 (readdir_result_type, readdir_result_skip_entry):
27886 New functions, replacing ...
27887 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
27888 these functions, which were removed. This makes the callers
27889 easier to read. All callers changed.
27890 (D_INO_TO_RESULT): Now empty if there is no d_ino.
27891 (size_add_wrapv, glob_use_alloca): New static functions.
27892 (glob, glob_in_dir): Check for size_t overflow in several places,
27893 and fix some size_t checks that were not quite right.
27894 Remove old code using SHELL since Bash no longer
27895 uses this.
27896 (glob, prefix_array): Separate MS code better.
27897 (glob_in_dir): Remove old Amiga and VMS code.
27898 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
27899 separate files.
27900 (glob_in_dir): Do not rely on undefined behavior in accessing
27901 struct members beyond their bounds. Use a flexible array member
27902 instead
27903 (link_stat): Rename from link_exists2_p and return -1/0 instead of
27904 0/1. Caller changed.
27905 (glob): Fix memory leaks.
27906 * posix/glob64 (globfree64): Move to separate file.
27907 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
27908 (globfree64): Remove hidden alias.
27909 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
27910 oldglob.
27911 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
27912 separate file.
27913 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
27914 define.
27915 Move compat code to separate file.
27916 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
27917 separate file.
27918
27919 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
27920
27921 * resolv/tst-resolv-qtypes.c (domain): Changed to
27922 "const char domain[] =".
27923
27924 2017-09-07 Joseph Myers <joseph@codesourcery.com>
27925
27926 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
27927 version to 3.1.6.
27928
27929 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
27930 (TCP_MD5SIG_EXT): Likewise.
27931 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
27932 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
27933 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
27934
27935 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
27936
27937 2017-09-07 Mike FABIAN <mfabian@redhat.com>
27938
27939 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
27940
27941 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
27942
27943 [BZ #22100]
27944 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
27945
27946 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
27947
27948 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
27949 before assuming that the file is empty. Avoid testing buffer content
27950 when nread == 0.
27951
27952 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27953
27954 [BZ #18858]
27955 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27956 Remove define.
27957 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
27958 Likewise.
27959 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
27960 Likewise.
27961 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
27962 Likewise.
27963 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27964 Likewise.
27965 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
27966 Likewise.
27967 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
27968 Likewise.
27969
27970 2017-09-06 Florian Weimer <fweimer@redhat.com>
27971
27972 * malloc/dynarray_emplace_enlarge.c
27973 (__libc_dynarray_emplace_enlarge): Add missing else.
27974
27975 2017-09-06 Florian Weimer <fweimer@redhat.com>
27976
27977 [BZ #22096]
27978 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
27979 case of failure to obtain the global conf object.
27980
27981 2017-09-06 Florian Weimer <fweimer@redhat.com>
27982
27983 [BZ #22095]
27984 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
27985 dynarray allocation failure.
27986
27987 2017-09-06 Florian Weimer <fweimer@redhat.com>
27988
27989 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
27990 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
27991 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
27992 New functions.
27993 (response): Call them. Add 'p', '6' flag processing.
27994 (test_reverse): New function.
27995 (test_get2_any): Call it.
27996 (test_no_inet6): Add 'p' test.
27997 (test_inet6): Likewise.
27998
27999 2017-09-06 Florian Weimer <fweimer@redhat.com>
28000
28001 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28002 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28003 the QNAME.
28004 (test_gai): Adjust query names. Add additional tests.
28005 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28006 test_get2. Adjust query names. Add additional tests.
28007 (test_no_inet6): New function, extracted from threadfunc.
28008 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28009 Add additional tests.
28010
28011 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28012
28013 [BZ #22070]
28014 * localedata/unicode-gen/utf8_gen.py: Set the width for
28015 characters with Prepended_Concatenation_Mark property to 1
28016 * localedata/charmaps/UTF-8: Updated using the improved script.
28017
28018 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28019
28020 [BZ #21750]
28021 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28022 use the range notation for all ranges of neighbouring characters
28023 with the same width.
28024
28025 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28026
28027 * sysdeps/generic/math-type-macros-double.h: Include
28028 <math-svid-compat.h>.
28029 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28030 * sysdeps/generic/math-type-macros-float.h: Include
28031 <math-svid-compat.h>.
28032 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28033 * sysdeps/generic/math-type-macros-ldouble.h: Include
28034 <math-svid-compat.h>.
28035 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28036 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28037 condition.
28038 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28039 * math/w_acosf_compat.c: Likewise.
28040 * math/w_acosh_compat.c: Likewise.
28041 * math/w_acoshf_compat.c: Likewise.
28042 * math/w_acoshl_compat.c: Likewise.
28043 * math/w_acosl_compat.c: Likewise.
28044 * math/w_asin_compat.c: Likewise.
28045 * math/w_asinf_compat.c: Likewise.
28046 * math/w_asinl_compat.c: Likewise.
28047 * math/w_atan2_compat.c: Likewise.
28048 * math/w_atan2f_compat.c: Likewise.
28049 * math/w_atan2l_compat.c: Likewise.
28050 * math/w_atanh_compat.c: Likewise.
28051 * math/w_atanhf_compat.c: Likewise.
28052 * math/w_atanhl_compat.c: Likewise.
28053 * math/w_cosh_compat.c: Likewise.
28054 * math/w_coshf_compat.c: Likewise.
28055 * math/w_coshl_compat.c: Likewise.
28056 * math/w_exp10_compat.c: Likewise.
28057 * math/w_exp10f_compat.c: Likewise.
28058 * math/w_exp10l_compat.c: Likewise.
28059 * math/w_exp2_compat.c: Likewise.
28060 * math/w_exp2f_compat.c: Likewise.
28061 * math/w_exp2l_compat.c: Likewise.
28062 * math/w_fmod_compat.c: Likewise.
28063 * math/w_fmodf_compat.c: Likewise.
28064 * math/w_fmodl_compat.c: Likewise.
28065 * math/w_hypot_compat.c: Likewise.
28066 * math/w_hypotf_compat.c: Likewise.
28067 * math/w_hypotl_compat.c: Likewise.
28068 * math/w_j0_compat.c: Likewise.
28069 * math/w_j0f_compat.c: Likewise.
28070 * math/w_j0l_compat.c: Likewise.
28071 * math/w_j1_compat.c: Likewise.
28072 * math/w_j1f_compat.c: Likewise.
28073 * math/w_j1l_compat.c: Likewise.
28074 * math/w_jn_compat.c: Likewise.
28075 * math/w_jnf_compat.c: Likewise.
28076 * math/w_jnl_compat.c: Likewise.
28077 * math/w_lgamma_r_compat.c: Likewise.
28078 * math/w_lgammaf_r_compat.c: Likewise.
28079 * math/w_lgammal_r_compat.c: Likewise.
28080 * math/w_log10_compat.c: Likewise.
28081 * math/w_log10f_compat.c: Likewise.
28082 * math/w_log10l_compat.c: Likewise.
28083 * math/w_log2_compat.c: Likewise.
28084 * math/w_log2f_compat.c: Likewise.
28085 * math/w_log2l_compat.c: Likewise.
28086 * math/w_log_compat.c: Likewise.
28087 * math/w_logf_compat.c: Likewise.
28088 * math/w_logl_compat.c: Likewise.
28089 * math/w_pow_compat.c: Likewise.
28090 * math/w_powf_compat.c: Likewise.
28091 * math/w_powl_compat.c: Likewise.
28092 * math/w_remainder_compat.c: Likewise.
28093 * math/w_remainderf_compat.c: Likewise.
28094 * math/w_remainderl_compat.c: Likewise.
28095 * math/w_sinh_compat.c: Likewise.
28096 * math/w_sinhf_compat.c: Likewise.
28097 * math/w_sinhl_compat.c: Likewise.
28098 * math/w_sqrt_compat.c: Likewise.
28099 * math/w_sqrtf_compat.c: Likewise.
28100 * math/w_sqrtl_compat.c: Likewise.
28101 * math/w_tgamma_compat.c: Likewise.
28102 * math/w_tgammaf_compat.c: Likewise.
28103 * math/w_tgammal_compat.c: Likewise.
28104 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28105 [LIBM_SVID_COMPAT].
28106 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28107 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28108 [LIBM_SVID_COMPAT].
28109 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28110 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28111 [LIBM_SVID_COMPAT].
28112 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28113 * sysdeps/i386/fpu/w_sqrt.c: New file.
28114 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28115 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28116 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28117 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28118 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28119 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28120 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28121 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28122 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28123 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28124 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28125 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28126 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28127 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28128 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28129 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28130 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28131 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28132 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28133 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28134 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28135 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28136 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28137 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28138 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28139 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28140 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28141 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28142 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28143 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28144 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28145 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28146 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28147 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28148 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28149 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28150 * sysdeps/ia64/fpu/w_log.c: Likewise.
28151 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28152 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28153 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28154 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28155 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28156 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28157 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28158 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28159 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28160 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28161 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28162 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28163 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28164 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28165 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28166 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28167 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28168 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28169 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28170 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28171 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28172 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28173 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28174 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28175 [LIBM_SVID_COMPAT].
28176 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28177 * sysdeps/ieee754/k_standard.c: Likewise.
28178 * sysdeps/ieee754/k_standardf.c: Likewise.
28179 * sysdeps/ieee754/k_standardl.c: Likewise.
28180 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28181 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28182 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28183 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28184 long_double_symbol call on [LIBM_SVID_COMPAT].
28185 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28186 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28187 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28188 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28189 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28190 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28191 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28192 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28193 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28194 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28195 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28196 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28197 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28198 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28199 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28200 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28201 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28202 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28203 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28204 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28205 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28206 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28207
28208 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28209
28210 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28211 * malloc/tst-mallocstate.c: Convert from test-skeleton
28212 to test-driver. Ifdef code using TEST_COMPAT macro.
28213 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28214 * math/test-matherr.c: Likewise.
28215
28216 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28217
28218 [BZ #22086]
28219 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28220 comparing word with byte-swapped constant.
28221
28222 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28223
28224 [BZ #20498]
28225 * locale/iso-639.def: add Miskito.
28226 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28227 * localedata/locales/miq_NI: New file.
28228
28229 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28230
28231 [BZ #18822]
28232 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28233 (__mkdir): Likewise.
28234 * io/chmod.c (__chmod): Add libc_hidden_def.
28235 * io/mkdir.c (__mkdir): Likewise.
28236 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28237 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28238 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28239 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28240
28241 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28242
28243 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28244 version to 4.13.
28245
28246 [BZ #22082]
28247 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28248 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28249
28250 2017-09-04 Florian Weimer <fweimer@redhat.com>
28251
28252 * math/math.h: Issue warning if log is defined.
28253
28254 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28255
28256 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28257 kernel version to 4.13.
28258
28259 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28260
28261 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28262 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28263 parameter.
28264 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28265 just <bits/types.h>.
28266 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28267 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28268 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28269 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28270 * misc/preadv2.c: Include <errno.h>.
28271 * misc/preadv64v2.c: Include <errno.h>.
28272 * misc/pwritev2.c: Include <errno.h>.
28273 * misc/pwritev64v2.c: Include <errno.h>.
28274 * sysdeps/posix/preadv2.c: Include <errno.h>.
28275 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28276 Fix <unistd.h> inclusion.
28277 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28278 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28279 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28280 __strtoul_internal): New functions.
28281 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28282 * sysdeps/posix/system.c: Include <sigsetops.h>.
28283 * sysdeps/mach/hurd/i386/Makefile
28284 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28285 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28286 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28287 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28288 __feraiseexcept_renamed to feraiseexcept instead of
28289 __GI_feraiseexcept.
28290 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28291 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28292 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28293 RWF_NOWAIT): Define to 0 if undefined already.
28294 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28295 boils down to 0.
28296 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28297 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28298
28299 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28300
28301 * manual/math.texi (pow10): Do not document.
28302 (pow10f): Likewise.
28303 (pow10l): Likewise.
28304 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28305 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28306 * math/libm-test-exp10.inc (pow10_test): Remove.
28307 (do_test): Do not call pow10.
28308 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28309 [NO_LONG_DOUBLE] (pow10l): Likewise.
28310 * math/w_exp10f_compat.c (pow10f): Likewise.
28311 * math/w_exp10l_compat.c (pow10l): Likewise.
28312 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28313 (pow10): Make into compat symbol.
28314 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28315 (pow10f): Make into compat symbol.
28316 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28317 (pow10l): Make into compat symbol.
28318 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28319 pow10.
28320 (CFLAGS-nldbl-pow10.c): Remove variable..
28321 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28322 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28323 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28324 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28325 Undefine and redefine.
28326 (pow10l): Make into compat symbol.
28327 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28328 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28329 * sysdeps/arm/libm-test-ulps: Likewise.
28330 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28331 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28332 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28333 * sysdeps/microblaze/libm-test-ulps: Likewise.
28334 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28335 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28336 * sysdeps/nios2/libm-test-ulps: Likewise.
28337 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28338 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28339 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28340 * sysdeps/sh/libm-test-ulps: Likewise.
28341 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28342 * sysdeps/tile/libm-test-ulps: Likewise.
28343 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28344
28345 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28346
28347 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28348
28349 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28350
28351 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28352 "../ChangeLog.old/ChangeLog.8".
28353 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28354 "../ChangeLog.old/ChangeLog.14".
28355
28356 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28357
28358 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28359 Threads Library.
28360
28361 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28362
28363 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28364
28365 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28366
28367 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28368 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28369
28370 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28371
28372 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28373 32 atexit handlers.
28374
28375 2017-09-01 Zack Weinberg <zackw@panix.com>
28376
28377 * math/math.h (HUGE_VAL): Improve commentary.
28378
28379 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28380 Andreas Schwab <schwab@suse.de>
28381
28382 [BZ #21530]
28383 * include/stdio.h (__gen_tempfd): New function.
28384 * stdio-common/Makefile (routines): Add gentempfd.
28385 * stdio-common/gentempfd.c: New file.
28386 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28387 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28388 unnamed file first.
28389
28390 2017-09-01 Florian Weimer <fweimer@redhat.com>
28391
28392 [BZ #21915]
28393 [BZ #21922]
28394 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28395 result to determine success or failure, not the errno value.
28396 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28397 (tst-nss-files-hosts-erange): Link with -ldl.
28398 * nss/tst-nss-files-hosts-erange.c: New file.
28399 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28400 (do_test): Add NO_DATA tests.
28401 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28402 (do_test): Call it.
28403
28404 2017-09-01 Florian Weimer <fweimer@redhat.com>
28405
28406 [BZ #21922]
28407 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28408 coming from gethostbyname2_r.
28409
28410 2017-09-01 Florian Weimer <fweimer@redhat.com>
28411
28412 * support/namespace.h (struct support_chroot_configuration): Add
28413 hosts, host_conf.
28414 (struct support_chroot): Add path_hosts, path_host_conf.
28415 * support/support_chroot.c (write_file): New function.
28416 (support_chroot_create): Call it to process /etc/resolv.conf,
28417 /etc/hosts, /etc/host.conf.
28418 (support_chroot_free): Update.
28419
28420 2017-09-01 Florian Weimer <fweimer@redhat.com>
28421
28422 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28423 status indicates it is set.
28424
28425 2017-09-01 Florian Weimer <fweimer@redhat.com>
28426
28427 [BZ #20532]
28428 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28429 function lookup failures more reliable.
28430
28431 2017-09-01 Florian Weimer <fweimer@redhat.com>
28432
28433 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28434 (getcanonname): Likewise.
28435 (gaih_inet): Likewise.
28436
28437 2017-09-01 Florian Weimer <fweimer@redhat.com>
28438
28439 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28440 (getcanonname): Likewise.
28441 (gaih_inet): Likewise.
28442
28443 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28444 Richard Henderson <rth@twiddle.net>
28445
28446 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28447 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28448 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28449 (IREG_SIZE, OREG_SIZE): New macros.
28450 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28451 (IREG_SIZE, OREG_SIZE): New macros.
28452 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28453 (IREG_SIZE): New macro.
28454 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28455 (IREG_SIZE): New macro.
28456 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28457 New includes.
28458 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28459 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28460 (__CONCATX): Handle exceptions correctly on large values that may
28461 set FE_INVALID.
28462 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28463 Initialize if not already set.
28464 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28465
28466 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28467
28468 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28469 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28470 Likewise.
28471 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28472 Likewise.
28473 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28474 Likewise.
28475 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28476 Likewise.
28477 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28478 Likewise.
28479 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28480 Likewise.
28481 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28482 Likewise.
28483 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28484 (NO_CANCELLATION): Likewise.
28485 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28486 Likewise.
28487 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28488 Likewise.
28489 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28490 Likewise.
28491 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28492 (NO_CANCELLATION): Likewise.
28493 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28494 (NO_CANCELLATION): Likewise.
28495 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28496 Likewise
28497 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28498 Likewise.
28499 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28500 Likewise.
28501 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28502 Likewise.
28503 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28504 hidden prototype.
28505 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28506 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28507
28508 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28509
28510 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28511 in resolver call.
28512
28513 2017-08-31 Florian Weimer <fweimer@redhat.com>
28514
28515 * include/libc-symbols.h (internal_function): Remove.
28516
28517 2017-08-31 Florian Weimer <fweimer@redhat.com>
28518
28519 * stdlib/fmtmsg.c (internal_addseverity): Remove
28520 internal_function.
28521
28522 2017-08-31 Florian Weimer <fweimer@redhat.com>
28523
28524 * stdio-common/printf_fp.c (group_number): Remove
28525 internal_function.
28526 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28527
28528 2017-08-31 Florian Weimer <fweimer@redhat.com>
28529
28530 * posix/fnmatch.c (internal_function): Remove definition.
28531 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28532 * posix/regcomp.c (peek_token, init_word_char)
28533 (duplicate_node_closure, fetch_token, peek_token)
28534 (peek_token_bracket, build_range_exp, build_collating_symbol):
28535 Likewise.
28536 * posix/regex_internal.c (re_string_construct_common)
28537 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28538 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28539 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28540 (re_string_translate_buffer, re_string_reconstruct)
28541 (re_string_peek_byte_case, re_string_fetch_byte_case)
28542 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28543 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28544 (re_node_set_add_intersect, re_node_set_init_union)
28545 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28546 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28547 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28548 (re_acquire_state_context): Likewise.
28549 * posix/regex_internal.h (internal_function): Remove definition.
28550 (re_string_realloc_buffers, build_wcs_buffer)
28551 (build_wcs_upper_buffer, build_upper_buffer)
28552 (re_string_translate_buffer, re_string_context_at)
28553 (re_string_char_size_at, re_string_wchar_at)
28554 (re_string_elem_size_at): Likewise.
28555 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28556 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28557 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28558 (re_search_internal, re_search_2_stub, re_search_stub)
28559 (re_copy_regs, prune_impossible_nodes, check_matching)
28560 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28561 (free_fail_stack_return, sift_states_iter_mb)
28562 (sift_states_backward, build_sifted_states)
28563 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28564 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28565 (check_subexp_limits, sift_states_bkref, merge_state_array)
28566 (find_recover_state, transit_state, merge_state_with_log)
28567 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28568 (transit_state_mb, transit_state_bkref, get_subexp)
28569 (get_subexp_sub, find_subexp_node, check_arrival)
28570 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28571 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28572 (check_node_accept_bytes, find_collation_sequence_value)
28573 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28574 (acquire_init_state_context, check_halt_node_context)
28575 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28576 (sub_epsilon_src_nodes): Likewise.
28577 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28578 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28579 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28580 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28581 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28582 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28583 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28584 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28585 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28586 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28587 (PREADV): Likewise.
28588 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28589 (PREADV): Likewise.
28590 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28591 (PWRITEV): Likewise.
28592 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28593 (PWRITEV): Likewise.
28594 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28595 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28596
28597 2017-08-31 Florian Weimer <fweimer@redhat.com>
28598
28599 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28600 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28601 Remove internal_function.
28602 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28603 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28604 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28605 (__deallocate_stack, __libc_pthread_init)
28606 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28607 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28608 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28609 Likewise.
28610 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28611 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28612 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28613 Likewise.
28614 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28615 (__pthread_mutex_unlock_usercnt): Likewise.
28616
28617 2017-08-31 Florian Weimer <fweimer@redhat.com>
28618
28619 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28620 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28621 (fts_safe_changedir): Remove internal_function.
28622 * io/ftw.c (internal_function): Remove definition.
28623 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28624
28625 2017-08-31 Florian Weimer <fweimer@redhat.com>
28626
28627 * inet/deadline.c (__deadline_current_time)
28628 (__deadline_from_timeval, __deadline_to_ms): Remove
28629 internal_function.
28630 * inet/getnameinfo.c (nrl_domainname): Likewise.
28631 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28632 * inet/inet6_option.c (add_pad): Likewise.
28633 * inet/net-internal.h (__deadline_current_time)
28634 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28635 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28636 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28637 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28638
28639 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28640
28641 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28642 include <bits/nan.h>.
28643 * math/Makefile (headers): Remove bits/nan.h.
28644 * bits/nan.h: Remove.
28645 * sysdeps/ieee754/bits/nan.h: Likewise.
28646 * sysdeps/mips/bits/nan.h: Likewise.
28647
28648 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28649 not include <bits/inf.h>.
28650 * math/Makefile (headers): Remove bits/inf.h.
28651 * bits/inf.h: Remove.
28652 * sysdeps/ieee754/bits/inf.h: Likewise.
28653
28654 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28655 bits/huge_vall.h or bits/huge_val_flt128.h.
28656 (HUGE_VAL): Define directly here.
28657 [__USE_ISOC99] (HUGE_VALF): Likewise.
28658 [__USE_ISOC99] (HUGE_VALL): Likewise.
28659 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28660 (HUGE_VAL_F128): Likewise.
28661 * math/Makefile (headers): Remove bits/huge_val.h,
28662 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28663 * bits/huge_val.h: Remove.
28664 * bits/huge_val_flt128.h: Likewise.
28665 * bits/huge_valf.h: Likewise.
28666 * bits/huge_vall.h: Likewise.
28667 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28668 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28669 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28670 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28671 * sysdeps/sh/bits/huge_val.h: Likewise.
28672 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28673 * sysdeps/x86/bits/huge_vall.h: Likewise.
28674
28675 2017-08-31 Florian Weimer <fweimer@redhat.com>
28676
28677 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28678 internal_function.
28679 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28680 Likewise.
28681 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28682 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28683 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28684 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28685 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28686 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28687 * elf/dl-libc.c (dlerror_run): Likewise.
28688 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28689 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28690 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28691 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28692 Likewise.
28693 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28694 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28695 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28696 * elf/dl-profile.c (_dl_start_profile): Likewise.
28697 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28698 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28699 Likewise.
28700 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28701 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28702 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28703 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28704 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28705 (_dl_allocate_tls_storage): Likewise.
28706 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28707 (_dl_check_all_versions): Likewise.
28708 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28709 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28710 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28711 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28712 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28713 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28714 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28715 internal_function from __dl_start.
28716 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28717 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28718 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28719 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28720 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28721 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28722 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28723 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28724 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28725 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28726 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28727 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28728 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28729 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28730 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28731 Likewise.
28732 (struct rtld_global_ro): Remove internal_function from the
28733 _dl_lookup_symbol_x member.
28734 (_dl_symbol_value): Remove. No longer defined anywhere.
28735 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28736 internal_function.
28737 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28738 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28739 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28740 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28741 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28742 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28743 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28744 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28745 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28746 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28747 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28748 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28749
28750 2017-08-31 Florian Weimer <fweimer@redhat.com>
28751
28752 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28753 Remove internal_function.
28754 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28755 Likewise.
28756 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28757 Likewise.
28758
28759 2017-08-31 Florian Weimer <fweimer@redhat.com>
28760
28761 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28762 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28763 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28764
28765 2017-08-31 Florian Weimer <fweimer@redhat.com>
28766
28767 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28768 (__gai_enqueue_request): Remove internal_function.
28769 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28770 (__gai_remove_request, __gai_notify, __gai_notify_only)
28771 (__gai_sigqueue): Likewise.
28772 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28773 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28774 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28775 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28776 Likewise.
28777
28778 2017-08-31 Florian Weimer <fweimer@redhat.com>
28779
28780 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28781 * include/dirent.h (__opendirat, __getdents, __getdents64)
28782 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28783 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28784 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28785 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28786 Likewise.
28787 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28788
28789 2017-08-31 Florian Weimer <fweimer@redhat.com>
28790
28791 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28792 internal_function.
28793 (GETCWD_RETURN_TYPE): Likewise.
28794
28795 2017-08-31 Florian Weimer <fweimer@redhat.com>
28796
28797 * include/time.h (__tz_compute, __strptime_internal): Remove
28798 internal_function.
28799 * time/strptime_l.c (__strptime_internal): Likewise.
28800 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28801
28802 2017-08-31 Florian Weimer <fweimer@redhat.com>
28803
28804 * iconv/gconv.c (__gconv): Remove internal_function.
28805 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28806 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28807 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28808 (__gconv_release_cache): Likewise.
28809 * iconv/gconv_close.c (__gconv_close): Likewise.
28810 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28811 (read_conf_file, __gconv_get_path): Likewise.
28812 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28813 (__gconv_release_step, gen_steps, increment_counter)
28814 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28815 (__gconv_close_transform, free_modules_db): Likewise.
28816 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28817 Likewise.
28818 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28819 (__gconv_find_transform, __gconv_lookup_cache)
28820 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28821 (__gconv_close_transform, __gconv_release_cache)
28822 (__gconv_loaded_object, __gconv_release_shlib)
28823 (__gconv_compare_alias): Likewise.
28824 * iconv/gconv_open.c (__gconv_open): Likewise.
28825 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28826 * iconv/iconvconfig.c (add_module): Likewise.
28827 * intl/dcigettext.c (plural_lookup, guess_category_value)
28828 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28829 * intl/eval-plural.h (plural_eval): Likewise.
28830 * intl/finddomain.c (_nl_find_domain): Likewise.
28831 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28832 (_nl_load_domain, _nl_find_msg): Likewise.
28833 (internal_function): Remove definition.
28834 * intl/loadinfo.h (internal_function): Likewise.
28835 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28836 internal_function.
28837 * intl/localealias.c (internal_function): Remove definition.
28838 (read_alias_file): Remove internal_function.
28839 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28840 * intl/plural-exp.h (internal_function): Remove definition.
28841 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28842 internal_function.
28843 * intl/plural.c: Regenerate.
28844 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28845 * locale/coll-lookup.c (__collidx_table_lookup)
28846 (__collseq_table_lookup): Likewise.
28847 * locale/coll-lookup.h (__collidx_table_lookup)
28848 (__collseq_table_lookup): Likewise.
28849 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28850 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28851 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28852 (_nl_unload_locale): Likewise.
28853 * locale/localeinfo.h (struct __locale_data): Remove
28854 internal_function from cleanup member.
28855 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28856 (_nl_remove_locale, _nl_load_locale_from_archive)
28857 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28858 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28859 (_nl_cleanup_time): Remove internal_function.
28860 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28861 (_nl_parse_alt_digit): Likewise.
28862 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28863 (_nl_select_era_entry): Likewise.
28864 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28865 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28866 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28867 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28868 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28869
28870 2017-08-31 Florian Weimer <fweimer@redhat.com>
28871
28872 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28873 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28874 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28875 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28876 Likewise.
28877 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28878 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28879 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28880 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28881 Likewise.
28882 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
28883
28884 2017-08-31 Florian Weimer <fweimer@redhat.com>
28885
28886 * misc/getttyent.c (skip, value): Remove internal_function.
28887 * misc/syslog.c (openlog_internal): Likewise.
28888 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
28889
28890 2017-08-31 Florian Weimer <fweimer@redhat.com>
28891
28892 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
28893 (__nss_rewrite_field): Remove internal_function.
28894 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
28895 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
28896 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
28897 * nss/nsswitch.c (nss_parse_file, nss_getline)
28898 (nss_parse_service_list, nss_new_service): Likewise.
28899 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
28900 * nss/valid_field.c (__nss_valid_field): Likewise.
28901 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
28902
28903 2017-08-31 Florian Weimer <fweimer@redhat.com>
28904
28905 * malloc/arena.c (__malloc_fork_lock_parent)
28906 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
28907 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
28908 internal_function from defintions.
28909 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
28910 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
28911 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
28912 internal_function from declarations.
28913 * malloc/malloc.c (internal_function): Do not define.
28914 (mem2mem_check): Remove internal_function from declaration.
28915 (munmap_chunk, mremap_chunk): Remove internal_function.
28916 * malloc/mtrace.c (tr_where): Likewise.
28917
28918 2017-08-31 Florian Weimer <fweimer@redhat.com>
28919
28920 * include/rpc/pmap_clnt.h (__get_socket): Remove
28921 internal_function.
28922 * sunrpc/auth_des.c (synchronize): Likewise.
28923 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
28924 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
28925 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
28926 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
28927 (key_call): Likewise.
28928 * sunrpc/pm_getport.c (__get_socket): Likewise.
28929 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
28930 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
28931 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
28932 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
28933 (invalidate): Likewise.
28934 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
28935 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
28936 (set_input_fragment, get_input_bytes): Likewise.
28937
28938 2017-08-31 Florian Weimer <fweimer@redhat.com>
28939
28940 * malloc/malloc.c (_int_free): Remove locked variable and related
28941 asserts.
28942
28943 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
28944
28945 [BZ #22051]
28946 * Makerules (build-module-helper-objlist): Filter out
28947 $(elf-objpfx)sofini.os.
28948 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
28949 needed.
28950
28951 2017-08-31 Florian Weimer <fweimer@redhat.com>
28952
28953 * libio/fcloseall.c: Assume weak_alias is defined.
28954 * libio/feof.c: Likewise.
28955 * libio/fileno.c: Likewise.
28956 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
28957 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
28958 definitions.
28959 (_IO_file_open): Call __open directly.
28960 (_IO_new_file_sync): Assume ESPIPE is defined.
28961 (_IO_file_seekoff_maybe_mmap): Call __read directly.
28962 (_IO_new_file_write): Call __write directly.
28963 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
28964 * libio/ftello64.c (__ftello64): Assume EIO is defined.
28965 * libio/genops.c: Assume _LIBC is defined.
28966 (save_for_backup): Remove internal_function.
28967 * libio/getc.c: Assume weak_alias is defined.
28968 * libio/getwc.c: Likewise.
28969 * libio/iofclose.c: Assume _LIBC is defined.
28970 * libio/iofdopen.c: Likewise.
28971 (_IO_fcntl): Remove macro definition.
28972 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
28973 Call __fcntl directly.
28974 * libio/iofflush.c: Assume weak_alias is defined.
28975 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
28976 defined.
28977 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
28978 * libio/iofgets.c: Likewise.
28979 * libio/iofopen.c: Assume _LIBC is defined.
28980 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
28981 * libio/iofputs.c: Assume weak_alias is defined.
28982 * libio/iofread.c: Likewise.
28983 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
28984 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
28985 * libio/ioftell.c: Assume weak_alias is defined.
28986 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
28987 * libio/iofwide.c: Assume _LIBC is defined.
28988 (_IO_fwide): Drop SHARED conditional because it is implied by
28989 SHLIB_COMPAT.
28990 * libio/iofwrite.c: Assume weak_alias is defined.
28991 * libio/iogetdelim.c: Likewise.
28992 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
28993 * libio/iogetwline.c (wmemcpy): Remove macro definition.
28994 (_IO_getwline): Call __wmemcpy directly.
28995 * libio/iopopen.c: Assume _LIBC is defined.
28996 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
28997 (_IO_close): Remove macro definitions.
28998 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
28999 _exit directly.
29000 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29001 directly.
29002 * libio/ioputs.c: Assume weak_alias is defined.
29003 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29004 * libio/iosetbuffer.c: Assume weak_alias is defined.
29005 * libio/iosetvbuf.c: Likewise.
29006 * libio/ioungetc.c: Likewise.
29007 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29008 libc_hidden_def, libc_hidden_weak, NULL are defined.
29009 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29010 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29011 defined.
29012 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29013 definitions.
29014 (_IO_old_file_init_internal): Drop SHARED conditional because it
29015 is implied by SHLIB_COMPAT.
29016 (_IO_old_file_fopen): Call __open directly.
29017 (_IO_old_file_sync): Assume ESPIPE is defined.
29018 (_IO_old_file_write): Call __write directly.
29019 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29020 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29021 Call __fcntl directly.
29022 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29023 (_IO_old_fgetpos): Assume EIO is defined.
29024 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29025 (_IO_old_fgetpos64): Assume EIO is defined.
29026 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29027 (_IO_old_fsetpos): Assume EIO is defined.
29028 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29029 (_IO_old_fsetpos64): Assume EIO is defined.
29030 * libio/oldiopopen.c: Assume _LIBC is defined.
29031 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29032 (_IO_close): Remove macro definitions.
29033 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29034 directly.
29035 (_IO_old_proc_close): Call __close, __waitpid directly.
29036 * libio/put.c: Assume weak_alias is defined.
29037 * libio/stdfiles.c: Assume _LIBC is defined.
29038 * libio/stdio.c: Likewise.
29039 * libio/wfileops.c: Likewise.
29040 (_IO_wfile_sync): Assume ESPIPE is defined.
29041 * libio/wgenops.c: Assume _LIBC is defined.
29042 (save_for_wbackup): Remove internal_function.
29043
29044 2017-08-31 Florian Weimer <fweimer@redhat.com>
29045
29046 * malloc/malloc.c (top_check): Change return type to void. Remove
29047 internal_function.
29048 * malloc/hooks.c (top_check): Likewise.
29049 (malloc_check, realloc_check, memalign_check): Adjust.
29050
29051 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29052
29053 [BZ #21457]
29054 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29055 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29056 sigcontext and namespace requirements.
29057 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29058 * sysdeps/m68k/sys/ucontext.h: Likewise.
29059 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29060 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29061 <bits/sigcontext.h>.
29062 (__ctx): Define earlier.
29063 (mcontext_t): Define structure contents rather than using struct
29064 sigcontext.
29065 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29066 __glibc_reserved1 instead of __reserved.
29067 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29068 <bits/sigcontext.h>.
29069 (__ctx): Define earlier.
29070 (mcontext_t): Define structure contents rather than using struct
29071 sigcontext.
29072 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29073 mcontext_t instead of struct sigcontext.
29074 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29075 <bits/sigcontext.h>.
29076 (__ctx): Define earlier.
29077 (mcontext_t): Define structure contents rather than using struct
29078 sigcontext.
29079 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29080 <bits/sigcontext.h>.
29081 (__ctx): Define earlier.
29082 (mcontext_t): Define structure contents rather than using struct
29083 sigcontext.
29084 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29085 mcontext_t instead of struct sigcontext.
29086 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29087 mcontext_t instead of struct sigcontext.
29088 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29089 <bits/sigcontext.h>.
29090 (__ctx): New macro.
29091 (struct __ia64_fpreg_mcontext): New type.
29092 (mcontext_t): Define structure contents rather than using struct
29093 sigcontext.
29094 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29095 (uc_sigmask): Define using __ctx.
29096 (uc_stack): Likewise.
29097 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29098 <bits/sigcontext.h>.
29099 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29100 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29101 <bits/sigcontext.h>.
29102 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29103 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29104 <bits/sigcontext.h>.
29105 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29106 <bits/sigcontext.h>.
29107 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29108 <bits/sigcontext.h>.
29109 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29110 <bits/sigcontext.h>.
29111 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29112 <bits/sigcontext.h>.
29113 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29114 <bits/sigcontext.h>.
29115 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29116 <bits/sigcontext.h>.
29117 (__ctx): Define earlier.
29118 (mcontext_t): Define structure contents rather than using struct
29119 sigcontext.
29120 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29121 <bits/sigcontext.h>. Include <bits/types.h>.
29122 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29123 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29124 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29125 (test-xfail-UNIX98/signal.h/conform): Likewise.
29126 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29127 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29128 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29129 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29130 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29131 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29132 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29133 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29134 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29135
29136 2017-08-30 Florian Weimer <fweimer@redhat.com>
29137
29138 * malloc/dynarray_emplace_enlarge.c
29139 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29140 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29141 * malloc/tst-dynarray.c (test_long_overflow): New function.
29142 (do_test): Call it.
29143
29144 2017-08-30 Florian Weimer <fweimer@redhat.com>
29145
29146 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29147 (set_arena_corrupt): Remove definitions.
29148 (mtrim): Do not check for corrupt arena.
29149 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29150 Likewise.
29151
29152 2017-08-30 Florian Weimer <fweimer@redhat.com>
29153
29154 [BZ #21754]
29155 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29156 check_action.
29157 (ptmalloc_init): Do not set or use check_action.
29158 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29159 call to malloc_printerr. Remove return statement.
29160 (free_check): Likewise. Remove arena unlock.
29161 (top_check): Update comment. Adjust call to malloc_printerr.
29162 Remove heap repair code.
29163 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29164 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29165 (sysmalloc): Adjust call to malloc_printerr.
29166 (munmap_chunk, __libc_realloc): Likewise. Remove return
29167 statement.
29168 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29169 Remove errout label and corresponding gotos.
29170 (_int_free): Likewise. Remove arena unlock.
29171 (do_set_mallopt_check): Do not set check_action.
29172 (malloc_printerr): Adjust parameter list. Do not mark arena as
29173 corrupt.
29174 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29175 comment.
29176 * manual/probes.texi (Memory Allocation Probes): Remove
29177 memory_mallopt_check_action.
29178
29179 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29180
29181 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29182 Use pointer to uint64_t instead of long int for sp.
29183
29184 2017-08-30 Florian Weimer <fweimer@redhat.com>
29185
29186 [BZ #21754]
29187 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29188 without printing a backtrace. Do not leak any information in the
29189 error message.
29190 * manual/memory.texi (Heap Consistency Checking): Update.
29191 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29192
29193 2017-08-30 Florian Weimer <fweimer@redhat.com>
29194
29195 Do not scale NPTL tests with available number of CPUs.
29196 * nptl/tst-cond16.c (count): Set to constant value of 8.
29197 * nptl/tst-cond18.c (count): Likewise.
29198
29199 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29200
29201 [BZ #22035]
29202 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29203 Define to take a second argument that is a macro that
29204 concatentates a suffix, not the suffix itself.
29205 (__CONCAT_d): New macro.
29206 (__CONCAT_f): Likewise.
29207 (__CONCAT_l): Likewise.
29208
29209 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29210
29211 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29212 by child.
29213
29214 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29215 Aurelien Jarno <aurelien@aurel32.net>
29216 Maciej W. Rozycki <macro@imgtec.com>
29217
29218 [BZ #21956]
29219 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29220 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29221 `mips16-syscall6' and `mips16-syscall7'.
29222 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29223 (CFLAGS-mips16-syscall7.c): Remove.
29224 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29225 Remove `__mips16_syscall5', `__mips16_syscall6' and
29226 `__mips16_syscall7'.
29227 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29228 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29229 `__mips_syscall_return'.
29230 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29231 (__mips16_syscall1): Likewise.
29232 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29233 (__mips16_syscall2): Likewise.
29234 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29235 (__mips16_syscall3): Likewise.
29236 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29237 (__mips16_syscall4): Likewise.
29238 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29239 Remove.
29240 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29241 Remove.
29242 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29243 Remove.
29244 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29245 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29246 `__mips16_syscall5'. Remove prototype.
29247 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29248 `__mips16_syscall6'. Remove prototype.
29249 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29250 `__mips16_syscall7'. Remove prototype.
29251 (__nomips16, __mips16_syscall_return): Move to...
29252 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29253 (__nomips16, __mips_syscall_return): ... here.
29254 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29255 `__mips16_syscall_return' to `__mips_syscall_return'.
29256 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29257 `internal_syscall##nr'.
29258 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29259 `internal_syscall##nr'.
29260 (FORCE_FRAME_POINTER): Remove.
29261 (__mips_syscall5): New prototype.
29262 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29263 (__mips_syscall6): New prototype.
29264 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29265 (__mips_syscall7): New prototype.
29266 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29267 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29268 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29269 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29270 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29271 (sysdep_routines): Add libc-do-syscall.
29272 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29273 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29274
29275 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29276
29277 [BZ #21672]
29278 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29279 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29280 (advise_stack_range): New function.
29281 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29282 stack non required to advise_stack_range at allocatestack.c
29283
29284 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29285
29286 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29287
29288 2017-08-29 Florian Weimer <fweimer@redhat.com>
29289
29290 [BZ #22026]
29291 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29292 __end_fct. Mangle __end_fct after setting it to NULL.
29293 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29294 (modules-names, modules-names-tests): Add
29295 tst-gconv-init-failure-mod.
29296 (gconv-modules): New target.
29297 (tst-gconv-init-failure-mod.so): Link against libsupport.
29298 (tst-gconv-init-failure): Depend on gconv-modules,
29299 tst-gconv-init-failure-mod.so.
29300 * iconv/tst-gconv-init-failure-mod.c: New file.
29301 * iconv/tst-gconv-init-failure.c: Likewise.
29302 * iconv/test-gconv-modules: Likewise.
29303
29304 2017-08-29 Florian Weimer <fweimer@redhat.com>
29305
29306 [BZ #22025]
29307 * iconv/gconv_db.c (free_derivation): Remove redundant
29308 parentheses.
29309 (gen_steps): Unconditionally mangle __btowc_fct after
29310 initialization.
29311 (increment_counter): Likewise. Do not call init_fct for internal
29312 modules.
29313
29314 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29315
29316 [BZ #22028]
29317 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29318 (_MSUF_): Remove macro.
29319 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29320 Likewise.
29321 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29322 (__REDIRFROM_X): New macro.
29323 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29324 Likewise.
29325 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29326 (__REDIRTO_X): Likewise.
29327 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29328 arguments.
29329 (__MATH_REDIRCALL_2): Likewise.
29330 (__MATH_REDIRCALL_INTERNAL): Likewise.
29331 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29332 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29333 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29334 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29335 * math/test-finite-macros.c: New file.
29336 * math/Makefile (tests): Add test-finite-macros.
29337 (CFLAGS-test-finite-macros.c): New variable.
29338
29339 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29340 Jeff Law <law@redhat.com>
29341
29342 [BZ #22025]
29343 Mangle NULL pointers in iconv/gconv.
29344 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29345 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29346 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29347 is non-NULL before demangling the end_fct. Check for NULL
29348 end_fct after demangling.
29349 (__gconv_release_step): Demangle the end_fct before checking
29350 it for NULL. Remove assert on __shlibc_handle != NULL.
29351 (gen_steps): Don't check btowc_fct for NULL before mangling.
29352 Demangle init_fct before checking for NULL.
29353 (increment_counter): Likewise.
29354 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29355 end_fct for NULL before mangling.
29356 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29357 for NULL.
29358
29359 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29360
29361 [BZ #21971]
29362 * locale/iso-639.def: add Morisyen.
29363
29364 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29365
29366 [BZ #21930]
29367 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29368 (iszero): New C++ implementation that does not use
29369 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29370 signaling nans are enabled, since __builtin_types_compatible_p
29371 is a C-only feature.
29372 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29373 defined, include ieee754_float128.h for access to the union and
29374 member ieee854_float128.ieee.
29375 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29376 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29377 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29378 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29379 options of test-math-zero on powerpc64le.
29380
29381 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29382
29383 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29384 Change double to float.
29385
29386 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29387
29388 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29389 unconditional.
29390 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29391 conditional code; define contents only for [LIBM_SVID_COMPAT].
29392
29393 2017-08-28 Florian Weimer <fweimer@redhat.com>
29394
29395 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29396 (abi-lp64_be-options): Remove.
29397 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29398 (abi-hard-options): Likewise.
29399 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29400 (abi-o32_hard-options, abi-o32_soft_2008-options)
29401 (abi-o32_hard_2008-options, abi-n32_soft-options)
29402 (abi-n32_hard-options, abi-n32_soft_2008-options)
29403 (abi-n32_hard_2008-options, abi-n64_soft-options)
29404 (abi-n64_hard-options, abi-n64_soft_2008-options)
29405 (abi-n64_hard_2008-options): Likewise.
29406 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29407 (abi-64-v1-options, abi-64-v2-options): Likewise.
29408 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29409 (abi-64-options): Likewise.
29410 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29411 (abi-64-options): Likewise.
29412 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29413 (abi-64-options): Likewise.
29414 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29415 (abi-64-options, abi-x32-options): Likewise.
29416
29417 2017-08-28 Florian Weimer <fweimer@redhat.com>
29418
29419 Store supported list of SYS_* system calls in the source tree.
29420 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29421 (bits/syscall.h): Generate from list file.
29422 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29423 [$(subdir) = misc] (tests): Add tst-syscall-list.
29424 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29425 [$(subdir) = misc] (tst-syscall-list-macros.list)
29426 [$(subdir) = misc] (tst-syscall-list-nr.list)
29427 (tst-syscall-list-sys.list): Helper targets for new
29428 tst-syscall-list test.
29429 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29430 tst-syscall-list.sh.
29431 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29432 target. Do not include bits/syscall.d.
29433 [$(subdir) = misc] (generated): Do not update.
29434 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29435 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29436 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29437 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29438
29439 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29440
29441 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29442 (tst-cxa_atexit, tst-on_exit): Likewise.
29443 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29444 tst-cxa_atexit, and tst-on_exit.
29445 * stdlib/tst-atexit-common.c: New file.
29446 * stdlib/tst-atexit.c: New file.
29447 * stdlib/tst-at_quick_exit.c: New file.
29448 * stdlib/tst-cxa_atexit.c: New file.
29449 * stdlib/tst-on_exit.c: New file.
29450
29451 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29452
29453 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29454 * mach/stack_chk_fail_local.c: New file.
29455 * hurd/stack_chk_fail_local.c: New file.
29456 * mach/Machrules ($(interface-library)-routines): Add
29457 stack_chk_fail_local.
29458 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29459 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29460 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29461 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29462 * hurd/Makefile (CFLAGS-hurdstartup.o,
29463 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29464
29465 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29466
29467 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29468 (index_cpu_*, index_arch_*): Removed.
29469
29470 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29471
29472 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29473 Use uint64_t instead of unsigned long.
29474
29475 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29476
29477 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29478 [__HAVE_DISTINCT_FLOAT128].
29479
29480 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29481 of <bits/math-finite.h>.
29482 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29483 inclusion of <bits/math-finite.h>.
29484 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29485 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29486 __NO_LONG_DOUBLE_MATH].
29487 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29488 (__MATH_REDIRCALL_2): Likewise.
29489 (__MATH_REDIRCALL_INTERNAL): Likewise.
29490 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29491 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29492 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29493
29494 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29495 Remove file.
29496 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29497 Likewise.
29498 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29499 Likewise.
29500 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29501 Likewise.
29502 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29503 Likewise.
29504 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29505 Likewise.
29506 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29507 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29508 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29509 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29510 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29511 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29512 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29513 w_sqrtf_compat-ppc32.
29514
29515 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29516
29517 * math/math.h [defined __cplusplus] (issignaling): In the long
29518 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29519 is not defined. Call __issignaling, otherwise.
29520
29521 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29522
29523 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29524 syscall definitions and replace __builtin_expect with __glibc_likely.
29525 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29526 syscall.
29527 (SYSCALL_CANCELLABLE): Removedefinition
29528 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29529 definition.
29530 (PSEUDO_END): Likewise.
29531 [IS_IN (libpthread)] (CENABLE): Likewise.
29532 [IS_IN (libpthread)] (CDISABLE): Likewise.
29533 [IS_IN (libc)] (CENABLE): Likewise.
29534 [IS_IN (libc)] (CENABLE): Likewise.
29535 [IS_IN (librt)] (CDISABLE): Likewise.
29536 [IS_IN (librt)] (CDISABLE): Likewise.
29537 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29538 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29539 definition.
29540 (PSEUDO_END): Likewise.
29541 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29542 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29543 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29544 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29545 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29546 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29547 (CENABLE): Likewise.
29548 (CDISABLE): Likewise.
29549 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29550 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29551 defintion.
29552 (PSEUDO_END): Likewise.
29553 [IS_IN (libpthread)] (CENABLE): Likewise.
29554 [IS_IN (libpthread)] (CDISABLE): Likewise.
29555 [IS_IN (libc)] (CENABLE): Likewise.
29556 [IS_IN (libc)] (CENABLE): Likewise.
29557 [IS_IN (librt)] (CDISABLE): Likewise.
29558 [IS_IN (librt)] (CDISABLE): Likewise.
29559 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29560 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29561 definition.
29562 (PSEUDO_END): Likewise.
29563 [IS_IN (libpthread)] (CENABLE): Likewise.
29564 [IS_IN (libpthread)] (CDISABLE): Likewise.
29565 [IS_IN (libc)] (CENABLE): Likewise.
29566 [IS_IN (libc)] (CENABLE): Likewise.
29567 [IS_IN (librt)] (CDISABLE): Likewise.
29568 [IS_IN (librt)] (CDISABLE): Likewise.
29569 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29570 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29571 definition.
29572 (PSEUDO_END): Likewise.
29573 [IS_IN (libpthread)] (CENABLE): Likewise.
29574 [IS_IN (libpthread)] (CDISABLE): Likewise.
29575 [IS_IN (libc)] (CENABLE): Likewise.
29576 [IS_IN (libc)] (CENABLE): Likewise.
29577 [IS_IN (librt)] (CDISABLE): Likewise.
29578 [IS_IN (librt)] (CDISABLE): Likewise.
29579 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29580 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29581 definition.
29582 (PSEUDO_END): Likewise.
29583 [IS_IN (libpthread)] (CENABLE): Likewise.
29584 [IS_IN (libpthread)] (CDISABLE): Likewise.
29585 [IS_IN (libc)] (CENABLE): Likewise.
29586 [IS_IN (libc)] (CENABLE): Likewise.
29587 [IS_IN (librt)] (CDISABLE): Likewise.
29588 [IS_IN (librt)] (CDISABLE): Likewise.
29589 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29590 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29591 definition.
29592 (PSEUDO_END): Likewise.
29593 [IS_IN (libpthread)] (CENABLE): Likewise.
29594 [IS_IN (libpthread)] (CDISABLE): Likewise.
29595 [IS_IN (libc)] (CENABLE): Likewise.
29596 [IS_IN (libc)] (CENABLE): Likewise.
29597 [IS_IN (librt)] (CDISABLE): Likewise.
29598 [IS_IN (librt)] (CDISABLE): Likewise.
29599 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29600 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29601 definition.
29602 (PSEUDO_END): Likewise.
29603 [IS_IN (libpthread)] (CENABLE): Likewise.
29604 [IS_IN (libpthread)] (CDISABLE): Likewise.
29605 [IS_IN (libc)] (CENABLE): Likewise.
29606 [IS_IN (libc)] (CENABLE): Likewise.
29607 [IS_IN (librt)] (CDISABLE): Likewise.
29608 [IS_IN (librt)] (CDISABLE): Likewise.
29609 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29610 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29611 Remove definition.
29612 (PSEUDO_END): Likewise.
29613 [IS_IN (libpthread)] (CENABLE): Likewise.
29614 [IS_IN (libpthread)] (CDISABLE): Likewise.
29615 [IS_IN (libc)] (CENABLE): Likewise.
29616 [IS_IN (libc)] (CENABLE): Likewise.
29617 [IS_IN (librt)] (CDISABLE): Likewise.
29618 [IS_IN (librt)] (CDISABLE): Likewise.
29619 (SINGLE_THREAD_P): Likewise.
29620 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29621 definition.
29622 (PSEUDO_END): Likewise.
29623 [IS_IN (libpthread)] (CENABLE): Likewise.
29624 [IS_IN (libpthread)] (CDISABLE): Likewise.
29625 [IS_IN (libc)] (CENABLE): Likewise.
29626 [IS_IN (libc)] (CENABLE): Likewise.
29627 [IS_IN (librt)] (CDISABLE): Likewise.
29628 [IS_IN (librt)] (CDISABLE): Likewise.
29629 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29630 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29631 definition.
29632 (PSEUDO_END): Likewise.
29633 [IS_IN (libpthread)] (CENABLE): Likewise.
29634 [IS_IN (libpthread)] (CDISABLE): Likewise.
29635 [IS_IN (libc)] (CENABLE): Likewise.
29636 [IS_IN (libc)] (CENABLE): Likewise.
29637 [IS_IN (librt)] (CDISABLE): Likewise.
29638 [IS_IN (librt)] (CDISABLE): Likewise.
29639 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29640 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29641 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29642 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29643 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29644 definition.
29645 (PSEUDO_END): Likewise.
29646 [IS_IN (libpthread)] (CENABLE): Likewise.
29647 [IS_IN (libpthread)] (CDISABLE): Likewise.
29648 [IS_IN (libc)] (CENABLE): Likewise.
29649 [IS_IN (libc)] (CENABLE): Likewise.
29650 [IS_IN (librt)] (CDISABLE): Likewise.
29651 [IS_IN (librt)] (CDISABLE): Likewise.
29652 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29653 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29654 definition.
29655 (PSEUDO_END): Likewise.
29656 [IS_IN (libpthread)] (CENABLE): Likewise.
29657 [IS_IN (libpthread)] (CDISABLE): Likewise.
29658 [IS_IN (libc)] (CENABLE): Likewise.
29659 [IS_IN (libc)] (CENABLE): Likewise.
29660 [IS_IN (librt)] (CDISABLE): Likewise.
29661 [IS_IN (librt)] (CDISABLE): Likewise.
29662 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29663 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29664 definition.
29665 (PSEUDO_END): Likewise.
29666 [IS_IN (libpthread)] (CENABLE): Likewise.
29667 [IS_IN (libpthread)] (CDISABLE): Likewise.
29668 [IS_IN (libc)] (CENABLE): Likewise.
29669 [IS_IN (libc)] (CENABLE): Likewise.
29670 [IS_IN (librt)] (CDISABLE): Likewise.
29671 [IS_IN (librt)] (CDISABLE): Likewise.
29672 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29673 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29674 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29675 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29676 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29677 definition.
29678 (PSEUDO_END): Likewise.
29679 [IS_IN (libpthread)] (CENABLE): Likewise.
29680 [IS_IN (libpthread)] (CDISABLE): Likewise.
29681 [IS_IN (libc)] (CENABLE): Likewise.
29682 [IS_IN (libc)] (CENABLE): Likewise.
29683 [IS_IN (librt)] (CDISABLE): Likewise.
29684 [IS_IN (librt)] (CDISABLE): Likewise.
29685 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29686 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29687 definition.
29688 (PSEUDO_END): Likewise.
29689 [IS_IN (libpthread)] (CENABLE): Likewise.
29690 [IS_IN (libpthread)] (CDISABLE): Likewise.
29691 [IS_IN (libc)] (CENABLE): Likewise.
29692 [IS_IN (libc)] (CENABLE): Likewise.
29693 [IS_IN (librt)] (CDISABLE): Likewise.
29694 [IS_IN (librt)] (CDISABLE): Likewise.
29695 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29696
29697 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29698
29699 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29700
29701 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29702
29703 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29704
29705 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29706
29707 [BZ #21982]
29708 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29709 middle and outer with size_t instead of int. Repleace %d and
29710 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29711 "MAX (outer, nchars - 64)" to support unsigned outer and
29712 nchars. Also exit loop when outer == 0.
29713
29714 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29715
29716 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29717 * include/signal.h (__sigsuspend_nocancel): Likewise.
29718 * include/time.h (__nanosleep_nocancel): Likewise.
29719 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29720 * login/utmp_file.c: Include non cancellable syscall header.
29721 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29722 prototype.
29723
29724 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29725
29726 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29727 .byte sequences with AVX512F instructions.
29728 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29729 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29730 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29731 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29732 Likewise.
29733 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29734 Likewise.
29735
29736 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29737 Steve Ellcey <sellcey@cavium.com>
29738
29739 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29740 Use PTR_REG macro in cmp instruction.
29741
29742 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29743
29744 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29745 Change the return type of the ifunc resolver to match the return
29746 type of the target function.
29747
29748 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29749
29750 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29751 (preadv64): Likewise.
29752 (pwrite64(: Likewise.
29753 (pwritev64): Likewise.
29754
29755 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29756 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29757 (LOAD_ARGS_0): Likewise.
29758 (LOAD_ARGS_1): Likewise.
29759 (LOAD_ARGS_2): Likewise.
29760 (LOAD_ARGS_3): Likewise.
29761 (LOAD_ARGS_4): Likewise.
29762 (LOAD_ARGS_5): Likewise.
29763 (LOAD_ARGS_6): Likewise.
29764 (LOAD_REGS_0): Likewise.
29765 (LOAD_REGS_1): Likewise.
29766 (LOAD_REGS_2): Likewise.
29767 (LOAD_REGS_3): Likewise.
29768 (LOAD_REGS_4): Likewise.
29769 (LOAD_REGS_5): Likewise.
29770 (LOAD_REGS_6): Likewise.
29771 (ASM_ARGS_0): Likewise.
29772 (ASM_ARGS_1): Likewise.
29773 (ASM_ARGS_2): Likewise.
29774 (ASM_ARGS_3): Likewise.
29775 (ASM_ARGS_4): Likewise.
29776 (ASM_ARGS_5): Likewise.
29777 (ASM_ARGS_6): Likewise.
29778 (LOAD_ARGS_TYPES_1): Likewise.
29779 (LOAD_ARGS_TYPES_2): Likewise.
29780 (LOAD_ARGS_TYPES_3): Likewise.
29781 (LOAD_ARGS_TYPES_4): Likewise.
29782 (LOAD_ARGS_TYPES_5): Likewise.
29783 (LOAD_ARGS_TYPES_6): Likewise.
29784 (LOAD_REGS_TYPES_1): Likewise.
29785 (LOAD_REGS_TYPES_2): Likewise.
29786 (LOAD_REGS_TYPES_3): Likewise.
29787 (LOAD_REGS_TYPES_4): Likewise.
29788 (LOAD_REGS_TYPES_5): Likewise.
29789 (LOAD_REGS_TYPES_6): Likewise.
29790 (TYPEFY): New define.
29791 (ARGIFY): Likewise.
29792 (internal_syscall0): Likewise.
29793 (internal_syscall1): Likewise.
29794 (internal_syscall2): Likewise.
29795 (internal_syscall3): Likewise.
29796 (internal_syscall4): Likewise.
29797 (internal_syscall5): Likewise.
29798 (internal_syscall6): Likewise.
29799 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29800 (INTERNAL_SYSCALL_NCS): Remove define.
29801 (internal_syscall1): Add define.
29802
29803 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29804
29805 * math/w_remainder_compat.c: Remove duplicate inclusion of
29806 math-svid-compat.h.
29807 * math/w_remainderf_compat.c: Likewise.
29808 * math/w_remainderl_compat.c: Likewise.
29809
29810 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29811
29812 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29813
29814 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29815
29816 [BZ #21684]
29817 * math/tgmath.h (__floating_type): Simplify definitions.
29818 (__real_integer_type): New macro.
29819 (__complex_integer_type): Likewise.
29820 (__expr_is_real): Likewise.
29821 (__tgmath_real_type_sub): Update comment to describe handling of
29822 complex types.
29823 (__tgmath_complex_type_sub): New macro.
29824 (__tgmath_complex_type): Likewise.
29825 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29826 (__TGMATH_CF128): Use __expr_is_real.
29827 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29828 __expr_is_real.
29829 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29830 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29831 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29832 integer types.
29833
29834 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29835
29836 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29837 macro.
29838 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29839 alias.
29840 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29841 Likewise.
29842
29843 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29844 nanosleep_not_cancel with __nanosleep_nocancel.
29845 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29846 (__nanosleep_nocancel): New macro.
29847 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29848 function.
29849 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29850 macro.
29851 (__nanosleep_nocancel): New prototype.
29852
29853 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29854 pause_not_cancel with __pause_nocancel.
29855 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29856 (__pause_nocancel): New macro.
29857 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29858 macro.
29859 (__pause_nocancel): New prototype.
29860 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29861
29862 2017-08-22 Martin Sebor <msebor@redhat.com>
29863
29864 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29865 to return a pointer to the same type as the target function.
29866
29867 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29868
29869 [BZ #18822]
29870 [BZ #21986]
29871 * include/printf.h (__printf_fphex): Add attribute_hidden.
29872 (__guess_grouping): New prototype.
29873 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29874 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29875 libc_hidden_proto and libc_hidden_def.
29876 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29877 (__vstrfmon_l): Remove the third argument passed to
29878 __guess_grouping.
29879
29880 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29881
29882 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
29883 definition for issignaling that does not rely on __MATH_TG,
29884 since __MATH_TG uses __builtin_types_compatible_p, which is only
29885 available in C mode.
29886 (CFLAGS-test-math-issignaling.cc): New variable.
29887 * math/Makefile [CXX] (tests): Add test-math-issignaling.
29888 * math/test-math-issignaling.cc: New test for C++ implementation
29889 of type-generic issignaling.
29890 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29891 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
29892 options of test-math-issignaling on powerpc64le.
29893
29894 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29895
29896 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29897 building libc.a.
29898 (hidden_proto): Likewise.
29899 (hidden_tls_proto): Likewise.
29900 (__hidden_proto): Likewise.
29901
29902 2017-08-22 Florian Weimer <fweimer@redhat.com>
29903
29904 math: Statically link tests of internal functionality.
29905 * math/Makefile (tests): Remove atest-exp, atest-sincos,
29906 atest-exp2.
29907 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
29908 (gmp-objs): Remove assignment.
29909 (atest-exp, atest-sincos, atest-exp2): Remove targets.
29910
29911 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29912
29913 [BZ #21987]
29914 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
29915 and copy to ...
29916 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
29917 ... here.
29918 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
29919 ... and here.
29920
29921 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
29922 variable definitions above inclusion of ../Rules.
29923
29924 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29925
29926 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
29927 case calling __builtin_unreachable.
29928
29929 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29930
29931 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
29932 __waitpid_nocancel.
29933 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
29934 (__waitpid_nocancel): New macro.
29935 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
29936 macro.
29937 (__waitpid_nocancel): Replace macro with a function.
29938 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
29939 function.
29940
29941 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
29942 __fcntl_nocancel.
29943 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
29944 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
29945
29946 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
29947 __writev_nocancel_nostatus.
29948 (write_call_graph): Likewise.
29949 (write_bb_counts): Likewise.
29950 * resolv/herror.c (herror): Likewise.
29951 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
29952 macro.
29953 (__writev_nocancel_nostatus): New macro.
29954 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
29955 Remove macro.
29956 (__writev_nocancel_nostatus): New function.
29957
29958 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29959
29960 Revert:
29961 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29962
29963 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29964 building libc.a.
29965 (hidden_proto): Likewise.
29966 (hidden_tls_proto): Likewise.
29967 (__hidden_proto): Likewise.
29968
29969 [BZ #21973]
29970 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
29971 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
29972 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
29973 Likewise.
29974 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
29975 Likewise.
29976 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
29977 Likewise.
29978 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
29979 Likewise.
29980 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
29981 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
29982 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
29983 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
29984 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
29985 GLIBC_2.0 sqrtl symbol.
29986
29987 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
29988 [__USE_MISC] (_LIB_VERSION): Likewise.
29989 [__USE_MISC] (struct exception): Likewise.
29990 [__USE_MISC] (matherr): Likewise.
29991 [__USE_MISC] (DOMAIN): Likewise.
29992 [__USE_MISC] (SING): Likewise.
29993 [__USE_MISC] (OVERFLOW): Likewise.
29994 [__USE_MISC] (UNDERFLOW): Likewise.
29995 [__USE_MISC] (TLOSS): Likewise.
29996 [__USE_MISC] (PLOSS): Likewise.
29997 [__USE_MISC] (HUGE): Likewise.
29998 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
29999 * math/math-svid-compat.h: New file.
30000 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30001 and matherrl.
30002 * include/math.h [!_ISOMAC] (__matherr): Remove.
30003 * manual/arith.texi (FP Exceptions): Do not document matherr.
30004 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30005 (tests-internal): New variable.
30006 (install-lib): Do not add libieee.a.
30007 (non-lib.a): Likewise.
30008 (extra-objs): Do not add libieee.a and ieee-math.o.
30009 (CPPFLAGS-s_lib_version.c): Remove variable.
30010 ($(objpfx)libieee.a): Remove rule.
30011 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30012 * math/ieee-math.c: Remove.
30013 * math/libm-test-support.c (matherr): Remove.
30014 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30015 and license notices. Include <math-svid-compat.h> and
30016 <shlib-compat.h>.
30017 (matherr): Undefine as macro. Use compat_symbol_reference.
30018 (_LIB_VERSION): Likewise.
30019 * math/test-matherr-2.c: New file.
30020 * math/test-matherr-3.c: Likewise.
30021 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30022 declaration.
30023 (__kernel_standard_f): Likewise.
30024 (__kernel_standard_l): Likewise.
30025 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30026 <math_private.h>. Include <math-svid-compat.h>.
30027 (_LIB_VERSION): Undefine as macro.
30028 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30029 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30030 [LIBM_SVID_COMPAT], use compat_symbol.
30031 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30032 <math_private.h>. Include <math-svid-compat.h>.
30033 (matherr): Undefine as macro.
30034 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30035 compat_symbol.
30036 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30037 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30038 compat_symbol_reference.
30039 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30040 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30041 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30042 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30043 (MATHERR_D): Remove declaration.
30044 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30045 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30046 [LIBM_BUILD] (pmatherrf): Likewise.
30047 [LIBM_BUILD] (pmatherr): Likewise.
30048 [LIBM_BUILD] (pmatherrl): Likewise.
30049 (DOMAIN): Likewise.
30050 (SING): Likewise.
30051 (OVERFLOW): Likewise.
30052 (UNDERFLOW): Likewise.
30053 (TLOSS): Likewise.
30054 (PLOSS): Likewise.
30055 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30056 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30057 compat_symbol.
30058 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30059 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30060 compat_symbol.
30061 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30062 * math/w_acos_compat.c: Likewise.
30063 * math/w_acosf_compat.c: Likewise.
30064 * math/w_acosh_compat.c: Likewise.
30065 * math/w_acoshf_compat.c: Likewise.
30066 * math/w_acoshl_compat.c: Likewise.
30067 * math/w_acosl_compat.c: Likewise.
30068 * math/w_asin_compat.c: Likewise.
30069 * math/w_asinf_compat.c: Likewise.
30070 * math/w_asinl_compat.c: Likewise.
30071 * math/w_atan2_compat.c: Likewise.
30072 * math/w_atan2f_compat.c: Likewise.
30073 * math/w_atan2l_compat.c: Likewise.
30074 * math/w_atanh_compat.c: Likewise.
30075 * math/w_atanhf_compat.c: Likewise.
30076 * math/w_atanhl_compat.c: Likewise.
30077 * math/w_cosh_compat.c: Likewise.
30078 * math/w_coshf_compat.c: Likewise.
30079 * math/w_coshl_compat.c: Likewise.
30080 * math/w_exp10_compat.c: Likewise.
30081 * math/w_exp10f_compat.c: Likewise.
30082 * math/w_exp10l_compat.c: Likewise.
30083 * math/w_exp2_compat.c: Likewise.
30084 * math/w_exp2f_compat.c: Likewise.
30085 * math/w_exp2l_compat.c: Likewise.
30086 * math/w_fmod_compat.c: Likewise.
30087 * math/w_fmodf_compat.c: Likewise.
30088 * math/w_fmodl_compat.c: Likewise.
30089 * math/w_hypot_compat.c: Likewise.
30090 * math/w_hypotf_compat.c: Likewise.
30091 * math/w_hypotl_compat.c: Likewise.
30092 * math/w_j0_compat.c: Likewise.
30093 * math/w_j0f_compat.c: Likewise.
30094 * math/w_j0l_compat.c: Likewise.
30095 * math/w_j1_compat.c: Likewise.
30096 * math/w_j1f_compat.c: Likewise.
30097 * math/w_j1l_compat.c: Likewise.
30098 * math/w_jn_compat.c: Likewise.
30099 * math/w_jnf_compat.c: Likewise.
30100 * math/w_jnl_compat.c: Likewise.
30101 * math/w_lgamma_main.c: Likewise.
30102 * math/w_lgamma_r_compat.c: Likewise.
30103 * math/w_lgammaf_main.c: Likewise.
30104 * math/w_lgammaf_r_compat.c: Likewise.
30105 * math/w_lgammal_main.c: Likewise.
30106 * math/w_lgammal_r_compat.c: Likewise.
30107 * math/w_log10_compat.c: Likewise.
30108 * math/w_log10f_compat.c: Likewise.
30109 * math/w_log10l_compat.c: Likewise.
30110 * math/w_log2_compat.c: Likewise.
30111 * math/w_log2f_compat.c: Likewise.
30112 * math/w_log2l_compat.c: Likewise.
30113 * math/w_log_compat.c: Likewise.
30114 * math/w_logf_compat.c: Likewise.
30115 * math/w_logl_compat.c: Likewise.
30116 * math/w_pow_compat.c: Likewise.
30117 * math/w_powf_compat.c: Likewise.
30118 * math/w_powl_compat.c: Likewise.
30119 * math/w_remainder_compat.c: Likewise.
30120 * math/w_remainderf_compat.c: Likewise.
30121 * math/w_remainderl_compat.c: Likewise.
30122 * math/w_scalb_compat.c: Likewise.
30123 * math/w_scalbf_compat.c: Likewise.
30124 * math/w_scalbl_compat.c: Likewise.
30125 * math/w_sinh_compat.c: Likewise.
30126 * math/w_sinhf_compat.c: Likewise.
30127 * math/w_sinhl_compat.c: Likewise.
30128 * math/w_sqrt_compat.c: Likewise.
30129 * math/w_sqrtf_compat.c: Likewise.
30130 * math/w_sqrtl_compat.c: Likewise.
30131 * math/w_tgamma_compat.c: Likewise.
30132 * math/w_tgammaf_compat.c: Likewise.
30133 * math/w_tgammal_compat.c: Likewise.
30134 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30135 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30136 * sysdeps/ieee754/k_standard.c: Likewise.
30137 * sysdeps/ieee754/k_standardf.c: Likewise.
30138 * sysdeps/ieee754/k_standardl.c: Likewise.
30139 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30140 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30141 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30142 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30143 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30144 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30145 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30146 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30147 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30148 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30149 Likewise.
30150 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30151 Likewise.
30152 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30153 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30154 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30155 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30156
30157 2017-08-21 Florian Weimer <fweimer@redhat.com>
30158
30159 [BZ #21864]
30160 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30161 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30162 Move before inclusion of ../Rules.
30163
30164 2017-08-21 Florian Weimer <fweimer@redhat.com>
30165
30166 [BZ #21972]
30167 * assert/assert.h (assert): Use static_cast (bool) for C++.
30168 Use the ternary operator in the warning branch for GNU C.
30169 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30170 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30171 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30172 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30173 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30174
30175 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30176
30177 [BZ #18822]
30178 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30179 (__syscall_clock_gettime): Add attribute_hidden.
30180 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30181 (__start_context): Likewise.
30182
30183 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30184
30185 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30186 building libc.a.
30187 (hidden_proto): Likewise.
30188 (hidden_tls_proto): Likewise.
30189 (__hidden_proto): Likewise.
30190
30191 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30192
30193 * include/libc-symbols.h (attribute_hidden): Enable hidden
30194 visibility in libc.a compiled with PIE.
30195
30196 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30197
30198 [BZ #18822]
30199 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30200 Add attribute_hidden.
30201
30202 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30203
30204 [BZ #21864]
30205 * Makerules (all-nonlib): Add $(others-extras).
30206 * catgets/Makefile (others-extras): New.
30207 * elf/Makefile (others-extras): Likewise.
30208 * nss/Makefile (others-extras): Likewise.
30209
30210 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30211
30212 [BZ #18822]
30213 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30214 * elf/dl-open.c: Include <libc-internal.h>.
30215 (__libc_multiple_libcs): Removed.
30216 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30217 <hp-timing.h>.
30218 * include/libc-internal.h (__libc_multiple_libcs): New.
30219 * misc/sbrk.c: Include <libc-internal.h>.
30220 (__libc_multiple_libcs): Removed.
30221
30222 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30223
30224 [BZ #18822]
30225 * grp/initgroups.c (__nss_group_database): Removed.
30226 (__nss_initgroups_database): Likewise.
30227 * nscd/gai.c (__nss_hosts_database): Likewise.
30228 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30229 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30230 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30231 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30232 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30233 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30234 attribute_hidden.
30235 * nss/nsswitch.c (__nss_database_custom): Define only if
30236 USE_NSCD is defined.
30237 (__nss_configure_lookup): Use __nss_database_custom only if
30238 USE_NSCD is defined.
30239 * nss/nsswitch.h (__nss_database_custom): Declare only if
30240 USE_NSCD is defined. Add attribute_hidden.
30241 (__nss_setent): Add attribute_hidden.
30242 (__nss_endent): Likewise.
30243 (__nss_getent_r): Likewise.
30244 (__nss_getent): Likewise.
30245 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30246
30247 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30248
30249 [BZ #18822]
30250 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30251 libc_hidden_proto and libc_hidden_def.
30252
30253 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30254
30255 [BZ #18822]
30256 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30257 Add libc_hidden_proto.
30258 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30259 Add libc_hidden_def.
30260
30261 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30262
30263 [BZ #21974]
30264 * gmon/Makefile (routines): Remove bb_init_func and
30265 bb_exit_func.
30266 (elide-routines.os): Removed.
30267 * gmon/bb_exit_func.c: Likewise.
30268 * gmon/bb_init_func.c: Likewise.
30269 * include/sys/gmon.h (__bb): Likewise.
30270 (__bb_init_func): Likewise.
30271 (__bb_exit_func): Likewise.
30272 * sysdeps/alpha/bb_init_func.S: Likewise.
30273
30274 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30275
30276 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30277 * include/setjmp.h (____longjmp_chk): Here. Add
30278 attribute_hidden.
30279
30280 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30281
30282 [BZ #18822]
30283 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30284 attribute_hidden.
30285 (__strspn_sse2): Likewise.
30286
30287 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30288
30289 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30290 (close_not_cancel_no_status): Likewise.
30291 (__close_nocancel): New macro.
30292 (__close_nocancel_nostatus): Likewise.
30293 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30294 macro.
30295 (close_not_cancel): Likewise.
30296 (close_not_cancel_no_status): Likewise.
30297 (__close_nocancel): New prototype.
30298 (__close_nocancel_nostatus): New function.
30299 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30300 * catgets/open_catalog.c (__open_catalog): Replace
30301 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30302 * gmon/gmon.c (write_gmon): Likewise.
30303 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30304 * intl/loadmsgcat.c (close): Likewise.
30305 * io/ftw.c (open_dir_stream): Likewise.
30306 (ftw_startup): Likewise.
30307 * libio/fileops.c (_IO_file_open): Likewise.
30308 (_IO_file_close_mmap): Likewise.
30309 (_IO_file_close): Likewise.
30310 * libio/iopopen.c (_IO_dup2): Likewise.
30311 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30312 * locale/loadlocale.c (_nl_load_locale): Likewise.
30313 * login/utmp_file.c (pututline_file): Likewise.
30314 (endutent_file): Likewise.
30315 * misc/daemon.c (daemon): Likewise.
30316 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30317 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30318 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30319 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30320 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30321 * nscd/nscd_helper.c (open_socket): Likewise.
30322 (__nscd_open_socket): Likewise.
30323 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30324 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30325 (__nscd_innetgr): Likewise.
30326 * nss/nss_db/db-open.c (internal_setent): Likewise.
30327 * resolv/res-close.c (__res_iclose): Likewise.
30328 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30329 * sysdeps/posix/closedir.c (__closedir): Likewise.
30330 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30331 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30332 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30333 (opendir_tail): Likewise.
30334 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30335 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30336 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30337 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30338 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30339 (gethostid): Likewise.
30340 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30341 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30342 Likewise.
30343 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30344 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30345 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30346 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30347 Likewise.
30348 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30349 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30350 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30351 Likewise.
30352 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30353 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30354 Likewise.
30355 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30356 Likewise.
30357 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30358 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30359 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30360 __close_nocancel.
30361
30362 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30363 (openat_not_cancel_3): Likewise.
30364 (openat64_not_cancel_3): Likewise).
30365 (openat_not_cancel_3): Likewise).
30366 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30367 macro.
30368 (openat_not_cancel_3): Likewise.
30369 (openat64_not_cancel): Likewise.
30370 (openat64_not_cancel_3): Likewise.
30371 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30372 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30373 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30374 __open{64}_nocancel.
30375 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30376 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30377 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30378
30379 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30380
30381 [BZ #18822]
30382 * include/argz.h (__argz_create_sep): New function prototype.
30383 (__argz_append): Likewise.
30384 (__argz_add): Likewise.
30385 (__argz_add_sep): Likewise.
30386 (__argz_delete): Likewise.
30387 (__argz_insert): Likewise.
30388 (__argz_replace): Likewise.
30389 * string/argz.h (__argz_create_sep): Removed.
30390 (__argz_append): Likewise.
30391 (__argz_add): Likewise.
30392 (__argz_add_sep): Likewise.
30393 (__argz_delete): Likewise.
30394 (__argz_insert): Likewise.
30395 (__argz_replace): Likewise.
30396
30397 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30398
30399 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30400 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30401 (GNU_PROPERTY_STACK_SIZE): Likewie.
30402 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30403 (GNU_PROPERTY_LOPROC): Likewise.
30404 (GNU_PROPERTY_HIPROC): Likewise.
30405 (GNU_PROPERTY_LOUSER): Likewise.
30406 (GNU_PROPERTY_HIUSER): Likewise.
30407 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30408 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30409 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30410 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30411 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30412 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30413 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30414 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30415 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30416 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30417 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30418 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30419 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30420 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30421 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30422 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30423 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30424 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30425 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30426 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30427 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30428 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30429 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30430
30431 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30432
30433 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30434 in C++ mode.
30435
30436 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30437
30438 [BZ #21930]
30439 * math/math.h (isinf): Check if in C or C++ mode before using
30440 __builtin_types_compatible_p, since this is a C mode feature.
30441
30442 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30443
30444 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30445 (__write_nocancel): New macro.
30446 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30447 Rewrite as a function prototype.
30448 (write_not_cancel): Remove macro.
30449 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30450 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30451 (write_gmon): Likewise.
30452 * libio/fileops.c (_IO_new_file_write): Likewise.
30453 * login/utmp_file.c (pututline_file): Likewise.
30454 (updwtmp_file): Likewise.
30455 * stdio-common/psiginfo.c (psiginfo): Likewise.
30456 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30457 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30458 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30459 Likewise.
30460 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30461 Likewise.
30462
30463 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30464 (__read_nocancel): New macro.
30465 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30466 __read_nocancel.
30467 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30468 macro.
30469 (__read_nocancel): New prototype.
30470 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30471 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30472 with __read_nocancel.
30473 * intl/loadmsgcat.c (read): Likewise.
30474 * libio/fileops.c (_IO_file_read): Likewise.
30475 * locale/loadlocale.c (_nl_load_locale): Likewise.
30476 * login/utmp_file.c (getutent_r_file): Likewise.
30477 (internal_getut_r): Likewise.
30478 (getutline_r_file): Likewise.
30479 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30480 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30481 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30482 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30483 Likewise.
30484 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30485 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30486 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30487 Likewise.
30488 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30489 Likewise.
30490 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30491 Likewise.
30492 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30493 Likewise.
30494 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30495
30496 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30497
30498 [BZ #21966]
30499 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30500 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30501 usable.
30502
30503 2017-08-17 DJ Delorie <dj@redhat.com>
30504
30505 * bug17079.c: Update to new test harness.
30506 * test-digits-dots.c: Likewise.
30507 * test-netdb.c: Likewise.
30508 * tst-field.c: Likewise.
30509 * tst-nss-getpwent.c: Likewise.
30510 * tst-nss-static.c: Likewise.
30511 * tst-nss-test1.c: Likewise.
30512 * tst-nss-test2.c: Likewise.
30513 * tst-nss-test3.c: Likewise.
30514 * tst-nss-test4.c: Likewise.
30515 * tst-nss-test5.c: Likewise.
30516
30517 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30518
30519 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30520 (open_not_cancel_2): Likewise.
30521 (open_nocancel): New macro.
30522 (open64_nocancel): Likewise.
30523 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30524 (open_not_cancel_2): Likewise.
30525 (__open_nocancel): New prototype.
30526 (__open64_nocancel): Likewise.
30527 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30528 __open_nocancel.
30529 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30530 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30531 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30532 with __open_nocancel.
30533 * csu/check_fds.c (check_one_fd): Likewise.
30534 * gmon/gmon.c (write_gmon): Likewise.
30535 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30536 * intl/loadmsgcat.c (open): Likewise.
30537 * libio/fileops.c (_IO_file_open): Likewise.
30538 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30539 * locale/loadlocale.c (_nl_load_locale): Likewise.
30540 * login/utmp_file.c (setutent_file): Likewise.
30541 * misc/daemon.c (daemon): Likewise.
30542 * nss/nss_db/db-open.c (internal_setent): Likewise.
30543 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30544 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30545 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30546 (__opendir): Likewise.
30547 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30548 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30549 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30550 (gethostid): Likewise.
30551 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30552 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30553 Likewise.
30554 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30555 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30556 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30557 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30558 Likewise.
30559 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30560 Likewise.
30561 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30562 Likewise.
30563 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30564 Likewise.
30565 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30566 Likewise.
30567 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30568 Likewise.
30569 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30570 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30571
30572 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30573
30574 * benchtests/bench-skeleton.c (main): Add support for
30575 latency benchmarking.
30576 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30577
30578 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30579
30580 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30581 the startup object.
30582
30583 2017-08-17 Florian Weimer <fweimer@redhat.com>
30584
30585 * include/sys/socket.h (__opensock): Remove internal_function.
30586 * socket/opensock.c (__opensock): Likewise.
30587 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30588
30589 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30590
30591 [BZ #21944]
30592 * signal/bits/types/__sigval_t.h: New file.
30593 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30594 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30595 and define sigval_t using __sigval_t.
30596 * include/bits/types/__sigval_t.h: New file.
30597 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30598 instead of <bits/types/__sigval_t.h>.
30599 (struct sigevent): Use __sigval_t instead of sigval_t.
30600 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30601 instead of <bits/types/__sigval_t.h>.
30602 (siginfo_t): Use __sigval_t instead of sigval_t.
30603 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30604 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30605 (struct sigevent): Use __sigval_t instead of sigval_t.
30606 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30607 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30608 (siginfo_t): Use __sigval_t instead of sigval_t.
30609 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30610
30611 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30612
30613 * NEWS: Remove "[Add new features here]" for 2.27.
30614
30615 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30616
30617 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30618 libc.so.
30619
30620 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30621
30622 * NEWS: Mention x86-64 FMA optimization.
30623
30624 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30625
30626 [BZ #21912]
30627 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30628 Add e_expf-fma.
30629 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30630 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30631 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30632
30633 2017-08-16 Andreas Schwab <schwab@suse.de>
30634
30635 [BZ #16750]
30636 CVE-2009-5064
30637 * elf/ldd.bash.in: Never run file directly.
30638
30639 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30640
30641 [BZ #21955]
30642 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30643 (L(SP_INF_0)): Likewise.
30644
30645 2017-08-15 Florian Weimer <fweimer@redhat.com>
30646
30647 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30648 run-built-tests.
30649
30650 2017-08-15 Florian Weimer <fweimer@redhat.com>
30651
30652 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30653 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30654 BROKEN_THREAD_SIGNALS code.
30655 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30656 request_list): Remove caller_pid member used for
30657 BROKEN_THREAD_SIGNALS.
30658 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30659 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30660 Remove BROKEN_THREAD_SIGNALS support.
30661 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30662 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30663
30664 2017-08-15 Florian Weimer <fweimer@redhat.com>
30665
30666 * gmon/Makefile (tests): Add tst-gmon.
30667 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30668 Set.
30669 (tests-special): Add tst-gmon-prof.out.
30670 (tst-gmon.out): Depend on clean-tst-gmon-data.
30671 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30672 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30673 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30674 startup object.
30675 * aclocal.m4 (GPROF): Set and substitute.
30676 * config.amke.in (GPROF): Set.
30677 * configure: Regenerate.
30678
30679 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30680
30681 * elf/elf.h A (NT_PPC_TAR): New macro.
30682 (NT_PPC_PPR): Likewise.
30683 (NT_PPC_DSCR): Likewise.
30684 (NT_PPC_EBB): Likewise.
30685 (NT_PPC_PMU): Likewise.
30686 (NT_PPC_TM_CGPR): Likewise.
30687 (NT_PPC_TM_CFPR): Likewise.
30688 (NT_PPC_TM_CVMX): Likewise.
30689 (NT_PPC_TM_CVSX): Likewise.
30690 (NT_PPC_TM_SPR): Likewise.
30691 (NT_PPC_TM_CTAR): Likewise.
30692 (NT_PPC_TM_CPPR): Likewise.
30693 (NT_PPC_TM_CDSCR): Likewise.
30694
30695 2017-08-15 Florian Weimer <fweimer@redhat.com>
30696
30697 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30698 regparm (2) instead of internal_function.
30699 (_MCOUNT_DECL): Adjust.
30700
30701 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30702
30703 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30704 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30705
30706 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30707
30708 * conform/data/sys/wait.h-data (si_value): Do not expect for
30709 XPG42.
30710
30711 2017-08-14 Florian Weimer <fweimer@redhat.com>
30712
30713 [BZ #21962]
30714 NSS: Create stubs for accidentally exported lookup functions.
30715 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30716 Remove declaration.
30717 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30718 (ether_hostton): Call __nss_ethers_lookup2 instead.
30719 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30720 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30721 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30722 (setup): Call __nss_netgroup_lookup2 instead.
30723 * nss/Makefile (routines): Add compat-lookup.
30724 * nss/Versions (GLIBC_2.27): Add symbol version.
30725 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30726 (DB_COMPAT_FCT): Remove.
30727 * nss/compat-lookup.c: New file.
30728 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30729 from databases.def.
30730 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30731 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30732 (netname2user): Call __nss_publickey_lookup2 instead.
30733 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30734 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30735 instead.
30736
30737 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30738 Sergei Trofimovich <slyfox@inbox.ru>
30739
30740 [BZ #21908]
30741 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30742 Rename to MMAP2_PAGE_UNIT.
30743 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30744 __OFF_T_MATCHES_OFF64_T is not defined.
30745 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30746 uint64_t.
30747 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30748 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30749
30750 2017-08-14 Florian Weimer <fweimer@redhat.com>
30751
30752 i386: Do not set internal_function.
30753 * config.h.in (USE_REGPARMS, internal_function): Remove.
30754 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30755 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30756
30757 2017-08-14 Florian Weimer <fweimer@redhat.com>
30758
30759 * elf/dl-init.c (_dl_init): Remove internal_function.
30760 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30761 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30762
30763 2017-08-14 Florian Weimer <fweimer@redhat.com>
30764
30765 * elf/rtld.c (_dl_start): Remove internal_function.
30766 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30767 _dl_start.
30768
30769 2017-08-14 Florian Weimer <fweimer@redhat.com>
30770
30771 * elf/dl-fini.c (_dl_fini): Remove internal_function
30772 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30773
30774 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30775
30776 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30777 (bit_cpu_SHSTK): Likewise.
30778 (index_cpu_IBT): Likewise.
30779 (index_cpu_SHSTK): Likewise.
30780 (reg_IBT): Likewise.
30781 (reg_SHSTK): Likewise.
30782 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30783 Handle index_cpu_IBT and index_cpu_SHSTK.
30784
30785 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30786
30787 [BZ #19982]
30788 * po/fr.po: Fix spelling mistake.
30789
30790 2017-08-13 Florian Weimer <fweimer@redhat.com>
30791
30792 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30793 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30794 (_dl_catch_error, _dl_receive_error): Likewise.
30795 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30796 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30797 (_dl_deallocate_tls): Likewise.
30798 * include/dlfcn.h (_dl_addr): Likewise.
30799 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30800 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30801 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30802 Likewise.
30803
30804 2017-08-13 Florian Weimer <fweimer@redhat.com>
30805
30806 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30807 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30808 internal_function.
30809 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30810
30811 2017-08-13 Florian Weimer <fweimer@redhat.com>
30812
30813 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30814 internal_function.
30815 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30816 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30817 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30818 internal_function from _dl_make_stack_executable_hook member.
30819 (_dl_make_stack_executable): Remove internal_function.
30820 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30821 Likewise.
30822 * sysdeps/unix/sysv/linux/dl-execstack.c
30823 (_dl_make_stack_executable): Likewise.
30824
30825 2017-08-13 Florian Weimer <fweimer@redhat.com>
30826
30827 * sysdeps/unix/sysv/linux/netlinkaccess.h
30828 (__netlink_assert_response): Remove internal_function.
30829 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30830 (__netlink_assert_response): Likewise.
30831
30832 2017-08-13 Florian Weimer <fweimer@redhat.com>
30833
30834 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30835 internal_function.
30836 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30837
30838 2017-08-13 Florian Weimer <fweimer@redhat.com>
30839
30840 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30841 internal_function.
30842 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30843 * inet/netgroup.h (__internal_setnetgrent)
30844 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30845 * inet/getnetgrent_r.c (__internal_setnetgrent)
30846 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30847 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30848 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30849 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30850 * nss/nsswitch.h (db_lookup_function): Likewise.
30851
30852 2017-08-13 Florian Weimer <fweimer@redhat.com>
30853
30854 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30855 Remove internal_function.
30856 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30857 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30858 message argument on the stack.
30859 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30860 Likeweise.
30861
30862 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30863
30864 Adapt test case data to the changes in the thousands
30865 separators.
30866
30867 [BZ #20756]
30868 * localedata/tst-langinfo.sh: Adapt test case data.
30869 * stdlib/tst-strfmon_l.c: Likewise.
30870 * stdlib/tst-strtod4.c: Likewise.
30871 * stdlib/tst-strtod5i.c: Likewise.
30872
30873 2017-08-11 Florian Weimer <fweimer@redhat.com>
30874
30875 [BZ #21242]
30876 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30877 Suppress pedantic warning resulting from statement expression.
30878 (__ASSERT_FUNCTION): Add missing __extension__.
30879
30880 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30881
30882 * benchtests/bench-memmove-large.c: Print output in JSON
30883 format.
30884 * benchtests/bench-memmove.c: Likewise.
30885
30886 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
30887 * benchtests/bench-memchr.c (do_one_test): Likewise.
30888 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
30889 * benchtests/bench-memcpy.c (do_one_test): Likewise.
30890 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
30891 * benchtests/bench-memmove.c (do_one_test): Likewise.
30892 * benchtests/bench-memset-large.c (do_one_test): Likewise.
30893 * benchtests/bench-memset.c (do_one_test): Likewise.
30894 * benchtests/bench-string.h (test_init): Remove memsets.
30895
30896 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30897
30898 * manual/lang.texi
30899 (Computing the Width of an Integer Data Type): Rename section to
30900 "Width of an Integer Type". Remove inaccurate statement regarding
30901 lack of C language facilities for determining width of integer
30902 types, and reorder content to improve flow and context of
30903 discussion.
30904
30905 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30906
30907 * lang.texi (va_copy): Change standard from ISO to C99.
30908 (__va_copy): Add standard and header annotation.
30909 Update description for clarity of origins and current use.
30910
30911 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30912
30913 [BZ #21941]
30914 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
30915 xssqrtqp requires operands to be in Vector Registers
30916 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
30917 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
30918 (__ieee754_sqrtf128): Likewise.
30919
30920 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
30921
30922 * sysdeps/aarch64/memcmp.S (memcmp):
30923 Rewrite of optimized memcmp.
30924
30925 2017-08-10 Florian Weimer <fweimer@redhat.com>
30926
30927 Introduce ld.so exceptions.
30928 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
30929 (_dl_exception_create, _dl_exception_create_format)
30930 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
30931 (_dl_catch_exception): Declare.
30932 (_dl_catch_error): Update comment.
30933 * elf/dl-error-skeleton.c (struct catch): Replace objname,
30934 errstring, malloced members with exception member.
30935 (_dl_out_of_memory): Remove.
30936 (fatal_error): New function, extracted from _dl_signal_error.
30937 (_dl_signal_exception, _dl_signal_cexception): New functions.
30938 (_dl_signal_error): Call _dl_exception_create to allocate an
30939 exception object.
30940 (_dl_catch_exception): New function, based on _dl_catch_error.
30941 (_dl_catch_error): Implement using _dl_catch_exception.
30942 * elf/dl-exception.c: New file.
30943 * elf/Makefile (dl-routines): Add dl-exception.
30944 (elide-routines.os): Likewise.
30945 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
30946 _dl_exception_create_format, _dl_exception_free.
30947 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
30948 _dl_signal_exception.
30949 * elf/dl-lookup.c (make_string): Remove.
30950 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
30951 _dl_signal_cexception, _dl_exception_free.
30952 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
30953 _dl_signal_exception.
30954 * elf/dl-sym.c (do_sym): Likewise.
30955 * elf/dl-version.c (make_string): Remove.
30956 (match_symbol): Use _dl_exception_create_format,
30957 _dl_signal_cexception, _dl_exception_free.
30958 (_dl_check_map_versions): Likewise.
30959 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
30960 _dl_catch_exception.
30961 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
30962 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
30963 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
30964 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
30965 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
30966 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
30967 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
30968 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
30969 Likewise.
30970 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
30971 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
30972 (ld.so): Likewise.
30973 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
30974 (ld.so): Likewise.
30975 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
30976 Likewise.
30977 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
30978 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
30979 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
30980 Likewise.
30981 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
30982 Likewise.
30983 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
30984
30985 2017-08-10 Florian Weimer <fweimer@redhat.com>
30986
30987 * inet/net-internal.h (__inet6_scopeid_pton): Remove
30988 attribute_hidden, internal_function.
30989 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
30990 internal_function.
30991
30992 2017-08-10 Florian Weimer <fweimer@redhat.com>
30993
30994 * malloc/malloc.c (get_max_fast): Reimplement as an inline
30995 function which calls __builtin_unreachable.
30996
30997 2017-08-10 Mike FABIAN <mfabian@redhat.com>
30998
30999 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31000 Indian monetary formatting
31001 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31002 test cases.
31003
31004 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31005
31006 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31007 Fix typo in comment.
31008
31009 [BZ #21928]
31010 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31011 PTRACE_SEIZE_DEVEL): Remove.
31012 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31013 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31014 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31015 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31016 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31017
31018 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31019
31020 * posix/bits/types.h (__qaddr_t): Remove.
31021
31022 [BZ #21457]
31023 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31024 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31025 __glibc_reserved1.
31026 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31027 (ucontext_t): Use __ctx with uc_flags.
31028 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31029 (__ctxt): Likewise.
31030 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31031 __glibc_reserved1.
31032 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31033 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31034 __glibc_reserved1.
31035 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31036 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31037 __glibc_reserved1.
31038 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31039 macro.
31040 (ucontext_t): Use __ctx with uc_flags.
31041 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31042 (ucontext_t): Use __ctx with uc_flags.
31043 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31044 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31045 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31046 (ucontext_t): Use __ctx with uc_flags.
31047 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31048 undefine further down.
31049 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31050 __glibc_reserved1.
31051 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31052 undefine further down.
31053 (ucontext_t): Use __ctx with uc_flags.
31054 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31055 undefine further down.
31056 (ucontext_t): Use __ctx with uc_flags.
31057 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31058 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31059 Rename uc_pad to __glibc_reserved1.
31060 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31061 undefine further down.
31062 (ucontext_t): Use __ctx with uc_flags.
31063 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31064 further down.
31065 (ucontext_t): Use __ctx with uc_flags.
31066 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31067 __ctx with uc_flags.
31068 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31069 (ucontext_t): Use __ctx with uc_flags.
31070 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31071 __ctx with uc_flags.
31072
31073 2017-08-09 Florian Weimer <fweimer@redhat.com>
31074
31075 [BZ #21932]
31076 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31077 before early return.
31078
31079 2017-08-09 Andreas Schwab <schwab@suse.de>
31080
31081 [BZ #21041]
31082 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31083 renamed alias.
31084
31085 [BZ #21041]
31086 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31087 tst-compat-forwarder.
31088 (modules-names): Add tst-compat-forwarder-mod.
31089 ($(objpfx)tst-compat-forwarder): Depend on
31090 $(objpfx)tst-compat-forwarder-mod.so.
31091 * nptl/tst-compat-forwarder.c: New file.
31092 * nptl/tst-compat-forwarder-mod.c: New file.
31093
31094 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31095
31096 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31097 comments.
31098
31099 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31100 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31101 memcpy_falkor.
31102 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31103 Bump.
31104 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31105 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31106 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31107 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31108 Add falkor.
31109 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31110 New macro.
31111
31112 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31113
31114 [BZ #759]
31115 * manual/setjmp.texi (getcontex): Document uc_stack value
31116 compatibility differences.
31117
31118 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31119
31120 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31121 (old_malloc_hook): Likewise.
31122 (old_memalign_hook): Likewise.
31123 (old_realloc_hook): Likewise.
31124 (struct hdr): Likewise.
31125 (flood): Likewise.
31126 (freehook): Likewise.
31127 (mallochook): Likewise.
31128 (memalignhook): Likewise.
31129 (reallochook): Likewise.
31130 (mprobe): Likewise.
31131 * malloc/mtrace.c (mallwatch): Likewise.
31132 (tr_old_free_hook): Likewise.
31133 (tr_old_malloc_hook): Likewise.
31134 (tr_old_realloc_hook): Likewise.
31135 (tr_old_memalign_hook): Likewise.
31136 (tr_where): Likewise.
31137 (lock_and_info): Likewise.
31138 (tr_freehook): Likewise.
31139 (tr_mallochook): Likewise.
31140 (tr_reallochook): Likewise.
31141 (tr_memalignhook): Likewise.
31142 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31143 * misc/mmap.c (__mmap): Likewise.
31144 * misc/mmap64.c (__mmap64): Likewise.
31145 * misc/mprotect.c (__mprotect): Likewise.
31146 * misc/msync.c (msync): Likewise.
31147 * misc/munmap.c (__munmap): Likewise.
31148 * posix/posix_madvise.c (posix_madvise): Likewise.
31149 * socket/send.c (__send): Likewise.
31150 * socket/sendto.c (__sendto): Likewise.
31151 * socket/setsockopt.c (__setsockopt): Likewise.
31152 * string/memcmp.c (__ptr_t): Remove macro.
31153 (MEMCMP): Use void * instead of ptr_t.
31154 * string/memrchr.c (__ptr_t): Remove macro.
31155 (__memrchr): Use void * instead of ptr_t.
31156 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31157 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31158 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31159 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31160 * sysdeps/mach/msync.c (msync): Likewise.
31161 * sysdeps/mach/munmap.c (__munmap): Likewise.
31162 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31163 Likewise.
31164 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31165 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31166 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31167 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31168 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31169 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31170 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31171 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31172 Likewise.
31173 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31174 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31175 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31176 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31177 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31178 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31179 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31180 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31181 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31182 Likewise.
31183 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31184 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31185 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31186 (MEMCMP): Use void * instead of ptr_t.
31187 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31188 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31189
31190 2017-08-08 Florian Weimer <fweimer@redhat.com>
31191
31192 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31193 return statement.
31194
31195 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31196
31197 [BZ #21913]
31198 * csu/libc-tls.c: Include <startup.h> first.
31199 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31200 * elf/dl-tunables.c: Include <startup.h> first.
31201 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31202 * sysdeps/generic/startup.h: New file.
31203 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31204 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31205 (I386_USE_SYSENTER): New. Defined to 0.
31206
31207 2017-08-08 Andreas Schwab <schwab@suse.de>
31208
31209 [BZ #21041]
31210 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31211 * nptl/pt-system.c (system): Likewise.
31212
31213 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31214
31215 [BZ #21780]
31216 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31217 EOPNOTSUPP.
31218 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31219 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31220 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31221 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31222 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31223 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31224 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31225
31226 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31227
31228 [BZ #21899]
31229 * bits/sigaction.h (struct sigaction): Define sa_handler and
31230 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31231 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31232 [__USE_XOPEN_EXTENDED].
31233 (SA_RESTART): Likewise.
31234 (SA_NODEFER): Likewise.
31235 (SA_RESETHAND): Likewise.
31236 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31237 (struct sigaction): Define sa_handler and sa_sigaction using union
31238 also for [__USE_XOPEN_EXTENDED].
31239 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31240 [__USE_XOPEN_EXTENDED].
31241 (SA_RESTART): Likewise.
31242 (SA_NODEFER): Likewise.
31243 (SA_RESETHAND): Likewise.
31244 * sysdeps/unix/sysv/linux/bits/sigaction.h
31245 (struct sigaction): Define sa_handler and sa_sigaction using union
31246 also for [__USE_XOPEN_EXTENDED].
31247 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31248 [__USE_XOPEN_EXTENDED].
31249 (SA_RESTART): Likewise.
31250 (SA_NODEFER): Likewise.
31251 (SA_RESETHAND): Likewise.
31252 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31253 (struct sigaction): Define sa_handler and sa_sigaction using union
31254 also for [__USE_XOPEN_EXTENDED].
31255 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31256 [__USE_XOPEN_EXTENDED].
31257 (SA_RESTART): Likewise.
31258 (SA_NODEFER): Likewise.
31259 (SA_RESETHAND): Likewise.
31260 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31261 (struct sigaction): Define sa_handler and sa_sigaction using union
31262 also for [__USE_XOPEN_EXTENDED].
31263 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31264 [__USE_XOPEN_EXTENDED].
31265 (SA_RESTART): Likewise.
31266 (SA_NODEFER): Likewise.
31267 (SA_RESETHAND): Likewise.
31268 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31269 (struct sigaction): Define sa_handler and sa_sigaction using union
31270 also for [__USE_XOPEN_EXTENDED].
31271 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31272 [__USE_XOPEN_EXTENDED].
31273 (SA_RESTART): Likewise.
31274 (SA_NODEFER): Likewise.
31275 (SA_RESETHAND): Likewise.
31276 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31277 (struct sigaction): Define sa_handler and sa_sigaction using union
31278 also for [__USE_XOPEN_EXTENDED].
31279 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31280 [__USE_XOPEN_EXTENDED].
31281 (SA_RESTART): Likewise.
31282 (SA_NODEFER): Likewise.
31283 (SA_RESETHAND): Likewise.
31284 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31285 (struct sigaction): Define sa_handler and sa_sigaction using union
31286 also for [__USE_XOPEN_EXTENDED].
31287 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31288 [__USE_XOPEN_EXTENDED].
31289 (SA_RESTART): Likewise.
31290 (SA_NODEFER): Likewise. Define directly rather than as alias.
31291 (SA_RESETHAND): Likewise.
31292 (SA_INTERRUPT): Define only for [__USE_MISC].
31293 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31294 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31295 [__USE_MISC].
31296 (SA_STACK): Define only for [__USE_MISC].
31297 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31298 (struct sigaction): Define sa_handler and sa_sigaction using union
31299 also for [__USE_XOPEN_EXTENDED].
31300 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31301 [__USE_XOPEN_EXTENDED].
31302 (SA_RESTART): Likewise.
31303 (SA_NODEFER): Likewise.
31304 (SA_RESETHAND): Likewise.
31305 (SA_NOPTRACE): Define only for [__USE_MISC].
31306
31307 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31308 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31309 (struct catalog_info): Likewise.
31310 * inet/htontest.c (lo): Likewise.
31311 (foo): Likewise.
31312 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31313 * inet/inet_net.c (inet_network): Likewise.
31314 * inet/inet_netof.c (inet_netof): Likewise.
31315 * inet/rcmd.c (__ivaliduser): Likewise.
31316 (iruserok): Likewise.
31317 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31318 * locale/programs/locale-spec.c (locale_special): Likewise.
31319 * nis/nis_findserv.c (struct findserv_req): Likewise.
31320 (__nis_findfastest_with_timeout): Likewise.
31321 * nss/test-netdb.c (test_network): Likewise.
31322 * resolv/inet_neta.c (inet_neta): Likewise.
31323 * resolv/ns_date.c (ns_datetosecs): Likewise.
31324 (SECS_PER_DAY): Likewise.
31325 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31326 Likewise.
31327 * resolv/res_comp.c (__putlong): Likewise.
31328 (__putshort): Likewise.
31329 (_getlong): Likewise.
31330 (_getshort): Likewise.
31331 * resolv/res_debug.c (p_time): Likewise.
31332 (precsize_ntoa): Likewise.
31333 (precsize_aton): Likewise.
31334 (latlon2ul): Likewise.
31335 (loc_aton): Likewise.
31336 (loc_ntoa): Likewise.
31337 * resolv/res_hconf.c (struct netaddr): Likewise.
31338 (_res_hconf_reorder_addrs): Likewise.
31339 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31340 (clnttcp_control): Likewise.
31341 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31342 (clntudp_control): Likewise.
31343 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31344 (clntunix_control): Likewise.
31345 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31346 * sunrpc/rpc/auth.h (union des_block): Likewise.
31347 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31348 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31349 (xdrrec_create): Likewise.
31350 (xdrrec_endofrecord): Likewise.
31351 (flush_out): Likewise.
31352 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31353 (xdrstdio_putlong): Likewise.
31354 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31355 Likewise.
31356
31357 * misc/sys/cdefs.h (__long_double_t): Remove.
31358 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31359 instead of __long_double_t,
31360 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31361
31362 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31363
31364 * benchtests/scripts/compare_strings.py: Avoid display error when
31365 running on a text terminal.
31366
31367 * benchtests/scripts/compare_strings.py (main): Add an
31368 optional -base option.
31369 (process_results): New argument base_func.
31370
31371 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31372 hardcoding memcpy.
31373 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31374 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31375
31376 2017-08-07 Andreas Schwab <schwab@suse.de>
31377
31378 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31379 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31380 * intl/Makefile ($(objpfx)tst-gettext.out)
31381 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31382 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31383 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31384 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31385 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31386 * posix/Makefile ($(objpfx)globtest.out)
31387 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31388 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31389 ($(objpfx)tst-printf.out): Likewise.
31390 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31391 ($(objpfx)tst-setcontext3.out): Likewise.
31392
31393 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31394
31395 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31396 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31397 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31398 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31399 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31400 and mptan-fma.
31401 (CFLAGS-doasin-fma.c): New.
31402 (CFLAGS-dosincos-fma.c): Likewise.
31403 (CFLAGS-e_asin-fma.c): Likewise.
31404 (CFLAGS-e_atan2-fma.c): Likewise.
31405 (CFLAGS-e_exp-fma.c): Likewise.
31406 (CFLAGS-e_log-fma.c): Likewise.
31407 (CFLAGS-e_pow-fma.c): Likewise.
31408 (CFLAGS-halfulp-fma.c): Likewise.
31409 (CFLAGS-mpa-fma.c): Likewise.
31410 (CFLAGS-mpatan-fma.c): Likewise.
31411 (CFLAGS-mpatan2-fma.c): Likewise.
31412 (CFLAGS-mpexp-fma.c): Likewise.
31413 (CFLAGS-mplog-fma.c): Likewise.
31414 (CFLAGS-mpsqrt-fma.c): Likewise.
31415 (CFLAGS-mptan-fma.c): Likewise.
31416 (CFLAGS-s_atan-fma.c): Likewise.
31417 (CFLAGS-sincos32-fma.c): Likewise.
31418 (CFLAGS-slowexp-fma.c): Likewise.
31419 (CFLAGS-slowpow-fma.c): Likewise.
31420 (CFLAGS-s_sin-fma.c): Likewise.
31421 (CFLAGS-s_tan-fma.c): Likewise.
31422 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31423 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31424 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31425 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31426 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31427 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31428 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31429 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31430 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31431 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31432 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31433 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31434 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31435 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31436 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31437 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31438 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31439 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31440 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31441 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31442 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31443 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31444 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31445 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31446 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31447 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31448 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31449 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31450 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31451 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31452 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31453
31454 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31455
31456 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31457 (min_of_type_f): New macro.
31458 (min_of_type_): Likewise.
31459 (min_of_type_l): Likewise.
31460 (min_of_type_f128): Likewise.
31461 (min_of_type): Define using __MATH_TG and taking an expression
31462 argument.
31463 (math_check_force_underflow): Pass expression instead of type to
31464 min_of_type.
31465 (math_check_force_underflow_nonneg): Likewise.
31466
31467 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31468
31469 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31470 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31471 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31472
31473 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31474
31475 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31476 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31477 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31478 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31479 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31480 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31481 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31482 memmove_chk-nonshared and memset_chk-nonshared
31483 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31484 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31485 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31486 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31487 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31488 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31489 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31490 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31491 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31492 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31493 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31494 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31495 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31496 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31497 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31498 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31499 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31500 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31501 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31502 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31503 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31504 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31505 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31506 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31507 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31508 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31509 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31510 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31511 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31512 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31513 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31514 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31515 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31516 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31517 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31518 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31519 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31520 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31521 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31522 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31523 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31524 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31525 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31526 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31527 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31528 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31529 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31530 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31531 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31532 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31533 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31534 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31535 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31536 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31537 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31538 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31539 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31540 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31541 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31542 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31543 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31544 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31545 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31546 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31547 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31548 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31549 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31550 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31551 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31552 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31553 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31554 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31555 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31556 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31557 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31558 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31559 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31560 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31561 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31562 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31563 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31564 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31565 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31566 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31567 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31568 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31569 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31570 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31571 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31572 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31573 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31574 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31575 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31576 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31577 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31578 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31579 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31580 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31581 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31582 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31583 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31584 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31585 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31586 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31587 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31588 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31589 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31590 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31591
31592 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31593
31594 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31595 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31596 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31597 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31598 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31599 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31600 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31601 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31602 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31603 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31604 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31605 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31606 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31607 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31608 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31609 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31610 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31611 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31612 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31613 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31614 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31615 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31616 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31617 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31618 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31619 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31620 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31621 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31622 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31623 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31624 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31625 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31626 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31627 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31628 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31629 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31630 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31631 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31632 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31633 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31634 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31635 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31636 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31637 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31638 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31639 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31640 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31641 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31642 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31643 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31644 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31645 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31646 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31647 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31648 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31649 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31650 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31651 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31652 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31653 ...
31654 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31655 Don't include <sysdep.h> nor <init-arch.h>.
31656 (_ZGVbN2v_cos): Removed.
31657 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31658 ...
31659 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31660 Don't include <sysdep.h> nor <init-arch.h>.
31661 (_ZGVdN4v_cos): Removed.
31662 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31663 ...
31664 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31665 Don't include <sysdep.h> nor <init-arch.h>.
31666 (_ZGVeN8v_cos): Removed.
31667 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31668 ...
31669 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31670 Don't include <sysdep.h> nor <init-arch.h>.
31671 (_ZGVbN2v_exp): Removed.
31672 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31673 ...
31674 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31675 Don't include <sysdep.h> nor <init-arch.h>.
31676 (_ZGVdN4v_exp): Removed.
31677 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31678 ...
31679 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31680 Don't include <sysdep.h> nor <init-arch.h>.
31681 (_ZGVeN8v_exp): Removed.
31682 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31683 ...
31684 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31685 Don't include <sysdep.h> nor <init-arch.h>.
31686 (_ZGVbN2v_log): Removed.
31687 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31688 ...
31689 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31690 Don't include <sysdep.h> nor <init-arch.h>.
31691 (_ZGVdN4v_log): Removed.
31692 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31693 ...
31694 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31695 Don't include <sysdep.h> nor <init-arch.h>.
31696 (_ZGVeN8v_log): Removed.
31697 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31698 ...
31699 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31700 Don't include <sysdep.h> nor <init-arch.h>.
31701 (_ZGVbN2vv_pow): Removed.
31702 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31703 ...
31704 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31705 Don't include <sysdep.h> nor <init-arch.h>.
31706 (_ZGVdN4vv_pow): Removed.
31707 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31708 ...
31709 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31710 Don't include <sysdep.h> nor <init-arch.h>.
31711 (_ZGVeN8vv_pow): Removed.
31712 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31713 ...
31714 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31715 Don't include <sysdep.h> nor <init-arch.h>.
31716 (_ZGVbN2v_sin): Removed.
31717 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31718 ...
31719 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31720 Don't include <sysdep.h> nor <init-arch.h>.
31721 (_ZGVbN4v_sin): Removed.
31722 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31723 ...
31724 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31725 Don't include <sysdep.h> nor <init-arch.h>.
31726 (_ZGVbN8v_sin): Removed.
31727 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31728 ...
31729 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31730 Don't include <sysdep.h> nor <init-arch.h>.
31731 (_ZGVbN2vvv_sincos): Removed.
31732 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31733 ...
31734 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31735 Don't include <sysdep.h> nor <init-arch.h>.
31736 (_ZGVdN4vvv_sincos): Removed.
31737 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31738 ...
31739 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31740 Don't include <sysdep.h> nor <init-arch.h>.
31741 (_ZGVeN8vvv_sincos): Removed.
31742 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31743 ...
31744 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31745 Don't include <sysdep.h> nor <init-arch.h>.
31746 (_ZGVeN16v_cosf): Removed.
31747 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31748 ...
31749 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31750 Don't include <sysdep.h> nor <init-arch.h>.
31751 (_ZGVbN4v_cosf): Removed.
31752 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31753 ...
31754 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31755 Don't include <sysdep.h> nor <init-arch.h>.
31756 (_ZGVdN8v_cosf): Removed.
31757 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31758 ...
31759 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31760 Don't include <sysdep.h> nor <init-arch.h>.
31761 (_ZGVeN16v_expf): Removed.
31762 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31763 ...
31764 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31765 Don't include <sysdep.h> nor <init-arch.h>.
31766 (_ZGVbN4v_expf): Removed.
31767 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31768 ...
31769 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31770 Don't include <sysdep.h> nor <init-arch.h>.
31771 (_ZGVdN8v_expf): Removed.
31772 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31773 ...
31774 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31775 Don't include <sysdep.h> nor <init-arch.h>.
31776 (_ZGVeN16v_logf): Removed.
31777 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31778 ...
31779 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31780 Don't include <sysdep.h> nor <init-arch.h>.
31781 (_ZGVbN4v_logf): Removed.
31782 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31783 ...
31784 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31785 Don't include <sysdep.h> nor <init-arch.h>.
31786 (_ZGVdN8v_logf): Removed.
31787 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31788 ...
31789 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31790 Don't include <sysdep.h> nor <init-arch.h>.
31791 (_ZGVeN16vv_powf): Removed.
31792 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31793 ...
31794 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31795 Don't include <sysdep.h> nor <init-arch.h>.
31796 (_ZGVbN4vv_powf): Removed.
31797 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31798 ...
31799 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31800 Don't include <sysdep.h> nor <init-arch.h>.
31801 (_ZGVdN8vv_powf): Removed.
31802 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31803 ...
31804 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31805 Don't include <sysdep.h> nor <init-arch.h>.
31806 (_ZGVeN16vvv_sincosf): Removed.
31807 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31808 ...
31809 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31810 Don't include <sysdep.h> nor <init-arch.h>.
31811 (_ZGVbN4vvv_sincosf): Removed.
31812 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31813 ...
31814 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31815 Don't include <sysdep.h> nor <init-arch.h>.
31816 (_ZGVdN8vvv_sincosf): Removed.
31817 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31818 ...
31819 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31820 Don't include <sysdep.h> nor <init-arch.h>.
31821 (_ZGVeN16v_sinf): Removed.
31822 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31823 ...
31824 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31825 Don't include <sysdep.h> nor <init-arch.h>.
31826 (_ZGVbN4v_sinf): Removed.
31827 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31828 ...
31829 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31830 Don't include <sysdep.h> nor <init-arch.h>.
31831 (_ZGVdN8v_sinf): Removed.
31832
31833 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31834
31835 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31836 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31837 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31838 s_rint-sse4_1 and s_rintf-sse4_1.
31839 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31840 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31841 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31842 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31843 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31844 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31845 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31846 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31847 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31848 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31849 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31850 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31851 (__ceil): Removed.
31852 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31853 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31854 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31855 (__ceilf): Removed.
31856 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31857 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31858 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31859 (__floor): Removed.
31860 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31861 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31862 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31863 (__floorf): Removed.
31864 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31865 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31866 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31867 (__nearbyint): Removed.
31868 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31869 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31870 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31871 (__nearbyintf): Removed.
31872 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31873 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31874 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31875 (__rint): Removed.
31876 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31877 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31878 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31879 (__rintf): Removed.
31880
31881 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31882
31883 * sysdeps/i386/start.S (_start): Check Check PIC instead of
31884 SHARED. Avoid dynamic relocation against main in static PIE.
31885
31886 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31887
31888 [BZ #21815]
31889 * elf/Makefile (CFLAGS-tst-prelink.c): New.
31890 (LDFLAGS-tst-prelink): Likewise.
31891
31892 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31893
31894 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
31895 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
31896 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
31897 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
31898 (INTERNAL_SYSCALL_NCS): Likewise.
31899 (LOADARGS_1): Likewise.
31900 (LOADARGS_5): Likewise.
31901 (RESTOREARGS_1): Likewise.
31902 (RESTOREARGS_5): Likewise.
31903
31904 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31905
31906 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
31907 (MEMPCPY_SYMBOL): Likewise.
31908 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
31909 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
31910 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
31911 in libc.a.
31912 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31913 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
31914 Likewise.
31915 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
31916 (__hidden_ver1): Don't use in libc.a.
31917 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
31918 (__mempcpy): Don't create a weak alias in libc.a.
31919 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
31920 libc.a.
31921 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
31922 (__hidden_ver1): Don't use in libc.a.
31923
31924 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31925
31926 * config.make.in (have-insert): New.
31927 * configure.ac (libc_cv_insert): New. Set to yes if linker
31928 supports INSERT in linker script.
31929 (AC_SUBST(libc_cv_insert): New.
31930 * configure: Regenerated.
31931 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
31932 if $(have-insert) == yes.
31933
31934 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31935
31936 * elf/Makefile (tests): Add vismain only if
31937 $(have-protected-data) == yes.
31938 (tests-pie): Likewise.
31939
31940 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31941
31942 [BZ #21871]
31943 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
31944 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
31945
31946 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31947
31948 [BZ #21790]
31949 * sysdeps/i386/i586/memset.S
31950 (__memset_zero_constant_len_parameter): Removed.
31951 * sysdeps/i386/i686/memset.S
31952 (__memset_zero_constant_len_parameter): Likewise.
31953 * sysdeps/i386/i686/multiarch/memset_chk.S
31954 (__memset_zero_constant_len_parameter): Likewise.
31955 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
31956 Likewise.
31957
31958 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31959
31960 * stdlib/getentropy.c (getentropy): Change return type to int.
31961
31962 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31963
31964 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
31965
31966 2017-08-03 Joseph Myers <joseph@codesourcery.com>
31967
31968 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
31969 u_intN_t.
31970 * math/s_nexttowardf.c (__nexttowardf): Likewise.
31971 * sysdeps/generic/math_private.h (ieee_double_shape_type):
31972 Likewise.
31973 (ieee_float_shape_type): Likewise.
31974 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
31975 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
31976 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
31977 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
31978 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
31979 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
31980 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
31981 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
31982 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
31983 Likewise.
31984 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
31985 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
31986 (__ieee754_yn): Likewise.
31987 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
31988 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
31989 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
31990 Likewise.
31991 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
31992 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
31993 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
31994 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
31995 (__erfc): Likewise.
31996 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
31997 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
31998 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
31999 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32000 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32001 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32002 Likewise.
32003 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32004 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32005 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32006 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32007 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32008 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32009 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32010 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32011 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32012 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32013 (__issignaling): Likewise.
32014 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32015 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32016 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32017 Likewise.
32018 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32019 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32020 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32021 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32022 Likewise.
32023 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32024 Likewise.
32025 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32026 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32027 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32028 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32029 (__erfcf): Likewise.
32030 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32031 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32032 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32033 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32034 Likewise.
32035 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32036 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32037 Likewise.
32038 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32039 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32040 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32041 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32042 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32043 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32044 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32045 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32046 Likewise.
32047 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32048 Likewise.
32049 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32050 Likewise.
32051 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32052 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32053 Likewise.
32054 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32055 Likewise.
32056 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32057 (__ieee754_ynl): Likewise.
32058 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32059 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32060 Likewise.
32061 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32062 Likewise.
32063 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32064 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32065 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32066 Likewise.
32067 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32068 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32069 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32070 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32071 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32072 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32073 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32074 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32075 Likewise.
32076 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32077 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32078 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32079 Likewise.
32080 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32081 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32082 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32083 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32084 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32085 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32086 Likewise.
32087 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32088 Likewise.
32089 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32090 Likewise.
32091 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32092 Likewise.
32093 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32094 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32095 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32096 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32097 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32098 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32099 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32100 Likewise.
32101 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32102 Likewise.
32103 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32104 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32105 Likewise.
32106 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32107 (__ieee754_remainderl): Likewise.
32108 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32109 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32110 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32111 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32112 Likewise.
32113 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32114 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32115 Likewise.
32116 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32117 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32118 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32119 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32120 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32121 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32122 Likewise.
32123 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32124 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32125 (__ieee754_y0l): Likewise.
32126 (pzero): Likewise.
32127 (qzero): Likewise.
32128 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32129 (__ieee754_y1l): Likewise.
32130 (pone): Likewise.
32131 (qone): Likewise.
32132 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32133 (__ieee754_ynl): Likewise.
32134 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32135 (__ieee754_lgammal_r): Likewise.
32136 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32137 Likewise.
32138 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32139 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32140 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32141 (__erfcl): Likewise.
32142 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32143 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32144 Likewise.
32145 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32146 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32147 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32148 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32149 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32150 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32151 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32152 Likewise.
32153 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32154 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32155 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32156 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32157 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32158 Likewise.
32159 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32160 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32161 Likewise.
32162 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32163 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32164 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32165 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32166 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32167
32168 2017-08-03 Florian Weimer <fweimer@redhat.com>
32169
32170 [BZ #21885]
32171 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32172 on memory allocation failure.
32173
32174 2017-08-03 Alan Modra <amodra@gmail.com>
32175
32176 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32177 tst-tlsopt-powerpc.c with function name change and no test harness.
32178 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32179 Call tls_get_addr_opt_test.
32180 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32181 (modules-names): Add mod-tlsopt-powerpc.
32182 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32183 (tst-tlsopt-powerpc): Depend on .so.
32184 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32185 define. Expand use in TLS_GD and TLS_LD.
32186
32187 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32188
32189 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32190 function.
32191 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32192
32193 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32194
32195 [BZ #21686]
32196 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32197 comparing size with that of double.
32198 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32199 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32200 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32201 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32202 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32203 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32204 unsigned __int128 types.
32205
32206 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32207
32208 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32209 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32210 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32211 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32212 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32213
32214 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32215
32216 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32217
32218 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32219
32220 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32221 of SHARED.
32222 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32223 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32224 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32225 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32226 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32227 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32228 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32229
32230 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32231
32232 [BZ #21685]
32233 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32234 bit-field expressions passed to sizeof or typeof.
32235 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32236 (__TGMATH_F128): Likewise.
32237 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32238 (__TGMATH_CF128): Likewise.
32239 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32240 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32241 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32242 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32243 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32244 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32245 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32246 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32247 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32248 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32249 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32250 (__TGMATH_UNARY_IMAG): Likewise.
32251 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32252 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32253 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32254 type.
32255 (define_vars_for_type): Handle bit_field type specially.
32256 (Tests.__init__): Declare structure with bit-field element.
32257
32258 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32259
32260 [BZ #21791]
32261 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32262 (MEMCPY_CHK): Define only if SHARED is defined.
32263 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32264 Likewise.
32265 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32266 Likewise.
32267
32268 See ChangeLog.18 for earlier changes.