]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Move remaining nptl_db headers to sysdeps/nptl
[thirdparty/glibc.git] / ChangeLog
1 2019-02-15 Florian Weimer <fweimer@redhat.com>
2
3 * nptl_db/proc_service.h: Move to ...
4 * sysdeps/nptl/proc_service.h: ... here.
5 * nptl_db/thread_db.h: Move to ...
6 * sysdeps/nptl/thread_db.h: ... here.
7 * nptl/descr.h: Include <thread_db.h>.
8
9 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10
11 * io/Makefile (tests): Add tst-lockf.
12 * io/lockf.c (lockf): Use __fcntl and only define for
13 !__OFF_T_MATCHES_OFF64_T.
14 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
15 __OFF_T_MATCHES_OFF64_T case.
16 * io/tst-lockf.c: New file.
17 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
18 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
19 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
20 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
21 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
22 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
23 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
24 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
25 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
26
27 2019-02-15 Florian Weimer <fweimer@redhat.com>
28
29 [BZ #24211]
30 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
31 pd->result after the thread descriptor has been freed.
32
33 2019-02-15 Joseph Myers <joseph@codesourcery.com>
34
35 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
36 from function return type.
37
38 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
39
40 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
41
42 * scripts/test_printers_common.py: Set TERM to a known harmless
43 value.
44
45 2019-02-14 Joseph Myers <joseph@codesourcery.com>
46
47 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
48 (xdr_u_int): Likewise.
49 (xdr_enum): Likewise.
50 (xdr_bytes): Reword fall-through comment.
51 (xdr_string): Likewise.
52
53 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
54
55 [BZ #2421]
56 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
57 (tests): Add tst-join8 tst-join9.
58 * nptl/lll_timedwait_tid.c: Remove file.
59 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
60 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
61 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
62 * nptl/pthread_join_common.c (timedwait_tid): New function.
63 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
64 is set.
65 * nptl/tst-join5.c (thread_join): New function.
66 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
67 check.
68 * nptl/tst-join8.c: New file.
69 * nptl/tst-join9.c: Likewise.
70 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
71 lll_futex_timed_wait_cancel): Add generic macros.
72 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
73 Remove definitions.
74 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
75 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
76 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
77 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
78 Remove function.
79 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
80 Likewise.
81 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
82 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
83 (lll_futex_timed_wait_cancel): New macro.
84
85 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
86
87 * benchtests/Makefile: Add malloc-simple benchmark.
88 * benchtests/bench-malloc-simple.c: New benchmark.
89
90 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
91
92 * benchtests/bench-memmove.c (do_one_test): Remove unused
93 ORIG_SRC.
94 (do_test): Adjust.
95 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
96 ORIG_SRC.
97 (do_test): Adjust.
98
99 2019-01-13 Jim Wilson <jimw@sifive.com>
100
101 [BZ #24040]
102 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
103 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
104 (func): New.
105 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
106 call func directly.
107 * nptl/Makefile (tests): Add tst-unwind-thread.
108 (CFLAGS-tst-unwind-thread.c): Define.
109 * nptl/tst-unwind-thread.c: New file.
110 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
111 as undefined.
112
113 2019-02-13 Joseph Myers <joseph@codesourcery.com>
114
115 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
116 comment wording.
117 * nis/nis_call.c (__do_niscall3): Likewise.
118
119 * catgets/gencat.c (normalize_line): Use braces around empty
120 'else' body.
121 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
122 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
123 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
124 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
125 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
126 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
127 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
128 definition.
129
130 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
131 execlp returns.
132
133 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
134
135 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
136 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
137 * benchtests/bench-strchr.c (stupid_strchr): Remove.
138 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
139 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
140 * benchtests/bench-strlen.c (builtin_strlen): Remove.
141 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
142 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
143 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
144 * benchtests/bench-strspn.c (stupid_strspn): Remove.
145 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
146 * benchtests/bench-bcopy.c: Delete file.
147 * benchtests/bench-bzero.c: Likewise.
148 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
149 (simple_memccpy): Remove.
150 (generic_memccpy): Add function.
151 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
152 * benchtests/bench-memmove.c (simple_bcopy): Remove.
153 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
154 (generic_mempcpy): Add new function.
155 * benchtests/bench-memset.c (simple_bzero): Remove.
156 (builtin_bzero): Remove.
157 (builtin_memset): Remove.
158 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
159 (generic_rawmemchr): Add new function.
160
161 2019-02-12 Florian Weimer <fweimer@redhat.com>
162
163 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
164
165 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
166
167 [BZ #24122]
168 * elf/Makefile (tests): Add tst-audit13.
169 (modules-names): Add tst-audit13mod1.
170 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
171 rule.
172 * elf/tst-audit13.c: New file.
173 * elf/tst-audit13mod1.c: Likewise.
174
175 2019-02-12 Florian Weimer <fweimer@redhat.com>
176
177 [BZ #24122]
178 * elf/rtld.c (unload_audit_module): New function.
179 (report_audit_module_load_error): Likewise.
180 (load_audit_module): Likewise. Extracted from dl_main. Call
181 _dl_close if the laversion symbol cannot be found. Use early
182 returns for error handling. Add malloc error check. Check for a
183 zero return value from la_version. Remove spurious comment about
184 static TLS initialization. Remove useless casts.
185 (notify_audit_modules_of_loaded_object): New function. Extracted
186 from dl_main.
187 (load_audit_module): Likewise.
188 (dl_main): Call load_audit_modules.
189
190 2019-02-12 Joseph Myers <joseph@codesourcery.com>
191
192 * elf/dl-exception.c (_dl_exception_create_format): Add
193 fall-through comments.
194 * elf/ldconfig.c (parse_conf_include): Likewise.
195 * elf/rtld.c (print_statistics): Likewise.
196 * locale/programs/charmap.c (parse_charmap): Likewise.
197 * misc/mntent_r.c (__getmntent_r): Likewise.
198 * posix/wordexp.c (parse_arith): Likewise.
199 (parse_backtick): Likewise.
200 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
201 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
202 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
203
204 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
205
206 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
207 Use float instead of double.
208
209 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
210
211 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
212
213 2019-02-08 Joseph Myers <joseph@codesourcery.com>
214
215 * sysdeps/powerpc/bits/mathinline.h: Remove.
216
217 2019-02-08 Florian Weimer <fweimer@redhat.com>
218
219 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
220 * math/bits/math-finite.h: Move to ...
221 * bits/math-finite.h: ... here.
222
223 2019-02-08 Florian Weimer <fweimer@redhat.com>
224
225 * sysdeps/generic/bits/unistd_ext.h: Move to ...
226 * bits/unistd_ext.h: here.
227
228 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
229
230 [BZ #21915]
231 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
232 * nss/tst-nss-files-hosts-long.c: New file.
233 * nss/tst-nss-files-hosts-long.root: New directory.
234 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
235 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
236
237 2019-02-08 Florian Weimer <fweimer@redhat.com>
238
239 * include/bits/unistd_ext.h: Remove file.
240 * posix/bits/unistd_ext.h: Move to ...
241 * sysdeps/generic/bits/unistd_ext.h: ... here.
242
243 2019-02-08 Florian Weimer <fweimer@redhat.com>
244
245 * include/bits/unistd_ext.h: New file.
246
247 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
248
249 * time/tst-strftime2.c: Use array_length macros instead of magic
250 numbers.
251
252 2019-02-08 Florian Weimer <fweimer@redhat.com>
253
254 [BZ #24161]
255 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
256 argument.
257 * nptl/register-atfork.c (__run_fork_handlers): Only perform
258 locking if the new do_locking argument is true.
259 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
260 __run_fork_handlers.
261
262 2019-02-08 Florian Weimer <fweimer@redhat.com>
263
264 [BZ #6399]
265 Linux: Add gettid system call wrapper.
266 * posix/Makefile (headers): Add bits/unistd_ext.h.
267 * posix/bits/unistd_ext.h: New file.
268 * posix/unistd.h: Include it.
269 * manual/process.texi (Process Identification): Document gettid.
270 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
271 tst-gettid, tst-gettid-kill.
272 (tst-gettid): Link with $(shared-thread-library).
273 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
274 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
275 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
276 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
277 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
278 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
279 Add gettid.
280 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
281 Likewise.
282 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
283 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
284 Likewise.
285 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
286 Likewise.
287 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
288 Likewise.
289 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
290 Likewise.
291 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
292 Likewise.
293 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
294 Likewise.
295 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
296 Likewise.
297 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
298 (GLIBC_2.30): Likewise.
299 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
300 (GLIBC_2.30): Likewise.
301 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
302 (GLIBC_2.30): Likewise.
303 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
304 (GLIBC_2.30): Likewise.
305 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
306 Likewise.
307 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
308 (GLIBC_2.30): Likewise.
309 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
310 (GLIBC_2.30): Likewise.
311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
312 (GLIBC_2.30): Likewise.
313 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
314 (GLIBC_2.30): Likewise.
315 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
316 Likewise.
317 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
318 Likewise.
319 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
320 Likewise.
321 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
322 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
323 Likewise.
324 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
325 Likewise.
326 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
327 Likewise.
328 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
329 Likewise.
330 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
331
332 2019-02-07 Florian Weimer <fweimer@redhat.com>
333
334 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
335 compatibility symbols.
336
337 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
338
339 [BZ #24180]
340 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
341 Add compiler barriers and comments.
342
343 2019-02-07 Florian Weimer <fweimer@redhat.com>
344
345 * include/array_length.h (array_length): Do not use a statement
346 expression and _Static_assert, so that array_length can be used at
347 file scope and as a constant expression.
348
349 2019-02-07 Florian Weimer <fweimer@redhat.com>
350
351 * support/xdlfcn.h (xdlmopen): Declare.
352 * support/xdlmopen.c: New file.
353 * support/Makefile (libsupport-routines): Add xdlmopen.
354
355 2019-02-06 Joseph Myers <joseph@codesourcery.com>
356
357 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
358 before return type, without separate inline.
359 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
360 * elf/dl-tunables.h (tunable_is_name): Likewise.
361 * malloc/malloc.c (do_set_trim_threshold): Likewise.
362 (do_set_top_pad): Likewise.
363 (do_set_mmap_threshold): Likewise.
364 (do_set_mmaps_max): Likewise.
365 (do_set_mallopt_check): Likewise.
366 (do_set_perturb_byte): Likewise.
367 (do_set_arena_test): Likewise.
368 (do_set_arena_max): Likewise.
369 (do_set_tcache_max): Likewise.
370 (do_set_tcache_count): Likewise.
371 (do_set_tcache_unsorted_limit): Likewise.
372 * nis/nis_subr.c (count_dots): Likewise.
373 * nptl/allocatestack.c (advise_stack_range): Likewise.
374 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
375 (do_sin): Likewise.
376 (reduce_sincos): Likewise.
377 (do_sincos): Likewise.
378 * sysdeps/unix/sysv/linux/x86/elision-conf.c
379 (do_set_elision_enable): Likewise.
380 (TUNABLE_CALLBACK_FNDECL): Likewise.
381
382 2019-02-06 Florian Weimer <fweimer@redhat.com>
383
384 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
385 (xdlsym): Use dlerror to detect a NULL symbol.
386
387 2019-02-06 Florian Weimer <fweimer@redhat.com>
388
389 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
390 <stap-probe.h>.
391 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
392
393 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
394
395 * libio/tst-bz24153.c (wide): Use wide char format specifier.
396
397 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
398
399 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
400 __wmemcmp and weak alias to wmemcmp.
401
402 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
403
404 [BZ #23403]
405 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
406 TLS_TCB_AT_TP tls variant.
407 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
408 Add alignment checks.
409 * support/Makefile (libsupport-routines): Add xposix_memalign and
410 xpthread_setstack.
411 * support/support.h: Add xposix_memalign.
412 * support/xthread.h: Add xpthread_attr_setstack.
413 * support/xposix_memalign.c: New File.
414 * support/xpthread_attr_setstack.c: Likewise.
415
416 2019-02-05 Florian Weimer <fweimer@redhat.com>
417
418 [BZ #24164]
419 arm: Use "nr" constraint for Systemtap probes, to avoid the
420 compiler using memory operands for constants, due to the "o"
421 alternative in the default "nor" constraint.
422 * include/stap-probe.h [USE_STAP_PROBE]: Include
423 <stap-probe-machine.h>
424 * sysdeps/generic/stap-probe-machine.h: New file.
425 * sysdeps/arm/stap-probe-machine.h: Likewise.
426
427 2019-02-04 Joseph Myers <joseph@codesourcery.com>
428
429 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
430 with 0, not tcache->entries[tc_idx].
431
432 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
433 once.
434
435 2019-02-04 Andreas Schwab <schwab@suse.de>
436
437 [BZ #16976]
438 [BZ #17396]
439 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
440 looking up collating elements match against (wide) character
441 sequence instead of name. Correct alignment adjustment.
442 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
443 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
444 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
445 (LOCALES): Add cs_CZ.ISO-8859-2.
446 * posix/tst-fnmatch4.c: New file.
447 * posix/tst-fnmatch5.c: New file.
448 * include/wchar.h (__wmemcmp): Declare.
449 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
450 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
451 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
452 * sysdeps/s390/wmemcmp.c: Likewise.
453
454 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
455
456 [BZ #24155]
457 CVE-2019-7309
458 * NEWS: Updated for CVE-2019-7309.
459 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
460 upper 32 bits of RDX register for x32. Use unsigned Jcc
461 instructions, instead of signed.
462 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
463 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
464
465 2019-02-04 Florian Weimer <fweimer@redhat.com>
466
467 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
468 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
469 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
470 Likewise.
471 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
472 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
473 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
474 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
475 Likewise.
476 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
477 Likewise.
478 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
479 Likewise.
480 (posix_spawn_file_actions_addopen): Likewise.
481 (posix_spawn_file_actions_addclose): Likewise.
482 (posix_spawn_file_actions_adddup2): Likewise.
483 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
484 qualifiers.
485 (posix_spawn_file_actions_addfchdir_np): Likewise.
486
487 2019-02-04 David Newall <glibc@davidnewall.com>
488
489 elf: Implement --preload option for the dynamic linker.
490 * elf/rtld.c (preloadarg): New variable.
491 (handle_preload_list): Pass through “where” argument to
492 do_preload.
493 (dl_main): Handle "--preload" and add second call to
494 handle_preload_list.
495 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
496 (tst-rtld-preload-OBJS): Set variable.
497 (tst-rtld-preload.out): New target.
498 * elf/tst-rtld-preload.sh: New file.
499
500 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
501
502 * Makefile (testrun.sh): Exit in case of incorrect argument.
503
504 2019-02-04 Florian Weimer <fweimer@redhat.com>
505
506 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
507 alignment gaps.
508
509 2019-02-03 Florian Weimer <fweimer@redhat.com>
510
511 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
512 implicit overflow checks.
513
514 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
515
516 * stdlib/isomac.c: Include <unistd.h>.
517
518 2019-02-03 Florian Weimer <fweimer@redhat.com>
519
520 * include/time.h (__tzfile_default): Use int, not long int, for
521 the GMT offsets.
522 * time/tzfile.c (struct ttinfo): Change type of the offset member
523 to int.
524 (__tzfile_read): Remove useless cast.
525 (__tzfile_default): Adjust prototype.
526 * time/tzset.c (tz_rule): Change type of the offset member to int.
527 (parse_offset): Change the type of the sign variable to int.
528
529 2019-02-03 Florian Weimer <fweimer@redhat.com>
530
531 [BZ #24153]
532 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
533 * libio/getchar.c (getchar): Likewise.
534 * libio/getchar_u.c (getchar_unlocked): Likewise.
535 * libio/getwchar.c (getwchar): Likewise.
536 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
537 * libio/iogets.c (_IO_gets): Likewise.
538 * libio/vscanf.c (_IO_vscanf): Likewise.
539 * libio/vwscanf.c (__vwscanf): Likewise.
540 * libio/tst-bz24153.c: New file.
541 * libio/Makefile (tests): Add it.
542
543 2019-02-02 Florian Weimer <fweimer@redhat.com>
544
545 [BZ #14829]
546 * manual/resource.texi (Basic Scheduling Functions): Add
547 portability note. Change process to task throughout the section.
548 Remove incorrect comment about sched_yield as it affects
549 tasks/threads, not entire processes.
550 * sysdeps/unix/sysv/linux/bits/posix_opt.h
551 (_POSIX_PRIORITY_SCHEDULING): Update comment.
552
553 2019-02-01 Joseph Myers <joseph@codesourcery.com>
554
555 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
556 * configure: Regenerated.
557 * manual/install.texi (Tools for Compilation): Update minimum GCC
558 version.
559 * INSTALL: Regenerated.
560
561 2019-02-01 Florian Weimer <fweimer@redhat.com>
562
563 * support/support_test_compare_string.c
564 (support_test_compare_string): Use "string" in error message.
565 * support/tst-test_compare_string.c (do_test): Adjust.
566
567 2019-02-01 Florian Weimer <fweimer@redhat.com>
568
569 * support/support_format_address_family.c
570 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
571
572 2019-02-01 Florian Weimer <fweimer@redhat.com>
573
574 * manual/socket.texi (Internet Address Formats): Clarify the byte
575 order of struct sockaddr_in, struct sockaddr_in6. Document
576 sin6_flowinfo and sin6_scope_id.
577
578 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
579
580 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
581 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
582 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
583 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
584 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
585 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
586
587 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
588
589 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
590 [!MEMCHR](MEMCHR): Set to __memchr.
591 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
592 Add memchr_generic and memchr_nosimd.
593 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
594 (__libc_ifunc_impl_list): Add memchr ifuncs.
595 * sysdeps/aarch64/multiarch/memchr.c: New file.
596 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
597 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
598
599 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
600
601 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
602 Add memset_emag.
603 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
604 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
605 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
606 Add IS_EMAG check for ifunc dispatch.
607 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
608 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
609
610 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
611
612 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
613 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
614 Add emag.
615 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
616 New macro.
617
618 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
619
620 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
621
622 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
623
624 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
625 syscall-template file.
626
627 2019-01-31 Carlos O'Donell <carlos@redhat.com>
628 Torvald Riegel <triegel@redhat.com>
629 Rik Prohaska <prohaska7@gmail.com>
630
631 [BZ# 23844]
632 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
633 tst-rwlock-trywrlock-stall.
634 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
635 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
636 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
637 Set __wrphase_fute to 1 only if we started the write phase.
638 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
639 * nptl/tst-rwlock-trywrlock-stall.c: New file.
640 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
641 * support/xpthread_rwlock_destroy.c: New file.
642 * support/xthread.h: Declare xpthread_rwlock_destroy.
643
644 2019-02-01 Joseph Myers <joseph@codesourcery.com>
645
646 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
647 version to 4.0.2.
648
649 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
650
651 [BZ #24051]
652 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
653 * libio/fileops.c (_IO_new_file_underflow): Likewise
654 * libio/wfileops.c (_IO_wfile_underflow): Likewise
655 * libio/putchar.c (putchar): Likewise.
656 * libio/putchar_u.c (putchar_unlocked): Likewise.
657 * libio/putwchar.c (putchar): Likewise.
658 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
659 * libio/tst-bz24051.c: New test.
660 * libio/Makefile (tests): Add tst-bz24051
661
662 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
663
664 regex: fix read overrun [BZ #24114]
665 Problem found by AddressSanitizer, reported by Hongxu Chen in:
666 https://debbugs.gnu.org/34140
667 * posix/regexec.c (proceed_next_node):
668 Do not read past end of input buffer.
669
670 2019-01-31 Florian Weimer <fweimer@redhat.com>
671
672 [BZ #24059]
673 * nss/nss_files/files-alias.c (get_next_alias): Handle
674 continuation line without newline at the end.
675 * nss/tst-nss-files-alias-truncated.c: New file.
676 * nss/Makefile [$(build-shared)] (tests): Add
677 tst-nss-files-alias-truncated.
678 (tst-nss-files-alias-truncated): Link with libnss_files.so.
679 * support/namespace.h (struct support_chroot_configuration): Add
680 aliases member.
681 (struct support_chroot): Add path_aliases member.
682 * support/support_chroot.c (support_chroot_create): Handle
683 aliases.
684 (support_chroot_free): Free path_aliases.
685
686 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
687
688 * version.h (RELEASE): Set to "development".
689 (VERSION): Set to "2.29.9000".
690 * NEWS: Add section for 2.30.
691
692 * version.h (RELEASE): Set to "stable".
693 (VERSION): Set to "2.29".
694 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
695
696 * NEWS: Add the list of bugs fixed in 2.29.
697 * manual/contrib.texi: Update contributors list with some more
698 names.
699 * manual/install.texi: Update latest versions of packages
700 tested.
701 * INSTALL: Regenerated.
702
703 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
704
705 * po/be.po: Update translations.
706 * po/bg.po: Likewise.
707 * po/ca.po: Likewise.
708 * po/cs.po: Likewise.
709 * po/da.po: Likewise.
710 * po/de.po: Likewise.
711 * po/el.po: Likewise.
712 * po/eo.po: Likewise.
713 * po/es.po: Likewise.
714 * po/fi.po: Likewise.
715 * po/fr.po: Likewise.
716 * po/gl.po: Likewise.
717 * po/hr.po: Likewise.
718 * po/hu.po: Likewise.
719 * po/ia.po: Likewise.
720 * po/id.po: Likewise.
721 * po/it.po: Likewise.
722 * po/ja.po: Likewise.
723 * po/ko.po: Likewise.
724 * po/lt.po: Likewise.
725 * po/nb.po: Likewise.
726 * po/nl.po: Likewise.
727 * po/pl.po: Likewise.
728 * po/pt_BR.po: Likewise.
729 * po/ru.po: Likewise.
730 * po/rw.po: Likewise.
731 * po/sk.po: Likewise.
732 * po/sl.po: Likewise.
733 * po/sv.po: Likewise.
734 * po/tr.po: Likewise.
735 * po/uk.po: Likewise.
736 * po/vi.po: Likewise.
737 * po/zh_CN.po: Likewise.
738 * po/zh_TW.po: Likewise.
739
740 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
741
742 [BZ #24130]
743 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
744 of $f3 register on $y_is_neg path.
745
746 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
747
748 [BZ #24110]
749 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
750 sigaltstack.ss_flags.
751
752 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
753
754 [BZ #23758]
755 * manual/time.texi (strftime): Document "%Ey".
756 * time/strftime_l.c (__strftime_internal): Set the default width
757 padding with zero of "%Ey" to 2.
758
759 [BZ #24096]
760 * manual/time.texi (strftime): Document "%EC" and "%EY".
761 * time/Makefile (tests): Add tst-strftime2.
762 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
763 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
764 override padding for "%Ey".
765 If an optional flag ('_' or '-') is specified to "%EY", interpret the
766 "%Ey" in the subformat as if decorated with that flag.
767 * time/tst-strftime2.c: New file.
768
769 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
770
771 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
772 are not defined.
773
774 [BZ #24122]
775 * elf/Makefile (tests): Add tst-audit13.
776 (modules-names): Add tst-audit13mod1.
777 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
778 rule.
779 * elf/rtld.c (dl_main): Handle invalid audit module version.
780 * elf/tst-audit13.c: New file.
781 * elf/tst-audit13mod1.c: Likewise.
782
783 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
784
785 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
786 returned by __hurd_at_flags.
787 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
788 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
789 directly instead of __hurd_file_name_lookup.
790
791 2019-01-21 Joseph Myers <joseph@codesourcery.com>
792
793 * scripts/build-many-glibcs.py (Context.checkout): Default
794 binutils version to 2.32 branch.
795
796 2019-01-21 Florian Weimer <fweimer@redhat.com>
797
798 [BZ #20018]
799 CVE-2016-10739
800 resolv: Reject trailing characters in host names
801 * include/arpa/inet.h (__inet_aton_exact): Declare.
802 (inet_aton): Remove hidden prototype. No longer used internally.
803 * nscd/gai.c (__inet_aton): Do not define.
804 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
805 * nss/digits_dots.c (__inet_aton): Likewise.
806 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
807 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
808 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
809 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
810 (tst-resolv-trailing): Likewise.
811 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
812 libc.
813 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
814 Make static. Add endp parameter.
815 (__inet_aton_exact): New function.
816 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
817 (__inet_addr): Call inet_aton_end.
818 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
819 not just IPv6. Call __inet_aton_exact.
820 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
821 (tests): Make const. Add additional test cases with trailing
822 characters.
823 (do_test): Use array_length.
824 * resolv/tst-inet_aton_exact.c: New file.
825 * resolv/tst-resolv-trailing.c: Likewise.
826 * resolv/tst-resolv-nondecimal.c: Likewise.
827 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
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/strlen-avx2.S: Use RSI_LP for length.
834 Clear the upper 32 bits of RSI register.
835 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
836 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
837 and tst-size_t-wcsnlen.
838 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
839 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
840
841 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
842
843 [BZ# 24097]
844 CVE-2019-6488
845 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
846 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
847 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
848 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
849 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
850
851 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
852
853 [BZ# 24097]
854 CVE-2019-6488
855 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
856 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
857 * sysdeps/x86_64/strcmp.S: Likewise.
858 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
859 tst-size_t-strncmp and tst-size_t-wcsncmp.
860 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
861 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
862 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
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/memset-avx512-no-vzeroupper.S: Use
869 RDX_LP for length. Clear the upper 32 bits of RDX register.
870 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
871 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
872 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
873 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
874
875 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
876
877 [BZ# 24097]
878 CVE-2019-6488
879 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
880 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
881 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
882 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
883
884 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
885
886 [BZ# 24097]
887 CVE-2019-6488
888 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
889 length. Clear the upper 32 bits of RDX register.
890 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
891 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
892 Likewise.
893 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
894 Likewise.
895 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
896 tst-size_t-wmemchr.
897 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
898
899 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
900
901 [BZ# 24097]
902 CVE-2019-6488
903 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
904 length. Clear the upper 32 bits of RDX register.
905 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
906 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
907 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
908 tst-size_t-wmemcmp.
909 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
910 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
911
912 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
913
914 [BZ# 24097]
915 CVE-2019-6488
916 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
917 upper 32 bits of RDX register.
918 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
919 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
920 tst-size_t-wmemchr.
921 * sysdeps/x86_64/x32/test-size_t.h: New file.
922 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
923 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
924
925 2019-01-18 Florian Weimer <fweimer@redhat.com>
926
927 [BZ #24112]
928 resolv: Do not send queries for non-host-names in nss_dns.
929 * resolv/nss_dns/dns-host.c (check_name): New function.
930 (_nss_dns_gethostbyname2_r): Use it.
931 (_nss_dns_gethostbyname_r): Likewise.
932 (_nss_dns_gethostbyname4_r): Likewise.
933
934 2019-01-21 Florian Weimer <fweimer@redhat.com>
935
936 * resolv/inet_addr.c: Reformat to GNU style.
937 (__inet_addr, __inet_aton): Update comment.
938
939 2019-01-18 Florian Weimer <fweimer@redhat.com>
940
941 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
942 ("malloc: Use current (C11-style) atomics for fastbin access").
943 This commit introduces a substantial performance regression on
944 POWER and Aarch64.
945 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
946 (REMOVE_FB): Define.
947 (_int_malloc): Use it and reindent.
948 (_int_free): Use CAS loop with
949 catomic_compare_and_exchange_val_rel.
950 (malloc_consolidate): Use atomic_exchange_acq.
951
952
953 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
954
955 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
956 -Wl,-z,now.
957 (LDFLAGS-tst-minsigstksz-2): Likewise.
958 (LDFLAGS-tst-minsigstksz-3): Likewise.
959 (LDFLAGS-tst-minsigstksz-3a): Likewise.
960 (LDFLAGS-tst-minsigstksz-4): Likewise.
961
962 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
963
964 * manual/time.texi (strftime): Fix the wording to "alternative" rather
965 than "alternate".
966
967 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
968
969 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
970
971 2019-01-16 Zack Weinberg <zackw@panix.com>
972
973 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
974 (xget_sigstack_location): New test support functions.
975 * support/xsigstack.c: New file, implementing them.
976 * support/tst-xsigstack.c: New test for them.
977 * support/Makefile: Update.
978
979 * signal/tst-minsigstksz-1.c
980 * signal/tst-minsigstksz-2.c
981 * signal/tst-minsigstksz-3.c
982 * signal/tst-minsigstksz-3a.c
983 * signal/tst-minsigstksz-4.c: New tests.
984 * signal/Makefile: Run them.
985
986 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
987
988 * po/libc.pot: Regenerate.
989
990 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
991
992 * math/libm-test-fma.inc (fma_test_data): Set
993 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
994
995 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
996
997 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
998 (do_test): Changed __vector __int128_t to __vector unsigned int.
999
1000 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1001
1002 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1003 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1004 stpcpy-avx2 and stpncpy-avx2.
1005 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1006 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1007 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1008 and __stpncpy_avx2.
1009 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1010 ifunc-strcpy.h}: rename header for a more generic name.
1011 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1012 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1013 AVX unaligned load is fast and vzeroupper is preferred.
1014 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1015 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1016 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1017 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1018 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1019 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1020
1021 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1022
1023 * argp/argp-help.c: Fix typo in comment.
1024 * misc/sys/cdefs.h: Likewise.
1025 * posix/regexec.c (sift_states_iter_mb): Likewise.
1026 * socket/sockatmark.c: Likewise.
1027 * socket/sys/socket.h: Likewise.
1028 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1029 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1030 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1031 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1032 * sysdeps/unix/sockatmark.c: Likewise.
1033 * time/strptime_l.c: Likewise.
1034
1035 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1036
1037 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1038 missing space after the cast of "_NL_CURRENT".
1039
1040 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1041
1042 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1043 ifdef to fix read of VSCR.
1044 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1045 tst-ucontext-ppc64-vscr.c to test list.
1046 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1047
1048 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1049
1050 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1051 fall-through.
1052
1053 2019-01-09 Jim Wilson <jimw@sifive.com>
1054
1055 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1056
1057 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1058
1059 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1060 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1061 __memcpy_falkor for ares.
1062 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1063 Add new define.
1064 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1065 Add ares cpu.
1066
1067 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1068
1069 [BZ #24066]
1070 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1071 4_FP_W_TYPEs are used for IEEE quad precision.
1072 * soft-fp/extendhftf2.c: Likewise.
1073 * soft-fp/extendsftf2.c: Likewise.
1074 * soft-fp/extendxftf2.c: Likewise.
1075 * soft-fp/trunctfdf2.c: Likewise.
1076 * soft-fp/trunctfhf2.c: Likewise.
1077 * soft-fp/trunctfsf2.c: Likewise.
1078 * soft-fp/trunctfxf2.c: Likewise.
1079 * sysdeps/alpha/ots_cvttx.c: Likewise.
1080 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1081 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1082 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1083 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1084 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1085 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1086 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1087 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1088 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1089 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1090 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1091 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1092 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1093 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1094 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1095 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1096 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1097
1098 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1099
1100 [BZ #24024]
1101 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1102 code with -fmath-errno.
1103 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1104 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1105 * string/test-strerror-errno.c: New file.
1106
1107 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1108
1109 [BZ #24046]
1110 * localedata/locales/en_US (date_fmt): Add, set to
1111 "%a %d %b %Y %r %Z".
1112
1113 2019-01-07 Florian Weimer <fweimer@redhat.com>
1114
1115 [BZ #24063]
1116 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1117 instead of @var{errno}.
1118 (Parsing of Integers): Likewise.
1119 (Parsing of Floats): Likewise.
1120 * manual/filesys.texi (Working with Directory Trees): Likewise.
1121 (Temporary Files): Likewise.
1122 * manual/job.texi (Terminal Access Functions): Likewise.
1123 * manual/llio.texi (Synchronizing I/O): Likewise.
1124 * manual/math.texi (SVID Random): Likewise.
1125 * manual/message.texi (The catgets Functions): Likewise.
1126 (Translation with gettext): Likewise.
1127 (Locating gettext catalog): Likewise.
1128 (Charset conversion in gettext): Likewise.
1129 * manual/nss.texi (NSS Module Function Internals): Likewise.
1130 * manual/search.texi (Hash Search Function): Likewise.
1131 * manual/setjmp.texi (System V contexts): Likewise.
1132 * manual/time.texi (Sleeping): Likewise.
1133 * manual/users.texi (Lookup User): Likewise.
1134 (Lookup Group): Likewise.
1135
1136 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1137
1138 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1139 fix typo.
1140
1141 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1142
1143 [BZ #19444]
1144 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1145 __builtin_unreachable for default case in switch.
1146 (__ieee754_yn): Likewise.
1147 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1148 (__ieee754_ynl): Likewise.
1149 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1150 (__ieee754_ynl): Likewise.
1151 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1152 (__ieee754_ynl): Likewise.
1153
1154 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1155
1156 * manual/maint.texi: Use @{ and @}.
1157
1158 2019-01-04 Florian Weimer <fweimer@redhat.com>
1159
1160 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1161 function.
1162 (do_in_chroot_1): Call it.
1163 (run_chroot_tests):
1164 Improve error reporting in case it is not possible to create a
1165 collision for the PTY name required by the test.
1166
1167 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1168
1169 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1170 lll_wait_tid with timeout.
1171 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1172 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1173 futex_reltimed_wait_cancelable for cancelabla mode.
1174 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1175 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1176 macros.
1177 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1178 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1179 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1180 SYSCALL_CANCEL_NCS): New macro.
1181 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1182 (lll_timedwait_tid): Remove macro.
1183 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1184 Likewise.
1185 (lll_timedwait_tid): Likewise.
1186 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1187 Likewise.
1188 (lll_timedwait_tid): Likewise.
1189 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1190 Likewise.
1191 (lll_timedwait_tid): Likewise.
1192 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1193 Use INTERNAL_SYSCALL_CANCEL.
1194 * sysdeps/unix/sysv/linux/futex-internal.h
1195 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1196 instead of __pthread_{enable,disable}_asynccancel.
1197 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1198 (lll_futex_wait_cancel): New macro.
1199
1200 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1201 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1202
1203 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1204 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1205
1206 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1207 in backtrace analysis.
1208 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1209 side-effects.
1210 (tf_send): Likewise.
1211
1212 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1213 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1214 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1215 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1216 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1217 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1218 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1219 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1220 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1221 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1222 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1223 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1224 Likewise.
1225 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1226 tst-cancel-wrappers.sh.
1227 (generated): Remove tst-cancel-wrappers.out.
1228 (tst-cancel-wrappers.out): Remove rule.
1229 * nptl/tst-cancel-wrappers.sh: Remove file.
1230
1231 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1232
1233 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1234 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1235 Update.
1236
1237 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1238
1239 [BZ #23640]
1240 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1241 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1242 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1243 close-on-exec reset for adddup2 file action.
1244 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1245
1246 2019-01-03 Zack Weinberg <zackw@panix.com>
1247
1248 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1249 parameter. Only use deprecated scanf when __USE_GNU is defined
1250 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1251 than 201103L, whichever is relevant for the language being compiled.
1252
1253 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1254 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1255 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1256 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1257 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1258
1259 * libio/iovsscanf.c
1260 * libio/fwscanf.c
1261 * libio/iovswscanf.c
1262 * libio/swscanf.c
1263 * libio/vscanf.c
1264 * libio/vwscanf.c
1265 * libio/wscanf.c
1266 * stdio-common/fscanf.c
1267 * stdio-common/scanf.c
1268 * stdio-common/vfscanf.c
1269 * stdio-common/vfwscanf.c
1270 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1271 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1272 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1273 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1274 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1275 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1276 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1277 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1278 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1279 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1280 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1281 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1282 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1283 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1284 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1285
1286 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1287 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1288 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1289 not sscanf.
1290 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1291 with a preprocessor macro.
1292
1293 * stdio-common/bug21.c, stdio-common/scanf14.c:
1294 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1295 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1296 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1297 to xscanf, xfscanf, xsscanf.
1298
1299 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1300 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1301 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1302 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1303 xfscanf, xsscanf.
1304 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1305 override feature selection macros or provide definitions of u_char etc.
1306 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1307 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1308 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1309 with -std=gnu89.
1310
1311 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1312
1313 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1314 bits/termios-misc.h.
1315 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1316 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1317 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1318 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1319 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1320 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1321
1322 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1323 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1324 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1325 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1326 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1327 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1328 termios-misc.h.
1329 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1330 (sysdep_headers): Add termios-misc.h.
1331
1332 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1333 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1334 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1335
1336 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1337 termios-tcflow.h.
1338 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1339 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1340 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1341 TCSAFLUSH): Move to termios-tcflow.h.
1342 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1343 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1344 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1345 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1346
1347 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1348 termios-c_lflag.h.
1349 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1350 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1351 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1352 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1353 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1354 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1355 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1356 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1357 Likewise.
1358 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1359 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1360 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1361 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1362
1363 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1364 termios-c_cflag.h.
1365 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1366 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1367 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1368 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1369 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1370 termios-c_cflag.h.
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 [BZ #23783]
1377 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1378 termios-baud.h.
1379 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1380 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1381 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1382 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1383 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1384 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1385 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1386 __MAX_BAUD): Move to termios-baud.h.
1387 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1388 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1389 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1390 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1391 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1392
1393 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1394 termios-c_oflag.h.
1395 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1396 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1397 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1398 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1399 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1400 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1401 termios-c_oflag.h.
1402 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1403 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1404 FFR1): Likewise.
1405 [USE_MISC] (XTABS): Likewise.
1406 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1407 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1408 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1409 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1410
1411 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1412 termios-c_iflag.h.
1413 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1414 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1415 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1416 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1417 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1418 IUTF8): Move to termios-c_iflag.h.
1419 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1420 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1421 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1422 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1423
1424 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1425 termios-cc.h.
1426 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1427 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1428 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1429 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1430 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1431 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1432 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1433 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1434 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1435 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1436 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1437 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1438
1439 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1440 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1441 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1442 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1443 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1444 termios-struct.h.
1445 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1446 termios-struct.h.
1447 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1448 Likewise.
1449 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1450 Likewise.
1451 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1452 Likewise.
1453 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1454 Likewise.
1455 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1456 _HAVE_C_OSPEED): Define.
1457 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1458 _HAVE_C_OSPEED): Likewise.
1459 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1460 _HAVE_C_OSPEED): Likewise.
1461 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1462 (cfsetospeed): Check for define value instead of existence.
1463 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1464 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1465 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1466 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1467 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1468
1469 [BZ #17783]
1470 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1471 Define.
1472 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1473 (TIOCSER_TEMT): Likewise.
1474 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1475 (TEOCSER_TEMT): Likewise.
1476
1477 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1478
1479 [BZ #24011]
1480 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1481
1482 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1483
1484 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1485
1486 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1487
1488 * sysdeps/htl/pt-barrierattr-setpshared.c
1489 (pthread_barrierattr_setpshared): Add stub warning.
1490 * sysdeps/htl/pt-condattr-setpshared.c
1491 (pthread_condattr_setpshared): Likewise.
1492 * sysdeps/htl/pt-mutexattr-setpshared.c
1493 (pthread_mutexattr_setpshared): Likewise.
1494 * sysdeps/htl/pt-rwlockattr-setpshared.c
1495 (pthread_rwlockattr_setpshared): Likewise.
1496 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1497 (pthread_mutexattr_setpshared): Likewise.
1498
1499 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1500
1501 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1502 constants to match with Linux 4.20.
1503
1504 * sysdeps/mips/mips32/libm-test-ulps: Update.
1505 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1506
1507 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1508
1509 [BZ #24034]
1510 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1511 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1512 than __typeof (...) for the a_ptr variable.
1513
1514 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1515
1516 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1517 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1518 * libio/Makefile (tests): Add tst-sprintf-ub and
1519 tst-sprintf-chk-ub.
1520 (CFLAGS-tst-sprintf-ub.c): New variable.
1521 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1522 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1523 destination buffer and check for overflows in fortified mode.
1524 * libio/libioP.h (PRINTF_CHK): New macro.
1525 * libio/tst-sprintf-chk-ub.c: New file.
1526 * libio/tst-sprintf-ub.c: Likewise.
1527
1528 2019-01-02 Florian Weimer <fweimer@redhat.com>
1529
1530 [BZ #24018]
1531 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1532 failure.
1533
1534 2019-01-02 Florian Weimer <fweimer@redhat.com>
1535
1536 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1537
1538 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1539
1540 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1541 macro.
1542
1543 * sysdeps/unix/sysv/linux/netpacket/packet.h
1544 (PACKET_IGNORE_OUTGOING): New macro.
1545
1546 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1547 macro.
1548
1549 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1550 version to 4.20.
1551 (riscv_flush_icache): New syscall.
1552
1553 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1554 trailing whitespace removed.
1555 * scripts/config.guess: Update to version 2019-01-01.
1556 * scripts/config.sub: Update to version 2019-01-01.
1557 * scripts/move-if-change: Update from gnulib.
1558
1559 * NEWS: Update copyright dates.
1560 * catgets/gencat.c (print_version): Likewise.
1561 * csu/version.c (banner): Likewise.
1562 * debug/catchsegv.sh: Likewise.
1563 * debug/pcprofiledump.c (print_version): Likewise.
1564 * debug/xtrace.sh (do_version): Likewise.
1565 * elf/ldconfig.c (print_version): Likewise.
1566 * elf/ldd.bash.in: Likewise.
1567 * elf/pldd.c (print_version): Likewise.
1568 * elf/sotruss.sh: Likewise.
1569 * elf/sprof.c (print_version): Likewise.
1570 * iconv/iconv_prog.c (print_version): Likewise.
1571 * iconv/iconvconfig.c (print_version): Likewise.
1572 * locale/programs/locale.c (print_version): Likewise.
1573 * locale/programs/localedef.c (print_version): Likewise.
1574 * login/programs/pt_chown.c (print_version): Likewise.
1575 * malloc/memusage.sh (do_version): Likewise.
1576 * malloc/memusagestat.c (print_version): Likewise.
1577 * malloc/mtrace.pl: Likewise.
1578 * manual/libc.texinfo: Likewise.
1579 * nptl/version.c (banner): Likewise.
1580 * nscd/nscd.c (print_version): Likewise.
1581 * nss/getent.c (print_version): Likewise.
1582 * nss/makedb.c (print_version): Likewise.
1583 * posix/getconf.c (main): Likewise.
1584 * scripts/test-installation.pl: Likewise.
1585 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1586
1587 * All files with FSF copyright notices: Update copyright dates
1588 using scripts/update-copyrights.
1589 * locale/programs/charmap-kw.h: Regenerated.
1590 * locale/programs/locfile-kw.h: Likewise.
1591
1592 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1593
1594 * timezone/zdump.c: Update from tzcode 2018i.
1595 * timezone/zic.c: Likewise.
1596
1597 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1598
1599 regex: improve Gnulib port to AIX
1600 From the glibc point of view, this removes duplicate macro
1601 definitions and is obviously safe.
1602 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1603 * posix/regex_internal.h:
1604 (__attribute__, __attribute_warn_unused_result__):
1605 Remove; already defined elsewhere.
1606
1607 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1608
1609 [BZ #24027]
1610 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1611 copying operation. (ncopies had the wrong type, resulting in an
1612 integer wraparound and too few elements being copied.)
1613
1614 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1615
1616 [BZ #24022]
1617 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1618 <asm/syscalls.h> exists with __has_include__ before including it.
1619
1620 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1621
1622 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1623 version to 4.20.
1624
1625 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1626
1627 * hurd/lookup-retry: Include <unistd.h>.
1628 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1629 Release it on return. Handle "pid" magical lookup retry.
1630
1631 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1632
1633 [BZ #10496]
1634 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1635 (t_fmt_ampm): Likewise.
1636 * localedata/locales/aa_ER (t_fmt): Likewise.
1637 (t_fmt_ampm): Likewise.
1638 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1639 (t_fmt_ampm): Likewise.
1640 * localedata/locales/aa_ET (t_fmt): Likewise.
1641 (t_fmt_ampm): Likewise.
1642 * localedata/locales/am_ET (t_fmt): Likewise.
1643 (t_fmt_ampm): Likewise.
1644 * localedata/locales/byn_ER (t_fmt): Likewise.
1645 (t_fmt_ampm): Likewise.
1646 * localedata/locales/om_ET (t_fmt): Likewise.
1647 (t_fmt_ampm): Likewise.
1648 * localedata/locales/sid_ET (t_fmt): Likewise.
1649 (t_fmt_ampm): Likewise.
1650 * localedata/locales/so_DJ (t_fmt): Likewise.
1651 (t_fmt_ampm): Likewise.
1652 * localedata/locales/so_ET (t_fmt): Likewise.
1653 (t_fmt_ampm): Likewise.
1654 * localedata/locales/so_SO (t_fmt): Likewise.
1655 (t_fmt_ampm): Likewise.
1656 * localedata/locales/ti_ER (t_fmt): Likewise.
1657 (t_fmt_ampm): Likewise.
1658 * localedata/locales/ti_ET (t_fmt): Likewise.
1659 (t_fmt_ampm): Likewise.
1660 * localedata/locales/tig_ER (t_fmt): Likewise.
1661 (t_fmt_ampm): Likewise.
1662 * localedata/locales/wal_ET (t_fmt): Likewise.
1663 (t_fmt_ampm): Likewise.
1664
1665 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1666 * localedata/locales/ar_IN (t_fmt): Likewise.
1667 * localedata/locales/bhb_IN (t_fmt): Likewise.
1668 * localedata/locales/bho_IN (t_fmt): Likewise.
1669 * localedata/locales/bi_VU (t_fmt): Likewise.
1670 * localedata/locales/bn_BD (t_fmt): Likewise.
1671 * localedata/locales/bn_IN (t_fmt): Likewise.
1672 * localedata/locales/brx_IN (t_fmt): Likewise.
1673 * localedata/locales/doi_IN (t_fmt): Likewise.
1674 * localedata/locales/en_HK (t_fmt): Likewise.
1675 (t_fmt_ampm): Likewise.
1676 * localedata/locales/en_IN (t_fmt): Likewise.
1677 * localedata/locales/en_PH (t_fmt): Likewise.
1678 * localedata/locales/gu_IN (t_fmt): Likewise.
1679 * localedata/locales/hi_IN (t_fmt): Likewise.
1680 * localedata/locales/hif_FJ (t_fmt): Likewise.
1681 * localedata/locales/hne_IN (t_fmt): Likewise.
1682 * localedata/locales/kn_IN (t_fmt): Likewise.
1683 * localedata/locales/kok_IN (t_fmt): Likewise.
1684 * localedata/locales/ks_IN (t_fmt): Likewise.
1685 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1686 * localedata/locales/mag_IN (t_fmt): Likewise.
1687 * localedata/locales/mai_IN (t_fmt): Likewise.
1688 * localedata/locales/mjw_IN (t_fmt): Likewise.
1689 * localedata/locales/ml_IN (t_fmt): Likewise.
1690 * localedata/locales/mni_IN (t_fmt): Likewise.
1691 * localedata/locales/mr_IN (t_fmt): Likewise.
1692 * localedata/locales/ms_MY (t_fmt): Likewise.
1693 * localedata/locales/pa_IN (t_fmt): Likewise.
1694 * localedata/locales/raj_IN (t_fmt): Likewise.
1695 * localedata/locales/sa_IN (t_fmt): Likewise.
1696 * localedata/locales/sat_IN (t_fmt): Likewise.
1697 * localedata/locales/sd_IN (t_fmt): Likewise.
1698 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1699 * localedata/locales/tcy_IN (t_fmt): Likewise.
1700 * localedata/locales/the_NP (t_fmt): Likewise.
1701 * localedata/locales/to_TO (t_fmt): Likewise.
1702 * localedata/locales/ur_IN (t_fmt): Likewise.
1703
1704 * localedata/locales/hif_FJ (d_t_fmt): Set to
1705 "%A %d %b %Y %I:%M:%S %p".
1706 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1707
1708 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1709 * localedata/locales/ar_BH (t_fmt): Likewise.
1710 * localedata/locales/ar_DZ (t_fmt): Likewise.
1711 * localedata/locales/ar_EG (t_fmt): Likewise.
1712 * localedata/locales/ar_IQ (t_fmt): Likewise.
1713 * localedata/locales/ar_JO (t_fmt): Likewise.
1714 * localedata/locales/ar_KW (t_fmt): Likewise.
1715 * localedata/locales/ar_LB (t_fmt): Likewise.
1716 * localedata/locales/ar_LY (t_fmt): Likewise.
1717 * localedata/locales/ar_OM (t_fmt): Likewise.
1718 * localedata/locales/ar_QA (t_fmt): Likewise.
1719 * localedata/locales/ar_SD (t_fmt): Likewise.
1720 * localedata/locales/ar_SS (t_fmt): Likewise.
1721 * localedata/locales/ar_SY (t_fmt): Likewise.
1722 * localedata/locales/ar_TN (t_fmt): Likewise.
1723 * localedata/locales/ar_YE (t_fmt): Likewise.
1724
1725 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1726 (t_fmt_ampm): Likewise.
1727 * localedata/locales/gez_ET (t_fmt): Likewise.
1728 (t_fmt_ampm): Likewise.
1729
1730 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1731 (t_fmt_ampm): Likewise.
1732 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1733
1734 * localedata/locales/zh_HK (t_fmt):
1735 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1736
1737 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1738 because this locale does not use the 12-hour clock.
1739 (t_fmt): Set to "%Z %H:%M:%S".
1740 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1741
1742 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1743 because this locale does not use the 12-hour clock.
1744 (t_fmt): Set to "%H:%M:%S %Z".
1745 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1746
1747 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1748 because this locale does not use the 12-hour clock.
1749 (t_fmt): Set to "%T".
1750 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1751 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1752
1753 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1754 because this locale does not use the 12-hour clock.
1755 (t_fmt): Set to "%H:%M:%S %Z".
1756 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1757
1758 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1759 because this locale does not use the 12-hour clock.
1760 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1761 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1762
1763 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1764
1765 [BZ #10496]
1766 [BZ #23724]
1767 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1768 (t_fmt_ampm): Likewise.
1769 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1770 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1771 (d_fmt): Set to "%-d.%-m.%y".
1772
1773 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1774
1775 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1776 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1777 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1778 Likewise.
1779 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1780 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1781 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1782 function.
1783 * support/blob_repeat.c (check_mul_overflow_size_t,
1784 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1785
1786 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1787
1788 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1789
1790 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1791
1792 regex: simplify Gnulib port
1793 This simplifies the code, by removing stuff intended for porting
1794 to Gnulib but no longer needed there.
1795 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1796 uses of libc_hidden_def, weak_alias.
1797 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1798 _Restrict_ except for public-facing headers.
1799 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1800 Remove; already defined elsewhere.
1801 * posix/regex.c, posix/regex_internal.h:
1802 Use __GNUC_PREREQ instead of rolling our own.
1803 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1804
1805 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1806
1807 * benchtests/bench-strlen.c (generic_strlen): New function.
1808 (memchr_strlen): New function.
1809
1810 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1811
1812 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1813 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1814 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1815
1816 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1817
1818 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1819
1820 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1821
1822 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1823 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1824 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1825 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1826 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1827 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1828 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1829
1830 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1831
1832 [BZ #24023]
1833 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1834 PLT reference in libc.so.
1835 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1836 _Q_lltoq and _Q_qtod PLT references in libc.so.
1837
1838 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1839
1840 * benchtests/bench-memchr.c: Cleanup defines.
1841 * benchtests/bench-memcmp.c: Likewise.
1842 * benchtests/bench-memset.c: Likewise.
1843 * benchtests/bench-memset-large.c: Likewise.
1844 * benchtests/bench-memset-walk.c: Likewise.
1845 * benchtests/bench-stpcpy.c: Likewise.
1846 * benchtests/bench-stpncpy.c: Likewise.
1847 * benchtests/bench-strcat.c: Likewise.
1848 * benchtests/bench-strchr.c: Likewise.
1849 * benchtests/bench-strcmp.c: Likewise.
1850 * benchtests/bench-strcpy.c: Likewise.
1851 * benchtests/bench-strcspn.c: Likewise.
1852 * benchtests/bench-string.h: Likewise.
1853 * benchtests/bench-strlen.c: Likewise.
1854 * benchtests/bench-strncat.c: Likewise.
1855 * benchtests/bench-strncmp.c: Likewise.
1856 * benchtests/bench-strncpy.c: Likewise.
1857 * benchtests/bench-strnlen.c: Likewise.
1858 * benchtests/bench-strpbrk.c: Likewise.
1859 * benchtests/bench-strrchr.c: Likewise.
1860 * benchtests/bench-strspn.c: Likewise.
1861
1862 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1863
1864 * stdlib/longlong.h: Update from GCC.
1865
1866 [BZ #23993]
1867 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1868 * configure: Regenerated.
1869 * manual/install.texi (Tools for Compilation): Update minimum GCC
1870 version.
1871 * INSTALL: Regenerated.
1872
1873 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1874
1875 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1876
1877 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1878
1879 * malloc/malloc.c (mremap_chunk): Additional checks.
1880
1881 2018-12-21 Mao Han <han_mao@c-sky.com>
1882
1883 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1884 * scripts/build-many-glibcs.py: Add C-SKY targets.
1885 * sysdeps/csky/Implies: New file.
1886 * sysdeps/csky/Makefile: Likewise.
1887 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1888 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1889 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1890 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1891 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1892 * sysdeps/csky/abiv2/memmove.S: Likewise.
1893 * sysdeps/csky/abiv2/memset.S: Likewise.
1894 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1895 * sysdeps/csky/abiv2/start.S: Likewise.
1896 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1897 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1898 * sysdeps/csky/abiv2/strlen.S: Likewise.
1899 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1900 * sysdeps/csky/abort-instr.h: Likewise.
1901 * sysdeps/csky/atomic-machine.h: Likewise.
1902 * sysdeps/csky/bits/endian.h: Likewise.
1903 * sysdeps/csky/bits/fenv.h: Likewise.
1904 * sysdeps/csky/bits/link.h: Likewise.
1905 * sysdeps/csky/bits/setjmp.h: Likewise.
1906 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1907 * sysdeps/csky/bsd-setjmp.S: Likewise.
1908 * sysdeps/csky/configure: Likewise.
1909 * sysdeps/csky/configure.ac: Likewise.
1910 * sysdeps/csky/dl-machine.h: Likewise.
1911 * sysdeps/csky/dl-procinfo.c: Likewise.
1912 * sysdeps/csky/dl-procinfo.h: Likewise.
1913 * sysdeps/csky/dl-sysdep.h: Likewise.
1914 * sysdeps/csky/dl-tls.h: Likewise.
1915 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1916 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1917 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
1918 * sysdeps/csky/fpu/fegetenv.c: Likewise.
1919 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
1920 * sysdeps/csky/fpu/fegetmode.c: Likewise.
1921 * sysdeps/csky/fpu/fegetround.c: Likewise.
1922 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
1923 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
1924 * sysdeps/csky/fpu/fenv_private.h: Likewise.
1925 * sysdeps/csky/fpu/fesetenv.c: Likewise.
1926 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
1927 * sysdeps/csky/fpu/fesetmode.c: Likewise.
1928 * sysdeps/csky/fpu/fesetround.c: Likewise.
1929 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
1930 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
1931 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
1932 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
1933 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
1934 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
1935 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
1936 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
1937 * sysdeps/csky/fpu_control.h: Likewise.
1938 * sysdeps/csky/gccframe.h: Likewise.
1939 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
1940 * sysdeps/csky/ldsodefs.h: Likewise.
1941 * sysdeps/csky/libc-tls.c: Likewise.
1942 * sysdeps/csky/linkmap.h: Likewise.
1943 * sysdeps/csky/machine-gmon.h: Likewise.
1944 * sysdeps/csky/memusage.h: Likewise.
1945 * sysdeps/csky/nofpu/Implies: Likewise.
1946 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
1947 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
1948 * sysdeps/csky/nptl/Makefile: Likewise.
1949 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
1950 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
1951 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
1952 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
1953 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
1954 * sysdeps/csky/nptl/tls.h: Likewise.
1955 * sysdeps/csky/preconfigure: Likewise.
1956 * sysdeps/csky/sfp-machine.h: Likewise.
1957 * sysdeps/csky/sotruss-lib.c: Likewise.
1958 * sysdeps/csky/stackinfo.h: Likewise.
1959 * sysdeps/csky/sysdep.h: Likewise.
1960 * sysdeps/csky/tininess.h: Likewise.
1961 * sysdeps/csky/tst-audit.h: Likewise.
1962 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
1963 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
1964 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
1965 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
1966 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1967 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
1968 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1969 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
1970 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
1971 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
1972 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
1973 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
1974 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
1975 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
1976 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
1977 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
1978 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
1979 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
1980 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
1981 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
1982 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
1983 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
1984 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
1985 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1986 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
1987 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
1988 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1989 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
1990 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
1991 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
1992 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
1993 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
1994 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
1995 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
1996 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
1997 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
1998 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
1999 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2000 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2001 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2002 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2003 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2004 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2005 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2006
2007 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2008
2009 * include/time.h (__difftime64): Add.
2010 * time/difftime.c (subtract): convert to 64-bit time.
2011 * time/difftime.c (__difftime64): Add.
2012 * time/difftime.c (__difftime): Wrap around __difftime64.
2013
2014 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2015
2016 * manual/examples/add.c: Remove redundant "if not".
2017 * manual/examples/argp-ex1.c: Likewise.
2018 * manual/examples/argp-ex2.c: Likewise.
2019 * manual/examples/argp-ex3.c: Likewise.
2020 * manual/examples/argp-ex4.c: Likewise.
2021 * manual/examples/atexit.c: Likewise.
2022 * manual/examples/db.c: Likewise.
2023 * manual/examples/dir.c: Likewise.
2024 * manual/examples/dir2.c: Likewise.
2025 * manual/examples/execinfo.c: Likewise.
2026 * manual/examples/filecli.c: Likewise.
2027 * manual/examples/filesrv.c: Likewise.
2028 * manual/examples/fmtmsgexpl.c: Likewise.
2029 * manual/examples/genpass.c: Likewise.
2030 * manual/examples/inetcli.c: Likewise.
2031 * manual/examples/inetsrv.c: Likewise.
2032 * manual/examples/isockad.c: Likewise.
2033 * manual/examples/longopt.c: Likewise.
2034 * manual/examples/memopen.c: Likewise.
2035 * manual/examples/memstrm.c: Likewise.
2036 * manual/examples/mkdirent.c: Likewise.
2037 * manual/examples/mkfsock.c: Likewise.
2038 * manual/examples/mkisock.c: Likewise.
2039 * manual/examples/mygetpass.c: Likewise.
2040 * manual/examples/pipe.c: Likewise.
2041 * manual/examples/popen.c: Likewise.
2042 * manual/examples/rprintf.c: Likewise.
2043 * manual/examples/search.c: Likewise.
2044 * manual/examples/select.c: Likewise.
2045 * manual/examples/setjmp.c: Likewise.
2046 * manual/examples/sigh1.c: Likewise.
2047 * manual/examples/sigusr.c: Likewise.
2048 * manual/examples/stpcpy.c: Likewise.
2049 * manual/examples/strdupa.c: Likewise.
2050 * manual/examples/strftim.c: Likewise.
2051 * manual/examples/subopt.c: Likewise.
2052 * manual/examples/swapcontext.c: Likewise.
2053 * manual/examples/termios.c: Likewise.
2054 * manual/examples/testopt.c: Likewise.
2055 * manual/examples/testpass.c: Likewise.
2056 * manual/examples/timeval_subtract.c: Likewise.
2057
2058 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2059
2060 * sysdeps/x86/fpu/math_private.h: New file.
2061 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2062
2063 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2064 definition.
2065 (cosh): Likewise.
2066 (tanh): Likewise.
2067
2068 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2069
2070 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2071 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2072 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2073 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2074 fields.
2075 (_dl_show_auxv): Give a special treatment to
2076 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2077 and AT_L3_CACHEGEOMETRY.
2078 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2079 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2080 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2081 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2082
2083 2018-12-19 Andreas Schwab <schwab@suse.de>
2084
2085 * nscd/connections.c (check_use): Don't abort on invalid len.
2086
2087 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2088
2089 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2090 values in the 64bit value cases.
2091
2092 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2093
2094 * include/time.h
2095 (__ctime64_r): Add.
2096 * time/ctime_r.c
2097 (__ctime64_r): Add.
2098 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2099
2100 * include/time.h
2101 (__ctime64): Add.
2102 * time/gmtime.c
2103 (__ctime64): Add.
2104 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2105
2106 * include/time.h
2107 (__gmtime64_r): Add.
2108 * time/gmtime.c
2109 (__gmtime64_r): Add.
2110 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2111
2112 * include/time.h
2113 (__gmtime64): Add.
2114 * time/gmtime.c
2115 (__gmtime64): Add.
2116 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2117
2118 * include/time.h
2119 (__localtime64_r): Add.
2120 * time/localtime.c
2121 (__localtime64_r): Add.
2122 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2123
2124 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2125
2126 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2127 kernel_sigction definition.
2128
2129 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2130
2131 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2132
2133 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2134 __syscall_rt_sigaction.
2135 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2136 (kernel_sigaction): Use Linux generic defintion.
2137 (STUB): Define.
2138 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2139 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2140 (__syscall_rt_sigaction): Remove implementation.
2141 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2142 hidden.
2143 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2144 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2145 INTERNAL_SYSCALL): Remove definitions.
2146 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2147 action and signal set size.
2148 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2149 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2150
2151 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2152 James Clarke <jrtc27@jrtc27.com>
2153
2154 [BZ #23967]
2155 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2156 Define if SA_RESTORER is defined.
2157 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2158 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2159 already defined.
2160 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2161 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2162 definitions.
2163 (HAS_SA_RESTORER): Define.
2164 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2165 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2166 (HAS_SA_RESTORER): Define.
2167 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2168 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2169 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2170 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2171 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2172
2173 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2174
2175 * sysdeps/unix/sysv/linux/kernel-features.h
2176 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2177 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2178 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2179 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2180 (__ASSUME_ST_INO_64_BIT): Likewise.
2181 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2182 <kernel-features.h>.
2183 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2184 Remove conditional code.
2185 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2186 <kernel-features.h>.
2187 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2188 Remove conditional code.
2189 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2190 <kernel-features.h>.
2191 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2192 Remove conditional code.
2193 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2194 <kernel-features.h>.
2195 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2196 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2197
2198 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2199
2200 * sysdeps/s390/multiarch/ifunc-resolve.h
2201 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2202 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2203 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2204 Delete macro definition.
2205 (s390_libc_ifunc_init): Rename to
2206 s390_libc_ifunc_expr_stfle_init.
2207 * sysdeps/s390/bzero: Use
2208 s390_libc_ifunc_expr_stfle_init instead of
2209 s390_libc_ifunc_init.
2210 * sysdeps/s390/memcmp.c: Likewise.
2211 * sysdeps/s390/memcpy.c: Likewise.
2212 * sysdeps/s390/mempcpy.c: Likewise.
2213 * sysdeps/s390/memset.c: Likewise.
2214
2215 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2216
2217 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2218 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2219
2220 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2221
2222 * sysdeps/s390/multiarch/Makefile
2223 (sysdep_routines): Remove wmemcmp variants.
2224 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2225 * sysdeps/s390/multiarch/ifunc-impl-list.c
2226 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2227 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2228 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2229 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2230 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2231 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2232 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2233 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2234
2235 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2236
2237 * sysdeps/s390/multiarch/Makefile
2238 (sysdep_routines): Remove wmemset variants.
2239 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2240 * sysdeps/s390/multiarch/ifunc-impl-list.c
2241 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2242 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2243 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2244 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2245 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2246 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2247 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2248 * sysdeps/s390/ifunc-wmemset.h: New file.
2249
2250 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2251
2252 * sysdeps/s390/multiarch/Makefile
2253 (sysdep_routines): Remove wmemchr variants.
2254 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2255 * sysdeps/s390/multiarch/ifunc-impl-list.c
2256 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2257 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2258 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2259 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2260 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2261 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2262 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2263 * sysdeps/s390/ifunc-wmemchr.h: New file.
2264
2265 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2266
2267 * sysdeps/s390/multiarch/Makefile
2268 (sysdep_routines): Remove wcscspn variants.
2269 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2270 * sysdeps/s390/multiarch/ifunc-impl-list.c
2271 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2272 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2273 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2274 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2275 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2276 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2277 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2278 * sysdeps/s390/ifunc-wcscspn.h: New file.
2279
2280 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2281
2282 * sysdeps/s390/multiarch/Makefile
2283 (sysdep_routines): Remove wcspbrk variants.
2284 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2285 * sysdeps/s390/multiarch/ifunc-impl-list.c
2286 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2287 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2288 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2289 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2290 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2291 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2292 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2293 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2294
2295 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2296
2297 * sysdeps/s390/multiarch/Makefile
2298 (sysdep_routines): Remove wcsspn variants.
2299 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2300 * sysdeps/s390/multiarch/ifunc-impl-list.c
2301 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2302 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2303 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2304 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2305 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2306 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2307 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2308 * sysdeps/s390/ifunc-wcsspn.h: New file.
2309
2310 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2311
2312 * sysdeps/s390/multiarch/Makefile
2313 (sysdep_routines): Remove wcsrchr variants.
2314 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2315 * sysdeps/s390/multiarch/ifunc-impl-list.c
2316 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2317 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2318 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2319 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2320 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2321 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2322 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2323 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2324
2325 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2326
2327 * sysdeps/s390/multiarch/Makefile
2328 (sysdep_routines): Remove wcschrnul variants.
2329 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2330 * sysdeps/s390/multiarch/ifunc-impl-list.c
2331 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2332 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2333 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2334 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2335 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2336 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2337 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2338 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2339
2340 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2341
2342 * sysdeps/s390/multiarch/Makefile
2343 (sysdep_routines): Remove wcschr variants.
2344 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2345 * sysdeps/s390/multiarch/ifunc-impl-list.c
2346 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2347 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2348 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2349 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2350 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2351 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2352 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2353 * sysdeps/s390/ifunc-wcschr.h: New file.
2354
2355 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2356
2357 * sysdeps/s390/multiarch/Makefile
2358 (sysdep_routines): Remove wcsncmp variants.
2359 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2360 * sysdeps/s390/multiarch/ifunc-impl-list.c
2361 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2362 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2363 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2364 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2365 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2366 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2367 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2368 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2369
2370 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2371
2372 * sysdeps/s390/multiarch/Makefile
2373 (sysdep_routines): Remove wcscmp variants.
2374 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2375 * sysdeps/s390/multiarch/ifunc-impl-list.c
2376 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2377 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2378 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2379 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2380 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2381 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2382 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2383 * sysdeps/s390/ifunc-wcscmp.h: New file.
2384
2385 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2386
2387 * sysdeps/s390/multiarch/Makefile
2388 (sysdep_routines): Remove wcsncat variants.
2389 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2390 * sysdeps/s390/multiarch/ifunc-impl-list.c
2391 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2392 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2393 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2394 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2395 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2396 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2397 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2398 * sysdeps/s390/ifunc-wcsncat.h: New file.
2399
2400 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2401
2402 * sysdeps/s390/multiarch/Makefile
2403 (sysdep_routines): Remove wcscat variants.
2404 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2405 * sysdeps/s390/multiarch/ifunc-impl-list.c
2406 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2407 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2408 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2409 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2410 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2411 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2412 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2413 * sysdeps/s390/ifunc-wcscat.h: New file.
2414
2415 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2416
2417 * sysdeps/s390/multiarch/Makefile
2418 (sysdep_routines): Remove wcpncpy variants.
2419 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2420 * sysdeps/s390/multiarch/ifunc-impl-list.c
2421 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2422 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2423 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2424 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2425 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2426 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2427 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2428 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2429
2430 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2431
2432 * sysdeps/s390/multiarch/Makefile
2433 (sysdep_routines): Remove wcsncpy variants.
2434 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2435 * sysdeps/s390/multiarch/ifunc-impl-list.c
2436 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2437 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2438 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2439 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2440 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2441 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2442 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2443 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2444
2445 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2446
2447 * sysdeps/s390/multiarch/Makefile
2448 (sysdep_routines): Remove wcpcpy variants.
2449 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2450 * sysdeps/s390/multiarch/ifunc-impl-list.c
2451 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2452 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2453 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2454 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2455 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2456 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2457 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2458 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2459
2460 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2461
2462 * sysdeps/s390/multiarch/Makefile
2463 (sysdep_routines): Remove wcscpy variants.
2464 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2465 * sysdeps/s390/multiarch/ifunc-impl-list.c
2466 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2467 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2468 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2469 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2470 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2471 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2472 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2473 * sysdeps/s390/ifunc-wcscpy.h: New file.
2474
2475 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2476
2477 * sysdeps/s390/multiarch/Makefile
2478 (sysdep_routines): Remove wcsnlen variants.
2479 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2480 * sysdeps/s390/multiarch/ifunc-impl-list.c
2481 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2482 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2483 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2484 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2485 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2486 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2487 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2488 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2489
2490 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2491
2492 * sysdeps/s390/multiarch/Makefile
2493 (sysdep_routines): Remove wcslen variants.
2494 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2495 * sysdeps/s390/multiarch/ifunc-impl-list.c
2496 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2497 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2498 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2499 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2500 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2501 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2502 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2503 * sysdeps/s390/ifunc-wcslen.h: New file.
2504
2505 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2506
2507 * sysdeps/s390/multiarch/Makefile
2508 (sysdep_routines): Remove memrchr variants.
2509 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2510 * sysdeps/s390/multiarch/ifunc-impl-list.c
2511 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2512 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2513 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2514 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2515 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2516 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2517 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2518 * sysdeps/s390/ifunc-memrchr.h: New file.
2519
2520 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2521
2522 * sysdeps/s390/multiarch/Makefile
2523 (sysdep_routines): Remove memccpy variants.
2524 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2525 * sysdeps/s390/multiarch/ifunc-impl-list.c
2526 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2527 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2528 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2529 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2530 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2531 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2532 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2533 * sysdeps/s390/ifunc-memccpy.h: New file.
2534
2535 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2536
2537 * sysdeps/s390/multiarch/Makefile
2538 (sysdep_routines): Remove rawmemchr variants.
2539 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2540 * sysdeps/s390/multiarch/ifunc-impl-list.c
2541 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2542 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2543 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2544 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2545 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2546 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2547 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2548 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2549
2550 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2551
2552 * sysdeps/s390/multiarch/Makefile
2553 (sysdep_routines): Remove memchr variants.
2554 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2555 * sysdeps/s390/multiarch/ifunc-impl-list.c
2556 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2557 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2558 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2559 * sysdeps/s390/multiarch/memchr.c: Move to ...
2560 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2561 * sysdeps/s390/ifunc-memchr.h: New file.
2562 * sysdeps/s390/s390-64/memchr.S: Move to ...
2563 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2564 for 31/64bit and ifunc handling.
2565 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2566 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2567 * sysdeps/s390/s390-32/memchr.S: Likewise.
2568
2569 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2570
2571 * sysdeps/s390/multiarch/Makefile
2572 (sysdep_routines): Remove strcspn variants.
2573 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2574 * sysdeps/s390/multiarch/ifunc-impl-list.c
2575 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2576 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2577 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2578 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2579 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2580 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2581 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2582 * sysdeps/s390/ifunc-strcspn.h: New file.
2583
2584 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2585
2586 * sysdeps/s390/multiarch/Makefile
2587 (sysdep_routines): Remove strpbrk variants.
2588 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2589 * sysdeps/s390/multiarch/ifunc-impl-list.c
2590 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2591 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2592 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2593 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2594 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2595 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2596 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2597 * sysdeps/s390/ifunc-strpbrk.h: New file.
2598
2599 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2600
2601 * sysdeps/s390/multiarch/Makefile
2602 (sysdep_routines): Remove strspn variants.
2603 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2604 * sysdeps/s390/multiarch/ifunc-impl-list.c
2605 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2606 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2607 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2608 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2609 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2610 * sysdeps/s390/multiarch/strspn.c: Move to ...
2611 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2612 * sysdeps/s390/ifunc-strspn.h: New file.
2613
2614 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2615
2616 * sysdeps/s390/multiarch/Makefile
2617 (sysdep_routines): Remove strrchr variants.
2618 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2619 * sysdeps/s390/multiarch/ifunc-impl-list.c
2620 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2621 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2622 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2623 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2624 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2625 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2626 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2627 * sysdeps/s390/ifunc-strrchr.h: New file.
2628
2629 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2630
2631 * sysdeps/s390/multiarch/Makefile
2632 (sysdep_routines): Remove strchrnul variants.
2633 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2634 * sysdeps/s390/multiarch/ifunc-impl-list.c
2635 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2636 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2637 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2638 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2639 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2640 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2641 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2642 * sysdeps/s390/ifunc-strchrnul.h: New file.
2643
2644 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2645
2646 * sysdeps/s390/multiarch/Makefile
2647 (sysdep_routines): Remove strchr variants.
2648 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2649 * sysdeps/s390/multiarch/ifunc-impl-list.c
2650 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2651 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2652 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2653 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2654 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2655 * sysdeps/s390/multiarch/strchr.c: Move to ...
2656 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2657 * sysdeps/s390/ifunc-strchr.h: New file.
2658
2659 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2660
2661 * sysdeps/s390/multiarch/Makefile
2662 (sysdep_routines): Remove strncmp variants.
2663 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2664 * sysdeps/s390/multiarch/ifunc-impl-list.c
2665 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2666 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2667 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2668 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2669 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2670 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2671 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2672 * sysdeps/s390/ifunc-strncmp.h: New file.
2673
2674 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2675
2676 * sysdeps/s390/multiarch/Makefile
2677 (sysdep_routines): Remove strcmp variants.
2678 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2679 * sysdeps/s390/multiarch/ifunc-impl-list.c
2680 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2681 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2682 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2683 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2684 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2685 * sysdeps/s390/ifunc-strcmp.h: New file.
2686 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2687 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2688 for 31/64bit and ifunc handling.
2689 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2690 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2691 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2692
2693 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2694
2695 * sysdeps/s390/multiarch/Makefile
2696 (sysdep_routines): Remove strncat variants.
2697 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2698 * sysdeps/s390/multiarch/ifunc-impl-list.c
2699 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2700 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2701 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2702 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2703 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2704 * sysdeps/s390/multiarch/strncat.c: Move to ...
2705 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2706 * sysdeps/s390/ifunc-strncat.h: New file.
2707
2708 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2709
2710 * sysdeps/s390/multiarch/Makefile
2711 (sysdep_routines): Remove strcat variants.
2712 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2713 * sysdeps/s390/multiarch/ifunc-impl-list.c
2714 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2715 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2716 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2717 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2718 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2719 * sysdeps/s390/multiarch/strcat.c: Move to ...
2720 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2721 * sysdeps/s390/ifunc-strcat.h: New file.
2722
2723 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2724
2725 * sysdeps/s390/multiarch/Makefile
2726 (sysdep_routines): Remove stpncpy variants.
2727 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2728 * sysdeps/s390/multiarch/ifunc-impl-list.c
2729 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2730 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2731 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2732 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2733 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2734 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2735 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2736 * sysdeps/s390/ifunc-stpncpy.h: New file.
2737
2738 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2739
2740 * sysdeps/s390/multiarch/Makefile
2741 (sysdep_routines): Remove strncpy variants.
2742 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2743 * sysdeps/s390/multiarch/ifunc-impl-list.c
2744 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2745 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2746 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2747 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2748 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2749 * sysdeps/s390/ifunc-strncpy.h: New file.
2750 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2751 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2752 and adjust ifunc handling.
2753 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2754 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2755 and adjust ifunc handling.
2756 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2757 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2758
2759 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2760
2761 * sysdeps/s390/multiarch/Makefile
2762 (sysdep_routines): Remove stpcpy variants.
2763 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2764 * sysdeps/s390/multiarch/ifunc-impl-list.c
2765 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2766 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2767 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2768 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2769 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2770 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2771 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2772 * sysdeps/s390/ifunc-stpcpy.h: New file.
2773
2774 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2775
2776 * sysdeps/s390/multiarch/Makefile
2777 (sysdep_routines): Remove strcpy variants.
2778 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2779 * sysdeps/s390/multiarch/ifunc-impl-list.c
2780 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2781 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2782 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2783 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2784 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2785 * sysdeps/s390/ifunc-strcpy.h: New file.
2786 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2787 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2788 for 31/64bit and ifunc handling.
2789 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2790 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2791 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2792
2793 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2794
2795 * sysdeps/s390/multiarch/Makefile
2796 (sysdep_routines): Remove strnlen variants.
2797 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2798 * sysdeps/s390/multiarch/ifunc-impl-list.c
2799 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2800 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2801 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2802 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2803 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2804 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2805 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2806 * sysdeps/s390/ifunc-strnlen.h: New file.
2807
2808 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2809
2810 * sysdeps/s390/multiarch/Makefile
2811 (sysdep_routines): Remove strlen variants.
2812 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2813 * sysdeps/s390/multiarch/ifunc-impl-list.c
2814 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2815 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2816 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2817 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2818 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2819 * sysdeps/s390/multiarch/strlen.c: Move to ...
2820 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2821 * sysdeps/s390/ifunc-strlen.h: New file.
2822
2823 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2824
2825 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2826 * sysdeps/s390/multiarch/ifunc-impl-list.c
2827 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2828 * sysdeps/s390/ifunc-memmem.h: New file.
2829 * sysdeps/s390/memmem.c: Likewise.
2830 * sysdeps/s390/memmem-c.c: Likewise.
2831 * sysdeps/s390/memmem-vx.c: Likewise.
2832
2833 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2834
2835 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2836 * sysdeps/s390/multiarch/ifunc-impl-list.c
2837 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2838 * sysdeps/s390/ifunc-strstr.h: New file.
2839 * sysdeps/s390/strstr.c: Likewise.
2840 * sysdeps/s390/strstr-c.c: Likewise.
2841 * sysdeps/s390/strstr-vx.c: Likewise.
2842
2843 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2844
2845 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2846 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2847 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2848 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2849 New defines.
2850 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2851 * sysdeps/s390/memmove-c.c: New file.
2852 * sysdeps/s390/memmove.c: Likewise.
2853 * sysdeps/s390/multiarch/ifunc-impl-list.c
2854 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2855
2856 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2857
2858 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2859 * sysdeps/s390/configure.ac: Add check for z13 support.
2860 * sysdeps/s390/configure: Regenerated.
2861
2862 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2863
2864 * sysdeps/s390/memcopy.h: New file.
2865
2866 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2867
2868 * sysdeps/s390/s390-32/bcopy.S: Remove.
2869 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2870
2871 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2872
2873 * sysdeps/s390/ifunc-memcpy.h: New File.
2874 * sysdeps/s390/memcpy.S: Move to ...
2875 * sysdeps/s390/memcpy-z900.S ... here.
2876 Move implementations from memcpy-s390x.s to here.
2877 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2878 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2879 Remove memcpy/mempcpy variants.
2880 * sysdeps/s390/Makefile (sysdep_routines):
2881 Add memcpy/mempcpy variants.
2882 * sysdeps/s390/multiarch/ifunc-impl-list.c
2883 (__libc_ifunc_impl_list): Adjust ifunc variants for
2884 memcpy and mempcpy.
2885 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2886 to ...
2887 * sysdeps/s390/memcpy.c: ... here.
2888 Adjust ifunc variants for memcpy.
2889 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2890 * sysdeps/s390/mempcpy.c: ... here.
2891 Adjust ifunc variants for mempcpy.
2892 * sysdeps/s390/mempcpy.S: Delete file.
2893
2894 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2895
2896 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2897 * sysdeps/s390/memcpy.S: ... here.
2898 Adjust to be usable for 31/64bit.
2899 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2900 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2901 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2902 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2903 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2904 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2905 Adjust to be usable for 31/64bit.
2906 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2907 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2908 * sysdeps/s390/multiarch/memcpy.c: ... here.
2909 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2910
2911 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2912
2913 * sysdeps/s390/ifunc-memcmp.h: New File.
2914 * sysdeps/s390/memcmp.S: Move to ...
2915 * sysdeps/s390/memcmp-z900.S ... here.
2916 Move implementations from memcmp-s390x.s to here.
2917 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
2918 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2919 Remove memcmp variants.
2920 * sysdeps/s390/Makefile (sysdep_routines):
2921 Add memcmp variants.
2922 * sysdeps/s390/multiarch/ifunc-impl-list.c
2923 (__libc_ifunc_impl_list): Adjust ifunc variants for
2924 memcmp.
2925 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
2926 to ...
2927 * sysdeps/s390/memcmp.c: ... here.
2928 Adjust ifunc variants for memcmp.
2929
2930 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2931
2932 * sysdeps/s390/s390-64/memcmp.S: Move to ...
2933 * sysdeps/s390/memcmp.S: ... here.
2934 Adjust to be usable for 31/64bit.
2935 * sysdeps/s390/s390-32/memcmp.S: Delete File.
2936 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
2937 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2938 Remove memcmp.
2939 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2940 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
2941 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
2942 Adjust to be usable for 31/64bit.
2943 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
2944 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
2945 * sysdeps/s390/multiarch/memcmp.c: ... here.
2946 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
2947
2948 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2949
2950 * sysdeps/s390/s390-32/bzero.S: Delete file.
2951 * sysdeps/s390/s390-64/bzero.S: Likewise.
2952 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
2953 * sysdeps/s390/bzero.c: New file.
2954 * sysdeps/s390/memset-z900.S: Add bzero entry points.
2955 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
2956 * sysdeps/s390/multiarch/ifunc-impl-list.c
2957 (__libc_ifunc_impl_list): Add bzero ifunc variants.
2958
2959 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2960
2961 * sysdeps/s390/ifunc-memset.h: New File.
2962 * sysdeps/s390/memset.S: Move to ...
2963 * sysdeps/s390/memset-z900.S ... here.
2964 Move implementations from memset-s390x.s to here.
2965 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
2966 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2967 Remove memset variants.
2968 * sysdeps/s390/Makefile (sysdep_routines):
2969 Add memset variants.
2970 * sysdeps/s390/multiarch/ifunc-impl-list.c
2971 (__libc_ifunc_impl_list): Adjust ifunc variants for
2972 memset.
2973 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
2974 to ...
2975 * sysdeps/s390/memset.c: ... here.
2976 Adjust ifunc variants for memset.
2977
2978 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2979
2980 * sysdeps/s390/s390-64/memset.S: Move to ...
2981 * sysdeps/s390/memset.S: ... here.
2982 Adjust to be usable for 31/64bit.
2983 * sysdeps/s390/s390-32/memset.S: Delete File.
2984 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
2985 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2986 Remove memset.
2987 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2988 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
2989 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
2990 Adjust to be usable for 31/64bit.
2991 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
2992 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
2993 * sysdeps/s390/multiarch/memset.c: ... here.
2994 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
2995
2996 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2997
2998 * sysdeps/s390/multiarch/ifunc-resolve.h
2999 (s390_libc_ifunc_init, s390_libc_ifunc,
3000 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3001
3002 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3003
3004 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3005 * sysdeps/s390/configure.ac: Add check for z10 support.
3006 * sysdeps/s390/configure: Regenerated.
3007
3008 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3009
3010 * sysdeps/i386/atomic-machine.h: Merged with ...
3011 * sysdeps/x86_64/atomic-machine.h: To ...
3012 * sysdeps/x86/atomic-machine.h: This. New file.
3013
3014 2018-12-18 Florian Weimer <fweimer@redhat.com>
3015
3016 Rewrite locale/gen-translit.pl in Python.
3017 * locale/Makefile (generated): Add C-translit.h.
3018 (before-compile): Add $(objpfx)C-translit.h.
3019 (C-translit.h): Move to $(objpfx). Create target directory.
3020 Build using Python script.
3021 * locale/gen-translit.py: New file.
3022 * locale/gen-translit.pl: Remove file.
3023 * locale/C-translit.h.in: Change comment character to '#' for
3024 easier parsing without a C preprocessor.
3025 * locale/C-translit.h: Remove generated file.
3026 * manual/install.texi (Tools for Compilation): Do not mention
3027 C-translit.h.
3028 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3029 Remove locale/C-translit.h.
3030 * scripts/update-copyrights: Likewise.
3031 * INSTALL: Regenerate.
3032
3033 2018-12-18 Florian Weimer <fweimer@redhat.com>
3034
3035 [BZ #23995]
3036 * localedata/locales/bi_VU: Remove executable bit from file.
3037
3038 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3039
3040 * include/time.h
3041 (__localtime64): Add.
3042 * manual/maint.texi: Document Y2038 symbol handling.
3043 * time/localtime.c
3044 (__localtime64): Add.
3045 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3046
3047 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3048
3049 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3050 Do not clobber r12.
3051
3052 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3053 to allow extra macros from first or second sources.
3054 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3055 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3056 (tests-special): Add $(objpfx)tst-mman-consts.out.
3057 ($(objpfx)tst-mman-consts.out): New makefile target.
3058
3059 2018-12-17 Mao Han <han_mao@c-sky.com>
3060
3061 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3062 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3063 without stat64 system call support.
3064 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3065 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3066 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3067 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3068 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3069 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3070 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3071 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3072 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3073 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3074 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3075
3076 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3077
3078 regex: fix storage-exhaustion error
3079 [BZ #18040]
3080 * posix/regexec.c (get_subexp):
3081 Do not continue if storage is exhausted.
3082
3083 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3084
3085 regex: fix heap-use-after-free error
3086 [BZ #18040]
3087 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3088 https://debbugs.gnu.org/32592
3089 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3090 call extend_buffers which reallocates the re_string_t internal buffer.
3091 Local variable 'buf' was not updated in such case, resulting in
3092 use-after-free.
3093 * posix/regexec.c (get_subexp): Update 'buf' after call to
3094 get_subexp_sub.
3095
3096 2018-12-15 Florian Weimer <fweimer@redhat.com>
3097
3098 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3099 (minimum_stride_size): Use it.
3100 (support_blob_repeat_allocate): Likewise.
3101
3102 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3103
3104 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3105 definition.
3106 (acosh): Likewise.
3107 (atanh): Likewise.
3108
3109 2018-12-14 Florian Weimer <fweimer@redhat.com>
3110
3111 * manual/process.texi (Process Creation Concepts): Remove
3112 documentation of process (ID) lifetime. List more process
3113 creation functions. Reference Process Identification section.
3114 (Process Identification): Add information about process ID
3115 lifetime. Describe Linux thread/task IDs.
3116 * manual/signal.texi (Signaling Another Process): Mention that the
3117 signal is always sent to the process.
3118
3119 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3120
3121 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3122 and tst-ldbl-efgcvt.
3123 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3124 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3125 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3126 (fcvt_tests, output_error, output_r_error, do_test): Use the
3127 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3128 select the type of floating-point variables and arguments; to
3129 produce extra tests for double and conversion specifiers for
3130 printf; and to set the names of called functions.
3131 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3132 in tst-efgcvt-template.c.
3133 * misc/tst-ldbl-efgcvt.c: Likewise.
3134
3135 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3136
3137 * nss/Makefile (tst-nss-test3.out): New rule.
3138
3139 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3140
3141 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3142 clobber sp.
3143
3144 2018-12-13 fanjinke <fanjinke@hygon.cn>
3145
3146 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3147 "HygonGenuine".
3148
3149 2018-12-13 Andreas Schwab <schwab@suse.de>
3150
3151 [BZ #23861]
3152 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3153 (__pthread_rwlock_rdlock_full): Update expected value for
3154 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3155 * nptl/tst-rwlock-pwn.c: New file.
3156 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3157
3158 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3159
3160 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3161 definition.
3162
3163 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3164
3165 * benchtests/scripts/compare_bench.py (do_compare): write to
3166 stderr in casestat is not present.
3167 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3168 stderr in case timings field is not present. Also string showing
3169 the output filename goes into the stderr.
3170
3171 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3172
3173 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3174 and ZeroDivisorError exceptions.
3175 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3176 argument to loop through user provided statistics.
3177 * benchtests/scripts/compare_bench.py (main): Include the --stats
3178 argument.
3179
3180 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3181
3182 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3183 instead of return.
3184
3185 2018-12-12 Florian Weimer <fweimer@redhat.com>
3186
3187 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3188 clause to copyright header.
3189
3190 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3191
3192 [BZ #23614]
3193 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3194 registers saved in the stack frame.
3195 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3196 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3197
3198 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3199
3200 * include/bits/monetary-ldbl.h: New file.
3201 * include/bits/printf-ldbl.h: Likewise.
3202 * include/bits/stdio-ldbl.h: Likewise.
3203 * include/bits/stdlib-ldbl.h: Likewise.
3204 * include/bits/syslog-ldbl.h: Likewise.
3205 * include/bits/wchar-ldbl.h: Likewise.
3206
3207 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3208
3209 * libio/libio.h: Remove redirection for _IO_vfprintf.
3210
3211 2018-12-11 Andreas Schwab <schwab@suse.de>
3212
3213 * Makerules: Remove all references to abilist-pattern.
3214 (update-all-abi): Simplify find expression.
3215
3216 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3217
3218 [BZ #23961]
3219 * math/auto-libm-test-in: Add new test case.
3220 * math/auto-libm-test-out-pow: Regenerated.
3221 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3222
3223 2018-12-10 DJ Delorie <dj@redhat.com>
3224
3225 [BZ #23948]
3226 * support/test-container.c: Move postclean step to before we
3227 change namespaces.
3228
3229 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3230
3231 * scripts/gen-as-const.py (main): Handle --python option.
3232 * scripts/gen-py-const.awk: Remove.
3233 * Makerules (py-const-script): Use gen-as-const.py.
3234 ($(py-const)): Likewise.
3235 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3236 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3237 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3238 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3239 ~PTHREAD_MUTEX_NO_ELISION_NP.
3240 * manual/README.pretty-printers: Update reference to
3241 gen-py-const.awk.
3242
3243 * scripts/glibcextract.py: New file.
3244 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3245 or tempfile. Import glibcexctract.
3246 (compute_c_consts): Remove. Moved to glibcextract.py.
3247 (gen_test): Update reference to compute_c_consts.
3248 (main): Likewise.
3249 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3250 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3251 * sysdeps/unix/sysv/linux/Makefile
3252 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3253 Redirect stderr as well as stdout.
3254
3255 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3256
3257 [BZ #19767]
3258 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3259 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3260 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3261 ALWAYS_USE_VSYSCALL.
3262 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3263 ALWAYS_USE_VSYSCALL.
3264 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3265 ALWAYS_USE_VSYSCALL.
3266
3267 2018-12-10 Florian Weimer <fweimer@redhat.com>
3268
3269 [BZ #23972]
3270 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3271 offset instead of count for clarity. Fix typo in comment.
3272 (__old_getdents64): Keep track of previous offset. Use it to call
3273 handle_overflow.
3274 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3275 that d_off is never zero.
3276
3277 2018-12-10 Andreas Schwab <schwab@suse.de>
3278
3279 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3280 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3281 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3282 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3283 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3284
3285 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3286
3287 * timezone/private.h: Update from tzcode 2018g.
3288 * timezone/tzfile.h: Likewise.
3289 * timezone/tzselect.ksh: Likewise.
3290 * timezone/zdump.c: Likewise.
3291 * timezone/zic.c: Likewise.
3292
3293 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3294
3295 [BZ #23490]
3296 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3297 (do_test): Adjust buffer size and fix format.
3298
3299 2018-12-07 DJ Delorie <dj@redhat.com>
3300
3301 [BZ #23907]
3302 * malloc/tst-tcfree3.c: New.
3303 * malloc/Makefile: Add it.
3304
3305 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3306
3307 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3308
3309 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3310
3311 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3312 used as a mask for the mode argument of __vfscanf_internal and
3313 __vfwscanf_internal.
3314 * stdio-common/vfscanf-internal.c
3315 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3316 (__strtof128_internal): Define to __wcstof128_internal.
3317 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3318 __strtof128_internal or __wcstof128_internal when the format of
3319 long double is the same as _Float128.
3320
3321 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3322
3323 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3324 * posix/confstr.c (confstr): Rename to __confstr.
3325 (__confstr): Add hidden def.
3326 (confstr): Add weak alias for __confstr.
3327 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3328 confstr.
3329
3330 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3331
3332 * NEWS: Mention getcpu.
3333 * include/sched.h (__getcpu): New libc_hidden_proto.
3334 * manual/resource.texi: Document getcpu.
3335 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3336 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3337 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3338 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3339 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3340 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3341 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3342 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3343 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3344 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3345 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3346 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3347 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3348 Likewise.
3349 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3350 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3351 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3352 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3353 Likewise.
3354 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3355 Likewise.
3356 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3357 Likewise.
3358 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3359 Likewise.
3360 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3361 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3362 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3363 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3364 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3365 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3366 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3367 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3368 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3369 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3370 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3371 Also check getcpu.
3372
3373 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3374
3375 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3376 functions.
3377 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3378
3379 2018-12-07 Florian Weimer <fweimer@redhat.com>
3380
3381 [BZ #17405]
3382 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3383 * posix/Versions (GLIBC_2.29): Export
3384 posix_spawn_file_actions_addfchdir_np.
3385 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3386 * posix/spawn_faction_destroy.c
3387 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3388 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3389 and the field action.fchdir_action.
3390 * posix/tst-spawn-chdir.c (add_chdir): New function.
3391 (do_test): Add do_fchdir loop. Call add_chdir.
3392 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3393 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3394 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3395 posix_spawn_file_actions_addfchdir_np.
3396 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3397 Likewise.
3398 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3399 Likewise.
3400 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3401 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3402 Likewise.
3403 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3404 Likewise.
3405 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3406 Likewise.
3407 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3408 Likewise.
3409 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3410 Likewise.
3411 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3412 Likewise.
3413 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3414 (GLIBC_2.29): Likewise.
3415 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3416 (GLIBC_2.29): Likewise.
3417 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3418 (GLIBC_2.29): Likewise.
3419 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3420 (GLIBC_2.29): Likewise.
3421 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3422 Likewise.
3423 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3424 (GLIBC_2.29): Likewise.
3425 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3426 (GLIBC_2.29): Likewise.
3427 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3428 (GLIBC_2.29): Likewise.
3429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3430 (GLIBC_2.29): Likewise.
3431 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3432 Likewise.
3433 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3434 Likewise.
3435 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3436 Likewise.
3437 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3438 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3439 Likewise.
3440 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3441 Likewise.
3442 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3443 Likewise.
3444 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3445 Likewise.
3446
3447 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3448
3449 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3450 trailing whitespace removed.
3451 * scripts/config.guess: Update to version 2018-11-28.
3452 * scripts/config.sub: Update to version 2018-11-28.
3453 * scripts/install-sh: Update to version 2018-03-11.20.
3454 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3455 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3456
3457 2018-12-07 Florian Weimer <fweimer@redhat.com>
3458
3459 [BZ #23927]
3460 CVE-2018-19591
3461 * inet/tst-if_index-long.c: New file.
3462 * inet/Makefile (tests): Add tst-if_index-long.
3463
3464 2018-12-07 Florian Weimer <fweimer@redhat.com>
3465
3466 * support/check.h (support_record_failure_is_failed): Declare.
3467 * support/descriptors.h: New file.
3468 * support/support_descriptors.c: Likewise.
3469 * support/tst-support_descriptors.c: Likewise.
3470 * support/support_record_failure.c
3471 (support_record_failure_is_failed): New function.
3472 * support/Makefile (libsupport-routines): Add support_descriptors.
3473 (tests): Add tst-support_descriptors.
3474
3475 2018-12-05 Zack Weinberg <zackw@panix.com>
3476 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3477
3478 * stdio-common/vfprintf-internal.c
3479 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3480 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3481 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3482 and __no_long_double.
3483 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3484 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3485 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3486 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3487 and __nldbl_*syslog* functions.
3488 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3489 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3490 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3491 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3492 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3493 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3494 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3495 (__nldbl_vwprintf, __nldbl_wprintf):
3496 Directly call the appropriate __v*printf_internal routine, passing
3497 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3498 variable names.
3499 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3500 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3501 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3502 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3503 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3504 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3505 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3506 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3507 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3508 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3509 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3510 (__nldbl_syslog, __nldbl_vsyslog):
3511 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3512 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3513 appropriate.
3514 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3515 appropriate.
3516
3517 2018-12-05 Zack Weinberg <zackw@panix.com>
3518 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3519
3520 [BZ #11319]
3521 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3522 Moved here from debug/vsprintf_chk.c.
3523 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3524 and completion logic for the strfile to match exactly what
3525 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3526 _IO_str_init_static_internal instead of maxlen-1.
3527 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3528 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3529 __vsprintf_internal.
3530
3531 * debug/vsprintf_chk.c (__vsprintf_chk)
3532 * debug/sprintf_chk.c (__sprintf_chk):
3533 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3534 'flags' argument is positive, and slen as maxlen. No need to lock
3535 the FILE and/or construct a temporary FILE. Minimize and normalize
3536 header inclusions and variable names. Do not libc_hidden_def anything.
3537
3538 * debug/asprintf_chk.c (__asprintf_chk)
3539 * debug/dprintf_chk.c (__dprintf_chk)
3540 * debug/fprintf_chk.c (__fprintf_chk)
3541 * debug/fwprintf_chk.c (__fwprintf_chk)
3542 * debug/printf_chk.c (__printf_chk)
3543 * debug/snprintf_chk.c (__snprintf_chk)
3544 * debug/swprintf_chk.c (__swprintf_chk)
3545 * debug/vasprintf_chk.c (__vasprintf_chk)
3546 * debug/vdprintf_chk.c (__vdprintf_chk)
3547 * debug/vfprintf_chk.c (__vfprintf_chk)
3548 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3549 * debug/vprintf_chk.c (__vprintf_chk)
3550 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3551 * debug/vswprintf_chk.c (__vswprintf_chk)
3552 * debug/vwprintf_chk.c (__vwprintf_chk)
3553 * debug/wprintf_chk.c (__wprintf_chk):
3554 Directly call the corresponding vxxprintf_internal function, passing
3555 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3556 the FILE and/or construct a temporary FILE. Minimize and normalize
3557 header inclusions and variable names. Do not libc_hidden_def anything.
3558
3559 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3560 __obstack_vprintf_internal.
3561 (__obstack_vprintf_chk): Convert into a wrapper that calls
3562 __obstack_vprintf_internal (these two functions already had the
3563 same code) and move to new file...
3564 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3565 file.
3566 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3567 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3568 * debug/Makefile (routines): Add vobprintf_chk.
3569
3570 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3571 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3572 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3573 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3574 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3575 (__nldbl___obstack_vfprintf_chk):
3576 Directly call the corresponding vxxprintf_internal function,
3577 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3578 duplicate comparison of slen with 0 or maxlen from the corresponding
3579 non-__nldbl function.
3580
3581 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3582 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3583 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3584 Remove libc_hidden_proto.
3585
3586 * stdio-common/vfprintf-internal.c
3587 (__vfprintf_internal, __vfwprintf_internal):
3588 Do not check _IO_FLAGS2_FORTIFY.
3589 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3590 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3591 a comment explaining why it has the maxlen argument.
3592 (_IO_acquire_lock_clear_flags2_fct): Remove.
3593 (_IO_acquire_lock_clear_flags2): Remove.
3594 (_IO_release_lock): Remove conditional statement which will
3595 now never execute.
3596 (_IO_acquire_lock): Remove variable which is now unused.
3597 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3598 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3599
3600 * stdio-common/Makefile (tests): Add tst-bz11319 and
3601 tst-bz11319-fortify2.
3602 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3603 * stdio-common/tst-bz11319-fortify2.c: New file.
3604 * stdio-common/tst-bz11319.c: Likewise.
3605
3606 2018-12-05 Zack Weinberg <zackw@panix.com>
3607 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3608
3609 * misc/syslog.c: Include libioP.h, not iolibio.h.
3610 (__vsyslog_internal): New function with the former body of
3611 __vsyslog_chk; takes mode_flags argument same as
3612 __v*printf_internal. Call __vfprintf_internal directly.
3613
3614 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3615 Remove libc_hidden_def.
3616 (__syslog, __syslog_chk): Use __vsyslog_internal.
3617 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3618
3619 * include/sys/syslog.h: Add multiple inclusion guard.
3620 Add prototype for __vsyslog_internal.
3621 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3622
3623 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3624 Use __vsyslog_internal.
3625
3626 2018-12-05 Zack Weinberg <zackw@panix.com>
3627 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3628
3629 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3630 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3631 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3632 New functions.
3633 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3634 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3635
3636 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3637 Include wctype.h here if COMPILE_WPRINTF is defined.
3638 Define __vfprintf_internal or __vfwprintf_internal, depending
3639 on COMPILE_WPRINTF.
3640 Temporarily, on entry to this function, update mode_flags
3641 according to the environmental settings corresponding to
3642 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3643 Throughout, check mode_flags instead of __ldbl_is_dbl and
3644 _IO_FLAGS2_FORTIFY on the destination FILE.
3645 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3646 Include vfprintf-internal.c. Don't include wctype.h.
3647 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3648 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3649 and vfprintf.
3650 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3651 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3652 and vfwprintf.
3653 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3654
3655 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3656 and add mode_flags argument; use __vfprintf_internal.
3657 (__vdprintf): New function. Alias vdprintf to this.
3658 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3659 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3660 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3661 (__obstack_printf): Use __obstack_printf_internal.
3662 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3663 public aliases __vsnprintf and vsnprintf.
3664 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3665 called internally.
3666 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3667 public aliases _IO_vsprintf and vsprintf.
3668 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3669 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3670 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3671 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3672 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3673
3674 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3675 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3676 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3677 * stdio-common/printf.c: Use __vfprintf_internal.
3678
3679 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3680 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3681 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3682
3683 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3684 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3685 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3686 __vfwprintf_internal.
3687
3688 * libio/libio.h: Remove libc_hidden_proto and declaration for
3689 _IO_vfprintf.
3690 Remove declaration of _IO_vfwprintf.
3691 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3692 _IO_vsprintf.
3693 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3694 _IO_obstack_printf.
3695 * include/stdio.h: Add prototype for __vasprintf.
3696 (__vsnprintf): Remove declaration, because there are no more
3697 internal calls.
3698 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3699 declaration, because there are no more internal calls.
3700
3701 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3702 __vsnprintf_internal, instead of _IO_vsnprintf.
3703 * argp/argp-help.c (__argp_error, __argp_failure): Use
3704 __vasprintf_internal, instead of _IO_vasprintf.
3705 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3706 redefine, because there are no more internal calls.
3707
3708 2018-12-05 Zack Weinberg <zackw@panix.com>
3709 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3710
3711 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3712 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3713 Include libio/strfile.h instead of libioP.h.
3714 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3715 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3716 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3717 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3718 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3719 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3720 necessary. Do not set __no_long_double. Normalize variable names.
3721 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3722 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3723 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3724 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3725 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3726 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3727 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3728 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3729 Do not set __no_long_double. Normalize variable names.
3730
3731 2018-12-05 Zack Weinberg <zackw@panix.com>
3732 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3733
3734 * stdio-common/isoc99_scanf.c
3735 * stdio-common/isoc99_fscanf.c
3736 * stdio-common/isoc99_sscanf.c
3737 * stdio-common/isoc99_vscanf.c
3738 * stdio-common/isoc99_vfscanf.c
3739 * stdio-common/isoc99_vsscanf.c
3740 * wcsmbs/isoc99_wscanf.c
3741 * wcsmbs/isoc99_fwscanf.c
3742 * wcsmbs/isoc99_swscanf.c
3743 * wcsmbs/isoc99_vwscanf.c
3744 * wcsmbs/isoc99_vfwscanf.c
3745 * wcsmbs/isoc99_vswscanf.c:
3746 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3747 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3748 No need to lock and unlock the FILE passed to that function.
3749
3750 * stdio-common/vfscanf-internal.c
3751 (__vfscanf_internal, __vfwscanf_internal):
3752 Don't look at _IO_FLAGS2_SCANF_STD.
3753 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3754 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3755 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3756
3757 2018-12-05 Zack Weinberg <zackw@panix.com>
3758 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3759
3760 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3761 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3762 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3763 * libio/strfile.h: Add multiple inclusion guard.
3764 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3765
3766 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3767 consistency with the other version of this file.
3768 (ldbl_compat_symbol): New macro.
3769 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3770 New macro.
3771
3772 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3773 Define __vfscanf_internal or __vfwscanf_internal, depending on
3774 COMPILE_WSCANF; don't define any other public symbols.
3775 Remove errval and code to set errp.
3776 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3777 as the mode_flags argument.
3778 (encode_error, conv_error, input_error): Don't set errval.
3779 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3780 Include vfscanf-internal.c.
3781 * stdio-common/vfscanf.c: New file defining the public entry
3782 point vfscanf, which calls __vfscanf_internal.
3783 * stdio-common/vfwscanf.c: New file defining the public entry
3784 point vfwscanf, which calls __vfwscanf_internal.
3785
3786 * stdio-common/iovfscanf.c: New file.
3787 * stdio-common/iovfwscanf.c: Likewise.
3788
3789 * stdio-common/Makefile (routines): Add vfscanf-internal,
3790 vfwscanf-internal, iovfscanf, iovfwscanf.
3791 * stdio-common/Versions: Mention GLIBC_2.29, so that
3792 it can be used in SHLIB_COMPAT expressions.
3793 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3794 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3795 Call __vfscanf_internal, instead of _IO_vfscanf.
3796 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3797 _IO_vfscanf.
3798 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3799 _IO_vfwscanf.
3800
3801 * libio/iovsscanf.c: Clean up includes, when possible. Use
3802 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3803 __vfscanf_internal or __vfwscanf_internal directly.
3804 * libio/iovswscanf.c: Likewise.
3805 * libio/swscanf.c: Likewise.
3806 * libio/vscanf.c: Likewise.
3807 * libio/vwscanf.c: Likewise.
3808 * libio/wscanf.c: Likewise.
3809 * stdio-common/isoc99_fscanf.c: Likewise.
3810 * stdio-common/isoc99_scanf.c: Likewise.
3811 * stdio-common/isoc99_sscanf.c: Likewise.
3812 * stdio-common/isoc99_vfscanf.c: Likewise.
3813 * stdio-common/isoc99_vscanf.c: Likewise.
3814 * stdio-common/isoc99_vsscanf.c: Likewise.
3815 * stdio-common/scanf.c: Likewise.
3816 * stdio-common/sscanf.c: Likewise.
3817 * wcsmbs/isoc99_fwscanf.c: Likewise.
3818 * wcsmbs/isoc99_swscanf.c: Likewise.
3819 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3820 * wcsmbs/isoc99_vswscanf.c: Likewise.
3821 * wcsmbs/isoc99_vwscanf.c: Likewise.
3822 * wcsmbs/isoc99_wscanf.c: Likewise.
3823
3824 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3825
3826 * include/time.h
3827 (__tz_compute): Replace time_t with __time64_t.
3828 (__tz_convert): Replace time_t* with __time64_t.
3829 (__offtime): Replace time_t* with __time64_t.
3830 * time/gmtime.c
3831 (__gmtime_r): Adjust call to __tz_convert.
3832 (gmtime): Likewise.
3833 * time/localtime.c
3834 (__localtime_r): Likewise.
3835 (localtime): Likewise.
3836 * time/offtime.c: Replace time_t with __time64_t.
3837 * time/tzset.c: Likewise.
3838
3839 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3840
3841 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3842 dynamic linker unless [$(run-built-tests) = yes].
3843
3844 2018-12-03 DJ Delorie <dj@delorie.com>
3845
3846 * support/test-container.c (check_for_unshare_hints): New.
3847 (main): Call it if unshare fails. Add support for "su" scriptlet
3848 command.
3849
3850 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3851
3852 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3853 'START' to indicate that start text should be output.
3854 (gen_test): Likewise.
3855 (main): Generate 'START' for first symbol or '--' line, or at end
3856 of input if not previously generated.
3857
3858 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3859
3860 [BZ #19767]
3861 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3862 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3863 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3864 ALWAYS_USE_VSYSCALL.
3865
3866 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3867
3868 [BZ #23913]
3869 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3870 new_argv by one.
3871
3872 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3873
3874 [BZ #23923]
3875 * locale/programs/localedef.c: Declare boolean hard_links default true.
3876 (options): Add --no-hard-links option.
3877 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3878 * locale/programs/localedef.h: Declare prototype for hard_links.
3879 * locale/programs/locfile.c (write_locale_data): Don't use hard
3880 links if hard_links is false.
3881
3882 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3883
3884 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3885 cpu_features_basic.
3886 (__cache_sysconf): Likewise.
3887 (init_cacheinfo): Likewise.
3888 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3889 populate COMMON_CPUID_INDEX_80000007 and
3890 COMMON_CPUID_INDEX_80000008.
3891 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3892 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3893 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3894 (init_cpu_features): Use _Static_assert on
3895 index_arch_Fast_Unaligned_Load.
3896 __get_cpuid_registers and __get_arch_feature. Updated for
3897 cpu_features_basic. Set stepping in cpu_features.
3898 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3899 (FEATURE_INDEX_2): New.
3900 (FEATURE_INDEX_MAX): Changed to enum.
3901 (COMMON_CPUID_INDEX_D_ECX_1): New.
3902 (COMMON_CPUID_INDEX_80000007): Likewise.
3903 (COMMON_CPUID_INDEX_80000008): Likewise.
3904 (cpuid_registers): Likewise.
3905 (cpu_features_basic): Likewise.
3906 (CPU_FEATURE_USABLE): Likewise.
3907 (bit_arch_XXX_Usable): Likewise.
3908 (cpu_features): Use cpuid_registers and cpu_features_basic.
3909 (bit_arch_XXX): Reweritten.
3910 (bit_cpu_XXX): Likewise.
3911 (index_cpu_XXX): Likewise.
3912 (reg_XXX): Likewise.
3913 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3914 <support/check.h>.
3915 (CHECK_CPU_FEATURE): New.
3916 (CHECK_CPU_FEATURE_USABLE): Likewise.
3917 (cpu_kinds): Likewise.
3918 (do_test): Print vendor, family, model and stepping. Check
3919 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
3920 (TEST_FUNCTION): Removed.
3921 Include <support/test-driver.c> instead of
3922 "../../test-skeleton.c".
3923 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
3924 Check POPCNT instead of POPCOUNT.
3925 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
3926
3927 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3928
3929 * scripts/gen-as-const.py (main): Avoid emitting empty line when
3930 there is no element in `consts'.
3931
3932 2018-12-01 Florian Weimer <fweimer@redhat.com>
3933
3934 * support/support_capture_subprocess.c
3935 (support_capture_subprocess): Check that pipe descriptors have
3936 expected values. Close original pipe descriptors in subprocess.
3937
3938 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3939
3940 [BZ #23032]
3941 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
3942 attr with __pthread_default_barrierattr.
3943 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
3944 attr with __pthread_default_condattr.
3945 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
3946 attr with __pthread_default_mutexattr.
3947 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
3948 attr with __pthread_default_rwlockattr.
3949
3950 2018-12-01 Kemi Wang <kemi.wang@intel.com>
3951
3952 * manual/tunables.texi (POSIX Thread Tunables): New node.
3953 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
3954 * nptl/nptl-init.c: Include pthread_mutex_conf.h
3955 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
3956 __pthread_tunables_init.
3957 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
3958 (max_adaptive_count): Define.
3959 * nptl/pthread_mutex_conf.c: New file.
3960 * nptl/pthread_mutex_conf.h: New file.
3961 * sysdeps/generic/adaptive_spin_count.h: New file.
3962 * sysdeps/nptl/dl-tunables.list: New file.
3963 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
3964 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
3965 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
3966 Likewise.
3967
3968 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3969
3970 [BZ #20544]
3971 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
3972 * stdlib/on_exit.c (__on_exit): Likewise.
3973 * stdlib/Makefile (tests): Add tst-bz20544.
3974 * stdlib/tst-bz20544.c: New test.
3975
3976 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
3977
3978 [BZ #19767]
3979 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
3980 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
3981 New.
3982
3983 2018-11-30 Florian Weimer <fweimer@redhat.com>
3984
3985 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
3986 Extend error logging.
3987 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
3988 symbol.
3989
3990 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3991
3992 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
3993 __sigismember instead of sigismember.
3994 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
3995 cancel_handler): New definitions.
3996 (do_system): Use posix_spawn instead of fork and execl and remove
3997 reentracy code.
3998 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
3999 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4000 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4001 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4002 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4003 * sysdeps/unix/sysv/linux/system.c: Likewise.
4004
4005 [BZ #22834]
4006 [BZ #17490]
4007 * NEWS: Add new semantic for atfork with popen and system.
4008 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4009 fork and execl.
4010
4011 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4012
4013 [BZ #23690]
4014 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4015 modification order when accessing reloc_result->addr.
4016 * include/link.h (reloc_result): Add field init.
4017 * nptl/Makefile (tests): Add tst-audit-threads.
4018 (modules-names): Add tst-audit-threads-mod1 and
4019 tst-audit-threads-mod2.
4020 Add rules to build tst-audit-threads.
4021 * nptl/tst-audit-threads-mod1.c: New file.
4022 * nptl/tst-audit-threads-mod2.c: Likewise.
4023 * nptl/tst-audit-threads.c: Likewise.
4024 * nptl/tst-audit-threads.h: Likewise.
4025
4026 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4027
4028 * scripts/gen-as-const.py: New file.
4029 * scripts/gen-as-const.awk: Remove.
4030 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4031 gen-as-const.py.
4032 ($(objpfx)test-as-const-%.c): Likewise.
4033
4034 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4035
4036 * elf/dl-exception.c: Include <_itoa.h>.
4037
4038 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4039
4040 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4041 returned by __f_setlk.
4042
4043 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4044 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4045
4046 * elf/Makefile (tests-internal): Add tst-create_format1.
4047 * elf/dl-exception.c (_dl_exception_create_format): Support
4048 %x, %lx and %zx.
4049 * elf/tst-create_format1.c: New file.
4050
4051 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4052
4053 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4054 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4055 gnulib.)
4056 * argp/argp-help.c (__argp_failure): Likewise.
4057
4058 2018-11-29 Mao Han <han_mao@c-sky.com>
4059
4060 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4061 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4062 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4063 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4064 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4065 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4066 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4067 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4068 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4069 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4070 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4071 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4072 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4073 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4074 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4075 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4076 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4077 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4078 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4079 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4080 (R_CKCORE_TLS_TPOFF32): New defines.
4081
4082 2018-11-29 Florian Weimer <fweimer@redhat.com>
4083
4084 * posix/Makefile (before-compile): Remove testcases.h and
4085 ptestcases.h.
4086 (generated): Add testcases.h and ptestcases.h.
4087 (testcases.h, ptestcases.h): Move to $(objpfx).
4088 (runtests.o): Add dependency on testcases.h.
4089 (runptests.o): Add dependency on ptestcases.h.
4090 * posix/testcases.h, posix/ptestcases.h: Remove files.
4091 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4092 not touch posix/testcases.h and posix/ptestcases.h.
4093
4094 2018-11-28 Florian Weimer <fweimer@redhat.com>
4095
4096 support: Add signal support to support_capture_subprocess_check.
4097 * support/capture_subprocess.h (support_capture_subprocess_check):
4098 Adjust comment and rename parameter.
4099 * support/support_capture_subprocess_check.c
4100 (print_actual_status): New function.
4101 (support_capture_subprocess_check): Support negative
4102 status_or_signal. Call print_actual_status.
4103 * support/tst-support_capture_subprocess.c (do_test): Call
4104 support_capture_subprocess_check.
4105 * libio/tst-vtables-common.c (termination_status)
4106 (init_termination_status): Remove.
4107 (check_for_termination): Adjust support_capture_subprocess_check
4108 call.
4109 (do_test): Remove call to init_termination_status.
4110
4111 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4112
4113 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4114 source directory instead of a copy.
4115 (CommandList.create_copy_dir): Remove.
4116
4117 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4118
4119 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4120
4121 2018-11-28 Florian Weimer <fweimer@redhat.com>
4122
4123 * support/support.h (support_quote_string): Do not use str
4124 parameter name.
4125
4126 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4127
4128 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4129 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4130
4131 2018-11-27 Florian Weimer <fweimer@redhat.com>
4132
4133 * support/support.h (support_quote_string): Declare.
4134 * support/support_quote_string.c: New file.
4135 * support/tst-support_quote_string.c: Likewise.
4136 * support/Makefile (libsupport-routines): Add
4137 support_quote_string.
4138 (tests): Add tst-support_quote_string.
4139
4140 2018-11-27 Florian Weimer <fweimer@redhat.com>
4141
4142 [BZ #23927]
4143 CVE-2018-19591
4144 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4145 descriptor leak in case of ENODEV error.
4146
4147 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4148
4149 [BZ #19767]
4150 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4151 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4152 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4153
4154 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4155
4156 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4157 Error for unknown lines.
4158
4159 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4160
4161 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4162 Touch additional files.
4163
4164 2018-11-26 Florian Weimer <fweimer@redhat.com>
4165
4166 [BZ #23907]
4167 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4168 double-frees.
4169
4170 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4171
4172 [BZ #19767]
4173 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4174 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4175 SHARED. Include sysdep.h.
4176 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4177 ALWAYS_USE_VSYSCALL.
4178 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4179 ALWAYS_USE_VSYSCALL.
4180
4181 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4182
4183 [BZ #19767]
4184 * nptl/Makefile (tests-static): Add tst-cond11-static.
4185 (tests): Likewise.
4186 * nptl/tst-cond11-static.c: New File.
4187 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4188 tst-affinity-static.
4189 (tests): Likewise.
4190 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4191 instead of SHARED.
4192 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4193 (USE_VSYSCALL): Likewise.
4194 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4195 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4196 instead of SHARED.
4197 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4198 SHARED.
4199 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4200 New.
4201
4202 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4203
4204 [BZ #23915]
4205 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4206 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4207 Undefine.
4208
4209 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4210
4211 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4212 (tst-cet-legacy-1a-ARGS): New.
4213 ($(objpfx)tst-cet-legacy-1a): New target.
4214 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4215
4216 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4217
4218 * conform/conformtest.py (CompileSubTest.__init__): Set
4219 self.run_early to False.
4220 (ExecuteSubTest.__init__): Likewise.
4221 (HeaderTests.run): Try running all non-optional, non-XFAILed
4222 compilation tests in a single execution of the compiler.
4223
4224 * conform/conformtest.py (CompileSubTest): New class.
4225 (ExecuteSubTest): Likewise.
4226 (ElementTest.run): Rename to gen_subtests. Append tests to
4227 self.subtests instead of running them.
4228 (ConstantTest.run): Likewise.
4229 (SymbolTest.run): Likewise.
4230 (TypeTest.run): Likewise.
4231 (TagTest.run): Likewise.
4232 (FunctionTest.run): Likewise.
4233 (VariableTest.run): Likewise.
4234 (MacroFunctionTest.run): Likewise.
4235 (MacroStrTest.run): Likewise.
4236 (HeaderTests.handle_test_line): Generate subtests for tests.
4237 (HeaderTests.run): Run subtests for tests.
4238
4239 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4240
4241 * math/Versions (GLIBC_2.29): Add pow.
4242 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4243 symbol.
4244 * math/w_pow.c: New file.
4245 * sysdeps/i386/fpu/w_pow.c: New file.
4246 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4247 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4248 and add necessary aliases.
4249 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4250 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4251 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4252 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4253 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4254 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4255 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4256 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4257 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4258 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4259 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4260 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4261 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4262 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4263 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4264 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4268 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4269 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4270 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4271 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4272 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4273 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4274 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4275 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4276 __pow.
4277 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4278 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4279 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4280
4281 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4282
4283 * math/Versions (GLIBC_2.29): Add log2.
4284 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4285 symbol.
4286 * math/w_log2.c: New file.
4287 * sysdeps/i386/fpu/w_log2.c: New file.
4288 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4289 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4290 and add necessary aliases.
4291 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4292 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4293 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4294 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4295 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4296 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4297 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4298 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4299 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4300 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4301 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4302 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4303 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4304 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4305 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4306 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4307 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4308 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4309 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4310 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4311 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4312 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4313 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4314 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4315 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4316 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4317
4318 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4319
4320 * math/Versions (GLIBC_2.29): Add log.
4321 * math/w_log_compat.c (__log_compat): Change to versioned compat
4322 symbol.
4323 * math/w_log.c: New file.
4324 * sysdeps/i386/fpu/w_log.c: New file.
4325 * sysdeps/ia64/fpu/e_log.S: Update.
4326 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4327 and add necessary aliases.
4328 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4329 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4330 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4331 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4332 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4333 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4334 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4335 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4336 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4337 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4338 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4339 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4340 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4341 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4342 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4343 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4344 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4346 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4347 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4348 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4349 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4350 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4351 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4352 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4353 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4354 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4355 __log.
4356 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4357 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4358 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4359 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4360
4361 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4362
4363 * math/Versions (GLIBC_2.29): Add exp and exp2.
4364 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4365 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4366 * math/w_exp_compat.c (__exp_compat): Likewise.
4367 * math/w_exp.c: New file.
4368 * math/w_exp2.c: New file.
4369 * sysdeps/i386/fpu/w_exp.c: New file.
4370 * sysdeps/i386/fpu/w_exp2.c: New file.
4371 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4372 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4373 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4374 and add necessary aliases.
4375 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4376 and add necessary aliases.
4377 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4378 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4379 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4380 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4381 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4382 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4383 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4384 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4385 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4386 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4387 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4388 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4389 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4390 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4391 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4392 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4393 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4394 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4395 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4396 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4397 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4398 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4399 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4400 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4401 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4402 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4403 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4404 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4405 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4406 (__ieee754_exp): Rename to __exp.
4407 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4408 (__ieee754_exp): Rename to __exp.
4409 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4410 (__ieee754_exp): Rename to __exp.
4411 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4412 __exp.
4413 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4414
4415 2018-11-20 DJ Delorie <dj@redhat.com>
4416
4417 * malloc/malloc.c (tcache_entry): Add key field.
4418 (tcache_put): Set it.
4419 (tcache_get): Likewise.
4420 (_int_free): Check for double free in tcache.
4421 * malloc/tst-tcfree1.c: New.
4422 * malloc/tst-tcfree2.c: New.
4423 * malloc/Makefile: Run the new tests.
4424 * manual/probes.texi: Document memory_tcache_double_free probe.
4425
4426 * dlfcn/dlerror.c (check_free): Prevent double frees.
4427
4428 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4429
4430 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4431
4432 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4433
4434 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4435 in tests. Use names for format arguments.
4436 (ConstantTest.run): Likewise.
4437 (SymbolTest.run): Likewise.
4438 (TypeTest.run): Likewise.
4439 (TagTest.run): Likewise.
4440 (FunctionTest.run): Likewise.
4441 (VariableTest.run): Likewise.
4442 (MacroFunctionTest.run): Likewise.
4443 (MacroStrTest.run): Likewise.
4444 (HeaderTests.__init__): Set self.num_tests.
4445 (HeaderTests.handle_test_line): Set test.num. Increment
4446 self.num_tests.
4447
4448 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4449
4450 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4451 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4452 SEEK_SET.
4453
4454 2018-11-19 Mao Han <han_mao@c-sky.com>
4455
4456 * scripts/config.guess: Update to version 2018-08-29.
4457 * scripts/config.sub: Update to version 2018-08-29.
4458
4459 2018-11-19 Florian Weimer <fweimer@redhat.com>
4460
4461 support: Print timestamps in timeout handler.
4462 * support/support_test_main.c (print_timestamp): New function.
4463 (signal_handler): Use it to print the termination time and the
4464 time of the last write to standard output.
4465
4466 2018-11-16 Zack Weinberg <zackw@panix.com>
4467 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4468
4469 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4470 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4471 argument.
4472 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4473 and add flags argument. Check flags instead of __ldbl_is_dbl when
4474 deciding whether to set is_long_double.
4475 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4476 passing zero for flags argument.
4477 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4478
4479 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4480 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4481 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4482 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4483 variable names. Remove libc_hidden_def/libc_hidden_proto from
4484 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4485 longer called from within the library.
4486 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4487 for __nldbl___vstrfmon_l, declare it explicitly.
4488
4489 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4490
4491 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4492
4493 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4494 macros
4495 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4496 F_SETLK64, F_SETLKW64, respectively.
4497 * sysdeps/mach/hurd/f_setlk.c: New file.
4498 * sysdeps/mach/hurd/f_setlk.h: New file.
4499 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4500 f_setlk.
4501 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4502 (__libc_fcntl): Move non-flock operations to...
4503 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4504 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4505
4506 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4507
4508 mktime: DEBUG_MKTIME cleanup
4509 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4510 And it’s no longer needed now that glibc and Gnulib both have
4511 their own testing mechanisms for mktime.
4512 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4513
4514 mktime: fix non-EOVERFLOW errno handling
4515 [BZ#23789]
4516 mktime was not properly reporting failures when the underlying
4517 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4518 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4519 The problem could happen on non-glibc platforms, with Gnulib.
4520 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4521 (tm_diff): ... this simpler function, which does not change errno.
4522 All callers changed to deal with errno themselves.
4523 (ranged_convert, __mktime_internal): Return failure immediately if
4524 the underlying function reports any failure other than EOVERFLOW.
4525 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4526 gap code fails.
4527
4528 mktime: fix bug with Y2038 DST transition
4529 [BZ#23789]
4530 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4531 mishandle a DST transition that jumps over the Y2038 boundary.
4532 No such DST transitions are known so this is only a theoretical
4533 bug, but we might as well do things right.
4534
4535 mktime: make more room for overflow
4536 [BZ#23789]
4537 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4538 This is so that we can add tm_diff results to a previous guess,
4539 which will be useful in a later patch.
4540
4541 mktime: simplify offset guess
4542 [BZ#23789]
4543 * time/mktime.c (__mktime_internal): Omit excess precision.
4544
4545 mktime: new test for mktime failure
4546 [BZ#23789]
4547 Based on a test suggested by Albert Aribaud in:
4548 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4549 * time/Makefile (tests): Add bug-mktime4.
4550 * time/bug-mktime4.c: New file.
4551
4552 mktime: fix EOVERFLOW bug
4553 [BZ#23789]
4554 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4555 Include libc-config.h, not config.h, for __set_errno.
4556 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4557
4558 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4559
4560 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4561 __attribute_copy__ to copy attributes from name. Drop static qualifier
4562 to avoid warnings about leaf attribute not having effect on static
4563 functions.
4564
4565 2018-11-13 Florian Weimer <fweimer@redhat.com>
4566
4567 * malloc/malloc.c (fastbin_push_entry): New function.
4568 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4569 (REMOVE_FB): Remove macro.
4570 (_int_malloc): Use fastbin_pop_entry and reindent.
4571 (_int_free): Use fastbin_push_entry.
4572 (malloc_consolidate): Use atomic_exchange_acquire.
4573
4574 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4575
4576 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4577 alias attribute, not with strong_alias.
4578
4579 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4580 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4581 with additional parameter thread.
4582 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4583 in terms of __hidden_ver2.
4584 (hidden_tls_def): New macro.
4585 (libc_hidden_tls_def): Likewise.
4586 (rtld_hidden_tls_def): Likewise.
4587 (libm_hidden_tls_def): Likewise.
4588 (libmvec_hidden_tls_def): Likewise.
4589 (libresolv_hidden_tls_def): Likewise.
4590 (librt_hidden_tls_def): Likewise.
4591 (libdl_hidden_tls_def): Likewise.
4592 (libnss_files_hidden_tls_def): Likewise.
4593 (libnsl_hidden_tls_def): Likewise.
4594 (libnss_nisplus_hidden_tls_def): Likewise.
4595 (libutil_hidden_tls_def): Likewise.
4596 (libutil_hidden_tls_def): Likweise.
4597 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4598 libc_hidden_tls_def.
4599 (__sim_disabled_exceptions_thread): Likewise.
4600 (__sim_round_mode_thread): Likewise.
4601
4602 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4603 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4604 copy attributes from name.
4605
4606 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4607
4608 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4609 Use __attribute_copy__ to copy attributes from name.
4610
4611 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4612 with __hidden_ver1 call.
4613 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4614 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4615 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4616 (__cosf): Do not declare here.
4617 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4618 (__sincosf): Do not declare here.
4619 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4620 (__sinf): Do not declare here.
4621
4622 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4623 (__BIG_ENDIAN): Likewise.
4624 (__BYTE_ORDER): Likewise.
4625 (strong_alias): Likewise.
4626 (_strong_alias): Likewise.
4627
4628 2018-11-12 Florian Weimer <fweimer@redhat.com>
4629
4630 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4631 function. Move after the definition of in_smallbin_range. Do not
4632 use __builtin_expect for paths that lead to a noreturn function.
4633 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4634 because it is unclear whether this is in fact an unlikely
4635 condition.
4636 (_int_malloc, _int_free): Adjust.
4637 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4638 variables.
4639 * malloc/arena.c (heap_trim): Likewise.
4640
4641 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4642
4643 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4644 it, free it if needed.
4645 (reauthenticate): Test and use ccwdir.
4646 (child_init_port): In non-resetids case, test and use ccwdir.
4647 (child_chdir): New nested function to set ccwdir.
4648 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4649 * hurd/hurd/port.h (_hurd_port_move): New function.
4650 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4651 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4652 * hurd/Versions (_hurd_port_move): Export function.
4653 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4654 symbol.
4655 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4656 of dtablesize for allocating dtable_cloexec.
4657
4658 2018-11-09 Martin Sebor <msebor@redhat.com>
4659
4660 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4661 it's already defined.
4662 (_strong_alias): Use __attribute_copy__.
4663 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4664 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4665 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4666 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4667 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4668 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4669 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4670 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4671 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4672 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4673 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4674 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4675 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4676 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4677 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4678 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4679 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4680 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4681 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4682
4683 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4684
4685 * misc/tst-efgcvt.c: Include support/check.h and
4686 support/test-driver.c. Do not include test-skeleton.c.
4687 (error_count): Remove.
4688 (output_error): Replace increments to error_count with calls to
4689 support_record_failure.
4690 (output_r_error): Likewise.
4691 (special): Likewise.
4692 (do_test): Unconditionally return zero.
4693 (TEST_FUNCTION): Remove.
4694
4695 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4696
4697 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4698 not $(@D)/scratch.
4699 ($(linknamespace-header-tests)): Likewise.
4700
4701 * conform/conformtest.py: New file.
4702 * conform/conformtest.pl: Remove.
4703 * conform/GlibcConform.pm: Likewise.
4704 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4705 (KEYWORDS_C99): Likewise.
4706 (KEYWORDS): Likewise.
4707 * conform/Makefile ($(conformtest-header-tests)): Use
4708 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4709 option. Use --header instead of --headers.
4710 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4711 function entries.
4712 * conform/data/spawn.h-data: Likewise.
4713 * conform/data/fcntl.h-data (openat): Add space after function
4714 name.
4715 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4716 (wcscasecmp_l): Likewise.
4717 * conform/data/termios.h-data (c_cc): Add space after element
4718 name.
4719
4720 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4721
4722 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4723 instead of manually comparing and reporting mismatching strings.
4724 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4725 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4726
4727 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4728
4729 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4730 __ASSUME_SOCKETCALL.
4731 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4732 (__ASSUME_SOCKETCALL): Remove.
4733 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4734 (__ASSUME_SOCKETCALL): Likewise.
4735 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4736 (__ASSUME_SOCKETCALL): Likewise.
4737 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4738 (__ASSUME_SOCKETCALL): Likewise.
4739 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4740 (__ASSUME_SOCKETCALL): Likewise.
4741 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4742 (__ASSUME_SOCKETCALL): Likewise.
4743 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4744 (__ASSUME_SOCKETCALL): Likewise.
4745
4746 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4747
4748 [BZ #23509]
4749 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4750 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4751 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4752 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4753 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4754 lc_unknown.
4755
4756 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4757
4758 [BZ #17630]
4759 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4760
4761 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4762
4763 [BZ #23867]
4764 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4765 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4766 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4767 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4768
4769 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4770
4771 * support/support_test_compare_string.c
4772 (support_test_compare_string): Fix printf format.
4773
4774 2018-11-07 Florian Weimer <fweimer@redhat.com>
4775
4776 Implement TEST_COMPARE_STRING.
4777 * support/check.h (TEST_COMPARE_STRING): Define.
4778 (support_test_compare_string): Declare.
4779 * support/Makefile (libsupport-routines): Add
4780 support_test_compare_string.
4781 (tests): Add tst-test_compare_string.
4782 * support/support_test_compare_string.c: New file.
4783 * support/tst-test_compare_string.c: Likewise.
4784
4785 2018-11-07 Andreas Schwab <schwab@suse.de>
4786
4787 [BZ #23864]
4788 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4789 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4790 Undef.
4791
4792 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4793
4794 [BZ #23862]
4795 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4796 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4797 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4798 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4799 Likewise.
4800
4801 2018-11-06 Florian Weimer <fweimer@redhat.com>
4802
4803 [BZ #17405]
4804 * posix/Makefile (routines): Add spawn_faction_addchdir.
4805 (tests): Add tst-spawn-chdir.
4806 * posix/Versions (GLIBC_2.29): Add
4807 posix_spawn_file_actions_addchdir_np.
4808 * posix/spawn_faction_addchdir.c: New file.
4809 * posix/spawn_faction_destroy.c
4810 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4811 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4812 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4813 chdir_action.
4814 * posix/tst-spawn-chdir.c: New file.
4815 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4816 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4817 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4818 posix_spawn_file_actions_addchdir_np.
4819 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4820 Likewise.
4821 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4822 Likewise.
4823 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4824 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4825 Likewise.
4826 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4827 Likewise.
4828 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4829 Likewise.
4830 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4831 Likewise.
4832 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4833 Likewise.
4834 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4835 Likewise.
4836 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4837 (GLIBC_2.29): Likewise.
4838 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4839 (GLIBC_2.29): Likewise.
4840 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4841 (GLIBC_2.29): Likewise.
4842 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4843 (GLIBC_2.29): Likewise.
4844 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4845 Likewise.
4846 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4847 (GLIBC_2.29): Likewise.
4848 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4849 (GLIBC_2.29): Likewise.
4850 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4851 (GLIBC_2.29): Likewise.
4852 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4853 (GLIBC_2.29): Likewise.
4854 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4855 Likewise.
4856 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4857 Likewise.
4858 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4859 Likewise.
4860 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4861 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4862 Likewise.
4863 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4864 Likewise.
4865 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4866 Likewise.
4867 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4868 Likewise.
4869
4870 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4871
4872 * misc/Makefile (tests): Add tst-ldbl-error.
4873 * misc/tst-ldbl-error.c: New file.
4874
4875 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4876
4877 * misc/Makefile (tests): Add tst-ldbl-warn.
4878 * misc/tst-ldbl-warn.c: New file.
4879
4880 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4881
4882 * argp/Makefile (tests): Add tst-ldbl-argp.
4883 * argp/tst-ldbl-argp.c: New file.
4884
4885 2018-11-05 Arjun Shankar <arjun@redhat.com>
4886
4887 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4888 __gconv_path_elem and call __gconv_get_path unconditionally.
4889
4890 2018-11-05 Andreas Schwab <schwab@suse.de>
4891
4892 [BZ #22927]
4893 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4894 creating the first helper thread failed.
4895
4896 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4897
4898 * sysdeps/mach/hurd/msync.c: New file.
4899
4900 2018-11-02 Florian Weimer <fweimer@redhat.com>
4901
4902 * support/shell-container.c (copy_func): Call
4903 support_copy_file_range instead of copy_file_range to support
4904 cross-device copies.
4905
4906 2018-11-02 Florian Weimer <fweimer@redhat.com>
4907
4908 * support/test-container.c: Include <libc-pointer-arith.h> for
4909 ALIGN_UP.
4910
4911 2018-11-01 Zong Li <zong@andestech.com>
4912
4913 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4914 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4915 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4916 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4917
4918 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
4919 variable to avoid overlap arguments.
4920
4921 2018-11-01 Joseph Myers <joseph@codesourcery.com>
4922
4923 * posix/bug-regex22.c (main): Use puts with distinct error
4924 messages for unexpected success of re_compile_pattern, not printf
4925 with NULL argument to %s.
4926
4927 * stdio-common/bug22.c: Include <libc-diag.h>.
4928 (do_test): Disable -Wformat-overflow= warnings around fprintf
4929 calls outputting more than INT_MAX characters.
4930 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
4931 around printf call with NULL %s argument.
4932
4933 [BZ #23848]
4934 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
4935 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
4936 Undefine.
4937 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4938 (__ASSUME_RECVMSG_SYSCALL): Likewise.
4939 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4940 (__ASSUME_SENDTO_SYSCALL): Likewise.
4941 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4942 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
4943 [!__arch64__].
4944 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4945 (__ASSUME_CONNECT_SYSCALL): Likewise.
4946 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4947 (__ASSUME_RECVFROM_SYSCALL): Likewise.
4948 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
4949 Define.
4950 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
4951 Likewise.
4952 [__LINUX_KERNEL_VERSION >= 0x040400]
4953 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
4954 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
4955 Remove.
4956 (listen): Likewise.
4957 (setsockopt): Likewise.
4958
4959 2018-11-01 Fredrik Noring <noring@nocrew.org>
4960
4961 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
4962 with the ISA override.
4963
4964 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
4965
4966 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
4967 #endif.
4968
4969 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
4970
4971 * manual/errno.texi (EIEIO): Document how translators should
4972 translate the error message.
4973 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
4974 printing trailing whitespaces refused by git.
4975 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
4976 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
4977 * hurd/Makefile (user-interfaces): Add pci.
4978
4979 2018-10-30 Joseph Myers <joseph@codesourcery.com>
4980
4981 * conform/linknamespace.py: New file.
4982 * conform/linknamespace.pl: Remove file.
4983 * conform/Makefile ($(linknamespace-header-tests)): Use
4984 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
4985 option.
4986
4987 2018-10-30 Florian Weimer <fweimer@redhat.com>
4988
4989 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
4990 memory leaks.
4991
4992 2018-10-30 Florian Weimer <fweimer@redhat.com>
4993
4994 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
4995
4996 2018-10-30 Florian Weimer <fweimer@redhat.com>
4997
4998 * stdlib/tst-strtod-overflow.c (do_test): Switch to
4999 support_blob_repeat.
5000
5001 2018-10-30 Florian Weimer <fweimer@redhat.com>
5002
5003 Avoid spurious test failures in stdlib/test-bz22786.
5004 * support/Makefile (libsupport-routines): Add blob_repeat.
5005 (tests): Add tst-support_blob_repeat.
5006 * support/blob_repeat.h: New file.
5007 * support/blob_repeat.c: Likewise.
5008 * support/tst-support_blob_repeat.c: Likewise.
5009 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5010 support_blob_repeat_allocate.
5011
5012 2018-10-30 Andreas Schwab <schwab@suse.de>
5013
5014 [BZ #23125]
5015 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5016 Don't use tail call.
5017 * elf/tst-unwind-main.c: New file.
5018 * elf/Makefile (tests): Add tst-unwind-main.
5019 (CFLAGS-tst-unwind-main.c): Define.
5020
5021 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5022
5023 [BZ #23791]
5024 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5025 n_cs_precedes to 0.
5026 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5027
5028 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5029
5030 * conform/glibcconform.py: Do not import shutil.
5031 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5032 of mkdtemp.
5033
5034 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5035 critic_missing for versions before 3.4.
5036 * configure: Regenerated.
5037 * manual/install.texi (Tools for Compilation): Document
5038 requirement for Python to build glibc.
5039 * INSTALL: Regenerated.
5040 * Rules [PYTHON]: Make code unconditional.
5041 * benchtests/Makefile [PYTHON]: Likewise.
5042 * conform/Makefile [PYTHON]: Likewise.
5043 * manual/Makefile [PYTHON]: Likewise.
5044 * math/Makefile [PYTHON]: Likewise.
5045
5046 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5047
5048 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5049 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5050 answer to interrupt_operation, return EIEIO instead of EINTR.
5051 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5052 _hurd_intr_rpc_msg_about_to global point to start of controlled
5053 assembly snippet. Make it check canceled flag.
5054 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5055 the _hurd_intr_rpc_msg_about_to point.
5056 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5057 issue, remove cancel flag check.
5058
5059 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5060
5061 * scripts/build-many-glibcs.py: Remove compatibility for missing
5062 os.cpu_count and re.fullmatch.
5063
5064 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5065
5066 [BZ #23822]
5067 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5068 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5069 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5070
5071 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5072
5073 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5074 macro.
5075
5076 2018-10-25 Florian Weimer <fweimer@redhat.com>
5077
5078 [BZ #23562]
5079 [BZ #23821]
5080 XFAIL siginfo_t si_band conform test on sparc64.
5081 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5082 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5083 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5084 (conformtest-xfail-conds): Add sparc64-linux.
5085 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5086 sparc64.
5087 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5088
5089 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5090
5091 * elf/elf.h (NT_MIPS_DSP): New macro.
5092 (NT_MIPS_FP_MODE): Likewise.
5093
5094 2018-10-25 Zong Li <zong@andestech.com>
5095
5096 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5097 name by adding the file extension (.so).
5098
5099 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5100
5101 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5102 (test-xfail-ISO11/threads.h/linknamespace,
5103 test-xfail-ISO11/threads.h/conform): Add.
5104
5105 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5106
5107 * math/gen-libm-test.py: Import os.
5108 (ALL_FLOATS_MANUAL): New constant.
5109 (ALL_FLOATS_SUFFIX): Likewise.
5110 (Ulps.all_functions): New function.
5111 (real_all_ulps): Likewise.
5112 (generate_err_table_sub): Likewise.
5113 (generate_err_table): Likewise.
5114 (main): Handle -s and -m options.
5115 * manual/libm-err-tab.pl: Remove.
5116 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5117 instead of libm-err-tab.pl.
5118 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5119 != no].
5120 * manual/install.texi (Tools for Compilation): Document
5121 requirement for Python to build manual.
5122 * INSTALL: Regenerated.
5123
5124 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5125
5126 * bits/time64.h: New file.
5127 * include/time.h: Replace internal_time_t with __time64_t.
5128 * posix/bits/types (__time64_t): Add.
5129 * stdlib/Makefile: Add bits/time64.h to includes.
5130 * time/tzfile.c: Replace internal_time_t with __time64_t.
5131
5132 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5133
5134 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5135 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5136 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5137 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5138 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5139 prototype.
5140 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5141 * posix/spawn_faction_addclose.c
5142 (__posix_spawn_file_actions_addclose): Add hidden definition.
5143 * posix/spawn_faction_adddup2.c
5144 (__posix_spawn_file_actions_adddup2): Likewise.
5145 * posix/spawn_faction_destroy.c
5146 (__posix_spawn_file_actions_destroy): Likewise.
5147 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5148 Likewise.
5149 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5150 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5151 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5152 Likewise.
5153 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5154 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5155 Likewise.
5156
5157 2018-10-24 Andreas Schwab <schwab@suse.de>
5158
5159 [BZ #18093]
5160 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5161 format cache.
5162 * elf/cache.c (print_cache): Likewise.
5163
5164 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5165
5166 * bits/timesize.h: New file.
5167 * stdlib/Makefile (headers): Add bits/timesize.h.
5168 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5169 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5170 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5171 (__SEM_PAD_AFTER_TIME): Likewise.
5172 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5173 (__SHM_PAD_AFTER_TIME): Likewise.
5174 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5175 (__MSQ_PAD_BEFORE_TIME): Likewise.
5176 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5177 (__SEM_PAD_BEFORE_TIME): Likewise.
5178 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5179 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5180 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5181 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5182 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5183 (__MSQ_PAD_BEFORE_TIME): Likewise.
5184 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5185 (__SEM_PAD_BEFORE_TIME): Likewise.
5186 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5187 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5188 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5189 (__MSQ_PAD_BEFORE_TIME): Likewise.
5190 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5191 (__SEM_PAD_BEFORE_TIME): Likewise.
5192 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5193 (__SHM_PAD_BEFORE_TIME): Likewise.
5194 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5195 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5196 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5197
5198 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5199
5200 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5201 USE_RDTSCP is defined.
5202 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5203 USE_RDTSCP is defined.
5204
5205 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5206
5207 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5208 defined.
5209
5210 [BZ #23709]
5211 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5212 independently of other flags.
5213
5214 2018-10-23 Florian Weimer <fweimer@redhat.com>
5215
5216 * time/tst-mktime2.c (N_STRINGS): Remove.
5217 (set_timezone): New function.
5218 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5219 (mktime_test1): Report localtime failure and check errno value.
5220 Use TEST_COMPARE.
5221 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5222 (do_test): Remove alarm call. Use set_timezone and array_length.
5223
5224 2018-10-23 Andreas Schwab <schwab@suse.de>
5225
5226 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5227 (__start_context): Use END instead of PSEUDO_END.
5228
5229 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5230
5231 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5232 version to 4.19.
5233
5234 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5235 version to 4.19.
5236
5237 [BZ #23793]
5238 * wcsmbs/c32rtomb.c: New file.
5239 * wcsmbs/mbrtoc32.c: Likewise.
5240 * wcsmbs/tst-c32-state.c: Likewise.
5241 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5242 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5243 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5244 (tests): Add tst-c32-state.
5245 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5246 $(gen-locales).
5247
5248 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5249
5250 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5251 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5252
5253 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5254
5255 [BZ #23794]
5256 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5257 pair and return 0 in that case, and use saved character to
5258 interpret following character.
5259 * wcsmbs/tst-c16-surrogate.c: New file.
5260 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5261 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5262 Depend on $(gen-locales)
5263
5264 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5265
5266 [BZ #23562]
5267 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5268 (struct siginfo_t): Use correct type for si_band.
5269
5270 2018-10-19 Florian Weimer <fweimer@redhat.com>
5271
5272 [BZ #23689]
5273 * resource/bits/types/struct_rusage.h (struct rusage): Update
5274 comment on struct. Remove extraneous field comment.
5275
5276 2018-10-18 David S. Miller <davem@davemloft.net>
5277
5278 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5279 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5280 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5281 sysdep_routines in subdir elf.
5282 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5283 version for __vdso_clock_gettime.
5284 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5285 Define.
5286 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5287 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5288
5289 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5290
5291 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5292
5293 * sysdeps/i386/init-arch.h: Removed.
5294 * sysdeps/i386/i586/init-arch.h: Likewise.
5295 * sysdeps/i386/i686/init-arch.h: Likewise.
5296 * sysdeps/i386/i686/hp-timing.h: Likewise.
5297 * sysdeps/x86_64/hp-timing.h: Likewise.
5298 * sysdeps/i386/isa.h: New file.
5299 * sysdeps/i386/i586/isa.h: Likewise.
5300 * sysdeps/i386/i686/isa.h: Likewise.
5301 * sysdeps/x86_64/isa.h: Likewise.
5302 * sysdeps/x86/hp-timing.h: New file.
5303 * sysdeps/x86/init-arch.h: Include <isa.h>.
5304
5305 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5306
5307 * math/libm-test-pow.inc (pow_test_data): Do not allow
5308 divide-by-zero exception for pow(+/- 0, -Inf).
5309
5310 2018-10-17 Zack Weinberg <zackw@panix.com>
5311
5312 * manual/job.texi (Job Control is Optional): Remove node, as
5313 job control has not been optional in quite some time.
5314 (Job Control): Mention briefly that systems older than
5315 POSIX.1-2001 might not support job control.
5316 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5317 defined on systems conforming to POSIX.1-2001.
5318
5319 2018-10-17 Arjun Shankar <arjun@redhat.com>
5320
5321 [BZ #22062]
5322 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5323 indentation.
5324 * (__gconv_read_conf): Mark function static.
5325 * (once): New static variable.
5326 * (__gconv_load_conf): New function.
5327 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5328 * iconv/gconv_db.c (once): Remove static variable.
5329 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5330 __gconv_read_conf.
5331 * (__gconv_find_transform): Likewise.
5332 * iconv/tst-iconv-mt.c: New test.
5333 * iconv/Makefile: Add tst-iconv_mt.
5334
5335 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5336
5337 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5338 bits/shm-pad.h.
5339 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5340 (shmatt_t): Define as __syscall_ulong_t.
5341 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5342 and [__SHM_PAD_AFTER_TIME].
5343 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5344 Define shm_segsz and associated padding based on
5345 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5346 Use __syscall_ulong_t instead of unsigned long int.
5347 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5348 unsigned long int.
5349 [__USE_MISC] (struct shm_info): Likewise.
5350 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5351 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5352 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5353 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5354 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5355 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5356 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5357 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5358 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5359 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5360 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5361
5362 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5363 bits/shmlba.h.
5364 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5365 (SHMLBA): Remove macro.
5366 (__getpagesize): Remove function declaration.
5367 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5368 <bits/shmlba.h>.
5369 (SHMLBA): Remove macro.
5370 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5371 <bits/shmlba.h>.
5372 (SHMLBA): Remove macro.
5373 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5374 <bits/shmlba.h>.
5375 (SHMLBA): Remove macro.
5376 (__getpagesize): Remove function declaration.
5377 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5378 <bits/shmlba.h>.
5379 (SHMLBA): Remove macro.
5380 (__getshmlba): Remove function declaration.
5381 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5382 (SHMLBA): Remove macro.
5383 (__getpagesize): Remove function declaration.
5384 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5385 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5386 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5387 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5388 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5389 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5390 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5391 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5392 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5393 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5394
5395 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5396
5397 [BZ #23275]
5398 * nptl/tst-mutex10.c: New File.
5399 * nptl/Makefile (tests): Add tst-mutex10.
5400 (tst-mutex10-ENV): New variable.
5401 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5402 Ensure that elision path is used if elision is available.
5403 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5404 Likewise.
5405 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5406 Likewise.
5407 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5408 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5409 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5410 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5411 Likewise.
5412 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5413 (__pthread_mutex_cond_lock_adjust): Likewise.
5414 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5415 Likewise.
5416 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5417 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5418 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5419 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5420 Add comments.
5421 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5422 Use atomic_load_relaxed and atomic_store_relaxed.
5423 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5424 Use atomic_store_relaxed.
5425
5426 2018-10-17 Andreas Schwab <schwab@suse.de>
5427
5428 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5429 * crypt/badsalttest.c (TIMEOUT): Likewise.
5430 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5431 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5432 * io/test-lfs.c (TIMEOUT): Likewise.
5433 * libio/tst-atime.c (TIMEOUT): Likewise.
5434 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5435 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5436 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5437 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5438 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5439 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5440 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5441 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5442 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5443 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5444 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5445 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5446 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5447 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5448 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5449 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5450 * nptl/tst-once2.c (TIMEOUT): Likewise.
5451 * nptl/tst-once3.c (TIMEOUT): Likewise.
5452 * nptl/tst-once4.c (TIMEOUT): Likewise.
5453 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5454 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5455 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5456 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5457 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5458 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5459 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5460 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5461 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5462 * posix/tst-chmod.c (TIMEOUT): Likewise.
5463 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5464 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5465 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5466 * posix/tst-regex2.c (TIMEOUT): Likewise.
5467 * posix/tst-waitid.c (TIMEOUT): Likewise.
5468 * rt/tst-aio.c (TIMEOUT): Likewise.
5469 * rt/tst-aio10.c (TIMEOUT): Likewise.
5470 * rt/tst-aio4.c (TIMEOUT): Likewise.
5471 * rt/tst-aio5.c (TIMEOUT): Likewise.
5472 * rt/tst-aio6.c (TIMEOUT): Likewise.
5473 * rt/tst-aio64.c (TIMEOUT): Likewise.
5474 * rt/tst-aio7.c (TIMEOUT): Likewise.
5475 * rt/tst-aio9.c (TIMEOUT): Likewise.
5476 * rt/tst-clock.c (TIMEOUT): Likewise.
5477 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5478 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5479 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5480 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5481 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5482 * rt/tst-timer4.c (TIMEOUT): Likewise.
5483 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5484 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5485 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5486 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5487 * time/tst-ftime.c (TIMEOUT): Likewise.
5488 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5489
5490 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5491
5492 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5493 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5494 for thunderX2.
5495
5496 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5497
5498 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5499 bits/sem-pad.h.
5500 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5501 instead of <bits/wordsize.h>.
5502 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5503 and [__SEM_PAD_AFTER_TIME].
5504 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5505 __syscall_ulong_t instead of unsigned long int.
5506 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5507 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5508 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5509 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5510 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5511 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5512 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5513 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5514 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5515 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5516 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5517
5518 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5519
5520 regex: simplify by using intprops.h
5521 [BZ#23744]
5522 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5523 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5524 intprops.h defines them.
5525
5526 regex: __builtin_expect → __glibc_unlikely
5527 [BZ#23744]
5528 This refactoring was prompted by a problem when the regex code is
5529 used as part of Gnulib and when the builder’s compiler does not grok
5530 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5531 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5532 Although this refactoring does not fix the problem directly,
5533 we might as well have Gawk use the now-preferred glibc style for when
5534 __builtin_expect is unavailable.
5535 * posix/regex_internal.h (BE): Remove.
5536 All uses replaced by __glibc_unlikely or __glibc_likely.
5537
5538 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5539
5540 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5541 bits/msq-pad.h.
5542 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5543 instead of <bits/wordsize.h>.
5544 (msgqnum_t): Define as __syscall_ulong_t.
5545 (msglen_t): Likewise.
5546 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5547 and [__MSQ_PAD_AFTER_TIME].
5548 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5549 __syscall_ulong_t instead of unsigned long int.
5550 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5551 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5552 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5553 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5554 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5555 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5556 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5557 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5558 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5559 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5560 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5561
5562 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5563
5564 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5565 (struct shmid_ds): Condition padding after time fields on
5566 [__WORDSIZE == 32].
5567 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5568 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5569 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5570
5571 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5572 (struct semid_ds): Condition padding after time fields on
5573 [__WORDSIZE == 32].
5574 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5575 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5576 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5577 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5578
5579 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5580 (struct msqid_ds): Condition padding after time fields on
5581 [__WORDSIZE == 32].
5582 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5583 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5584 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5585 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5586
5587 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5588
5589 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5590
5591 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5592
5593 * libio/tst-readline.c (TIMEOUT): Define.
5594
5595 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5596
5597 mktime fix for Gnulib + coreutils
5598 [BZ#23745]
5599 This fix affects only Gnulib. Problem discovered when
5600 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5601 * time/mktime.c:
5602 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5603 Do not define since it is not used. Defining an unused static
5604 function prompts a warning from GCC when Coreutils is configured
5605 with --enable-gcc-warnings.
5606
5607 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5608
5609 * benchtests/scripts/compare_bench.py (main): set float type on
5610 threshold argument.
5611
5612 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5613
5614 [BZ #23740]
5615 * localedata/locales/kl_GL (mon): Update, the relative case.
5616 (alt_mon): Add, fill with month names in the nominative case.
5617 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5618 (d_fmt): Set to "%b %d %Y".
5619
5620 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5621
5622 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5623 <bits/mman-linux.h>.
5624 (PROT_READ): Don't define here.
5625 (PROT_WRITE): Likewise.
5626 (PROT_EXEC): Likewise.
5627 (PROT_NONE): Likewise.
5628 (PROT_GROWSDOWN): Likewise.
5629 (PROT_GROWSUP): Likewise.
5630 (MAP_SHARED): Likewise.
5631 (MAP_PRIVATE): Likewise.
5632 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5633 [__USE_MISC] (MAP_FILE): Likewise.
5634 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5635 [__USE_MISC] (MAP_ANON): Likewise.
5636 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5637 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5638 (MCL_CURRENT): Likewise.
5639 (MCL_FUTURE): Likewise.
5640 (MCL_ONFAULT): Likewise.
5641 [__USE_MISC] (MADV_NORMAL): Likewise.
5642 [__USE_MISC] (MADV_RANDOM): Likewise.
5643 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5644 [__USE_MISC] (MADV_WILLNEED): Likewise.
5645 [__USE_MISC] (MADV_DONTNEED): Likewise.
5646 [__USE_MISC] (MADV_FREE): Likewise.
5647 [__USE_MISC] (MADV_REMOVE): Likewise.
5648 [__USE_MISC] (MADV_DONTFORK): Likewise.
5649 [__USE_MISC] (MADV_DOFORK): Likewise.
5650 [__USE_MISC] (MADV_HWPOISON): Likewise.
5651 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5652 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5653 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5654 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5655 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5656 (__MAP_ANONYMOUS): New macro.
5657 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5658 <bits/mman-linux.h> inclusion.
5659 (MAP_FIXED): Likewise.
5660 (MS_SYNC): Likewise.
5661 (MS_ASYNC): Likewise.
5662 (MS_INVALIDATE): Likewise.
5663 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5664 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5665 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5666 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5667 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5668 [__USE_MISC] (MADV_DODUMP): Likewise.
5669 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5670 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5671
5672 [BZ #23735]
5673 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5674 Define.
5675 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5676 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5677 Add test-nldbl-redirect.
5678 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5679 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5680 $(objpfx)libnldbl_nonshared.a.
5681
5682 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5683
5684 * support/support.h (support_objdir_elf_ldso): New variable.
5685 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5686 * support/Makefile (CFLAGS-support_paths.c): Add definition
5687 for OBJDIR_ELF_LDSO_PATH.
5688 * support/test-container.c (main): Search for the ld.so
5689 which is also used by the testsuite.
5690
5691 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5692
5693 [BZ #20209]
5694 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5695 should be "sap" rather than "sab".
5696 (day): Fix spelling of Sunday, should be "sapaat" rather than
5697 "sabaat".
5698
5699 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5700
5701 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5702
5703 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5704
5705 [BZ #19444]
5706 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5707 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5708 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5709
5710 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5711
5712 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5713
5714 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5715
5716 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5717 Add -mrtm.
5718 (CFLAGS-elision-unlock.c): Likewise.
5719 (CFLAGS-elision-timed.c): Likewise.
5720 (CFLAGS-elision-trylock.c): Likewise.
5721 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5722
5723 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5724
5725 [BZ #21037]
5726 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5727 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5728 new fd_to_filename interface.
5729 * libio/freopen64.c (freopen64): Likewise.
5730 * libio/tst-memstream.h: New file.
5731 * libio/tst-memstream4.c: Likewise.
5732 * libio/tst-wmemstream4.c: Likewise.
5733 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5734 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5735 and remove internal dynamic allocation.
5736
5737 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5738
5739 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5740 (MREMAP_MAYMOVE): Do not define here.
5741 [__USE_GNU] (MREMAP_FIXED): Likewise.
5742 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5743 (MREMAP_MAYMOVE): Define here instead.
5744 [__USE_GNU] (MREMAP_FIXED): Likewise.
5745 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5746 (MREMAP_MAYMOVE): Remove.
5747 [__USE_GNU] (MREMAP_FIXED): Likewise.
5748
5749 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5750
5751 * math/fromfp.h: Do not include <math_private.h>.
5752 * math/s_cacosh_template.c: Likewise.
5753 * math/s_casin_template.c: Likewise.
5754 * math/s_casinh_template.c: Likewise.
5755 * math/s_ccos_template.c: Likewise.
5756 * math/s_cproj_template.c: Likewise.
5757 * math/s_fdim_template.c: Likewise.
5758 * math/s_fmaxmag_template.c: Likewise.
5759 * math/s_fminmag_template.c: Likewise.
5760 * math/s_iseqsig_template.c: Likewise.
5761 * math/s_ldexp_template.c: Likewise.
5762 * math/s_nextdown_template.c: Likewise.
5763 * math/w_log1p_template.c: Likewise.
5764 * math/w_scalbln_template.c: Likewise.
5765 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5766 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5767 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5768 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5769 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5770 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5771 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5772 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5773 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5774 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5775 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5776 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5777 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5778 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5779 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5780 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5781 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5782 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5783 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5784 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5785 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5786 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5787 * sysdeps/ieee754/k_standardf.c: Likewise.
5788 * sysdeps/ieee754/k_standardl.c: Likewise.
5789 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5790 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5791 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5792 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5793 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5794 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5795 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5796 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5797 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5798 * sysdeps/ieee754/s_signgam.c: Likewise.
5799 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5800 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5801 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5802 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5803 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5804 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5805 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5806 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5807 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5808 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5809 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5810 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5811 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5812 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5813 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5814 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5815 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5816 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5817 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5818 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5819 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5820 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5821 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5822 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5823 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5824 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5825 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5826 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5827 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5828 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5829 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5830 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5831 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5832 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5833 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5834 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5835 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5836 <math_private.h>.
5837 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5838
5839 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5840
5841 [BZ #23716]
5842 * sysdeps/i386/dl-cet.c: Removed.
5843 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5844 prototype.
5845 (_dl_runtime_profile_shstk): Likewise.
5846 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5847 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5848
5849 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5850
5851 [BZ #23579]
5852 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5853 do_test_with_invalid_iov): New tests.
5854 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5855 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5856 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5857 errno is ENOSYS.
5858 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5859 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5860 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5861
5862 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5863
5864 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5865 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5866 (MATH_REDIRECT_BINARY_ARGS): New macro.
5867 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5868 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5869 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5870 header inclusion.
5871 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5872 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5873 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5874 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5875 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5876 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5877 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5878 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5879 Likewise.
5880 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5881 Likewise.
5882 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5883 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5884 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5885 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5886 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5887 Likewise.
5888 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5889 Likewise.
5890 * sysdeps/generic/math_private_calls.h
5891 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5892 Do not declare and define as an inline function.
5893 * math/divtc3.c (__divtc3): Use copysign functions instead of
5894 __copysign variants.
5895 * math/multc3.c (__multc3): Likewise.
5896 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5897 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5898 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5899 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5900 Likewise.
5901 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5902 (__ieee754_yn): Likewise.
5903 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5904 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5905 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5906 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5907 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5908 (__sin): Likewise.
5909 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5910 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5911 Likewise.
5912 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5913 Likewise.
5914 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5915 Likewise.
5916 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5917 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5918 Likewise.
5919 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
5920 (__ieee754_ynf): Likewise.
5921 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
5922 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5923 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
5924 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5925 Likewise.
5926 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5927 (__ieee754_ynl): Likewise.
5928 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5929 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5930 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5931 Likewise.
5932 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5933 (__ieee754_ynl): Likewise.
5934 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
5935 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5936 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5937 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5938 Likewise.
5939 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
5940 (__ieee754_ynl)
5941 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
5942 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
5943 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
5944 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
5945 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5946
5947 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5948 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
5949 using MATH_REDIRECT.
5950 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
5951 header inclusion.
5952 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
5953 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5954 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5955 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
5956 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5957 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5958 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5959 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
5960 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
5961 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
5962 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
5963 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5964 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5965 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5966 (round): Redirect to __round.
5967 (__roundl): Call round instead of __round.
5968 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
5969 Remove macro.
5970 [_ARCH_PWR5X] (__roundf): Likewise.
5971 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
5972 functions instead of __round variants.
5973 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
5974 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
5975 Likewise.
5976 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
5977 Likewise.
5978 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
5979 Likewise.
5980 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
5981 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
5982 __lroundl.
5983 (__ieee754_expl): Call roundl instead of __roundl.
5984
5985 2018-09-27 Andreas Schwab <schwab@suse.de>
5986
5987 [BZ #23717]
5988 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
5989 (do_test): Make st1 static.
5990
5991 2018-09-26 Andreas Schwab <schwab@suse.de>
5992
5993 [BZ #23707]
5994 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
5995 * elf/Makefile (tests): Add tst-unwind-ctor.
5996 (modules-names): Add tst-unwind-ctor-lib.
5997 ($(objpfx)tst-unwind-ctor): Depend on
5998 $(objpfx)tst-unwind-ctor-lib.so.
5999
6000 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6001
6002 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6003 file. Most contents moved from ....
6004 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6005 and include <bits/mman-map-flags-generic.h>.
6006 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6007 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6008 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6009 <bits/mman-map-flags-generic.h>.
6010 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6011 macros defined in <bits/mman-map-flags-generic.h>.
6012 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6013 <bits/mman-map-flags-generic.h>.
6014 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6015 defined in <bits/mman-map-flags-generic.h>.
6016
6017 2018-09-26 Andreas Schwab <schwab@suse.de>
6018
6019 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6020 output.
6021
6022 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6023 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6024 Fangrui Song <maskray@google.com>
6025
6026 [BZ #20480]
6027 * config.make.in (have-textrel_ifunc): New define.
6028 * configure.ac: Add check if linker supports textrel relocation with
6029 ifunc.
6030 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6031 tst-ifunc-textrel.
6032 (CFLAGS-tst-ifunc-textrel.c): New rule.
6033 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6034 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6035 * elf/tst-ifunc-textrel.c: New file.
6036
6037 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6038
6039 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6040 <bits/procfs-prregset.h>.
6041 (prgregset_t): Define using __prgregset_t.
6042 (prfpregset_t): Define using __prfpregset_t.
6043 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6044 (sysdep_headers): Add bits/procfs-prregset.h.
6045 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6046 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6047 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6048 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6049
6050 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6051 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6052 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6053 pr_uid and pr_gid.
6054 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6055 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6056 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6057 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6058 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6059 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6060 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6061 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6062 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6063 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6064 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6065 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6066 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6067 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6068 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6069 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6070 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6071 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6072 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6073 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6074 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6075 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6076 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6077 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6078
6079 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6080 AArch64 version. Include <bits/procfs.h>.
6081 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6082 (sysdep_headers): Add bits/procfs.h.
6083 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6084 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6085 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6086 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6087 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6088 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6089 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6090 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6091 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6092 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6093 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6094 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6095 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6096 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6097 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6098 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6099 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6100
6101 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6102
6103 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6104 Use libsupport.
6105
6106 2018-09-25 Arjun Shankar <arjun@redhat.com>
6107
6108 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6109 (__gconv_max_path_elem_len): Likewise.
6110 (__gconv_nmodules): Likewise.
6111 (__gconv_get_path): Likewise.
6112 (path_elem): Move to ...
6113 * iconv/gconv_conf.c: ... here.
6114 (__gconv_get_path): Mark function static.
6115 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6116 * iconv/gconv_open.c: ... here.
6117
6118 2018-09-24 Andreas Schwab <schwab@suse.de>
6119
6120 * scripts/haveversions.awk: New file.
6121 * Makerules ($(common-objpfx)Versions.def)
6122 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6123 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6124 Move rules ...
6125 * Makeconfig ($(common-objpfx)Versions.def)
6126 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6127 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6128 ... here.
6129 ($(common-objpfx)Versions.mk): New rule. Include it.
6130 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6131 Emit error if build-obsolete-nsl = yes.
6132 * manual/install.texi (Configuring and compiling): Describe
6133 --enable-obsolete-nsl as unavaiable after version 2.28.
6134 * INSTALL: Regenerate.
6135
6136 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6137
6138 * NEWS: Add note about new TLE support on powerpc64le.
6139 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6140 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6141 __ununsed1.
6142 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6143 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6144 * sysdeps/powerpc/powerpc32/sysdep.h,
6145 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6146 ABORT_TRANSACTION): Remove macros.
6147 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6148 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6149 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6150 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6151 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6152 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6153 usage.
6154 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6155
6156 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6157
6158 [BZ #10425]
6159 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6160 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6161 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6162 which is the same as in it_IT.
6163 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6164 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6165
6166 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6167
6168 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6169 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6170 using MATH_REDIRECT.
6171 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6172 header inclusion.
6173 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6174 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6175 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6176 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6177 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6178 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6179 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6180 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6181 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6182 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6183 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6184 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6185 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6186 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6187 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6188 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6189 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6190 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6191 (ceil): Redirect to __ceil.
6192 (floor): Redirect to __floor.
6193 (trunc): Redirect to __trunc.
6194 (__truncl): Call trunc instead of __trunc.
6195 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6196 Remove macro.
6197 [_ARCH_PWR5X] (__truncf): Likewise.
6198 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6199 trunc functions instead of __trunc variants.
6200 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6201 Likewise.
6202 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6203 Likewise.
6204 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6205 Likewise.
6206 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6207 Likewise.
6208
6209 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6210 [__i586__ || __pentium__].
6211 [__i486__]: Handle explicitly.
6212 (HAS_CPUID): Define to 1 if above macros are undefined.
6213 (HAS_I586): Likewise.
6214 (HAS_I686): Likewise.
6215
6216 2018-09-20 Florian Weimer <fweimer@redhat.com>
6217
6218 * misc/tst-gethostid.c: New file.
6219 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6220 (tst-gethostid): Link with -ldl.
6221
6222 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6223
6224 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6225 value from gethostbyname_r.
6226
6227 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6228
6229 * stdlib/tst-setcontext9.c (f1): Rename to...
6230 (f1a): ... this.
6231 (f1b): New function implementing lower half of f1 in alternate stack.
6232
6233 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6234
6235 Fix mktime localtime offset confusion
6236 [BZ #23603]
6237 * include/time.h (__mktime_internal): The localtime offset is now
6238 of type long int instead of time_t. This is the longstanding type
6239 in glibc, and it is more than enough to represent difference
6240 between localtime and gmtime even if it is 32 bits and time_t is
6241 64. Changing it now will let us avoid an unnecessary change when
6242 time_t is widened to 64 bits on 32-bit platforms.
6243 * time/mktime-internal.h (mktime_offset_t): Now long int.
6244
6245 Merge mktime, timegm from upstream Gnulib
6246 [BZ #23603][BZ #16346]
6247 This fixes some obscure problems with integer overflow.
6248 Although it looks scary, it is almost all a byte-for-byte copy
6249 from Gnulib, and the Gnulib code has been tested reasonably well.
6250 * include/intprops.h: New file, copied from Gnulib.
6251 * include/verify.h, time/mktime-internal.h:
6252 New tiny files, simplified from Gnulib.
6253 * time/mktime.c: Copy from Gnulib. This has the following changes:
6254 Do not include config.h if DEBUG_MKTIME is nonzero.
6255 Include stdbool.h, intprops.h, verify.h.
6256 Include string.h only if needed.
6257 Include stdlib.h on MS-Windows.
6258 Include mktime-internal.h.
6259 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6260 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6261 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6262 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6263 simplify later conditionals; default the others to zero. Use
6264 these conditionals to express only the code needed on the current
6265 platform. In uses of these conditionals, explicitly spell out how
6266 _LIBC affects things, so it’s easier to review from a glibc
6267 viewpoint.
6268 (WRAPV): Remove; no longer needed now that we have
6269 systematic overflow checking.
6270 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6271 compartmentalize tzset issues. Move system-dependent tzsettish
6272 code here from mktime.
6273 (verify): Remove; now done by verify.h. All uses changed.
6274 (long_int): Use a more-conservative definition, to avoid
6275 integer overflow.
6276 (SHR): Remove, replacing with ...
6277 (shr): New function, which means we needn’t worry about side
6278 effects in args, and conversion analysis is simpler.
6279 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6280 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6281 (time_t_avg, time_t_add_ok): Remove.
6282 (mktime_min, mktime_max): New constants.
6283 (leapyear, isdst_differ): Use bool for booleans.
6284 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6285 Use long_int, not time_t, for mktime differences.
6286 (long_int_avg): New function, replacing time_t_avg.
6287 INT_ADD_WRAPV replaces time_t_add_ok.
6288 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6289 All uses changed.
6290 (convert_time): New function.
6291 (ranged_convert): Use it.
6292 (__mktime_internal): Last arg now points to mktime_offset_t, not
6293 time_t. All uses changed. This is a no-op on glibc, where
6294 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6295 offset guess. Directly check for integer overflow instead of
6296 using a heuristic that works only 99.9...% of the time.
6297 Access *OFFSET only once, to avoid an unlikely race if the
6298 compiler delays a load and if this cascades into a signed integer
6299 overflow.
6300 (mktime): Move tzsettish code to my_tzset, and move
6301 localtime_offset to within mktime so that it doesn’t
6302 need a separate ifdef.
6303 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6304 instead of localtime.
6305 * time/timegm.c: Copy from Gnulib. This has the following changes:
6306 Include mktime-internal.h.
6307 [!_LIBC]: Include config.h and time.h. Do not include
6308 timegm.h or time_r.h. Make __mktime_internal a macro,
6309 and include mktime-internal.h to get its declaration.
6310 (timegm): Temporary is now mktime_offset_t, not time_t.
6311 This affects only Gnulib.
6312
6313 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6314
6315 [BZ #23637]
6316 * string/test-strstr.c (pr23637): New function.
6317 (test_main): Add tests with longer needles.
6318 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6319 * string/strstr.c (AVAILABLE): Likewise.
6320
6321 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6322
6323 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6324
6325 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6326
6327 * NEWS: Mention pow improvements.
6328 * math/Makefile (type-double-routines): Add e_pow_log_data.
6329 * sysdeps/generic/math_private.h (__exp1): Remove.
6330 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6331 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6332 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6333 contraction.
6334 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6335 (exp_inline): Remove.
6336 (__ieee754_exp): Only single double input is handled.
6337 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6338 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6339 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6340 (__pow_log_data): Define.
6341 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6342 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6343 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6344 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6345 contraction.
6346 (CFLAGS-e_pow-fma4.c): Likewise.
6347
6348 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6349
6350 Simplify tzfile fstat failure code
6351 [BZ #21716]
6352 * time/tzfile.c (__tzfile_read): Simplify slightly.
6353
6354 Fix tzfile low-memory assertion failure
6355 [BZ #21716]
6356 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6357 when registering time zone abbreviations.
6358
6359 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6360
6361 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6362 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6363 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6364 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6365 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6366 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6367 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6368 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6369 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6370
6371 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6372 __ceil.
6373 (__ceill): Call ceil instead of __ceil.
6374 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6375 __floor.
6376 (__floorl): Call floor instead of __floor.
6377
6378 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6379
6380 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6381 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6382 using MATH_REDIRECT.
6383 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6384 header inclusion.
6385 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6386 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6387 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6388 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6389 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6390 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6391 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6392 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6393 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6394 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6395 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6396 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6397 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6398 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6399 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6400 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6401 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6402 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6403 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6404 Remove macro.
6405 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6406 functions instead of __ceil variants.
6407 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6408 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6409 Likewise.
6410 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6411 Likewise.
6412 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6413 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6414 Likewise.
6415 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6416 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6417
6418 [BZ #21286]
6419 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6420 constant.
6421 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6422 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6423 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6424 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6425 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6426 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6427 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6428 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6429 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6430 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6431 (ILL_BADIADDR): Remove constant.
6432 (TRAP_BRANCH): Likewise.
6433 (TRAP_HWBKPT): Likewise.
6434
6435 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6436
6437 [BZ #23656]
6438 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6439 Remove [_MIPS_SIM = _ABIN32] conditional case.
6440 (struct elf_prpsinfo): Likewise.
6441
6442 [BZ #23649]
6443 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6444 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6445 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6446 Likewise.
6447 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6448 elf_prpsinfo): Likewise.
6449 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6450 elf_prpsinfo): Likewise.
6451 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6452 Likewise.
6453
6454 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6455 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6456 using MATH_REDIRECT.
6457 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6458 header inclusion.
6459 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6460 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6461 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6462 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6463 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6464 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6465 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6466 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6467 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6468 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6469 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6470 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6471 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6472 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6473 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6474 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6475 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6476 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6477 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6478 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6479 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6480 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6481 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6482 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6483 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6484 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6485 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6486 __rint variants.
6487 * math/e_scalbf.c (invalid_fn): Likewise.
6488 * math/e_scalbl.c (invalid_fn): Likewise.
6489 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6490 Likewise.
6491 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6492 Likewise.
6493 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6494 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6495 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6496 Likewise.
6497 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6498 Likewise.
6499 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6500 Likewise.
6501 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6502 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6503
6504 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6505 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6506 New macro.
6507 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6508 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6509 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6510 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6511 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6512 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6513 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6514 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6515 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6516 && !NO_MATH_REDIRECT] (floor): Likewise.
6517 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6518 header inclusion.
6519 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6520 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6521 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6522 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6523 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6524 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6525 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6526 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6527 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6528 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6529 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6530 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6531 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6532 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6533 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6534 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6535 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6536 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6537 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6538 Remove macro.
6539 [_ARCH_PWR5X] (__floorf): Likewise.
6540 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6541 inline function.
6542 [__SSE4_1__] (__floorf): Likewise.
6543 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6544 instead of __floor variants.
6545 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6546 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6547 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6548 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6549 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6550 * math/w_tgamma_compat.c (__tgamma): Likewise.
6551 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6552 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6553 * math/w_tgammal_compat.c (__tgammal): Likewise.
6554 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6555 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6556 Likewise.
6557 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6558 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6559 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6560 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6561 Likewise.
6562 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6563 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6564 Likewise.
6565 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6566 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6567 Likewise.
6568 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6569 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6570 Likewise.
6571 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6572 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6573 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6574 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6575 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6576 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6577
6578 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6579
6580 * elf/Makefile (modules-names-tests): New variable.
6581
6582 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6583
6584 * NEWS: Mention log2 improvements.
6585 * math/Makefile (type-double-routines): Add e_log2_data.
6586 * sysdeps/i386/fpu/e_log2_data.c: New file.
6587 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6588 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6589 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6590 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6591 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6592 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6593
6594 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6595
6596 * NEWS: Mention log improvement.
6597 * math/Makefile (type-double-routines): Add e_log_data.
6598 * sysdeps/i386/fpu/e_log_data.c: New file.
6599 * sysdeps/ia64/fpu/e_log_data.c: New file.
6600 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6601 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6602 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6603 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6604 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6605 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6606
6607 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6608 Xuepeng Guo <xuepeng.guo@intel.com>
6609
6610 [BZ #23606]
6611 * sysdeps/i386/start.S: Include <sysdep.h>
6612 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6613 enabled. Add cfi_undefined (eip).
6614
6615 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6616
6617 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6618 (MOVQ): Likewise.
6619 (EXTRACT_WORDS64): Likewise.
6620 (INSERT_WORDS64): Likewise.
6621 (GET_FLOAT_WORD): Likewise.
6622 (SET_FLOAT_WORD): Likewise.
6623
6624 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6625 argument.
6626 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6627 build, but not for second build if --full-gcc. Use
6628 --enable-languages=all for second build if --full-gcc.
6629 (get_parser): Add --full-gcc option.
6630 (main): Update call to Context.
6631
6632 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6633
6634 [BZ #10797]
6635 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6636 Single Quotation Mark).
6637 (thousands_sep): Likewise.
6638 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6639 * localedata/locales/it_IT (thousands_sep): Use ".".
6640 (grouping): Use "3;3".
6641
6642 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6643
6644 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6645 x86_64 and i686 configs using --enable-obsolete-rpc
6646 --enable-obsolete-nsl.
6647
6648 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6649
6650 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6651
6652 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6653
6654 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6655 Increment size of new_argv by one.
6656
6657 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6658
6659 [BZ #17426]
6660 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6661 * localedata/locales/ar_IN (d_fmt): Likewise.
6662 * localedata/locales/bhb_IN (d_fmt): Likewise.
6663 * localedata/locales/bho_IN (d_fmt): Likewise.
6664 * localedata/locales/bn_BD (d_fmt): Likewise.
6665 * localedata/locales/bn_IN (d_fmt): Likewise.
6666 * localedata/locales/doi_IN (d_fmt): Likewise.
6667 * localedata/locales/gu_IN (d_fmt): Likewise.
6668 * localedata/locales/hi_IN (d_fmt): Likewise.
6669 * localedata/locales/hne_IN (d_fmt): Likewise.
6670 * localedata/locales/kn_IN (d_fmt): Likewise.
6671 * localedata/locales/mag_IN (d_fmt): Likewise.
6672 * localedata/locales/mai_IN (d_fmt): Likewise.
6673 * localedata/locales/mjw_IN (d_fmt): Likewise.
6674 * localedata/locales/ml_IN (d_fmt): Likewise.
6675 * localedata/locales/mni_IN (d_fmt): Likewise.
6676 * localedata/locales/mr_IN (d_fmt): Likewise.
6677 * localedata/locales/pa_IN (d_fmt): Likewise.
6678 * localedata/locales/raj_IN (d_fmt): Likewise.
6679 * localedata/locales/sat_IN (d_fmt): Likewise.
6680 * localedata/locales/sd_IN (d_fmt): Likewise.
6681 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6682 * localedata/locales/ta_IN (d_fmt): Likewise.
6683 * localedata/locales/ta_LK (d_fmt): Likewise.
6684 * localedata/locales/tcy_IN (d_fmt): Likewise.
6685 * localedata/locales/ur_IN (d_fmt): Likewise.
6686
6687 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6688 * localedata/locales/ks_IN (d_fmt): Likewise.
6689 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6690
6691 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6692 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6693 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6694 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6695
6696 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6697
6698 * NEWS: Mention exp and exp2 improvements.
6699 * math/Makefile (libm-support): Remove t_exp.
6700 (type-double-routines): Add math_err and e_exp_data.
6701 * sysdeps/aarch64/libm-test-ulps: Update.
6702 * sysdeps/arm/libm-test-ulps: Update.
6703 * sysdeps/i386/fpu/e_exp_data.c: New file.
6704 * sysdeps/i386/fpu/math_err.c: New file.
6705 * sysdeps/i386/fpu/t_exp.c: Remove.
6706 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6707 * sysdeps/ia64/fpu/math_err.c: New file.
6708 * sysdeps/ia64/fpu/t_exp.c: Remove.
6709 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6710 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6711 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6712 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6713 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6714 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6715 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6716 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6717 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6718 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6719 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6720 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6721 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6722 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6723 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6724 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6725
6726 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6727
6728 * sysdeps/alpha/fpu/math_private.h: Remove.
6729
6730 * sysdeps/generic/math_private.h
6731 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6732 Move this inline function ....
6733 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6734 * include/math.h [!_ISOMAC]: To here....
6735
6736 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6737
6738 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6739 code ....
6740 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6741 * include/fenv.h [!_ISOMAC]: ... to here.
6742 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6743 (feraiseexcept): Likewise.
6744 * math/fromfp.h: Do not include <fenv_private.h>.
6745 * math/s_cexp_template.c: Likewise.
6746 * math/s_csin_template.c: Likewise.
6747 * math/s_csinh_template.c: Likewise.
6748 * math/s_ctan_template.c: Likewise.
6749 * math/s_ctanh_template.c: Likewise.
6750 * math/s_iseqsig_template.c: Likewise.
6751 * math/w_acos_compat.c: Likewise.
6752 * math/w_acosf_compat.c: Likewise.
6753 * math/w_acosl_compat.c: Likewise.
6754 * math/w_asin_compat.c: Likewise.
6755 * math/w_asinf_compat.c: Likewise.
6756 * math/w_asinl_compat.c: Likewise.
6757 * math/w_j0_compat.c: Likewise.
6758 * math/w_j0f_compat.c: Likewise.
6759 * math/w_j0l_compat.c: Likewise.
6760 * math/w_j1_compat.c: Likewise.
6761 * math/w_j1f_compat.c: Likewise.
6762 * math/w_j1l_compat.c: Likewise.
6763 * math/w_jn_compat.c: Likewise.
6764 * math/w_jnf_compat.c: Likewise.
6765 * math/w_log10_compat.c: Likewise.
6766 * math/w_log10f_compat.c: Likewise.
6767 * math/w_log10l_compat.c: Likewise.
6768 * math/w_log2_compat.c: Likewise.
6769 * math/w_log2f_compat.c: Likewise.
6770 * math/w_log2l_compat.c: Likewise.
6771 * math/w_log_compat.c: Likewise.
6772 * math/w_logf_compat.c: Likewise.
6773 * math/w_logl_compat.c: Likewise.
6774 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6775 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6776 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6777 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6778 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6779 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6780 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6781 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6782 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6783 * sysdeps/ieee754/k_standardl.c: Likewise.
6784 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6785 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6786 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6787 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6788 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6789 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6790 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6791 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6792 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6793 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6794 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6795 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6796 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6797 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6798 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6799 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6800 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6801 * math/w_ilogb_template.c: Include <fenv.h> instead of
6802 <fenv_private.h>.
6803 * math/w_llogb_template.c: Likewise.
6804 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6805 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6806
6807 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6808
6809 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6810 * math/fromfp.h: Include <fenv_private.h>.
6811 * math/math-narrow.h: Likewise.
6812 * math/s_cexp_template.c: Likewise.
6813 * math/s_csin_template.c: Likewise.
6814 * math/s_csinh_template.c: Likewise.
6815 * math/s_ctan_template.c: Likewise.
6816 * math/s_ctanh_template.c: Likewise.
6817 * math/s_iseqsig_template.c: Likewise.
6818 * math/w_acos_compat.c: Likewise.
6819 * math/w_acosf_compat.c: Likewise.
6820 * math/w_acosl_compat.c: Likewise.
6821 * math/w_asin_compat.c: Likewise.
6822 * math/w_asinf_compat.c: Likewise.
6823 * math/w_asinl_compat.c: Likewise.
6824 * math/w_ilogb_template.c: Likewise.
6825 * math/w_j0_compat.c: Likewise.
6826 * math/w_j0f_compat.c: Likewise.
6827 * math/w_j0l_compat.c: Likewise.
6828 * math/w_j1_compat.c: Likewise.
6829 * math/w_j1f_compat.c: Likewise.
6830 * math/w_j1l_compat.c: Likewise.
6831 * math/w_jn_compat.c: Likewise.
6832 * math/w_jnf_compat.c: Likewise.
6833 * math/w_llogb_template.c: Likewise.
6834 * math/w_log10_compat.c: Likewise.
6835 * math/w_log10f_compat.c: Likewise.
6836 * math/w_log10l_compat.c: Likewise.
6837 * math/w_log2_compat.c: Likewise.
6838 * math/w_log2f_compat.c: Likewise.
6839 * math/w_log2l_compat.c: Likewise.
6840 * math/w_log_compat.c: Likewise.
6841 * math/w_logf_compat.c: Likewise.
6842 * math/w_logl_compat.c: Likewise.
6843 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6844 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6845 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6846 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6847 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6848 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6849 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6850 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6851 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6852 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6853 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6854 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6855 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6856 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6857 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6858 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6859 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6860 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6861 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6862 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6863 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6864 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6865 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6866 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6867 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6868 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6869 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6870 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6871 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6872 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6873 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6874 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6875 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6876 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6877 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6878 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6879 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6880 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6881 * sysdeps/ieee754/k_standardl.c: Likewise.
6882 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6883 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6884 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6885 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6886 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6887 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6888 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6889 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6890 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6891 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6892 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6893 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6894 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6895 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6896 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6897 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6898 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6899 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6900 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6901 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6902 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6903 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6904 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6905 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6906 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6907 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6908 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6909 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6910 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6911 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6912 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6913 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6914 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6915 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6916 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6917 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6918 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6919 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6920 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6921 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6922 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6923 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6924 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6925 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6926 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6927 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6928 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6929 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6930 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6931 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6932 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6933 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6934 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6935 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6936 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6937 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6938 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6939 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6940 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6941 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6942 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6943 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6944 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6945 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6946 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6947 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6948 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6949 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6950 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6951 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6952 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6953
6954 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6955
6956 [BZ #20271]
6957 * include/stdio.h (__libc_fatal): Mention newline in comment.
6958 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
6959 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
6960 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6961 * nss/nsswitch.c (__nss_next2): Likewise.
6962 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
6963 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
6964 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
6965 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
6966 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
6967 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
6968 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
6969 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
6970 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
6971 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
6972 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
6973 * sysdeps/unix/sysv/linux/netlink_assert_response.c
6974 (__netlink_assert_response): Likewise.
6975
6976 2018-08-31 Joseph Myers <joseph@codesourcery.com>
6977
6978 * conform/glibcconform.py: New file.
6979 * conform/list-header-symbols.py: Likewise.
6980 * conform/list-header-symbols.pl: Remove.
6981 * conform/Makefile (tests-special): Only add linknamespace tests
6982 if [PYTHON].
6983 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
6984
6985 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
6986
6987 [BZ #23597]
6988 * support/Makefile (libsupport-routines): Add
6989 support_copy_file_range and xcopy_file_range.
6990 * support/support.h: Include <sys/types.h>.
6991 (support_copy_file_range): New prototype.
6992 * support/support_copy_file_range.c: New file. Copied and
6993 modified from io/copy_file_range-compat.c.
6994 * support/test-container.c (copy_one_file): Call xcopy_file_rang
6995 instead of copy_file_range.
6996 * support/xcopy_file_range.c: New file.
6997 * support/xunistd.h (xcopy_file_range): New prototype.
6998
6999 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7000
7001 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7002 xpthread_create and xpthread_join.
7003
7004 2018-08-30 Florian Weimer <fweimer@redhat.com>
7005
7006 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7007
7008 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7009
7010 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7011 if malloc fails.
7012
7013 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7014
7015 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7016 and minus_oflow as non-finite.
7017
7018 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7019
7020 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7021 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7022 moved to fenv_private.h except for ...
7023 (TOINT_INTRINSICS): Kept in math_private.h.
7024 (roundtoint): Likewise.
7025 (converttoint): Likewise.
7026 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7027 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7028 * sysdeps/arm/math_private.h: Remove.
7029 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7030 ....
7031 * sysdeps/generic/math_private.h: ... this file. Include
7032 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7033 Include <fenv_private.h>. Remove functions and macros moved to
7034 fenv_private.h.
7035 * sysdeps/i386/fpu/math_private.h: Remove.
7036 * sysdeps/mips/math_private.h: Move to ....
7037 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7038 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7039 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7040 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7041 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7042 * sysdeps/powerpc/fpu/math_private.h: Do not include
7043 <fenv_private.h>.
7044 * sysdeps/riscv/rvf/math_private.h: Move to ....
7045 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7046 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7047 <fenv_private.h>.
7048 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7049 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7050 * sysdeps/sparc/fpu/math_private.h: Remove.
7051 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7052 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7053 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7054 <fenv_private.h>.
7055 * sysdeps/x86_64/fpu/math_private.h: Do not include
7056 <sysdeps/i386/fpu/fenv_private.h>.
7057
7058 2018-08-28 Florian Weimer <fweimer@redhat.com>
7059
7060 [BZ #23578]
7061 * posix/tst-regcomp-truncated.c: New file.
7062 * posix/Makefile (tests): Add it.
7063 (tst-regcomp-truncated.out): Depend on generated locales.
7064
7065 2018-08-28 Florian Weimer <fweimer@redhat.com>
7066
7067 * support/test-container.c (main): Treat unshare failure with
7068 EPERM as an unsupported test.
7069
7070 2018-08-28 Florian Weimer <fweimer@redhat.com>
7071
7072 [BZ #23520]
7073 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7074 * nscd/netgroupcache.c
7075 (addgetnetgrentX): Add tofreep parameter. Do not free
7076 heap-allocated buffer.
7077 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7078 (addgetnetgrentX_ignore): New function.
7079 (addgetnetgrent): Call it.
7080 (readdgetnetgrent): Likewise.
7081
7082 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7083
7084 * string/memmem.c: Use memcmp for first match.
7085
7086 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7087
7088 [BZ #17426]
7089 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7090
7091 2018-08-27 DJ Delorie <dj@redhat.com>
7092
7093 * support/Makefile (others): Don't list programs explicitly as a
7094 dependency of "others".
7095
7096 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7097
7098 * sysdeps/generic/math-tests-trap-force.h: New file.
7099 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7100 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7101 * sysdeps/powerpc/math-tests.h: Remove file.
7102 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7103
7104 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7105 Torvald Riegel <triegel@redhat.com>
7106
7107 [BZ #23538]
7108 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7109 Update r to include the set wake-request flag if waiters are
7110 remaining after spinning.
7111
7112 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7113
7114 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7115
7116 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7117
7118 [BZ #23578]
7119 regex: fix uninitialized memory access
7120 I introduced this bug into gnulib in commit
7121 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7122 eventually it was merged into glibc. The bug was found by
7123 project-repo <bugs@feusi.co> and reported here:
7124 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7125 Diagnosis and draft fix reported by Assaf Gordon here:
7126 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7127 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7128 * posix/regex_internal.c (build_wcs_upper_buffer):
7129 Fix bug when mbrtowc returns 0.
7130
7131 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7132
7133 * po/be.po: Update translation.
7134
7135 2018-08-24 DJ Delorie <dj@delorie.com>
7136
7137 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7138 $(libunwind).
7139
7140 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7141
7142 [BZ #23400]
7143 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7144 create temporary files in source tree.
7145
7146 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7147
7148 * sysdeps/generic/math-tests-trap.h: New file.
7149 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7150 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7151 * sysdeps/aarch64/math-tests.h: Remove file.
7152 * sysdeps/arm/math-tests.h: Likewise.
7153 * sysdeps/riscv/math-tests.h: Likewise.
7154 * sysdeps/aarch64/math-tests-trap.h: New file.
7155 * sysdeps/arm/math-tests-trap.h: Likewise.
7156 * sysdeps/riscv/math-tests-trap.h: Likewise.
7157
7158 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7159
7160 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7161 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7162 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7163 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7164 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7165 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7166 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7167 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7168 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7169 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7170 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7171 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7172 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7173 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7174 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7175 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7176 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7177 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7178
7179 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7180
7181 * sysdeps/generic/math-tests-exceptions.h: New file.
7182 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7183 (EXCEPTION_TESTS_float): Do not define here.
7184 (EXCEPTION_TESTS_double): Likewise.
7185 (EXCEPTION_TESTS_long_double): Likewise.
7186 (EXCEPTION_TESTS_float128): Likewise.
7187 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7188 Likewise.
7189 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7190 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7191 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7192 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7193 * sysdeps/mips/math-tests.h: Likewise.
7194 * sysdeps/nios2/math-tests.h: Likewise.
7195 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7196 (EXCEPTION_TESTS_float): Do not define here.
7197 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7198 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7199 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7200
7201 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7202
7203 * NEWS: Move optimized sinf entry to 2.29.
7204
7205 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7206
7207 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7208
7209 2018-08-22 DJ Delorie <dj@redhat.com>
7210
7211 * Makefile (testroot.pristine): New rules to initialize the
7212 test-in-container "testroot".
7213 * Makerules (all-testsuite): Add tests-container.
7214 * Rules (tests-expected): Add tests-container.
7215 (binaries-all-tests): Likewise.
7216 (tests-container): New, run these tests in the testroot container.
7217 * support/Makefile (others): Add *-container, support_paths.c,
7218 xmkdirp, and links-dso-program.
7219 * support/links-dso-program-c.c: New.
7220 * support/links-dso-program.cc: New.
7221 * support/test-container.c: New.
7222 * support/shell-container.c: New.
7223 * support/echo-container.c: New.
7224 * support/true-container.c: New.
7225 * support/xmkdirp.c: New.
7226 * support/xsymlink.c: New.
7227 * support/support_paths.c: New.
7228 * support/support.h: Add support paths prototypes.
7229 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7230
7231 * nss/tst-nss-test3.c: Convert to test-in-container.
7232 * nss/tst-nss-test3.root/: New.
7233
7234 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7235
7236 regex: port Gnulib code to z/OS POSIX environment
7237 Problem reported by Arnold Robbins in:
7238 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7239 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7240 Undef.
7241
7242 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7243
7244 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7245 (ROUNDING_TESTS_double): Remove.
7246 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7247 (ROUNDING_TESTS_double): Remove.
7248 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7249 (ROUNDING_TESTS_double): Remove.
7250 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7251 (ROUNDING_TESTS_float): Remove.
7252 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7253 (ROUNDING_TESTS_float): Remove.
7254 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7255 (ROUNDING_TESTS_float): Remove.
7256 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7257 !TEST_MATHVEC here.
7258 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7259 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7260
7261 * sysdeps/generic/math-tests-rounding.h: New file.
7262 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7263 (ROUNDING_TESTS_float): Do not define here.
7264 (ROUNDING_TESTS_double): Likewise.
7265 (ROUNDING_TESTS_long_double): Likewise.
7266 (ROUNDING_TESTS_float128): Likewise.
7267 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7268 (ROUNDING_TESTS_double): Undefine before defining.
7269 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7270 (ROUNDING_TESTS_double): Undefine before defining.
7271 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7272 (ROUNDING_TESTS_double): Undefine before defining.
7273 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7274 (ROUNDING_TESTS_float): Undefine before defining.
7275 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7276 (ROUNDING_TESTS_float): Undefine before defining.
7277 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7278 (ROUNDING_TESTS_float): Undefine before defining.
7279 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7280 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7281 not define here.
7282 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7283 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7284 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7285 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7286 (ROUNDING_TESTS_float): Do not define here.
7287 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7288 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7289 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7290 (ROUNDING_TESTS_float): Likewise.
7291 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7292 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7293 * sysdeps/mips/math-tests.h [__mips_soft_float]
7294 (ROUNDING_TESTS_float): Likewise.
7295 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7296 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7297 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7298 (ROUNDING_TESTS_double): Likewise.
7299 (ROUNDING_TESTS_long_double): Likewise.
7300
7301 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7302
7303 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7304 (PF_XDP): New macro.
7305 (AF_XDP): New macro.
7306 (SOL_XDP): New macro.
7307
7308 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7309
7310 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7311 (TCP_INQ): Likewise.
7312 (TCP_CM_INQ): Likewise.
7313 (TCP_REPAIR_ON): Likewise.
7314 (TCP_REPAIR_OFF): Likewise.
7315 (TCP_REPAIR_OFF_NO_WP): Likewise.
7316 (struct tcp_zerocopy_receive): New type.
7317
7318 2018-08-21 Florian Weimer <fweimer@redhat.com>
7319
7320 * support/support.h (support_descriptor_supports_holes): Declare.
7321 * support/Makefile (libsupport-routines): Add
7322 support_descriptor_supports_holes.
7323 * support/support_descriptor_supports_holes.c: New file.
7324 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7325 and stop testing if holes are not supported.
7326 * io/test-lfs.c (do_prepare): Likewise.
7327 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7328 Likewise.
7329 * timezone/tst-tzset.c (create_tz_file): Likewise.
7330 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7331 variable.
7332 (do_prepare): Set it.
7333 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7334
7335 2018-08-21 Florian Weimer <fweimer@redhat.com>
7336
7337 [BZ #17248]
7338 * Makeconfig (+cflags): Do not sort (and deduplicate).
7339
7340 2018-08-21 Florian Weimer <fweimer@redhat.com>
7341
7342 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7343 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7344
7345 2018-08-20 Florian Weimer <fweimer@redhat.com>
7346
7347 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7348 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7349
7350 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7351
7352 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7353 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7354 and ssi_arch members.
7355
7356 * elf/elf.c (NT_VMCOREDD): New macro.
7357 (AT_MINSIGSTKSZ): Likewise.
7358
7359 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7360
7361 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7362 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7363 s_cosf-ppc64 and s_cosf-power8.
7364 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7365 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7366 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7367 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7368 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7369 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7370 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7371 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7372 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7373 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7374 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7375 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7376
7377 2018-08-17 Florian Weimer <fweimer@redhat.com>
7378
7379 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7380
7381 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7382
7383 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7384
7385 2018-08-16 Florian Weimer <fweimer@redhat.com>
7386
7387 * configure.ac: Add --with-nonshared-cflags option.
7388 * config.make.in (extra-nonshared-cflags): Set variable.
7389 * Makeconfig (CFLAGS-.oS): Use it.
7390 * manual/install.texi (Configuring and compiling): Document
7391 --with-nonshared-cflags.
7392 * configure: Regenerate.
7393 * INSTALL: Likewise.
7394
7395 2018-08-16 Florian Weimer <fweimer@redhat.com>
7396
7397 * Makeconfig (ASFLAGS): Always append required assembler flags.
7398
7399 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7400
7401 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7402 (malloc_consolidate): Likewise.
7403
7404 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7405
7406 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7407
7408 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7409
7410 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7411 every strlen call.
7412
7413 * benchtests/bench-strlen.c: Print performance numbers in json.
7414
7415 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7416
7417 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7418 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7419 only for little endian.
7420 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7421 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7422 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7423 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7424 Add check for little endian.
7425 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7426 (__strcmp_power9): Add check for little endian.
7427 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7428 Add check for little endian.
7429 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7430 (__strncmp_power9): Add check for little endian.
7431 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7432 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7433 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7434 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7435 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7436
7437 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7438
7439 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7440 [!STRLEN](STRLEN): Set to __strlen.
7441 * sysdeps/aarch64/multiarch/strlen.c: New file.
7442 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7443 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7444 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7445 (__libc_ifunc_impl_list): Add strlen.
7446 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7447 strlen_generic and strlen_asimd.
7448
7449 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7450
7451 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7452 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7453 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7454
7455 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7456
7457 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7458
7459 2018-08-14 Florian Weimer <fweimer@redhat.com>
7460
7461 [BZ #23519]
7462 * include/stdio.h (__vfxprintf): Declare.
7463 * stdio-common/fxprintf.c (__vfxprintf): New function.
7464 (__fxprintf): Call it.
7465 * misc/err.c (convert_and_print): Remove function.
7466 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7467 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7468 * misc/Makefile (tests): Add tst-warn-wide.
7469 * misc/tst-warn-wide.c: New file.
7470
7471 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7472 Szabolcs Nagy <szabolcs.nagy@arm.com>
7473
7474 * NEWS: Mention sinf, cosf, sincosf.
7475 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7476 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7477 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7478 constants rather than including generic sincosf.h.
7479 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7480 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7481 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7482 (reduced_cos): Remove.
7483 (sinf_poly): New function.
7484 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7485
7486 2018-08-14 Florian Weimer <fweimer@redhat.com>
7487
7488 [BZ #23521]
7489 [BZ #23522]
7490 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7491 processing, bail out if no room, and close the stream before
7492 returning ERANGE.
7493 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7494 (tst-nss-files-alias-leak): Link with libdl.
7495 (tst-nss-files-alias-leak.out): Depend on nss_files.
7496
7497 * nss/tst-nss-files-alias-leak.c: New file.
7498
7499 2018-08-14 Florian Weimer <fweimer@redhat.com>
7500
7501 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7502 server_user, stat_user.
7503
7504 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7505
7506 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7507 version to 4.18.
7508 (io_pgetevents): New syscall.
7509 (rseq): Likewise.
7510
7511 * manual/install.texi (Configuring and compiling): Do not list
7512 tools used for testing pretty printers here.
7513 (Tools for Compilation): List Python, PExpect and GDB here.
7514 Update descriptions of uses of Perl and Python.
7515 * INSTALL: Regenerate.
7516
7517 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7518 version to 4.18.
7519
7520 2018-08-13 Florian Weimer <fweimer@redhat.com>
7521
7522 * misc/error.c (error): Add missing va_end call.
7523 (error_at_line): Likewise.
7524
7525 2018-08-13 Florian Weimer <fweimer@redhat.com>
7526
7527 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7528
7529 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7530
7531 * benchtests/scripts/benchout.schema.json (properties): Add
7532 new properties.
7533
7534 * benchtests/bench-skeleton.c (main): Add duration and
7535 iterations attributes.
7536
7537 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7538
7539 regex: Gnulib unibyte RRI uses bytes not chars
7540 Adjust the non-glibc code to agree with what Gawk needs for
7541 rational range interpretation (RRI) for regular expression ranges.
7542 In unibyte locales, Gawk wants ranges to use the underlying byte
7543 rather than the character code point. This change does not affect
7544 glibc proper.
7545 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7546 In unibyte locales, use the byte value rather than
7547 running it through btowc.
7548
7549 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7550
7551 * sysdeps/generic/math-tests-snan.h: New file.
7552 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7553 (SNAN_TESTS_float): Do not define here.
7554 (SNAN_TESTS_double): Likewise.
7555 (SNAN_TESTS_long_double): Likewise.
7556 (SNAN_TESTS_float128): Likewise.
7557 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7558 * sysdeps/i386/fpu/math-tests.h: Remove file.
7559 * sysdeps/ia64/math-tests-snan.h: New file.
7560 * sysdeps/ia64/math-tests.h: Remove file.
7561 * sysdeps/x86/math-tests.h: Likewise.
7562 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7563
7564 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7565 Szabolcs Nagy <szabolcs.nagy@arm.com>
7566
7567 * math/Makefile: Add s_sincosf_data.c.
7568 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7569 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7570 (sincosf_poly): Likewise.
7571 (reduce_small): Likewise.
7572 (reduce_large): Likewise.
7573 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7574 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7575 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7576 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7577
7578 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7579 Szabolcs Nagy <szabolcs.nagy@arm.com>
7580
7581 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7582 (converttoint): Use lround.
7583 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7584 document the semantics when TOINT_INTRINSICS is set.
7585 (converttoint): Likewise.
7586 (TOINT_RINT): Remove.
7587 (TOINT_SHIFT): Remove.
7588 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7589 path.
7590
7591 2018-08-10 Florian Weimer <fweimer@redhat.com>
7592
7593 [BZ #23497]
7594 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7595 function.
7596 (__old_getdents64): Use getdents64. Convert entries without
7597 moving them.
7598 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7599 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7600 tst-readdir64-compat.
7601
7602 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7603
7604 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7605 Fix unwind.
7606
7607 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7608
7609 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7610 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7611 code to s390x-mcount.h and #include it.
7612 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7613 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7614 (__fentry__): Add.
7615
7616 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7617
7618 * stdlib/Versions: Remove __fentry__.
7619 * sysdeps/i386/Versions: Add __fentry__.
7620 * sysdeps/x86_64/Versions: Add __fentry__.
7621
7622 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7623
7624 * sysdeps/s390/Makefile: Register the new tests.
7625 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7626 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7627 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7628 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7629 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7630 * sysdeps/s390/tst-dl-runtime.c: New file.
7631
7632 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7633
7634 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7635 Do not clobber R0.
7636
7637 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7638
7639 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7640 Do not clobber R0.
7641
7642 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7643
7644 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7645 Do not clobber R0.
7646
7647 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7648
7649 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7650 Do not clobber R0.
7651
7652 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7653
7654 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7655 Use symbolic offsets for stack variables.
7656
7657 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7658
7659 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7660 Use symbolic offsets for stack variables.
7661
7662 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7663
7664 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7665 Use symbolic offsets for stack variables.
7666
7667 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7668
7669 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7670 Use symbolic offsets for stack variables.
7671
7672 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7673
7674 * math/gen-libm-test.py: New file.
7675 * math/gen-libm-test.pl: Remove.
7676 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7677 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7678 gen-libm-test.pl.
7679 ($(libm-test-c-noauto-obj)): Likewise.
7680 ($(libm-test-c-auto-obj)): Likewise.
7681 ($(libm-test-c-narrow-obj)): Likewise.
7682 (regen-ulps): Likewise.
7683 * math/README.libm-test: Update references to gen-libm-test.pl.
7684 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7685 referencing gen-libm-test.pl.
7686 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7687 * math/libm-test-support.c: Likewise.
7688 * math/libm-test-support.h: Likewise.
7689 * sysdeps/generic/libm-test-ulps: Likewise.
7690
7691 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7692
7693 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7694 Fix value.
7695
7696 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7697
7698 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7699 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7700
7701 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7702
7703 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7704 symbols.
7705 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7706 __pthread_setspecific): Add hidden proto.
7707 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7708 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7709
7710 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7711
7712 * benchtests/bench-string.h (buf1_size, buf2_size): New
7713 variables.
7714 (init_sizes): New function.
7715 (test_init): Use it.
7716 (alloc_buf, exit_error): New functions.
7717 (alloc_bufs): Use ALLOC_BUF.
7718 (realloc_bufs): Remove.
7719 * benchtests/bench-memcmp.c (do_test): Adjust.
7720 * benchtests/bench-memset-large.c (do_test): Likewise.
7721 * benchtests/bench-memset-walk.c (do_test): Likewise.
7722 * benchtests/bench-memset.c (do_test): Likewise.
7723 * benchtests/bench-strncmp.c (do_test): Likewise.
7724
7725 2018-08-06 Andreas Schwab <schwab@suse.de>
7726
7727 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7728 of CONST_THREAD_AREA.
7729
7730 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7731
7732 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7733 (STATE_SAVE_MASK): Likewise.
7734 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7735 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7736 (STATE_SAVE_MASK): Likewise.
7737 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7738 instead of <cpu-features.h>.
7739
7740 2018-08-03 DJ Delorie <dj@redhat.com>
7741
7742 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7743 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7744
7745 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7746
7747 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7748
7749 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7750 after TEST_* calls.
7751 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7752 * math/libm-test-logb.inc (logb_test_data): Likewise.
7753
7754 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7755
7756 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7757 * string/strstr.c (AVAILABLE): Likewise.
7758
7759 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7760
7761 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7762 <init-arch.h>.
7763 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7764 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7765 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7766
7767 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7768
7769 * po/be.po: Update translation.
7770
7771 * po/be.po: Update translation.
7772
7773 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7774
7775 * sysdeps/x86/cpu-features-offsets.sym
7776 (rtld_global_ro_offsetof): Removed.
7777 (CPU_FEATURES_SIZE): Likewise.
7778 (CPUID_OFFSET): Likewise.
7779 (CPUID_SIZE): Likewise.
7780 (CPUID_EAX_OFFSET): Likewise.
7781 (CPUID_EBX_OFFSET): Likewise.
7782 (CPUID_ECX_OFFSET): Likewise.
7783 (CPUID_EDX_OFFSET): Likewise.
7784 (FAMILY_OFFSET): Likewise.
7785 (MODEL_OFFSET): Likewise.
7786 (FEATURE_OFFSET): Likewise.
7787 (FEATURE_SIZ): Likewise.
7788 (COMMON_CPUID_INDEX_1): Likewise.
7789 (COMMON_CPUID_INDEX_7): Likewise.
7790 (FEATURE_INDEX_1): Likewise.
7791 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7792
7793 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7794
7795 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7796 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7797 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7798 (install-locales): Depend on install-locale-archive.
7799 (install-locale-archive): Define.
7800 (install-locale-files): Define.
7801 (build-one-locale): Define macro.
7802 * manual/install.texi (Running make install): Document.
7803 * manual/INSTALL: Regenerate.
7804
7805 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7806
7807 * benchtests/scripts/compare_strings.py: Import traceback.
7808 (parse_file): Pretty-print error.
7809
7810 * NEWS: Mention the change.
7811 * elf/dl-tunables.list: Rename tune namespace to cpu.
7812 * sysdeps/powerpc/dl-tunables.list: Likewise.
7813 * sysdeps/x86/dl-tunables.list: Likewise.
7814 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7815 cpu.name.
7816 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7817 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7818 * manual/README.tunables: Likewise.
7819 * manual/tunables.texi: Likewise.
7820 * sysdeps/powerpc/cpu-features.c: Likewise.
7821 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7822 (init_cpu_features): Likewise.
7823 * sysdeps/x86/cpu-features.c: Likewise.
7824 * sysdeps/x86/cpu-features.h: Likewise.
7825 * sysdeps/x86/cpu-tunables.c: Likewise.
7826 * sysdeps/x86_64/Makefile: Likewise.
7827 * sysdeps/x86/dl-cet.c: Likewise.
7828
7829 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7830
7831 [BZ #23479]
7832 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7833 [__mips_hard_float].
7834 (FE_UNDERFLOW): Likewise.
7835 (FE_OVERFLOW): Likewise.
7836 (FE_DIVBYZERO): Likewise.
7837 (FE_INVALID): Likewise.
7838 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7839 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7840 (FE_UPWARD): Likewise.
7841 (FE_DOWNWARD): Likewise.
7842 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7843 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7844 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7845 [__mips_hard_float].
7846 (FP_ROUNDMODE): Likewise.
7847 (FP_RND_NEAREST): Likewise.
7848 (FP_RND_ZERO): Likewise.
7849 (FP_RND_PINF): Likewise.
7850 (FP_RND_MINF): Likewise.
7851 (FP_EX_INVALID): Likewise.
7852 (FP_EX_OVERFLOW): Likewise.
7853 (FP_EX_UNDERFLOW): Likewise.
7854 (FP_EX_DIVZERO): Likewise.
7855 (FP_EX_INEXACT): Likewise.
7856 (FP_INIT_ROUNDMODE): Likewise.
7857 * sysdeps/mips/nofpu/fesetenv.c: New file.
7858 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7859
7860 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7861
7862 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7863 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7864 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7865 conditional on [FE_UPWARD].
7866
7867 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7868
7869 regex: fix memory leak in Gnulib
7870 Problem and fix reported by Assaf Gordon in:
7871 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7872 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7873 range_ends members too, as they are defined in 'struct
7874 re_charset_t' even if not _LIBC. This affects only Gnulib.
7875
7876 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7877
7878 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7879 ...
7880 (get_common_indices): This.
7881 (init_cpu_features): Updated.
7882
7883 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7884
7885 * sysdeps/generic/math-tests-snan-payload.h: New file.
7886 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7887 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7888 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7889 * sysdeps/generic/math-tests.h: Include
7890 <math-tests-snan-payload.h>.
7891 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7892 * sysdeps/hppa/math-tests.h: Remove file.
7893 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7894 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7895 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7896 Likewise.
7897
7898 * sysdeps/generic/math-tests-snan-cast.h: New file.
7899 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7900 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7901 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7902 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7903
7904 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7905
7906 * version.h (RELEASE): Set to "development".
7907 (VERSION): Set to "2.28.9000".
7908 * NEWS (2.29): New section.
7909
7910 * version.h (RELEASE): Set to "stable".
7911 (VERSION): Set to "2.28".
7912 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7913 * NEWS: Add the list of bugs fixed in 2.28.
7914
7915 * po/ca.po: Update to latest version.
7916 * po/cs.po: Likewise
7917 * po/da.po: Likewise
7918 * po/el.po: Likewise
7919 * po/eo.po: Likewise
7920 * po/es.po: Likewise
7921 * po/fi.po: Likewise
7922 * po/fr.po: Likewise
7923 * po/gl.po: Likewise
7924 * po/hu.po: Likewise
7925 * po/ia.po: Likewise
7926 * po/id.po: Likewise
7927 * po/it.po: Likewise
7928 * po/ja.po: Likewise
7929 * po/ko.po: Likewise
7930 * po/lt.po: Likewise
7931 * po/nb.po: Likewise
7932 * po/nl.po: Likewise
7933 * po/pt_BR.po: Likewise
7934 * po/ru.po: Likewise
7935 * po/rw.po: Likewise
7936 * po/sk.po: Likewise
7937 * po/sl.po: Likewise
7938 * po/tr.po: Likewise
7939 * po/zh_CN.po: Likewise
7940 * po/zh_TW.po: Likewise
7941
7942 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7943
7944 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
7945 initialization...
7946 (init): ... before initializing libpthread.
7947
7948 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
7949 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
7950 (__mach_setup_tls): ... new function.
7951 (mach_setup_tls): New alias.
7952 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
7953 __mach_setup_thread.
7954 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
7955 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
7956 * mach/Versions [libc] (mach_setup_tls): Add symbol.
7957 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
7958
7959 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7960
7961 * manual/install.texi: Update versions.
7962 * INSTALL: Regenerate.
7963
7964 * manual/contrib.texi (Contributors): Update contributions.
7965
7966 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7967
7968 * po/be.po: Update translations.
7969
7970 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7971
7972 * sysdeps/sh/libm-test-ulps: Update.
7973
7974 2018-07-30 Carlos O'Donell <carlos@redhat.com>
7975
7976 * po/bg.po: Update translations.
7977 * po/de.po: Likewise.
7978 * po/hr.po: Likewise.
7979 * po/pt_BR.po: Likewise.
7980 * po/sv.po: Likewise.
7981 * po/vi.po: Likewise.
7982
7983 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7984
7985 [BZ #23467]
7986 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
7987 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
7988 (CFLAGS-tst-cet-property-1.o): New.
7989 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
7990 ($(objpfx)tst-cet-property-2): Likewise.
7991 ($(objpfx)tst-cet-property-2.out): Likewise.
7992 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
7993 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
7994 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
7995 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
7996 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
7997
7998 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7999
8000 [BZ #23458]
8001 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8002
8003 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8004
8005 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8006 __sbrk): Do not set attribute_hidden.
8007 * sysdeps/mach/hurd/not-errno.h: New file.
8008 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8009 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8010
8011 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8012
8013 * po/uk.po: Update translations.
8014 * po/cs.po: Likewise.
8015 * po/pl.po: Likewise.
8016
8017 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8018
8019 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8020 parse beyond the note end.
8021
8022 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8023
8024 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8025 kernel does not support OFD locks.
8026 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8027
8028 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8029
8030 * sysdeps/mach/hurd/Versions (libc): Make __access and
8031 __access_noerrno external so they can override the ld symbols.
8032 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8033 __writev, __open64, __access_noerrno extern so they can be overrided.
8034 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8035 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8036
8037 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8038
8039 * po/libc.pot: Regenerate.
8040
8041 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8042
8043 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8044
8045 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8046
8047 [BZ #23459]
8048 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8049 function.
8050 (init_cpu_features): Call get_extended_indices for both Intel
8051 and AMD CPUs.
8052 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8053 Remove "for AMD" comment.
8054
8055 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8056
8057 [BZ # 23456]
8058 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8059 COMMON_CPUID_INDEX_80000001.
8060
8061 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8062
8063 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8064 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8065
8066 2018-07-26 Florian Weimer <fweimer@redhat.com>
8067
8068 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8069 aliases for symbols not in the implementation namespace.
8070
8071 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8072
8073 [BZ #23393]
8074 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8075 lowercase in LATIN script.
8076 * localedata/Makefile (test-input): Add en_US.UTF-8.
8077 * localedata/en_US.UTF-8.in: New file.
8078 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8079 and restore old tests.
8080 * posix/tst-regexloc.c (do_test): Add back range expression test.
8081
8082 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8083
8084 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8085
8086 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8087
8088 * nptl/threads.h: Move to ...
8089 * sysdeps/nptl/threads.h: ... here.
8090 * sysdeps/hurd/stdc-predef.h: New file.
8091
8092 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8093
8094 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8095 tst-cet-setcontext-1 if CET is enabled.
8096 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8097 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8098
8099 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8100
8101 * include/threads.h: Move to ...
8102 * sysdeps/nptl/threads.h: ... here.
8103 * sysdeps/htl/threads.h: New file.
8104 * conform/Makefile (linknamespace-libs-ISO11): Use
8105 static-thread-library instead of linking libpthread.
8106 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8107
8108 2018-07-25 Florian Weimer <fweimer@redhat.com>
8109
8110 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8111 nanoseconds into seconds.
8112 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8113 (do_test): Likewise.
8114 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8115 (do_test): Likewise. Avoid nanosecond overflow and spurious
8116 timeouts due to system load.
8117 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8118 (child_wait): Increment it.
8119 (do_test): Wait as long as necessary until all expected threads
8120 have arrived.
8121
8122 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8123 H.J. Lu <hongjiu.lu@intel.com>
8124
8125 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8126 __ssp.
8127 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8128 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8129 (__push___start_context): New.
8130 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8131 <asm/prctl.h>.
8132 (__getcontext): Record the current shadow stack base. Save the
8133 caller's shadow stack pointer and base.
8134 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8135 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8136 (__push___start_context): New prototype.
8137 (__makecontext): Call __push___start_context to allocate a new
8138 shadow stack, push __start_context onto the new stack as well
8139 as the new shadow stack.
8140 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8141 <asm/prctl.h>.
8142 (__setcontext): Restore the target shadow stack.
8143 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8144 <asm/prctl.h>.
8145 (__swapcontext): Record the current shadow stack base. Save
8146 the caller's shadow stack pointer and base. Restore the target
8147 shadow stack.
8148 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8149 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8150 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8151
8152 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8153
8154 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8155 tst-setcontext8 and tst-setcontext9.
8156 * stdlib/tst-setcontext6.c: New file.
8157 * stdlib/tst-setcontext7.c: Likewise.
8158 * stdlib/tst-setcontext8.c: Likewise.
8159 * stdlib/tst-setcontext9.c: Likewise.
8160
8161 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8162
8163 * stdlib/Makefile ((tests): Add tst-setcontext5.
8164 * stdlib/tst-setcontext5.c: New file.
8165
8166 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8167
8168 * stdlib/Makefile (tests): Add tst-setcontext4.
8169 * stdlib/tst-setcontext4.c: New file.
8170
8171 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8172
8173 * stdlib/Makefile (tests): Add tst-swapcontext1.
8174 * stdlib/tst-swapcontext1.c: New test.
8175
8176 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8177
8178 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8179 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8180 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8181 and tst-cet-legacy-4c.
8182 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8183 and tst-cet-legacy-mod-4.
8184 (CFLAGS-tst-cet-legacy-2.c): New.
8185 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8186 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8187 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8188 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8189 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8190 ($(objpfx)tst-cet-legacy-1): Likewise.
8191 ($(objpfx)tst-cet-legacy-2): Likewise.
8192 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8193 ($(objpfx)tst-cet-legacy-2a): Likewise.
8194 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8195 ($(objpfx)tst-cet-legacy-4): Likewise.
8196 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8197 ($(objpfx)tst-cet-legacy-4a): Likewise.
8198 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8199 (tst-cet-legacy-4a-ENV): Likewise.
8200 ($(objpfx)tst-cet-legacy-4b): Likewise.
8201 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8202 (tst-cet-legacy-4b-ENV): Likewise.
8203 ($(objpfx)tst-cet-legacy-4c): Likewise.
8204 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8205 (tst-cet-legacy-4c-ENV): Likewise.
8206 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8207 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8208 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8209 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8210 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8211 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8212 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8213 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8214 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8215 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8216 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8217
8218 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8219
8220 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8221 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8222 with ssp_base.
8223 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8224 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8225 with ssp_base.
8226
8227 2018-07-25 Andreas Schwab <schwab@suse.de>
8228
8229 [BZ #23442]
8230 * locale/weightwc.h (findidx): Handle the case where usrc is a
8231 prefix of cp but one character too short.
8232
8233 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8234
8235 * NEWS: Add ISO C threads addition.
8236
8237 2018-07-24 Florian Weimer <fweimer@redhat.com>
8238
8239 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8240 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8241 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8242 4.13.
8243
8244 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8245
8246 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8247 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8248 <sys/prctl.h> and <asm/prctl.h>.
8249 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8250 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8251 and <asm/prctl.h>.
8252 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8253 ARCH_CET_LEGACY_BITMAP.
8254 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8255 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8256 * sysdeps/x86/libc-start.c: Include <startup.h>.
8257
8258 2018-07-24 Florian Weimer <fweimer@redhat.com>
8259
8260 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8261 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8262
8263 2018-07-24 Rical Jasan <rj@2c3t.io>
8264 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8265 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8266
8267 [BZ #14092]
8268 * manual/debug.texi: Update adjacent chapter name.
8269 * manual/probes.texi: Likewise.
8270 * manual/threads.texi (ISO C Threads): New section.
8271 (POSIX Threads): Convert to a section.
8272
8273 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8274 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8275
8276 [BZ# 14092]
8277 * nptl/Makefile (tests): Add new test files.
8278 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8279 * nptl/tst-cnd-basic.c: Likewise.
8280 * nptl/tst-cnd-broadcast.c: Likewise.
8281 * nptl/tst-cnd-timedwait.c: Likewise.
8282 * nptl/tst-mtx-basic.c: Likewise.
8283 * nptl/tst-mtx-recursive.c: Likewise.
8284 * nptl/tst-mtx-timedlock.c: Likewise.
8285 * nptl/tst-mtx-trylock.c: Likewise.
8286 * nptl/tst-thrd-basic.c: Likewise.
8287 * nptl/tst-thrd-detach.c: Likewise.
8288 * nptl/tst-thrd-sleep.c: Likewise.
8289 * nptl/tst-tss-basic.c: Likewise.
8290
8291 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8292
8293 [BZ #14092]
8294 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8295 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8296 symbols.
8297 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8298 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8299 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8300 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8301 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8302 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8303 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8304 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8305 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8306 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8307 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8308 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8309 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8310 Likewise.
8311 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8312 Likewise.
8313 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8314 Likewise.
8315 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8316 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8317 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8318 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8319 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8320 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8321 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8322 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8323 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8324 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8325 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8326 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8327 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8328 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8329 Likewise.
8330 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8331 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8332 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8333 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8334 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8335 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8336 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8337 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8338 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8339 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8340 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8341 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8342 ikewise.
8343 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8345 Likewise.
8346 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8347 Likewise.
8348 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8349 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8350 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8351 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8352 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8353 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8354 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8355 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8356
8357 [BZ #14092]
8358 * conform/data/threads.h-data (thread_local): New macro.
8359 (TSS_DTOR_ITERATIONS): Likewise.
8360 (tss_t): New type.
8361 (tss_dtor_t): Likewise.
8362 (tss_create): New function.
8363 (tss_get): Likewise.
8364 (tss_set): Likewise.
8365 (tss_delete): Likewise.
8366 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8367 tss_get, and tss_set objects.
8368 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8369 * nptl/tss_create.c: New file.
8370 * nptl/tss_delete.c: Likewise.
8371 * nptl/tss_get.c: Likewise.
8372 * nptl/tss_set.c: Likewise.
8373 * sysdeps/nptl/threads.h (thread_local): New define.
8374 (TSS_DTOR_ITERATIONS): Likewise.
8375 (tss_t): New typedef.
8376 (tss_dtor_t): Likewise.
8377 (tss_create): New prototype.
8378 (tss_get): Likewise.
8379 (tss_set): Likewise.
8380 (tss_delete): Likewise.
8381
8382 [BZ #14092]
8383 * conform/data/threads.h-data (cnd_t): New type.
8384 (cnd_init): New function.
8385 (cnd_signal): Likewise.
8386 (cnd_broadcast): Likewise.
8387 (cnd_wait): Likewise.
8388 (cnd_timedwait): Likewise.
8389 (cnd_destroy): Likewise.
8390 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8391 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8392 object.
8393 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8394 * nptl/cnd_broadcast.c: New file.
8395 * nptl/cnd_destroy.c: Likewise.
8396 * nptl/cnd_init.c: Likewise.
8397 * nptl/cnd_signal.c: Likewise.
8398 * nptl/cnd_timedwait.c: Likewise.
8399 * nptl/cnd_wait.c: Likewise.
8400 * sysdeps/nptl/threads.h (cnd_t): New type.
8401 (cnd_init): New prototype.
8402 (cnd_signa): Likewise.
8403 (cnd_broadcast): Likewise.
8404 (cnd_wait): Likewise.
8405 (cnd_timedwait): Likewise.
8406 (cnd_destroy): Likewise.
8407
8408 [BZ #14092]
8409 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8410 (once_flag): New type.
8411 (call_once): New function.
8412 * nptl/Makefile (libpthread-routines): Add call_once object.
8413 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8414 * nptl/call_once.c: New file.
8415 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8416 (once_flag): New type.
8417 (call_once): New prototype.
8418
8419 [BZ #14092]
8420 * conform/data/threads.h-data (mtx_plain): New constant.
8421 (mtx_recursive): Likewise.
8422 (mtx_timed): Likewise.
8423 (mtx_t): New type.
8424 (mtx_init): New function.
8425 (mtx_lock): Likewise.
8426 (mtx_timedlock): Likewise.
8427 (mtx_trylock): Likewise.
8428 (mtx_unlock): Likewise.
8429 (mtx_destroy): Likewise.
8430 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8431 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8432 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8433 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8434 * nptl/mtx_destroy.c: New file.
8435 * nptl/mtx_init.c: Likewise.
8436 * nptl/mtx_lock.c: Likewise.
8437 * nptl/mtx_timedlock.c: Likewise.
8438 * nptl/mtx_trylock.c: Likewise.
8439 * nptl/mtx_unlock.c: Likewise.
8440 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8441 (mtx_recursive): Likewise.
8442 (mtx_timed): Likewise.
8443 (mtx_t): New type.
8444 (mtx_init): New prototype.
8445 (mtx_lock): Likewise.
8446 (mtx_timedlock): Likewise.
8447 (mtx_trylock): Likewise.
8448 (mtx_unlock): Likewise.
8449 (mtx_destroy): Likewise.
8450
8451 [BZ #14092]
8452 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8453 (linknamespace-libs-ISO11): Add libpthread.a.
8454 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8455 functions.
8456 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8457 * nptl/Makefile (headers): Add threads.h.
8458 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8459 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8460 thrd_yield.
8461 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8462 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8463 thrd_join, thrd_sleep, and thrd_yield symbols.
8464 * nptl/descr.h (struct pthread): Add c11 field.
8465 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8466 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8467 routine with expected function prototype.
8468 (__pthread_create_2_1): Add C11 threads check based on attribute
8469 value.
8470 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8471 * nptl/thrd_create.c: New file.
8472 * nptl/thrd_current.c: Likewise.
8473 * nptl/thrd_detach.c: Likewise.
8474 * nptl/thrd_equal.c: Likewise.
8475 * nptl/thrd_exit.c: Likewise.
8476 * nptl/thrd_join.c: Likewise.
8477 * nptl/thrd_priv.h: Likewise.
8478 * nptl/thrd_sleep.c: Likewise.
8479 * nptl/thrd_yield.c: Likewise.
8480 * include/threads.h: Likewise.
8481
8482 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8483
8484 * bits/indirect-return.h: New file.
8485 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8486 * sysdeps/x86/bits/indirect-return.h: Likewise.
8487 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8488 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8489 (swapcontext): Add __INDIRECT_RETURN.
8490 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8491 (prepare_test_buffer): Use it.
8492
8493 2018-07-24 Andreas Schwab <schwab@suse.de>
8494
8495 [BZ #23448]
8496 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8497 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8498
8499 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8500
8501 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8502 Redefine if shadow stack is enabled.
8503 (SYSCALL_ERROR_LABEL): Likewise.
8504 (__vfork): Pop shadow stack and jump back to to caller directly
8505 when shadow stack is in use.
8506 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8507 Redefine if shadow stack is enabled.
8508 (SYSCALL_ERROR_LABEL): Likewise.
8509 (__vfork): Pop shadow stack and jump back to to caller directly
8510 when shadow stack is in use.
8511
8512 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8513
8514 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8515 enabled.
8516 (foo): Likewise.
8517 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8518 (foo): Likewise.
8519
8520 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8521
8522 * scripts/build-many-glibcs.py (Context.checkout): Default
8523 binutils version to 2.31 branch.
8524
8525 2018-07-20 Zong Li <zong@andestech.com>
8526
8527 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8528 URL of gcc's tarball.
8529
8530 2018-07-20 Florian Weimer <fweimer@redhat.com>
8531
8532 [BZ #23396]
8533 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8534 not compare an extra byte after the end of the weights.
8535
8536 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8537
8538 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8539 to 1.
8540 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8541 hidden prototypes.
8542 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8543 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8544 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8545 list of libraries whose stack executability is expected.
8546 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8547 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8548 variable.
8549 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8550 libc.so libpthread.so.
8551
8552 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8553
8554 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8555 SOCK_NONBLOCK.
8556 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8557 and SOCK_NONBLOCK.
8558 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8559 implement __pipe2.
8560 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8561
8562 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8563
8564 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8565 library to improve command line parsing.
8566 (__main__): make schema file as optional parameter (--schema),
8567 defaulting to benchtests/scripts/benchout.schema.json.
8568 (main): move out of the parsing stuff to __main_  and leave it
8569 only as caller of main comparison functions.
8570
8571 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8572
8573 * NEWS: Add a note for Intel CET status.
8574 * manual/install.texi: Likewise.
8575 * INSTALL: Regenerated.
8576
8577 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8578
8579 [BZ #23140]
8580 * localedata/locales/oc_FR (mon): Rename to...
8581 (alt_mon): This, then update October (typo fix).
8582 (mon): New content (genitive case, month names preceded by
8583 "de" or "d’").
8584
8585 [BZ #23422]
8586 * localedata/locales/oc_FR (abday): Update all items.
8587 (day): Update Wednesday and Saturday (typo fixes).
8588 (abmon): Update all items, except May.
8589 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8590 (LC_IDENTIFICATION): Bump the revision number and date.
8591 Keep the "category" entries in alphabetic order.
8592 (LC_ADDRESS): Remove no longer needed comment.
8593 (LC_COLLATE): Use “copy "ca_ES"”.
8594 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8595 "name_mrs".
8596
8597 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8598
8599 * grp/tst_fgetgrent.c: Include <unistd.h>.
8600 (main): Use mkstemp instead of tmpnam.
8601 * io/test-utime.c (main): Likewise.
8602 * posix/annexc.c (macrofile): Change to modifiable array.
8603 (main): Remove macrofile here.
8604 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8605 macrofile here.
8606 (check_header): Do not remove macrofile here.
8607 * posix/bug-getopt1.c: Include <stdlib.h>.
8608 (do_test): Use mkstemp instead of tmpnam.
8609 * posix/bug-getopt2.c: Include <stdlib.h>.
8610 (do_test): Use mkstemp instead of tmpnam.
8611 * posix/bug-getopt3.c: Include <stdlib.h>.
8612 (do_test): Use mkstemp instead of tmpnam.
8613 * posix/bug-getopt4.c: Include <stdlib.h>.
8614 (do_test): Use mkstemp instead of tmpnam.
8615 * posix/bug-getopt5.c: Include <stdlib.h>.
8616 (do_test): Use mkstemp instead of tmpnam.
8617 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8618 (main): Use mkstemp instead of tmpnam.
8619 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8620 (main): Use mkstemp instead of tmpnam.
8621 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8622 (main): use mkstemp instead of tmpnam.
8623 * stdlib/isomac.c (macrofile): Change to modifiable array.
8624 (main): Remove macrofile here.
8625 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8626 macrofile here.
8627 (check_header): Do not remove macrofile here.
8628
8629 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8630
8631 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8632 glibc.tune.x86_shstk.
8633
8634 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8635
8636 * NEWS: Mention --enable-cet.
8637 * manual/install.texi: Document --enable-cet.
8638 * INSTALL: Regenerated.
8639
8640 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8641
8642 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8643 Add _CET_NOTRACK before indirect jump to jump table.
8644
8645 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8646
8647 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8648 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8649 to jump table.
8650
8651 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8652
8653 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8654 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8655 to jump table.
8656
8657 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8658
8659 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8660 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8661 to jump table.
8662
8663 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8664
8665 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8666 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8667 to jump table.
8668
8669 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8670
8671 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8672 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8673 to jump table.
8674 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8675
8676 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8677
8678 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8679 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8680 to jump table.
8681
8682 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8683
8684 * sysdeps/i386/i686/multiarch/memset-sse2.S
8685 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8686 to jump table.
8687
8688 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8689
8690 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8691 indirect jump to jump table.
8692
8693 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8694
8695 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8696 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8697 to jump table.
8698 (MEMCPY): Likewise.
8699
8700 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8701
8702 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8703 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8704 to jump table.
8705 (MEMCPY): Likewise.
8706
8707 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8708
8709 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8710 _CET_NOTRACK before indirect jump to jump table.
8711
8712 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8713
8714 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8715 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8716 to jump table.
8717
8718 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8719
8720 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8721 indirect jump to jump table.
8722
8723 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8724
8725 [BZ #22241]
8726 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8727 (LOCALES): Likewise.
8728 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8729 * localedata/locales/sah_RU: New file.
8730 * localedata/sah_RU.UTF-8.in: New file.
8731
8732 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8733
8734 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8735 "sysdep.h".
8736 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8737 _CET_ENDBR to indirect jump targets and adjust jump destination
8738 for _CET_ENDBR.
8739 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8740 "sysdep.h".
8741 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8742 _CET_ENDBR to indirect jump targets and adjust jump destination
8743 for _CET_ENDBR.
8744 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8745 "sysdep.h".
8746 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8747 _CET_ENDBR to indirect jump targets and adjust jump destination
8748 for _CET_ENDBR.
8749
8750 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8751
8752 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8753 _CET_ENDBR.
8754
8755 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8756
8757 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8758 _CET_ENDBR.
8759 (_dl_tlsdesc_undefweak): Likewise.
8760 (_dl_tlsdesc_dynamic): Likewise.
8761 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8762 (_dl_tlsdesc_resolve_rel): Likewise.
8763 (_dl_tlsdesc_resolve_rela): Likewise.
8764 (_dl_tlsdesc_resolve_hold): Likewise.
8765 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8766 (_dl_tlsdesc_undefweak): Likewise.
8767 (_dl_tlsdesc_dynamic): Likewise.
8768 (_dl_tlsdesc_resolve_rela): Likewise.
8769 (_dl_tlsdesc_resolve_hold): Likewise.
8770
8771 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8772
8773 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8774 (_fini): Likewise.
8775 * sysdeps/x86_64/crti.S (_init): Likewise.
8776 (_fini): Likewise.
8777
8778 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8779
8780 [BZ #23140]
8781 * localedata/locales/os_RU (mon): Rename to...
8782 (alt_mon): This.
8783 (mon): Import from CLDR (genitive case).
8784
8785 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8786
8787 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8788 cet-tunables.h> when CET is enabled.
8789
8790 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8791
8792 [BZ #21598]
8793 * configure.ac: Add --enable-cet.
8794 * configure: Regenerated.
8795 * elf/Makefille (all-built-dso): Add a comment.
8796 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8797 Include <dl-prop.h>.
8798 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8799 segment.
8800 * elf/dl-open.c: Include <dl-prop.h>.
8801 (dl_open_worker): Call _dl_open_check.
8802 * elf/rtld.c: Include <dl-prop.h>.
8803 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8804 _rtld_main_check.
8805 * sysdeps/generic/dl-prop.h: New file.
8806 * sysdeps/i386/dl-cet.c: Likewise.
8807 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8808 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8809 * sysdeps/x86/cet-tunables.h: Likewise.
8810 * sysdeps/x86/check-cet.awk: Likewise.
8811 * sysdeps/x86/configure: Likewise.
8812 * sysdeps/x86/configure.ac: Likewise.
8813 * sysdeps/x86/dl-cet.c: Likewise.
8814 * sysdeps/x86/dl-procruntime.c: Likewise.
8815 * sysdeps/x86/dl-prop.h: Likewise.
8816 * sysdeps/x86/libc-start.h: Likewise.
8817 * sysdeps/x86/link_map.h: Likewise.
8818 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8819 _CET_ENDBR.
8820 (_dl_runtime_profile): Likewise.
8821 (_dl_runtime_resolve_shstk): New.
8822 (_dl_runtime_profile_shstk): Likewise.
8823 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8824 if CET is enabled.
8825 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8826 (CFLAGS-.os): Likewise.
8827 (CFLAGS-.op): Likewise.
8828 (CFLAGS-.oS): Likewise.
8829 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8830 is enabled.
8831 (tests-special): Add $(objpfx)check-cet.out.
8832 (cet-built-dso): New.
8833 (+$(cet-built-dso:=.note)): Likewise.
8834 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8835 ($(objpfx)check-cet.out): New.
8836 (generated): Add check-cet.out.
8837 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8838 <cet-tunables.h>.
8839 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8840 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8841 (init_cpu_features): Call get_cet_status to check CET status
8842 and update dl_x86_feature_1 with CET status. Call
8843 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8844 (set_x86_shstk). Disable and lock CET in libc.a.
8845 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8846 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8847 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8848 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8849 (_CET_ENDBR): Define if not defined.
8850 (ENTRY): Add _CET_ENDBR.
8851 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8852 x86_shstk.
8853 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8854 _CET_ENDBR.
8855 (_dl_runtime_profile): Likewise.
8856
8857 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8858
8859 [BZ #21895]
8860 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8861 restore r2 on longjmp.
8862 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8863 test list.
8864 Added rules to build test tst-setjmp-bug21895-static.
8865 Added module setjmp-bug21895 and rules to build a shared object from it.
8866 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8867 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8868
8869 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8870
8871 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8872 * benchtests/bench-strstr.c: Likewise.
8873 * string/memmem.c (FASTSEARCH): Define.
8874 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8875 Add support for FASTSEARCH.
8876 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8877 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8878 (FASTSEARCH): Define.
8879 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8880 * string/test-strstr.c: Likewise.
8881
8882 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8883
8884 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8885 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8886
8887 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8888 H.J. Lu <hongjiu.lu@intel.com>
8889
8890 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8891 (__longjmp): Restore shadow stack pointer if shadow stack is
8892 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8893 isn't defined for __longjmp_cancel.
8894 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8895 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8896 and SHADOW_STACK_POINTER_OFFSET is defined.
8897 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8898 (setjmp): Save shadow stack pointer if shadow stack is enabled
8899 and SHADOW_STACK_POINTER_OFFSET is defined.
8900 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8901 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8902 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8903 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8904 <jmp_buf-ssp.h>.
8905 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8906 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8907 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8908 Remove jmp_buf-ssp.sym.
8909 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8910 <jmp_buf-ssp.h>.
8911 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8912 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8913 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8914 jmp_buf-ssp.sym.
8915 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8916 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8917 (__longjmp): Restore shadow stack pointer if shadow stack is
8918 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8919 isn't defined for __longjmp_cancel.
8920 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
8921 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8922 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8923
8924 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
8925
8926 [BZ #22563]
8927 * nptl/pthread_create.c: Include <tls-setup.h>.
8928 (__pthread_create_2_1): Call tls_setup_tcbhead.
8929 * sysdeps/generic/tls-setup.h: New file.
8930 * sysdeps/x86/nptl/tls-setup.h: Likewise.
8931 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
8932 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
8933 Likewise.
8934 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
8935 to feature_1.
8936 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
8937 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
8938 (X86_FEATURE_1_SHSTK): Likewise.
8939 (CET_ENABLED): Likewise.
8940 (IBT_ENABLED): Likewise.
8941 (SHSTK_ENABLED): Likewise.
8942
8943 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
8944
8945 [BZ #23208]
8946 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
8947 (LOCALES): Likewise.
8948 * localedata/dsb_DE.UTF-8.in: New file.
8949 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
8950
8951 2018-07-12 Florian Weimer <fweimer@redhat.com>
8952
8953 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
8954 __mprotect, not mprotect.
8955
8956 2018-07-11 Florian Weimer <fweimer@redhat.com>
8957
8958 * io/Makefile (headers): Add bits/statx.h.
8959
8960 2018-07-10 Mike FABIAN <mfabian@redhat.com>
8961
8962 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
8963 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
8964 and headers.
8965 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
8966 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
8967 for utf8_gen.py
8968
8969 2018-07-10 Florian Weimer <fweimer@redhat.com>
8970
8971 * io/Makefile (routines): Add statx.
8972 (tests-internal): Add tst-statx.
8973 * io/Versions (GLIBC_2.28): Export statx.
8974 * io/bits/statx.h: New file.
8975 * io/sys/stat.h [__USE_GNU]: Include it.
8976 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
8977 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
8978 Define.
8979 * io/statx.c: New file.
8980 * io/statx_generic.: Likewise.
8981 * io/tst-statx.: Likewise.
8982 * include/bits/statx.h: Likewise.
8983 * sysdeps/unix/sysv/linux/kernel-features.h
8984 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
8985 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8986 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
8987 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
8988 Undefine.
8989 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8990 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
8991 * sysdeps/unix/sysv/linux/statx.c: New file.
8992 * manual/filesys.texi: Note that statx is undocumented.
8993 * sysdeps/**/libc*.abilist: Update.
8994
8995 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8996
8997 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
8998 a kernel issue which lead to test failure in some cases.
8999
9000 2018-07-10 Florian Weimer <fweimer@redhat.com>
9001
9002 [BZ #23036]
9003 * posix/regexec.c (check_node_accept_bytes): When comparing
9004 weights, do not compare an extra byte after the end of the
9005 weights.
9006
9007 2018-07-10 Florian Weimer <fweimer@redhat.com>
9008
9009 * libio/readline.c: Fix copyright year.
9010 * libio/tst-readline.c Likewise.
9011 * nss/tst-nss-files-hosts-getent.c: Likewise.
9012
9013 2018-07-06 Florian Weimer <fweimer@redhat.com>
9014
9015 [BZ #18991]
9016 * nss/nss_files/files-XXX.c (internal_getent): Use
9017 __libc_readline_unlocked. Seek back to the start of the line if
9018 parsing failes with ERANGE.
9019 (get_contents_ret, get_contents): Remove.
9020 * nss/tst-nss-files-hosts-getent.c: New file.
9021 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9022 (tst-nss-files-hosts-getent): Link with -ldl.
9023
9024 2018-07-06 Florian Weimer <fweimer@redhat.com>
9025
9026 * include/stdio.h (__libc_readline_unlocked): Declare.
9027 (__ftello64, __fseeko64): Declare aliases.
9028 * libio/readline.c: New file.
9029 * libio/tst-readline.c: Likewise.
9030 (routines): Add readline.
9031 (tests-internal): Add tst-readlime.
9032 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9033 __libc_readline_unlocked.
9034 * libio/fseeko.c (__fseeko): Rename from fseeko.
9035 (fseeko): Add alias.
9036 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9037 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9038 (fseeko64): Add alias.
9039 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9040 * libio/ftello64.c (__ftello64): Rename from ftello64.
9041 (ftello64): Add alias.
9042
9043 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9044
9045 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9046 HWCAP_ATOMICS.
9047
9048 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9049
9050 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9051 Use dl_hwcap without masking.
9052 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9053 Remove HWCAP_CPUID.
9054
9055 2018-07-06 Florian Weimer <fweimer@redhat.com>
9056
9057 * conform/conformtest.pl (checknamespace): Escape literal braces
9058 in regular expressions.
9059
9060 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9061
9062 * sysdeps/x86/cpu-features.c (get_common_indeces):
9063 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9064 * sysdeps/x86/cpu-features.c (init_cpu_features):
9065 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9066
9067 2018-07-05 Florian Weimer <fweimer@redhat.com>
9068
9069 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9070 protector.
9071 (CFLAGS-elf-init.oS): Likewise.
9072
9073 2018-07-05 Florian Weimer <fweimer@redhat.com>
9074 Carlos O'Donell <carlos@redhat.com>
9075
9076 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9077 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9078 with stack protector enabled because there is no risk of infinite
9079 recursion.
9080
9081 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9082
9083 [BZ #19818]
9084 [BZ #23307]
9085 * libc-abis (ABSOLUTE): New ABI.
9086 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9087 * NEWS: Mention the new ABI.
9088
9089 2018-07-05 Florian Weimer <fweimer@redhat.com>
9090
9091 [BZ # 17662]
9092 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9093 (RENAME_WHITEOUT): Define.
9094 [__USE_GNU] (renameat2): Declare.
9095 * stdio-common/Makefile (routines): Add renameat2.
9096 (tests): Add tst-renameat2.
9097 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9098 * stdio-common/renameat2.c: New file.
9099 * stdio-common/tst-renameat2.c: Likewise.
9100 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9101 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9102 undocumented.
9103 * sysdeps/unix/sysv/linux/kernel-features.h
9104 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9105 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9106 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9107 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9108 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9109 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9110 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9111 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9112 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9113 * include/stdio.h (__renameat): Add alias for renameat.
9114 * stdio-common/renameat.c (__renameat): Rename from renameat.
9115 Add hidden definition and alias.
9116 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9117 * sysdeps/mach/hurd/renameat.c: Likewise.
9118 * sysdeps/**/libc*.abilist: Add renameat2.
9119
9120 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9121
9122 * posix/bug-regex33.c: Fix build after regex sync.
9123
9124 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9125
9126 [BZ #23164]
9127 * localedata/tst-langinfo-setlocale.c: New file.
9128 * localedata/tst-langinfo-setlocale-static.c: New file.
9129 * localedata/tst-langinfo-newlocale.c: New file.
9130 * localedata/tst-langinfo-newlocale-static.c: New file.
9131 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9132 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9133 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9134 (tests-static): Remove tst-langinfo-static. Add
9135 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9136 (tests-special): Remove $(objpfx)tst-langinfo.out,
9137 $(objpfx)tst-langinfo-static.out. Add
9138 $(objpfx)tst-langinfo-setlocale.out,
9139 $(objpfx)tst-langinfo-newlocale.out,
9140 $(objpfx)tst-langinfo-setlocale-static.out,
9141 $(objpfx)tst-langinfo-newlocale-static.out.
9142 ($(objpfx)tst-langinfo.out): Remove.
9143 ($(objpfx)tst-langinfo-static.out): Remove.
9144 ($(objpfx)tst-langinfo-newlocale.out): New target.
9145 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9146 (test-xfail-tst-langinfo-newlocale-static): Add.
9147 ($(objpfx)tst-langinfo-setlocale.out): New target.
9148 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9149 * localedata/tst-langinfo.c: Call test_locale.
9150 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9151 data.
9152
9153 2018-07-04 Florian Weimer <fweimer@redhat.com>
9154
9155 testrun.sh: Implement --tool=strace, --tool=valgrind
9156 * Makefile (testrun-script): Define variable.
9157 (testrun.sh): Use variable.
9158 * manual/install.texi (Tools for Compilation): make 4.0 or later
9159 is required.
9160 * configure.ac: Check for make 4.0 or later.
9161 * INSTALL: Regenerate.
9162 * configure: Likewise.
9163
9164 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9165
9166 [BZ #23233]
9167 [BZ #21163]
9168 [BZ #18986]
9169 [BZ #13762]
9170 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9171 * posix/PCRE.tests: Remove invalid test.
9172 * posix/bug-regex28.c: Fix expected values for used syntax.
9173 * posix/bug-regex37.c: New file.
9174 * posix/bug-regex38.c: Likewise.
9175 * posix/regcomp.c: Sync with gnulib.
9176 * posix/regex.c: Likewise.
9177 * posix/regex.h: Likewise.
9178 * posix/regex_internal.c: Likewise.
9179 * posix/regex_internal.h: Likewise.
9180 * posix/regexec.c: Likewise.
9181
9182 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9183
9184 [BZ #23308]
9185 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9186 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9187 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9188 * localedata/unicode-gen/PropList.txt: likewise.
9189 * localedata/unicode-gen/UnicodeData.txt: likewise.
9190 * localedata/charmaps/UTF-8: Regenerate.
9191 * localedata/locales/i18n_ctype: likewise.
9192 * localedata/locales/tr_TR: likewise.
9193 * localedata/locales/translit_circle: likewise.
9194 * localedata/locales/translit_cjk_compat: likewise.
9195 * localedata/locales/translit_combining: likewise.
9196 * localedata/locales/translit_compat: likewise.
9197 * localedata/locales/translit_font: likewise.
9198 * localedata/locales/translit_fraction: likewise.
9199
9200 2018-07-03 Florian Weimer <fweimer@redhat.com>
9201
9202 [BZ #23363]
9203 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9204 * stdio-common/tst-printf.sh: Adjust expected output.
9205 * LICENSES: Update.
9206
9207 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9208
9209 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9210 symbol.
9211
9212 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9213
9214 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9215 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9216 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9217 * stdio-common/tst-printfsz-islongdouble.c: New file.
9218 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9219 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9220 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9221 [subdir == stdio-common] (tests-internal): Add
9222 test-printf-size-ieee128, and test-printf-size-ibm128.
9223 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9224 (CFLAGS-test-printf-size-ibm128.c): New variables.
9225 [subdir == stdio-common] (tests-special): Add
9226 $(objpfx)test-printf-size-ieee128.out and
9227 $(objpfx)test-printf-size-ibm128.out.
9228 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9229 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9230 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9231 __printf_sizeieee128.
9232 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9233 New file.
9234 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9235 Likewise.
9236 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9237 Likewise.
9238
9239 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9240
9241 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9242 (exp2f_inline): Likewise.
9243 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9244 (__math_uflowf): Likewise.
9245 (__math_may_uflowf): Likewise.
9246 (__math_divzerof): Likewise.
9247 (__math_invalidf): Likewise.
9248 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9249 (__math_oflowf): Likewise.
9250 (__math_uflowf): Likewise.
9251 (__math_may_uflowf): Likewise.
9252 (__math_divzerof): Likewise.
9253 (__math_invalidf): Likewise.
9254
9255 2018-06-29 DJ Delorie <dj@redhat.com>
9256 Carlos O'Donell <carlos@redhat.com>
9257
9258 [BZ #23329]
9259 * include/libc-symbols.h: Comment the freeres framework.
9260 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9261 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9262 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9263 * dlfcn/dlerror.c: Include libc-symbols.h
9264 (__dlerror_main_freeres): New function.
9265 * dlfcn/dlfreeres.c: New file.
9266 * dlfcn/sdlfreeres.c: New file.
9267 * include/dlfcn.h: Declare __dlerror_main_freeres.
9268 * malloc/set-freeres.c: Declare __libdl_freeres, and
9269 __libpthread_freeres.
9270 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9271 the releavant libraries are loaded.
9272 * malloc/thread-freeres.c: Add comments.
9273 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9274 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9275 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9276 (__free_stacks): Rename to...
9277 (free_stacks): ...this. Mark static.
9278 (queue_stack): Call free_stacks.
9279 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9280 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9281 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9282 ptr_freeres element from struct.
9283 (pthread_functions): Remove .ptr_freeres from struct initializer.
9284 [SHARED] (nptl_freeres): Remove.
9285 * nptl/nptlfreeres.c: New file.
9286 * nptl/pthreadP.h
9287 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9288 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9289 attribute_hidden.
9290 (__free_stacks): Rename to...
9291 (__nptl_stacks_freeres): ...this.
9292 (__shm_directory_freeres): Declare.
9293 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9294 (__nptl_unwind_freeres): ...this.
9295 * resolv/res-close.c: Add comment.
9296 * resolv/resolv_conf.c: Include libc-symbols.h.
9297 * string/strerror_l.c: Include libc-symbols.h.
9298 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9299 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9300 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9301 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9302
9303 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9304
9305 * stdlib/tst-strfmon_l.c: Add tests for long double.
9306
9307 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9308
9309 [BZ #23208]
9310 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9311 * localedata/locales/dsb_DE: New file.
9312
9313 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9314
9315 [BZ #23140]
9316 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9317 genitive case).
9318 (alt_mon): New entry, import from CLDR (nominative case).
9319
9320 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9321
9322 [BZ #22996]
9323 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9324
9325 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9326
9327 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9328 Use vector registers.
9329
9330 * sysdeps/aarch64/multiarch/memmove_falkor.S
9331 (__memcpy_falkor): Use vector registers.
9332
9333 2018-06-29 Martin Sebor <msebor@redhat.com>
9334
9335 * manual/stdio.texi (Customizing Printf): Mention interaction
9336 with GCC built-ins.
9337
9338 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9339
9340 [BZ #23307]
9341 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9342 `st_value' is 0 if `st_shndx' is SHN_ABS.
9343 * elf/tst-absolute-zero.c: New file.
9344 * elf/tst-absolute-zero-lib.c: New file.
9345 * elf/tst-absolute-zero-lib.lds: New file.
9346 * elf/Makefile (tests): Add `tst-absolute-zero'.
9347 (modules-names): Add `tst-absolute-zero-lib'.
9348 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9349 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9350 ($(objpfx)tst-absolute-zero: New dependency.
9351
9352 2018-06-29 Zack Weinberg <zackw@panix.com>
9353
9354 * configure.ac: New command-line option --disable-crypt.
9355 Force --disable-nss-crypt when --disable-crypt is given, with a
9356 warning if it was explicitly enabled.
9357 * configure: Regenerate.
9358 * config.make.in: New boolean substitution variable $(build-crypt).
9359 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9360 when $(build-crypt).
9361 * manual/install.texi: Document --disable-crypt.
9362 * INSTALL: Regenerate.
9363
9364 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9365 which is never set.
9366 * conform/Makefile: Only include libcrypt.a in
9367 linknamespace-libs-xsi and linknamespace-libs-XPG4
9368 when $(build-crypt).
9369 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9370 USE_CRYPT to 1 when $(build-crypt).
9371 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9372 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9373 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9374
9375 2018-06-29 Zack Weinberg <zackw@panix.com>
9376
9377 * crypt/crypt.h, posix/unistd.h: Update comments and
9378 prototypes for crypt and crypt_r.
9379
9380 * manual/crypt.texi (Cryptographic Functions): New initial
9381 exposition.
9382 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9383 (Unpredictable Bytes): Improve initial exposition. Clarify error
9384 behavior of getentropy and getrandom.
9385 * manual/examples/genpass.c: Generate a salt using getentropy
9386 instead of the current time. Use hash $5$ (SHA-2-256).
9387 * manual/examples/testpass.c: Demonstrate validation against
9388 hashes generated with three different one-way functions.
9389
9390 * manual/intro.texi: crypt.texi does not need an overview
9391 anymore.
9392
9393 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9394 * manual/terminal.texi: Consistently refer to "passphrases"
9395 * instead of "passwords", and to the "user database" instead
9396 * of the "password database".
9397 * manual/users.texi: Similarly. Add notes about how actual
9398 passphrase hashes are now stored in the shadow database.
9399 Remove 20-year-old junk todo note.
9400
9401 2018-06-29 Zack Weinberg <zackw@panix.com>
9402
9403 * manual/crypt.texi: Use a normal top-level @node declaration.
9404 Move most of the introductory text to the 'crypt' section.
9405 Move the example programs below the @deftypefun for 'crypt_r'.
9406 Move the 'getpass' section...
9407 * manual/terminal.texi: ...here.
9408
9409 2018-06-29 Zack Weinberg <zackw@panix.com>
9410 Florian Weimer <fweimer@redhat.com>
9411
9412 * posix/unistd.h: Do not declare encrypt.
9413 (_XOPEN_CRYPT): Remove macro definition.
9414 (crypt): Declare only for _USE_MISC.
9415 * stdlib/stdlib.h: Do not declare setkey.
9416 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9417 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9418
9419 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9420 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9421 into compat symbols. Don't define initial_perm if it's not
9422 going to be used.
9423 * crypt/cert.c: Link explicitly with the expected versions for
9424 setkey and encrypt. If they are not available at all, mark
9425 the test as unsupported.
9426
9427 * sunrpc/des_crypt.c: Unconditionally block linkage with
9428 cbc_crypt and ecb_crypt for new binaries.
9429 * sunrpc/des_soft.c: Unconditionally block linkage with
9430 des_setparity for new binaries.
9431
9432 * manual/crypt.texi: Remove the entire "DES Encryption"
9433 section. Also remove the paragraph talking about FIPS 140-2
9434 from the introduction.
9435 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9436 of libgcrypt for "real" encryption, not DES.
9437 * manual/conf.texi (Constants for Sysconf): Mention that
9438 _XOPEN_CRYPT is no longer impelemented.
9439
9440 * conform/data/unistd.h-data: Remove crypt function declaration.
9441
9442 2018-06-29 Florian Weimer <fweimer@redhat.com>
9443
9444 [BZ #23351]
9445 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9446 (disallow_malloc_check): Remove variable.
9447 (__malloc_check_init): Adjust.
9448 (malloc_set_state): Update comment.
9449 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9450 declarations.
9451
9452 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9453
9454 [BZ #23140]
9455 * localedata/locales/ast_ES (mon): Rename to...
9456 (alt_mon): This.
9457 (mon): Import from CLDR (genitive case).
9458
9459 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9460 Jakub Sitnicki <jkbs@redhat.com>
9461
9462 [BZ #21812]
9463 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9464 on NLM_F_DUMP_INTR.
9465
9466 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9467
9468 * manual/llio.texi: Remove spurious space.
9469
9470 2018-06-28 Florian Weimer <fweimer@redhat.com>
9471
9472 [BZ #23349]
9473 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9474 _STRUCT_TIMESPEC.
9475
9476 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9477
9478 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9479 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9480 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9481 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9482 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9483 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9484 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9485
9486 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9487
9488 [BZ #23266]
9489 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9490 Copy and null-terminate entries that are not terminated, in
9491 addition to empty ones.
9492
9493 2018-06-27 Florian Weimer <fweimer@redhat.com>
9494
9495 [BZ #18023]
9496 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9497 (extend_alloca_account): Remove.
9498 * manual/stdio.texi (Variable Arguments Output): Update comment.
9499
9500 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9501
9502 * nptl/sockperf.c: Remove file.
9503
9504 2018-06-27 Florian Weimer <fweimer@redhat.com>
9505
9506 [BZ #18023]
9507 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9508 scratch_buffer instead of extend_alloca.
9509
9510 2018-06-27 Florian Weimer <fweimer@redhat.com>
9511
9512 [BZ #18023]
9513 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9514 scratch_buffer instead of extend_alloca. Update comments.
9515
9516 2018-06-27 Florian Weimer <fweimer@redhat.com>
9517
9518 [BZ #18023]
9519 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9520 instead of extend_alloca.
9521
9522 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9523
9524 [BZ #13888]
9525 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9526 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9527 /tmp.
9528 * scripts/test-installation.pl: Put temporary files in build
9529 directory, not /tmp.
9530 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9531 (CFLAGS-bug4.c): Likewise.
9532 (CFLAGS-bug5.c): Likewise.
9533 (CFLAGS-test-fseek.c): Likewise.
9534 (CFLAGS-test-popen.c): Likewise.
9535 (CFLAGS-test_rdwr.c): Likewise.
9536 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9537 /tmp.
9538 * stdio-common/bug4.c (main): Likewise.
9539 * stdio-common/bug5.c (main): Likewise.
9540 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9541 * stdio-common/test-popen.c (do_test): Likewise.
9542 * stdio-common/test_rdwr.c (main): Likewise.
9543
9544 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9545
9546 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9547 (sem_open): Set sem.newsem.pad to zero for valgrind.
9548
9549 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9550
9551 [BZ #20251]
9552 * NEWS: Mention fcntl64 addition.
9553 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9554 * login/utmp_file.c: Likewise.
9555 * sysdeps/posix/fdopendir.c: Likewise.
9556 * sysdeps/posix/opendir.c: Likewise.
9557 * sysdeps/unix/pt-fcntl.c: Likewise.
9558 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9559 __fcntl64_nocancel_adjusted): New prototype.
9560 (__fcntl_nocancel_adjusted): Remove prototype.
9561 * io/Makefile (routines): Add fcntl64.
9562 (CFLAGS-fcntl64.c): New rule.
9563 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9564 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9565 * io/fcntl.h (fcntl64): Add prototype and redirect if
9566 __USE_FILE_OFFSET64 is defined.
9567 * io/fcntl64.c: New file.
9568 * manual/llio.text: Add a note for which commands fcntl acts a
9569 cancellation point.
9570 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9571 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9572 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9573 New symbols.
9574 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9575 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9576 non-LFS case.
9577 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9578 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9579 to __fcntl64_nocancel.
9580 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9581 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9582 to __fcntl64_nocancel.
9583 * sysdeps/generic/not-cancel.h: Likewise.
9584 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9585 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9586 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9587 (fcntl64): New symbol.
9588 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9589 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9590 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9591 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9592 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9593 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9594 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9595 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9596 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9597 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9598 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9599 fcntl64): Likewise.
9600 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9601 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9602 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9603 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9604 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9605 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9606 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9607 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9608 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9609 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9610 Likewise.
9611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9612 Likewise.
9613 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9614 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9615 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9616
9617 2018-06-26 Florian Weimer <fweimer@redhat.com>
9618
9619 Run thread shutdown functions in an explicit order.
9620 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9621 definition.
9622 (__libc_thread_freeres): Call thread shutdown functions
9623 explicitly.
9624 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9625 * include/string.h (__strerror_thread_freeres): Declare.
9626 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9627 arena_thread_freeres. No longer static. Remove thread shutdown
9628 hook registration.
9629 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9630 Declare.
9631 * resolv/res-close.c (__res_thread_freeres): Renamed from
9632 res_thread_freeres. No longer static. Remove thread shutdown
9633 hook registration.
9634 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9635 * resolv/resolv_conf.c (freeres): Remove incorrect section
9636 attribute and use libc_freeres_fn.
9637 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9638 strerror_thread_freeres. No longer static. Remove thread
9639 shutdown hook registration.
9640 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9641 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9642 shutdown hook registration.
9643 * Makerules (shlib.lds): Do not provide section boundary symbols
9644 for __libc_thread_subfreeres.
9645 * manual/memory.texi (Basic Allocation): Update comment.
9646
9647 2018-06-26 Florian Weimer <fweimer@redhat.com>
9648
9649 Remove always-defined _RPC_THREAD_SAFE_ macro.
9650 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9651 Do not define _RPC_THREAD_SAFE_.
9652 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9653 conditional.
9654 * sunrpc/clnt_perr.c: Likewise.
9655 * sunrpc/clnt_raw.c: Likewise.
9656 * sunrpc/clnt_simp.c: Likewise.
9657 * sunrpc/key_call.c: Likewise.
9658 * sunrpc/rpc_common.c: Likewise.
9659 * sunrpc/rpc_main.c: Likewise.
9660 * sunrpc/rpc_thread.c: Likewise.
9661 * sunrpc/svc.c: Likewise.
9662 * sunrpc/svc_raw.c: Likewise.
9663 * sunrpc/svc_simple.c: Likewise.
9664 * sumrpc/svcauth_des.c: Likewise.
9665
9666 2018-06-26 Florian Weimer <fweimer@redhat.com>
9667
9668 * libio/Makefile (tests-internal): Add tst-vtables,
9669 tst-vtables-interposed.
9670 * libio/tst-vtables.c: New file.
9671 * libio/tst-vtables-common.c: Likewise.
9672 * libio/tst-vtables-interposed.c: Likewise.
9673
9674 2018-06-26 Florian Weimer <fweimer@redhat.com>
9675
9676 * support/support_test_main.c (support_test_main): Only call
9677 setvbuf if not disables.
9678 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9679 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9680
9681 2018-06-26 Florian Weimer <fweimer@redhat.com>
9682
9683 [BZ #23313]
9684 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9685
9686 2018-06-25 Florian Weimer <fweimer@redhat.com>
9687
9688 [BZ #18023]
9689 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9690 Use struct scratch_buffer instead of extend_alloca.
9691
9692 2018-06-25 Florian Weimer <fweimer@redhat.com>
9693
9694 [BZ #18023]
9695 * nss/getent.c (initgroups_keys): Use dynarray instead of
9696 extend_alloca.
9697
9698 2018-06-25 Florian Weimer <fweimer@redhat.com>
9699
9700 [BZ #18023]
9701 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9702 Use struct scratch_buffer instead of extend_alloca.
9703
9704 2018-06-25 Florian Weimer <fweimer@redhat.com>
9705
9706 [BZ #18023]
9707 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9708 back to malloc directly, without stack allocations.
9709
9710 2018-06-25 Florian Weimer <fweimer@redhat.com>
9711
9712 [BZ #18023]
9713 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9714 of extend_alloca.
9715
9716 2018-06-25 Florian Weimer <fweimer@redhat.com>
9717
9718 [BZ #18023]
9719 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9720 of extend_alloca.
9721 * nscd/hstcache.c (addhstbyX): Likewise.
9722 * nscd/pwdcache.c (addpwbyX): Likewise.
9723 * nscd/servicescache.c (addservbyX): Likewise.
9724
9725 2018-06-25 Florian Weimer <fweimer@redhat.com>
9726
9727 [BZ #18023]
9728 * nscd/connections.c (read_cmdline): New function.
9729 (restart): Use it. Update comment.
9730
9731 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9732
9733 [BZ #23140]
9734 * localedata/locales/csb_PL (mon): Rename to...
9735 (alt_mon): This.
9736 (abmon): Rename to...
9737 (ab_alt_mon): This.
9738 (mon): Add with proper genitive forms, copy from Wikipedia.
9739 (abmon): Likewise.
9740
9741 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9742
9743 [BZ #19485]
9744 * localedata/locales/csb_PL (mon): Fix typos:
9745 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9746 (yesstr): Add, value is "jo".
9747 (nostr): Add, value is "nié".
9748
9749 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9750
9751 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9752 all log1p and significand functions on m680x0.
9753 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9754 of s_significand.c..
9755 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9756 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9757 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9758 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9759 s_log1p.c and include it..
9760
9761 2018-06-21 Vincent Chen <vincentc@andestech.com>
9762
9763 * elf/elf.h (R_NDS32_NONE): New define.
9764 (R_NDS32_32_RELA): Likewise.
9765 (R_NDS32_COPY): Likewise.
9766 (R_NDS32_GLOB_DAT): Likewise.
9767 (R_NDS32_JUMP_SLOT): Likewise.
9768 (R_NDS32_RELATIVE): Likewise.
9769 (R_NDS32_TLS_TPOFF): Likewise.
9770 (R_NDS32_TLS_DESC): Likewise.
9771
9772 2018-06-21 Mark Wielaard <mark@klomp.org>
9773
9774 * elf/elf.h (R_BPF_MAP_FD): Removed.
9775 (R_BPF_64_64, R_BPF_64_32): New.
9776
9777 2018-06-21 Florian Weimer <fweimer@redhat.com>
9778
9779 [BZ #23253]
9780 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9781 Renamed from libc_feholdsetround_ctx.
9782 (default_libc_feresetround_ctx): Renamed from
9783 libc_feresetround_ctx.
9784 (default_libc_feholdsetround_noex_ctx): Renamed from
9785 libc_feholdsetround_noex_ctx.
9786 (default_libc_feresetround_noex_ctx): Renamed from
9787 libc_feresetround_noex_ctx.
9788 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9789 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9790 forwardning to the old implementations under the new names.
9791 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9792 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9793 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9794 (libc_feresetround_ctx): Forward to default implements for i386
9795 and MATH_SET_BOTH_ROUNDING_MODES.
9796 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9797 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9798
9799 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9800
9801 * string/tst-cmp.c: Include <libc-diag.h>.
9802 (strncmp_max): Disable -Wstringop-overflow= around call to
9803 strncmp.
9804 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9805 strncasecmp.
9806
9807 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9808 (main): Disable -Wunused-value around call to strpbrk.
9809 * string/bug-strspn1.c: Include <libc-diag.h>.
9810 (main): Disable -Wunused-value around call to strspn.
9811
9812 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9813 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9814
9815 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9816 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9817
9818 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9819
9820 * math/Makefile (libm-calls): Move s_significandF to...
9821 (gen-libm-calls): ... here.
9822 * math/s_significand_template.c: New file.
9823 * math/s_significand.c: Removed.
9824 * math/s_significandf.c: Removed.
9825 * math/s_significandl.c: Removed.
9826 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9827 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9828
9829 * math/e_exp2_template.c (declare_mgen_finite_alias,
9830 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9831 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9832 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9833
9834 2018-06-20 Florian Weimer <fweimer@redhat.com>
9835
9836 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9837
9838 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9839
9840 [BZ #23280]
9841 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9842 floating-point number to strtod functions rather than possibly
9843 negating result of those functions.
9844 * stdio-common/tst-scanf-round.c: New file.
9845 * stdio-common/Makefile (tests): Add tst-scanf-round.
9846 ($(objpfx)tst-scanf-round): Depend on $(libm).
9847
9848 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9849
9850 * sysdeps/mach/hurd/localplt.data: Move to...
9851 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9852 R_386_GLOB_DAT like on Linux i386.
9853
9854 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9855
9856 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9857 (SHM_STAT_ANY): New macro.
9858 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9859 (SHM_STAT_ANY): Likewise.
9860 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9861 (SHM_STAT_ANY): Likewise.
9862 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9863 (SHM_STAT_ANY): Likewise.
9864 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9865 (SHM_STAT_ANY): Likewise.
9866 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9867 (SHM_STAT_ANY): Likewise.
9868 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9869 (SHM_STAT_ANY): Likewise.
9870 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9871 (SHM_STAT_ANY): Likewise.
9872 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9873 (SHM_STAT_ANY): Likewise.
9874 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9875 (SHM_STAT_ANY): Likewise.
9876 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9877 (SHM_STAT_ANY): Likewise.
9878 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9879 (SHM_STAT_ANY): Likewise.
9880
9881 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9882 (SEM_STAT_ANY): New macro.
9883 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9884 (SEM_STAT_ANY): Likewise.
9885 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9886 (SEM_STAT_ANY): Likewise.
9887 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9888 (SEM_STAT_ANY): Likewise.
9889 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9890 (SEM_STAT_ANY): Likewise.
9891 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9892 (SEM_STAT_ANY): Likewise.
9893 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9894 (SEM_STAT_ANY): Likewise.
9895 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9896 (SEM_STAT_ANY): Likewise.
9897 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9898 (SEM_STAT_ANY): Likewise.
9899 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9900 (SEM_STAT_ANY): Likewise.
9901
9902 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9903 (MSG_STAT_ANY): New macro.
9904 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9905 (MSG_STAT_ANY): Likewise.
9906 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9907 (MSG_STAT_ANY): Likewise.
9908 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9909 (MSG_STAT_ANY): Likewise.
9910 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9911 (MSG_STAT_ANY): Likewise.
9912 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9913 (MSG_STAT_ANY): Likewise.
9914 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9915 (MSG_STAT_ANY): Likewise.
9916 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9917 (MSG_STAT_ANY): Likewise.
9918 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
9919 (MSG_STAT_ANY): Likewise.
9920 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
9921 (MSG_STAT_ANY): Likewise.
9922
9923 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9924 (MAP_TYPE): Change value to 0x2b.
9925
9926 2018-06-18 Florian Weimer <fweimer@redhat.com>
9927
9928 [BZ #15722]
9929 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
9930 socket with SOCK_CLOEXEC.
9931
9932 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9933
9934 [BZ #23303]
9935 * sysdeps/powerpc/powerpc64/le/Makefile
9936 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
9937 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
9938 (gnulib-tests): Also add $(f128-loader-link) for
9939 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
9940
9941 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
9942
9943 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
9944 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
9945 of sendfile.
9946 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
9947 (sendfile64): New strong alias.
9948 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
9949 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
9950 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
9951 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
9952 attribute.
9953 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
9954 ___pthread_get_cleanup_stack.
9955 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
9956 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
9957 * mach/shortcut.awk: Make syscall stubs include
9958 <mach-shortcuts-hidden.h> and add hidden definition.
9959 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
9960 (__mach_msg): Add hidden prototype.
9961 * mach/msg.c: Include <mach.h>.
9962 (__mach_msg): Add hidden definition.
9963 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
9964 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
9965 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
9966 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
9967 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
9968 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
9969 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
9970 prototype and definition.
9971 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
9972 hidden target for _hurd_self_sigstate.
9973
9974 2018-06-15 Joseph Myers <joseph@codesourcery.com>
9975
9976 [BZ #23007]
9977 * stdlib/tst-strtod-nan-sign-main.c: New file.
9978 * stdlib/tst-strtod-nan-sign.c: Likewise.
9979 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
9980 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
9981 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
9982 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
9983 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
9984
9985 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
9986
9987 [BZ #23007]
9988 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
9989 appropriate sign.
9990
9991 2018-06-14 Florian Weimer <fweimer@redhat.com>
9992
9993 [BZ #23290]
9994 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
9995 that the result stays within the ISO-8859-1 range.
9996 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
9997 characters are defined in IBM273.
9998
9999 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10000
10001 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10002 __mach_task_self): Remove attribute_hidden.
10003
10004 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10005
10006 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10007 ignore -Wrestrict for one test.
10008
10009 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10010 Szabolcs Nagy <szabolcs.nagy@arm.com>
10011
10012 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10013
10014 2018-06-14 Florian Weimer <fweimer@redhat.com>
10015
10016 * scripts/update-abilist.sh: Accept empty list of files to patch.
10017
10018 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10019
10020 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10021 test-xfail-check-abi-libmachuser): Add.
10022 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10023 __libc_read and __libc_write to __read and __write.
10024 * sysdeps/hurd/include/hurd/port.h: New file.
10025 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10026 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10027 __thread_switch, __evc_wait): Move declarations to...
10028 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10029 attribute_hidden.
10030 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10031 use PLT to call _hurd_self_sigstate.
10032
10033 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10034
10035 [BZ #23279]
10036 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10037 MAX_EXP as overflowing.
10038 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10039 overflow flag.
10040 (round_str): Output also whether result overflows in each rounding
10041 mode.
10042 * stdlib/tst-strtod-round-data: Add more tests.
10043 * stdlib/tst-strtod-round-data.h: Regenerated.
10044 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10045 (TEST): Handle extra arguments for overflow flags.
10046 (struct test_overflow): New type.
10047 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10048 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10049 (test_in_one_mode): Take argument with overflow information.
10050 (do_test): Update calls to test_in_one_mode.
10051
10052 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10053
10054 * elf/dl-load (_dl_dst_substitute): Correct comment.
10055 (_dl_dst_count): Likewise.
10056
10057 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10058 lll_futex_timed_wait.
10059
10060 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10061
10062 [BZ #23277]
10063 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10064 attribute.
10065 * math/test-nan-const.c: New file.
10066 * math/Makefile (tests): Add test-nan-const.
10067 (CFLAGS-test-nan-const.c): New variable.
10068
10069 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10070
10071 * benchtests/scripts/compare_strings.py (process_results): Add
10072 funcs argument. Compare only functions which are selected.
10073 (main): Check if base function is among selected functions.
10074 Pass selected functions to process_results.
10075 (__main__): Add -f/--functions argument.
10076
10077 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10078 Hongbo Zhang <hongbo.zhang@linaro.org>
10079
10080 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10081 __memcpy_falkor for phecda core.
10082 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10083 __memmove_falkor for phecda core.
10084 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10085 __memset_falkor for phecda core.
10086 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10087 for phecda core.
10088 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10089 macro to identify phecda core.
10090
10091 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10092 Andreas Schwab <schwab@suse.de>
10093 Dmitry V. Levin <ldv@altlinux.org>
10094 Florian Weimer <fweimer@redhat.com>
10095
10096 [BZ #23102]
10097 [BZ #21942]
10098 [BZ #18018]
10099 [BZ #23259]
10100 CVE-2011-0536
10101 * elf/dl-dst.h: Remove DL_DST_COUNT.
10102 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10103 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10104 (is_dst): Comment. Support ELF gABI.
10105 (_dl_dst_count): Comment. Simplify and count DSTs.
10106 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10107 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10108 locals.
10109
10110 2018-06-12 Zack Weinberg <zackw@panix.com>
10111
10112 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10113 * sysdeps/unix/sysv/linux/dl-sysdep.c
10114 Include not-cancel.h. Use __close_nocancel instead of __close,
10115 __open64_nocancel instead of __open, __read_nocancel instead of
10116 __libc_read, and __write_nocancel instead of __libc_write.
10117
10118 * csu/check_fds.c (check_one_fd)
10119 * sysdeps/posix/fdopendir.c (__fdopendir)
10120 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10121 instead of __fcntl and/or __libc_fcntl.
10122
10123 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10124 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10125 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10126 Use __open64_nocancel instead of __open_nocancel.
10127
10128 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10129 hidden_proto declarations to the end and issue them if either
10130 IS_IN(libc) or IS_IN(rtld).
10131 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10132 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10133 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10134 read_nocancel, waitpid_nocancel, write_nocancel.
10135
10136 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10137 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10138 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10139
10140 * nptl/pt-fcntl.c: New file.
10141 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10142 (libpthread-routines): Add pt-fcntl.
10143 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10144 (__libc_fcntl): Remove attribute_hidden.
10145 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10146 __fcntl_nocancel_adjusted, not fcntl_common.
10147 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10148 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10149 to fcntl_nocancel.c.
10150 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10153 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10154
10155 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10156 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10157 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10158 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10159 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10160 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10161 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10162 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10163 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10164 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10165 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10166 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10167 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10168 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10169 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10170 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10171 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10172 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10173 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10174 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10175
10176 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10177 libpthread-routines.
10178 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10179 defines nothing.
10180
10181 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10182 __libc_read, and __write instead of __libc_write. Define
10183 __open64 in addition to __open.
10184
10185 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10186
10187 [BZ #23250]
10188 [BZ #10686]
10189 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10190 to _private_tm[3] and add __glibc_reserved2.
10191 Add _Static_assert of offset of __private_ss == 0x30.
10192 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10193 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10194
10195 2018-06-12 Florian Weimer <fweimer@redhat.com>
10196
10197 x86: Make strncmp usable from rtld.
10198 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10199 __strncmp_ia32 if in libc (and not in rtld).
10200 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10201 strncmp if not in libc (and not to __strncmp_sse2).
10202
10203 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10204
10205 [BZ #23140]
10206 * localedata/locales/gd_GB (mon): Rename to...
10207 (alt_mon): This.
10208 (mon): Import from CLDR (genitive case).
10209 * localedata/locales/hsb_DE (mon): Rename to...
10210 (alt_mon): This.
10211 (mon): Import from CLDR (genitive case).
10212 * localedata/locales/wa_BE (mon): Rename to...
10213 (alt_mon): This.
10214 (mon): Add, fill with the proper genitive forms, but CLDR data
10215 is incomplete; completed according to the comments in this file.
10216 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10217
10218 * localedata/locales/wa_BE (country_name): Reword
10219 "Beljike" -> "Beldjike".
10220
10221 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10222
10223 [BZ #23272]
10224 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10225 cases of non-finite arguments.
10226 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10227
10228 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10229
10230 [BZ #23174]
10231 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10232
10233 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10234
10235 [BZ #23264]
10236 * include/unistd.h (__execvpex): New prototype.
10237 * posix/Makefile (tests): Add tst-spawn4.
10238 (tests-internal): Add tst-spawn4-compat.
10239 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10240 * posix/tst-spawn4-compat.c: New file.
10241 * posix/tst-spawn4.c: Likewise.
10242 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10243 binaries as shell scripts.
10244 * sysdeps/posix/spawni.c (__spawni): Likewise.
10245
10246 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10247
10248 [BZ #23145]
10249 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10250 ($(all-built-dso:=.dynsym): New target.
10251 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10252 ($(objpfx)check-initfini.out): New target.
10253 (generated): Add check-initfini.out.
10254 * scripts/check-initfini.awk: New file.
10255 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10256 (_fini): Likewise.
10257 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10258 (_fini): Likewise.
10259 * sysdeps/arm/crti.S (_init): Mark as hidden.
10260 (_fini): Likewise.
10261 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10262 (_fini): Likewise.
10263 * sysdeps/i386/crti.S (_init): Mark as hidden.
10264 (_fini): Likewise.
10265 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10266 (_fini): Likewise.
10267 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10268 (_fini): Likewise.
10269 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10270 (_fini): Likewise.
10271 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10272 (_fini): Likewise.
10273 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10274 (_fini): Likewise.
10275 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10276 (_fini): Likewise.
10277 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10278 (_fini): Likewise.
10279 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10280 (_fini): Likewise.
10281 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10282 (_fini): Likewise.
10283 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10284 (_fini): Likewise.
10285 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10286 (_fini): Likewise.
10287 * sysdeps/sh/crti.S (_init): Mark as hidden.
10288 (_fini): Likewise.
10289 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10290 (_fini): Likewise.
10291 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10292 (_fini): Likewise.
10293
10294 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10295
10296 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10297 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10298 and TF redirection to KFtype and KF only when the default
10299 long double type is not the IEEE 128-bit floating point type.
10300
10301 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10302
10303 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10304 macro.
10305 (HWCAP_USCAT): Likewise.
10306 (HWCAP_ILRCPC): Likewise.
10307 (HWCAP_FLAGM): Likewise.
10308 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10309 Increase to 28.
10310 (_dl_aarch64_cap_flags): Add new flag names.
10311
10312 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10313 (MAP_FIXED_NOREPLACE): New macro.
10314 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10315 (MAP_FIXED_NOREPLACE): Likewise.
10316 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10317 (MAP_FIXED_NOREPLACE): Likewise.
10318 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10319 (MAP_FIXED_NOREPLACE): Likewise.
10320 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10321 (MAP_FIXED_NOREPLACE): Likewise.
10322 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10323 (MAP_FIXED_NOREPLACE): Likewise.
10324 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10325 (MAP_FIXED_NOREPLACE): Likewise.
10326 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10327 (MAP_FIXED_NOREPLACE): Likewise.
10328 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10329 (MAP_FIXED_NOREPLACE): Likewise.
10330 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10331 (MAP_FIXED_NOREPLACE): Likewise.
10332 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10333 (MAP_FIXED_NOREPLACE): Likewise.
10334 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10335 (MAP_FIXED_NOREPLACE): Likewise.
10336 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10337 (MAP_FIXED_NOREPLACE): Likewise.
10338 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10339 (MAP_FIXED_NOREPLACE): Likewise.
10340 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10341 (MAP_FIXED_NOREPLACE): Likewise.
10342
10343 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10344 version to 4.17.
10345
10346 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10347
10348 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10349 version to 4.17
10350
10351 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10352
10353 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10354 int.
10355 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10356
10357 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10358
10359 * benchtests/scripts/compare_string.py: (process_results) Catch
10360 exception in non-existent base_func and catch exception in
10361 non-existent attribute.
10362 (parse_file) Catch exception if input file does not exist.
10363
10364 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10365
10366 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10367 options to avoid diff calculation and omit header, respectively.
10368 (main): process --no-diff and --no-header
10369
10370 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10371 H.J. Lu <hongjiu.lu@intel.com>
10372
10373 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10374 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10375 wcsncmp-sse2.
10376 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10377 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10378 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10379 and __wcsncmp_sse2.
10380 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10381 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10382 AVX unaligned load is fast and vzeroupper is preferred.
10383 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10384 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10385 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10386 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10387 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10388 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10389 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10390 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10391 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10392 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10393 is undefined.
10394
10395 2018-06-01 Florian Weimer <fweimer@redhat.com>
10396
10397 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10398 configuring with --disable-multi-arch, building with
10399 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10400 Haswell-era CPU.
10401
10402 2018-06-01 Florian Weimer <fweimer@redhat.com>
10403
10404 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10405 results from building with “-march=x86-64 -mtune=generic
10406 -mfpmath=sse” and running on a Haswell-era CPU.
10407
10408 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10409
10410 [BZ #18473]
10411 * soft-fp/sqrttf2.c: Remove file.
10412 * soft-fp/sqrtdf2.c: Move to ....
10413 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10414 <shlib-compat.h>.
10415 (__sqrtdf2): Make conditional on
10416 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10417 symbol.
10418 * soft-fp/sqrtsf2.c: Move to ....
10419 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10420 <shlib-compat.h>.
10421 (__sqrtsf2): Make conditional on
10422 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10423 symbol.
10424 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10425 (gcc-double-routines): Remove sqrtdf2.
10426 (gcc-quad-routines): Remove sqrttf2.
10427 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10428 Do not filter out sqrtsf2 and sqrtdf2.
10429 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10430 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10431
10432 2018-06-01 Florian Weimer <fweimer@redhat.com>
10433
10434 * sysdeps/generic/libcidn.abilist: Remove file.
10435
10436 2018-06-01 Florian Weimer <fweimer@redhat.com>
10437
10438 [BZ #23236]
10439 * libio/strfile.h (struct _IO_str_fields): Rename members to
10440 discourage their use and add comment.
10441 (_IO_STR_DYNAMIC): Remove unused macro.
10442 * libio/strops.c (_IO_str_init_static_internal): Do not use
10443 callback pointers. Call malloc and free.
10444 (_IO_str_overflow): Do not use callback pointers. Call malloc
10445 and free.
10446 (enlarge_userbuf): Likewise.
10447 (_IO_str_finish): Call free.
10448 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10449 _allocate_buffer_unused.
10450 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10451 and free.
10452 (enlarge_userbuf): Likewise.
10453 (_IO_wstr_finish): Call free.
10454 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10455 _allocate_buffer_unused, _free_buffer_unused.
10456 * libio/memstream.c (__open_memstream): Likewise.
10457 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10458 * libio/wmemstream.c (open_wmemstream): Likewise.
10459
10460 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10461
10462 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10463 AMD Ryzen 7 1800X.
10464
10465 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10466
10467 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10468 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10469 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10470 New file.
10471 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10472 Likewise.
10473 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10474
10475 2018-05-29 Florian Weimer <fweimer@redhat.com>
10476
10477 * support/Makefile (libsupport-routines): Add
10478 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10479 xpthread_barrierattr_setpshared.
10480 * support/xpthread_barrierattr_destroy.c: New file.
10481 * support/xpthread_barrierattr_init.c: Likewise.
10482 * support/xpthread_barrierattr_setpshared.c: Likewise.
10483
10484 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10485
10486 [BZ #23206]
10487 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10488 _r_debug and update DT_DEBUG for debugger.
10489
10490 2018-05-29 Florian Weimer <fweimer@redhat.com>
10491
10492 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10493 (tst-strtod5i.out): Likewise.
10494
10495 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10496
10497 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10498 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10499 (sparc64-quad-routines): New variable. Moved from ....
10500 [$(subdir) = soft-fp] (sysdep_routines): Add
10501 $(sparc64-quad-routines). Moved from ....
10502 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10503 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10504 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10505 moved from ....
10506 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10507 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10508 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10509 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10510 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10511 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10512 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10513 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10514 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10515 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10516 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10517 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10518 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10519 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10520 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10521 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10522 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10523 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10524 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10525 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10526 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10527 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10528 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10529 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10530 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10531 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10532 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10533 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10534 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10535 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10536 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10537 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10538 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10539 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10540 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10541 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10542 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10543 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10544 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10545 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10546 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10547 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10548 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10549 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10550 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10551 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10552 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10553 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10554 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10555 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10556 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10557 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10558 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10559 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10560 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10561 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10562 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10563 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10564
10565 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10566 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10567 (sparc32-quad-routines): New variable. Moved from ....
10568 [$(subdir) = soft-fp] (sysdep_routines): Add
10569 $(sparc32-quad-routines). Moved from ....
10570 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10571 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10572 moved from ....
10573 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10574 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10575 * sysdeps/sparc/sparc32/q_add.c: ... here.
10576 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10577 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10578 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10579 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10580 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10581 * sysdeps/sparc/sparc32/q_div.c: ... here.
10582 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10583 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10584 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10585 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10586 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10587 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10588 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10589 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10590 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10591 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10592 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10593 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10594 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10595 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10596 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10597 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10598 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10599 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10600 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10601 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10602 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10603 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10604 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10605 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10606 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10607 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10608 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10609 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10610 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10611 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10612 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10613 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10614 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10615 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10616 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10617 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10618 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10619 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10620 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10621 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10622 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10623 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10624 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10625 * sysdeps/sparc/sparc32/q_util.c: ... here.
10626 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10627 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10628 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10629 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10630
10631 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10632 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10633
10634 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10635 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10636 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10637 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10638
10639 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10640
10641 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10642 powerpc/soft-fp.
10643 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10644 Likewise.
10645 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10646 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10647
10648 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10649
10650 [BZ #23171]
10651 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10652 double version.
10653
10654 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10655
10656 * sysdeps/sh/Implies: Remove sh/soft-fp.
10657 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10658 * sysdeps/sh/sfp-machine.h: ... here.
10659
10660 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10661
10662 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10663 (__mempcpy_erms): Skip zero length.
10664 (__memmove_erms): Likewise.
10665 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10666 (__memset_erms): Likewise.
10667
10668 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10669
10670 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10671 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10672 Add functions moved from ....
10673 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10674 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10675 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10676 from ....
10677 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10678 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10679 * sysdeps/alpha/e_sqrtl.c: ... here.
10680 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10681 * sysdeps/alpha/local-soft-fp.h: ... here.
10682 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10683 * sysdeps/alpha/ots_add.c: ... here.
10684 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10685 * sysdeps/alpha/ots_cmp.c: ... here.
10686 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10687 * sysdeps/alpha/ots_cmpe.c: ... here.
10688 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10689 * sysdeps/alpha/ots_cvtqux.c: ... here.
10690 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10691 * sysdeps/alpha/ots_cvtqx.c: ... here.
10692 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10693 * sysdeps/alpha/ots_cvttx.c: ... here.
10694 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10695 * sysdeps/alpha/ots_cvtxq.c: ... here.
10696 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10697 * sysdeps/alpha/ots_cvtxt.c: ... here.
10698 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10699 * sysdeps/alpha/ots_div.c: ... here.
10700 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10701 * sysdeps/alpha/ots_mul.c: ... here.
10702 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10703 * sysdeps/alpha/ots_nintxq.c: ... here.
10704 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10705 * sysdeps/alpha/ots_sub.c: ... here.
10706 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10707 * sysdeps/alpha/sfp-machine.h: ... here.
10708
10709 2018-05-23 Florian Weimer <fweimer@redhat.com>
10710
10711 [BZ #19728]
10712 [BZ #19729]
10713 [BZ #22247]
10714 CVE-2016-6261
10715 CVE-2016-6263
10716 CVE-2017-14062
10717 Switch to extern IDNA implementation (libidn2).
10718 * libidn: Remove subdirectory.
10719 * LICENSES: Do not mention licensing conditions for the removed
10720 libidn code.
10721 * config.h.in (HAVE_LIBIDN): Remove.
10722 * include/dlfcn.h (__libc_dlopen): Update comment.
10723 * include/idna.h: Remove file.
10724 * inet/Makefile (routines): Add idna.
10725 (tests-static, tests-internal): Add tst-idna_name_classify.
10726 (LOCALES): Generate locales for tests.
10727 (tst-idna_name_classify.out): Depend on generated locales.
10728 * inet/idna_name_classify.c: New file.
10729 * inet/tst-idna_name_classify.c: Likewise.
10730 * inet/net-internal.h (__idna_to_dns_encoding)
10731 (__idna_from_dns_encoding): Declare.
10732 * inet/net-internal.h (enum idna_name_classification): Define.
10733 (__idna_name_classify): Declare.
10734 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10735 __idna_from_dns_encoding.
10736 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10737 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10738 name as a fallback in case of encoding errors.
10739 (getnameinfo): Use DEPRECATED_NI_IDN.
10740 * inet/idna.c: New file.
10741 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10742 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10743 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10744 (modules-names): Add tst-no-libidn2.
10745 (extra-test-objs): Add tst-no-libidn2.os.
10746 (LDFLAGS-tst-no-libidn2.so): Set soname.
10747 (LOCALES): Set, and generate locales.
10748 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10749 (tst-resolv-ai_idn-latin1): Likewise.
10750 (tst-resolv-ai_idn-nolibidn2): Likewise.
10751 (tst-resolv-ai_idn.out): Depend on locales.
10752 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10753 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10754 tst-no-libidn2.so.
10755 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10756 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10757 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10758 * resolv/tst-resolv-ai_idn.c: New file.
10759 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10760 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10761 * resolv/tst-no-libidn2.c: Likewise.
10762 * support/support_format_addrinfo.c (format_ai_flags): Do not
10763 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10764 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10765 (gaih_inet): Call __idna_to_dns_encoding and
10766 __idna_from_dns_encoding, and use the original (punycode) name if
10767 __idna_from_dns_encoding fails due to an encoding error.
10768 (getaddrinfo): Use DEPRECATED_AI_IDN.
10769 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10770 * sysdeps/unix/inet/configure: Remove file.
10771 * sysdeps/unix/inet/configure.ac: Likewise.
10772
10773 2018-05-23 Florian Weimer <fweimer@redhat.com>
10774
10775 Implement allocate_once.
10776 * include/allocate_once.h: New file.
10777 * misc/allocate_once.c: Likewise.
10778 * misc/tst-allocate_once.c: Likewise.
10779 * misc/Makefile (routines): Add allocate_once.
10780 (tests-internal): Add tst-allocate_once.
10781 (generated): Add tst-allocate_once.mtrace,
10782 tst-allocate_once-mem.out.
10783 (tests-special): Add tst-allocate_once-mem.out.
10784 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10785 (tst-allocate_once-mem.out): Call mtrace.
10786 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10787
10788 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10789
10790 [BZ #23196]
10791 * string/test-memcpy.c (do_test1): New function.
10792 (test_main): Call it.
10793
10794 2018-05-23 Andreas Schwab <schwab@suse.de>
10795
10796 [BZ #23196]
10797 CVE-2018-11237
10798 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10799 (L(preloop_large)): Save initial destination pointer in %r11 and
10800 use it instead of %rax after the loop.
10801 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10802
10803 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10804
10805 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10806 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10807 -I../soft-fp. Moved from ....
10808 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10809 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10810 * sysdeps/aarch64/e_sqrtl.c: ... here.
10811 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10812 * sysdeps/aarch64/sfp-machine.h: ... here.
10813
10814 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10815 -Wmaybe-uninitialized around access to fq[0].
10816 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10817 Likewise.
10818
10819 [BZ #18471]
10820 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10821 aliases for non-libc case of versioned symbols.
10822 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10823 (llseek): Define as compat symbol if
10824 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10825 with link warning.
10826 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10827 Make into a compat symbol, disabled for minimum symbol version
10828 GLIBC_2.28 and later.
10829 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10830
10831 2018-05-22 Florian Weimer <fweimer@redhat.com>
10832
10833 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10834 not add -mpreferred-stack-boundary=4.
10835 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10836 (stack-align-test-flags): Likewise.
10837 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10838 Likewise.
10839 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10840 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10841 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10842 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10843 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10844 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10845 (CFLAGS-tst-align2.c): Likewise.
10846
10847 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10848
10849 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10850 (index_arch_Prefer_FSRM): Likewise.
10851 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10852 Also check Prefer_FSRM.
10853 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10854 Also return OPTIMIZE (erms) for Prefer_FSRM.
10855
10856 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10857
10858 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10859 (index_cpu_FSRM): Likewise.
10860 (reg_FSRM): Likewise.
10861
10862 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10863
10864 * math/gen-tgmath-tests.py: Import sys.
10865 (Tests.__init__): Initialize macros_seen.
10866 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10867 if requested to do so for this macro.
10868 (Tests.add_all_tests): Take argument for macro for which to
10869 generate tests.
10870 (Tests.check_macro_list): New function.
10871 (main): Handle check-list argument and argument specifying macro
10872 for which to generate tests.
10873 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10874 [PYTHON] (tgmath3-macro-tests): Likewise.
10875 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10876 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10877 not test-tgmath3.c.
10878 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10879 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10880 to CFLAGS.
10881 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10882 [PYTHON] ($(foreach
10883 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10884 rule.
10885 [PYTHON] (tests-special): Add
10886 $(objpfx)test-tgmath3-macro-list.out.
10887 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10888
10889 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10890 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10891 later.
10892
10893 [BZ #22639]
10894 * time/tzset.c (SECSPERDAY): Cast to time_t.
10895 * time/tst-y2039.c: New file.
10896 * time/Makefile (tests): Add tst-y2039.
10897
10898 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10899
10900 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10901 (PREFETCH_ONE_SET): Remove duplicate line.
10902
10903 2018-05-17 Florian Weimer <fweimer@redhat.com>
10904
10905 * sysdeps/generic/math-type-macros-double.h: Include
10906 <math-nan-payload-double.h> after <libm-alias-double.h>.
10907 * sysdeps/generic/math-type-macros-float.h: Include
10908 <math-nan-payload-float.h> after <libm-alias-float.h>.
10909 * sysdeps/generic/math-type-macros-float128.h: Include
10910 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10911 * sysdeps/generic/math-type-macros-ldouble.h: Include
10912 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10913
10914 2018-05-17 Andreas Schwab <schwab@suse.de>
10915
10916 * resolv/res_send.c (__res_context_send): Don't set errno when
10917 returing error after malloc failure.
10918
10919 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
10920
10921 * nptl/allocatestack.c (allocate_stack): Remove the
10922 !__ASSUME_PRIVATE_FUTEX paths.
10923 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
10924 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
10925 Likewise.
10926 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
10927 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10928 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10929 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10930 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
10931 !__ASSUME_PRIVATE_FUTEX path.
10932 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
10933 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
10934 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10935 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
10936 !__ASSUME_PRIVATE_FUTEX macros.
10937 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
10938 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
10939 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10940 * sysdeps/unix/sysv/linux/kernel-features.h
10941 (__ASSUME_PRIVATE_FUTEX): Removed.
10942
10943 2018-05-17 Joseph Myers <joseph@codesourcery.com>
10944
10945 * math/Makefile (libm-narrow-fns): Add div.
10946 (libm-test-funcs-narrow): Likewise.
10947 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
10948 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
10949 * math/gen-auto-libm-tests.c (test_functions): Add div.
10950 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
10951 (NARROW_DIV_ROUND_TO_ODD): Likewise.
10952 (NARROW_DIV_TRIVIAL): Likewise.
10953 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
10954 macro.
10955 (__ddivl): Likewise.
10956 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
10957 ddiv.
10958 (CFLAGS-nldbl-ddiv.c): New variable.
10959 (CFLAGS-nldbl-fdiv.c): Likewise.
10960 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10961 __nldbl_ddivl.
10962 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
10963 prototype.
10964 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
10965 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
10966 * math/auto-libm-test-in: Add tests of div.
10967 * math/auto-libm-test-out-narrow-div: New generated file.
10968 * math/libm-test-narrow-div.inc: New file.
10969 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
10970 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
10971 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
10972 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
10973 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
10974 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
10975 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
10976 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
10977 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
10978 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
10979 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
10980 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
10981 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
10982 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
10983 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
10984 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
10985 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
10986 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
10987 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10988 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
10989 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10990 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10991 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10992 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10993 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10994 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10995 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10996 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10997 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10998 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10999 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11000 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11001 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11002 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11003 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11004 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11005 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11006 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11007 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11008 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11009 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11010 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11011 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11012 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11013
11014 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11015
11016 [BZ #23178]
11017 * nscd/nscd-client.h (sendfileall): Remove prototype.
11018 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11019 (handle_request): Use writeall instead of sendfileall.
11020 * nscd/aicache.c (addhstaiX): Likewise.
11021 * nscd/grpcache.c (cache_addgr): Likewise.
11022 * nscd/hstcache.c (cache_addhst): Likewise.
11023 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11024 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11025 * nscd/pwdcache.c (cache_addpw): Likewise.
11026 * nscd/servicescache.c (cache_addserv): Likewise.
11027 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11028 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11029 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11030 Remove define.
11031
11032 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11033
11034 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11035 Include <string/strncat.c>.
11036 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11037 alias.
11038 (__GI___strncat): New hidden alias.
11039
11040 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11041
11042 * sysdeps/mips/mips32/libm-test-ulps: Update.
11043 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11044
11045 2018-05-16 Florian Weimer <fweimer@redhat.com>
11046
11047 * support/Makefile (libsupport-routines): Add support_quote_blob,
11048 support_test_compare_blob.
11049 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11050 * support/check.h (TEST_COMPARE_BLOB): Define.
11051 (support_test_compare_blob): Declare.
11052 * support/support.h (support_quote_blob): Declare.
11053 * support/support_quote_blob.c: New file.
11054 * support/support_test_compare_blob.c: Likewise.
11055 * support/tst-support_quote_blob.c: Likewise.
11056 * support/tst-test_compare_blob.c: Likewise.
11057
11058 2018-05-16 Florian Weimer <fweimer@redhat.com>
11059
11060 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11061 of <strtod_nan_double.h>.
11062 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11063 instead of SET_MANTISSA.
11064 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11065 of include <strtod_nan_float.h>.
11066 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11067 instead of <strtod_nan_ldouble.h>.
11068 * stdlib/strtod_nan_double.h: Move to ...
11069 * sysdeps/generic/math-nan-payload-double.h: ... here.
11070 (FLOAT): Remove definition.
11071 (SET_MANTISSA): Rename to ...
11072 (SET_NAN_PAYLOAD): ... this.
11073 * stdlib/strtod_nan_float.h: Move to ...
11074 * sysdeps/generic/math-nan-payload-float.h: ... here.
11075 (FLOAT): Remove definition.
11076 (SET_MANTISSA): Rename to ...
11077 (SET_NAN_PAYLOAD): ... this.
11078 * sysdeps/generic/math-type-macros-double.h: Include
11079 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11080 instead of <math-svid-compat.h>.
11081 * sysdeps/generic/math-type-macros-float.h: Include
11082 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11083 instead of <math-svid-compat.h>.
11084 * sysdeps/generic/math-type-macros-float128.h: Include
11085 <math-nan-payload-float128.h>.
11086 * sysdeps/generic/math-type-macros-ldouble.h: Include
11087 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11088 instead of <math-svid-compat.h>.
11089 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11090 check for definition.
11091 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11092 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11093 Include <ieee754_float128.h>.
11094 (FLOAT): Remove definition.
11095 (SET_MANTISSA): Rename to ...
11096 (SET_NAN_PAYLOAD): ... this.
11097 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11098 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11099 Do not include <float128_private.h>.
11100 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11101 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11102 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11103 (FLOAT): Remove definition.
11104 (SET_MANTISSA): Rename to ...
11105 (SET_NAN_PAYLOAD): ... this.
11106 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11107 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11108 (FLOAT): Remove definition.
11109 (SET_MANTISSA): Rename to ...
11110 (SET_NAN_PAYLOAD): ... this.
11111 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11112 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11113 (FLOAT): Remove definition.
11114 (SET_MANTISSA): Rename to ...
11115 (SET_NAN_PAYLOAD): ... this.
11116 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11117 of "../stdlib/strtod_nan_double.h".
11118 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11119 of "../stdlib/strtod_nan_float.h".
11120 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11121 instead of "../stdlib/strtod_nan_ldouble.h".
11122 * manual/arith.texi (Parsing of Floats): Adjust comment.
11123
11124 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11125
11126 * math/Makefile (libm-narrow-fns): Add mul.
11127 (libm-test-funcs-narrow): Likewise.
11128 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11129 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11130 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11131 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11132 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11133 (NARROW_MUL_TRIVIAL): Likewise.
11134 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11135 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11136 macro.
11137 (__dmull): Likewise.
11138 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11139 dmul.
11140 (CFLAGS-nldbl-dmul.c): New variable.
11141 (CFLAGS-nldbl-fmul.c): Likewise.
11142 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11143 __nldbl_dmull.
11144 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11145 prototype.
11146 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11147 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11148 * math/auto-libm-test-in: Add tests of mul.
11149 * math/auto-libm-test-out-narrow-mul: New generated file.
11150 * math/libm-test-narrow-mul.inc: New file.
11151 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11152 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11153 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11154 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11155 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11156 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11157 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11158 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11159 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11160 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11161 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11162 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11163 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11164 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11165 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11166 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11167 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11168 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11169 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11170 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11171 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11172 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11173 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11174 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11175 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11176 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11177 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11178 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11179 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11180 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11181 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11182 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11183 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11185 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11187 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11188 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11189 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11190 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11191 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11192 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11193 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11194 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11195
11196 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11197
11198 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11199 with *%eax in call.
11200
11201 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11202
11203 * sysdeps/i386/ldsodefs.h: Removed.
11204 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11205 * sysdeps/x86/ldsodefs.h: This.
11206 (La_i86_regs): New.
11207 (La_i86_retval): Likewise.
11208 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11209 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11210
11211 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11212
11213 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11214 unnecessary testl.
11215
11216 2018-05-13 Alan Modra <amodra@gmail.com>
11217
11218 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11219 R_PARISC_TLS_DTPOFF32 reloc addend.
11220
11221 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11222
11223 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11224 * math/math.h: Restrict the prototype definition for the functions
11225 issignaling(_Float128) and iszero(_Float128); and template
11226 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11227 __HAVE_FLOAT128_UNLIKE_LDBL.
11228 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11229 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11230 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11231 __f128() constants; define the type _Float128 as long double;
11232 and reuse long double in __CFLOAT128.
11233
11234 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11235
11236 * sysdeps/generic/math_private.h: Do not include
11237 <math-barriers.h>.
11238 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11239 <math_private.h>.
11240 * math/fromfp.h: Include <math-barriers.h>.
11241 * math/math-narrow.h: Likewise.
11242 * math/s_nextafter.c: Likewise.
11243 * math/s_nexttowardf.c: Likewise.
11244 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11245 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11246 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11247 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11248 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11249 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11250 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11251 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11252 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11253 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11254 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11255 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11256 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11257 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11258 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11259 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11260 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11261 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11262 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11263 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11264 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11265 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11266 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11267 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11268 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11269 * sysdeps/ieee754/k_standardl.c: Likewise.
11270 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11271 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11272 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11273 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11274 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11275 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11276 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11277 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11278 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11279 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11280 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11281 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11282 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11283 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11284 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11285 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11286 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11287 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11288 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11289 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11290 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11291 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11292
11293 2018-05-11 Florian Weimer <fweimer@redhat.com>
11294
11295 Use 64-bit epoch values in the time zone file parser.
11296 * include/time.h (internal_time_t): Define.
11297 (__tzfile_compute): Use it.
11298 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11299 member.
11300 (transitions): Switch to internal_time_t.
11301 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11302 types.
11303 (__tzfile_compute): Use internal_time_t for timer argument. Check
11304 for truncation before calling __offtime.
11305
11306 2018-05-11 Florian Weimer <fweimer@redhat.com>
11307
11308 [BZ #23166]
11309 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11310 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11311 Likewise.
11312 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11313 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11314 export without --enable-obsolete-rpc.
11315 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11316 symbol. This should not have been exported, ever.
11317
11318 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11319
11320 [BZ #23152]
11321 * localedata/locales/gd_GB (abmon): Fix typo in May:
11322 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11323
11324 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11325
11326 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11327 Use multiple registers to copy data in loop tail.
11328
11329 * sysdeps/aarch64/multiarch/memmove_falkor.S
11330 (__memmove_falkor): Use multiple registers to move data in
11331 loop tail.
11332
11333 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11334
11335 * math/math-underflow.h: New file.
11336 * sysdeps/generic/math_private.h: Do not include <float.h>.
11337 (fabs_tg): Remove macro. Moved to math-underflow.h.
11338 (min_of_type_f): Likewise.
11339 (min_of_type_): Likewise.
11340 (min_of_type_l): Likewise.
11341 (min_of_type_f128): Likewise.
11342 (min_of_type): Likewise.
11343 (math_check_force_underflow): Likewise.
11344 (math_check_force_underflow_nonneg): Likewise.
11345 (math_check_force_underflow_complex): Likewise.
11346 * math/e_exp2_template.c: Include <math-underflow.h>.
11347 * math/k_casinh_template.c: Likewise.
11348 * math/s_catan_template.c: Likewise.
11349 * math/s_catanh_template.c: Likewise.
11350 * math/s_ccosh_template.c: Likewise.
11351 * math/s_cexp_template.c: Likewise.
11352 * math/s_clog10_template.c: Likewise.
11353 * math/s_clog_template.c: Likewise.
11354 * math/s_csin_template.c: Likewise.
11355 * math/s_csinh_template.c: Likewise.
11356 * math/s_csqrt_template.c: Likewise.
11357 * math/s_ctan_template.c: Likewise.
11358 * math/s_ctanh_template.c: Likewise.
11359 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11360 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11361 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11362 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11363 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11364 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11365 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11366 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11367 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11368 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11369 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11370 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11371 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11372 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11373 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11374 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11375 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11376 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11377 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11378 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11379 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11380 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11381 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11382 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11383 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11384 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11385 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11386 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11387 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11388 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11389 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11390 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11391 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11392 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11393 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11394 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11395 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11396 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11397 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11398 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11399 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11400 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11401 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11402 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11403 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11404 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11405 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11406 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11407 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11408 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11409 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11410 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11411 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11412 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11413 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11414 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11415 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11416 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11417 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11418 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11419 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11420 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11421 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11422 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11423 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11424 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11425 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11426 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11427 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11428 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11429 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11430 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11431 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11432 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11433 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11434 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11435 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11436 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11437 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11438 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11439 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11440 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11441 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11442 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11443
11444 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11445
11446 * sysdeps/generic/math-barriers.h: New file.
11447 * sysdeps/generic/math_private.h [!math_opt_barrier]
11448 (math_opt_barrier): Move to math-barriers.h.
11449 [!math_opt_barrier] (math_force_eval): Likewise.
11450 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11451 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11452 math-barriers.h.
11453 (math_force_eval): Likewise.
11454 * sysdeps/alpha/fpu/math-barriers.h: New file.
11455 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11456 math-barriers.h.
11457 (math_force_eval): Likewise.
11458 * sysdeps/x86/fpu/math-barriers.h: New file.
11459 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11460 math-barriers.h.
11461 (math_force_eval): Likewise.
11462 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11463 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11464 multiple-include guard for rename.
11465 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11466 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11467 math-barriers.h.
11468 (math_force_eval): Likewise.
11469
11470 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11471
11472 [BZ #22786]
11473 CVE-2018-11236
11474 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11475 computation.
11476 * stdlib/Makefile (test-bz22786): New test.
11477 * stdlib/test-bz22786.c: New test.
11478
11479 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11480
11481 * include/math-narrow-eval.h: New file. Contents moved from ....
11482 * sysdeps/generic/math_private.h: ... here.
11483 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11484 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11485 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11486 * stdlib/strtod_l.c: Likewise.
11487 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11488 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11489 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11490 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11491 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11492 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11493 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11494 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11495 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11496 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11497 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11498 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11499 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11500 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11501 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11502 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11503 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11504 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11505 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11506 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11507 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11508 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11509 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11510 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11511 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11512 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11513 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11514 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11515 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11516
11517 2018-05-08 Andreas Schwab <schwab@suse.de>
11518
11519 * sysdeps/nptl/internaltypes.h: Fix comment.
11520
11521 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11522
11523 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11524 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11525 hidden.
11526
11527 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11528
11529 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11530 of I into loop header.
11531 * benchtests/bench-memmove-walk.c
11532 (test_main): Likewise.
11533
11534 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11535
11536 Revert:
11537 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11538 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11539
11540 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11541
11542 [BZ #20419]
11543 * elf/dl-load.c (open_verify): Fix stack overflow.
11544 * elf/Makefile (tst-big-note): New test.
11545 * elf/tst-big-note-lib.S: New.
11546 * elf/tst-big-note.c: New.
11547
11548 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11549
11550 * scripts/abilist.awk: Ignore absolute symbols.
11551 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11552 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11553 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11554 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11555 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11556 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11557 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11558 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11559 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11560 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11561 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11562 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11563 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11564 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11565 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11566 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11567 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11568 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11569 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11570 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11571 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11572 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11573 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11574 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11575 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11576 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11577 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11578 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11579 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11580 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11581 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11582 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11583 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11584 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11585 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11586 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11587 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11588 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11589 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11590 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11591 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11592 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11593 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11594 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11595 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11596 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11597 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11598 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11599 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11600 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11601 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11602 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11603 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11604 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11605 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11606 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11607 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11608 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11609 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11610 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11611 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11612 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11613 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11614 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11615 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11616 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11617 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11618 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11619 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11620 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11621 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11622 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11623 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11624 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11625 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11626 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11627 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11628 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11629 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11630 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11631 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11632 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11633 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11634 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11635 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11636 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11637 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11638 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11639 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11640 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11641 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11642 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11643 Likewise.
11644 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11647 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11648 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11649 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11650 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11651 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11657 Likewise.
11658 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11666 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11667 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11669 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11670 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11680 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11685 Likewise.
11686 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11706 Likewise.
11707 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11712 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11713 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11718 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11719 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11720 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11721 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11722 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11724 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11725 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11726 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11727 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11728 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11729 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11730 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11736 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11737 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11738 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11739 Likewise.
11740 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11741 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11742 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11743 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11744 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11745 Likewise.
11746 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11747 Likewise.
11748 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11750 Likewise.
11751 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11753 Likewise.
11754 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11755 Likewise.
11756 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11759 Likewise.
11760 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11761 Likewise.
11762 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11763 Likewise.
11764 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11767 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11768 Likewise.
11769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11770 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11771 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11772 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11773 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11775 Likewise.
11776 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11777 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11778 Likewise.
11779 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11780 Likewise.
11781 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11782 Likewise.
11783 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11784 Likewise.
11785 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11786 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11788 Likewise.
11789 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11790 Likewise.
11791 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11792 Likewise.
11793 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11794 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11796 Likewise.
11797 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11798 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11799 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11800 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11801 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11803 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11804 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11805 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11806 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11807 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11808 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11809 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11810 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11811 Likewise.
11812 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11813 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11814 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11815 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11816 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11817 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11818 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11819 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11820 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11821 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11822 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11823 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11824 Likewise.
11825 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11826 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11827 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11828 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11829 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11830 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11831 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11832 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11833 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11834 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11835 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11836 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11837 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11838 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11839 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11840 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11841 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11842 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11843 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11844 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11845 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11846 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11847 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11848 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11849 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11850 Likewise.
11851 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11852 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11853 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11854 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11855 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11856 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11857 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11858 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11859 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11860 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11861 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11862 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11863 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11864 Likewise.
11865 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11866 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11867 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11868 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11869 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11870 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11871 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11872 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11873 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11874 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11875 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11876 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11877 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11878 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11879 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11880 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11881 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11882 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11883 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11884 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11885 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11886 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11887 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11888 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11889 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11890 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11891 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11892 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11893 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11894 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11895 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11896 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11897 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11898 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11899 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11900 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11901 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11902 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11903
11904 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11905
11906 [BZ #23137]
11907 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11908 Use atomic_load_acquire to load __tid.
11909
11910 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11911
11912 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11913 Restore the pointer into %rdx, after syscall and use %rdx,
11914 instead of %rsi, to restore context.
11915
11916 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11917
11918 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
11919 Pop the pointer into %rdx after syscall and use %rdx, instead
11920 of %rsi, to restore context.
11921
11922 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11923
11924 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
11925 handlers after setjmp.
11926 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
11927 defined.
11928 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
11929 <libc-pointer-arith.h>.
11930 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
11931 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
11932 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
11933 _JUMP_BUF_SIGSET_BITS_PER_WORD.
11934 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
11935 * sysdeps/x86/__longjmp_cancel.S: New file.
11936 * sysdeps/x86/longjmp.c: Likewise.
11937 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
11938
11939 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11940
11941 * NEWS: Add ustat.h deprecation entry.
11942 * bits/ustat.h: Remove file.
11943 * misc/sys/ustat.h: Likewise.
11944 * misc/ustat.h: Likewise.
11945 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
11946 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
11947 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
11948 compatibility mode.
11949 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
11950 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
11951 generic Linux implementation.
11952
11953 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11954
11955 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
11956 * math/w_expl_compat.c: Likewise.
11957 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
11958
11959 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11960
11961 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11962
11963 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11964
11965 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
11966 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
11967 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
11968 Remove.
11969 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
11970 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11971 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11972 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
11973 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
11974 and SYSCALL_LL64.
11975
11976 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11977
11978 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
11979
11980 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
11981 * math/w_asin_template.c: Likewise.
11982 * math/w_atanh_template.c: Likewise.
11983
11984 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11985
11986 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
11987 to powerpc/powerpc64/be for big-endian.
11988 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
11989 little-endian.
11990
11991 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
11992 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
11993 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
11994 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
11995 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
11996 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
11997 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
11998 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
11999 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12000 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12001 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12002 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12003 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12004 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12005 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12006 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12007 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12008 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12009 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12010 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12011 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12012 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12013 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12014 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12015 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12016 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12017 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12018 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12019 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12020 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12021 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12022 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12023
12024 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12025 adjusted to imply powerpc64 and older processors on powerpc64/be.
12026 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12027 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12028 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12029 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12030 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12031 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12032 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12033 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12034 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12035 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12036 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12037 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12038 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12039 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12040 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12041 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12042 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12043 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12044 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12045 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12046 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12047 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12048 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12049 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12050 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12051 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12052 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12053 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12054 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12055 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12056 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12057
12058 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12059 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12060 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12061 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12062
12063 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12064 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12065 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12066 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12067
12068 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12069 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12070 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12071 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12072 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12073 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12074 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12075 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12076 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12077 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12078 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12079
12080 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12081 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12082 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12083 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12084 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12085 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12086 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12087 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12088 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12089 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12090 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12091
12092 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12093 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12094 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12095 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12096 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12097 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12098 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12099 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12100 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12101 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12102 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12103 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12104
12105 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12106 and adjusted to imply olders processors.
12107 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12108 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12109 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12110 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12111 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12112 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12113 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12114 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12115 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12116 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12117 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12118
12119 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12120 powerpc64/le.
12121 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12122 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12123
12124 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12125 powerpc64le.
12126 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12127 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12128
12129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12130 powerpc64/be.
12131 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12132 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12133 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12134
12135 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12136 powerpc64 and adjusted.
12137 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12138 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12139 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12140 Likewise.
12141
12142 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12143
12144 * sysdeps/tile: Remove.
12145 * sysdeps/unix/sysv/linux/tile: Likewise.
12146 * README (tilegx-*-linux-gnu): Remove from list of supported
12147 configurations.
12148 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12149 contribution of support for generic Linux kernel syscall
12150 interface.
12151 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12152 tilegx configurations.
12153 (Config.install_linux_headers): Do not handle tile.
12154 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12155 in comment.
12156 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12157 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12158 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12159 conditional undefine and redefine.
12160 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12161 in comment.
12162 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12163 conditional undefine and redefine.
12164
12165 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12166
12167 * signal/tst-sigaction.c: New file to test BZ #23069.
12168 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12169
12170 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12171
12172 [BZ #22766]
12173 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12174 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12175 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12176 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12177
12178 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12179
12180 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12181 _DIRENT_MATCHES_DIRENT64 is not defined.
12182 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12183 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12184 is defined.
12185 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12186 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12187
12188 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12189
12190 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12191 version to GCC 8 branch.
12192
12193 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12194
12195 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12196 (check_no_hidden): Use type of original function when declaring
12197 alias.
12198
12199 * sysdeps/unix/sysv/linux/sys/ptrace.h
12200 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12201 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12202 (struct __ptrace_seccomp_metadata): New type.
12203 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12204 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12205 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12206 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12207 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12208 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12209 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12210 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12211 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12212 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12213 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12214 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12215 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12216 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12217 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12218 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12219
12220 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12221
12222 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12223 defined.
12224 * dirent/versionsort.c (versionsort): Likewise.
12225 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12226 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12227 * dirent/versionsort64.c (versionsort64): Likewise.
12228 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12229 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12230 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12231 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12232 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12233 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12234 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12235 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12236 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12237 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12238 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12240 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12241 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12242
12243 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12244
12245 * elf/elf.h (NT_PPC_PKEY): New macro.
12246
12247 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12248
12249 [BZ #23094]
12250 * localedata/locales/hr_HR: fix thousands_sep and
12251 mon_thousands_sep
12252
12253 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12254
12255 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12256 (XTABS): Define to TAB3.
12257
12258 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12259
12260 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12261
12262 * dirent/scandir-tail-common.c: New file.
12263 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12264 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12265 * dirent/scandir.c: Use scandir-tail-common.c.
12266 * dirent/scandirat.c: Likewise.
12267 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12268 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12269 if _DIRENT_MATCHES_DIRENT64 is defined.
12270 * dirent/scandirat64.c (scandirat64): Likewise.
12271 * include/dirent.h (__scandir_tail): Only define iff
12272 _DIRENT_MATCHES_DIRENT64 is not defined.
12273 (__scandir64_tail): Define regardless.
12274 (__scandirat, scandirat64): Remove libc_hidden_proto.
12275 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12276 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12277 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12278 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12279 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12280 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12281 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12282
12283 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12284
12285 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12286 New macro.
12287 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12288 Increase to 24.
12289 (_dl_aarch64_cap_flags): Add asimdfhm.
12290
12291 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12292
12293 * sysdeps/nios2/libm-test-ulps: Update.
12294
12295 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12296
12297 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12298 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12299
12300 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12301 requirements.
12302 (_DIRENT_MATCHES_DIRENT64): Undef
12303 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12304 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12305 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12306 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12307 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12308 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12309 use getdents64 syscalls as base.
12310 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12311 symbol if required.
12312 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12313 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12314 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12315 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12316 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12317 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12318 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12319 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12320 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12321 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12322 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12323
12324 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12325
12326 * scripts/test_printers_common.py (init_test): Disable lock elision.
12327
12328 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12329
12330 * math/test-tgmath.c (count_double, count_float,
12331 count_ldouble, count_cdouble, count_cfloat,
12332 count_cldouble): Use volatile int.
12333
12334 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12335
12336 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12337 (conformtest-xfail-conds): Add i386-gnu.
12338 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12339 i386-gnu.
12340 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12341 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12342 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12343 msqid_ds.msg_lrpid): Likewise.
12344 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12345 Likewise.
12346 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12347 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12348 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12349 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12350 unsigned int.
12351 (struct statvfs64): Likewise.
12352 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12353 Likewise.
12354 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12355 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12356 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12357 instead of wait_queue.
12358 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12359 instead of vm_area_struct.
12360 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12361 struct sched_param definition to it.
12362 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12363 * bits/types/struct_sched_param.h: New file.
12364 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12365 <bits/types/struct_sched_param.h> instead of <sched.h>.
12366 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12367 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12368 generic version but include <bits/pthreadtypes.h> to make struct
12369 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12370 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12371 non-compliant.
12372 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12373 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12374 [__USE_XOPEN] (OFDEL): New macro.
12375 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12376 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12377 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12378 prototypes.
12379 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12380 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12381 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12382 non-compliant.
12383 * sysdeps/i386/sys/ucontext.h: Likewise.
12384 * sysdeps/m68k/sys/ucontext.h: Likewise.
12385 * sysdeps/mips/sys/ucontext.h: Likewise.
12386 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12387 * sysdeps/mach/hurd/i386/Makefile
12388 (test-xfail-POSIX/fcntl.h/conform): Add.
12389 (test-xfail-POSIX/signal.h/conform): Add.
12390 (test-xfail-POSIX/semaphore.h/conform): Add.
12391 (test-xfail-POSIX/regex.h/conform): Add.
12392 (test-xfail-POSIX/aio.h/conform): Add.
12393 (test-xfail-POSIX/mqueue.h/conform): Add.
12394 (test-xfail-POSIX/sys/types.h/conform): Add.
12395 (test-xfail-UNIX98/fcntl.h/conform): Add.
12396 (test-xfail-UNIX98/netdb.h/conform): Add.
12397 (test-xfail-UNIX98/signal.h/conform): Add.
12398 (test-xfail-UNIX98/semaphore.h/conform): Add.
12399 (test-xfail-UNIX98/regex.h/conform): Add.
12400 (test-xfail-UNIX98/aio.h/conform): Add.
12401 (test-xfail-UNIX98/ftw.h/conform): Add.
12402 (test-xfail-UNIX98/mqueue.h/conform): Add.
12403 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12404 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12405 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12406 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12407 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12408 (test-xfail-UNIX98/sys/types.h/conform): Add.
12409 (test-xfail-UNIX98/stdlib.h/conform): Add.
12410 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12411 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12412 (test-xfail-POSIX2008/netdb.h/conform): Add.
12413 (test-xfail-POSIX2008/signal.h/conform): Add.
12414 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12415 (test-xfail-POSIX2008/regex.h/conform): Add.
12416 (test-xfail-POSIX2008/aio.h/conform): Add.
12417 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12418 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12419 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12420 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12421 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12422 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12423 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12424 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12425 (test-xfail-XOPEN2K/signal.h/conform): Add.
12426 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12427 (test-xfail-XOPEN2K/regex.h/conform): Add.
12428 (test-xfail-XOPEN2K/aio.h/conform): Add.
12429 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12430 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12431 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12432 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12433 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12434 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12435 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12436 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12437 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12438 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12439 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12440 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12441 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12442 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12443 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12444 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12445 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12446 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12447 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12448 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12449 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12450 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12451 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12452 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12453 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12454 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12455 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12456 i386-gnu.
12457 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12458 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12459
12460 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12461
12462 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12463 --enable-obsolete for powerpc-linux-gnuspe.
12464
12465 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12466
12467 * conform/data/sys/un.h-data: Allow sun_ prefix.
12468 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12469 prototypes.
12470 * sysdeps/mach/include/mach.h: Likewise.
12471 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12472 * sysdeps/mach/include/mach_error.h: Likewise.
12473
12474 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12475
12476 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12477 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12478 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12479 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12480
12481 2018-04-16 Andreas Schwab <schwab@suse.de>
12482
12483 [BZ #19527]
12484 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12485
12486 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12487
12488 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12489 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12490
12491 2018-04-12 DJ Delorie <dj@redhat.com>
12492
12493 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12494 version to 4.16.
12495
12496 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12497
12498 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12499 (struct kernel_sigaction): Use the same definition on 31bit as is used
12500 on 64bit.
12501
12502 2018-04-09 Florian Weimer <fweimer@redhat.com>
12503
12504 [BZ #23037]
12505 * resolv/res_send.c (send_dg): Use designated initializers instead
12506 of assignment to zero-initialize other fields of struct mmsghdr.
12507
12508 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12509
12510 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12511 __READDIR_ALIAS): Undefine after usage.
12512 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12513 __READDIR_R_ALIAS): Likewise.
12514 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12515 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12516 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12517 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12518 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12519 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12520 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12521 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12522 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12523 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12524 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12525 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12526 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12527 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12528 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12529 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12530 * sysdeps/unix/sysv/linux/readdir.c: New file.
12531 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12532 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12533 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12534
12535 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12536
12537 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12538
12539 * manual/charset.texi (Converting a Character): Fix typo.
12540
12541 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12542
12543 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12544
12545 * sysdeps/arm/libm-test-ulps: Update.
12546
12547 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12548 as base implementation.
12549 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12550 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12551 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12552 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12553 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12554 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12555 remove unrequired definitions and update comments.
12556 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12557 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12558 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12559 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12560 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12561 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12562 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12563 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12564 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12565 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12566 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12567 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12568 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12569 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12570 and RESET_SA_RESTORER hooks.
12571
12572 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12573
12574 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12575
12576 2018-04-05 Florian Weimer <fweimer@redhat.com>
12577
12578 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12579 integer overflow, memory leak on error, and indeterminate errno
12580 value. Add a null wide character to terminate the result string.
12581 * manual/charset.texi (Converting a Character): Mention embedded
12582 null bytes in the mbrtowc input string. Explain what happens in
12583 the -2 result case. Do not claim that mbrtowc is simple or
12584 obvious to use. Adjust the description of the code example. Use
12585 @code, not @var, for concrete variables.
12586
12587 2018-04-05 Florian Weimer <fweimer@redhat.com>
12588
12589 * manual/examples/mbstouwcs.c: New file.
12590 * manual/charset.texi (Converting a Character): Include it.
12591
12592 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12593
12594 * include/dirent.h (dirfd): Add hidden proto.
12595 * dirent/dirfd.c (dirfd): Add hidden def.
12596 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12597 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12598
12599 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12600
12601 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12602 sin, cos and sincos to 1 ULP.
12603
12604 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12605
12606 [BZ #19818]
12607 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12608 symbols.
12609 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12610 * elf/tst-absolute-sym.c: New file.
12611 * elf/tst-absolute-sym-lib.c: New file.
12612 * elf/tst-absolute-sym-lib.lds: New file.
12613 * elf/Makefile (tests): Add `tst-absolute-sym'.
12614 (modules-names): Add `tst-absolute-sym-lib'.
12615 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12616 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12617 ($(objpfx)tst-absolute-sym): New dependency.
12618
12619 [BZ #19818]
12620 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12621 parameter.
12622 (SYMBOL_ADDRESS): New macro.
12623 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12624 SYMBOL_ADDRESS for symbol address calculation.
12625 * elf/dl-runtime.c (_dl_fixup): Likewise.
12626 (_dl_profile_fixup): Likewise.
12627 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12628 * elf/rtld.c (dl_main): Likewise.
12629 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12630 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12631 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12632 (elf_machine_rela): Likewise.
12633 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12634 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12635 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12636 (elf_machine_rela): Likewise.
12637 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12638 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12639 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12640 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12641 Likewise.
12642 (elf_machine_reloc): Likewise.
12643 (elf_machine_got_rel): Likewise.
12644 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12645 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12646 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12647 Likewise.
12648 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12649 Likewise.
12650 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12651 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12652 Likewise.
12653 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12654 Likewise.
12655 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12656 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12657 Likewise.
12658 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12659 Likewise.
12660 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12661 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12662
12663 2018-04-04 Zack Weinberg <zackw@panix.com>
12664
12665 * sysdeps/generic/internal-signals.h: Include signal.h,
12666 sigsetops.h, and stdbool.h.
12667 (__libc_signal_block_all): Actually block all signals.
12668 (__libc_signal_block_app): Likewise.
12669 (__libc_signal_restore_set): Actually restore the signal mask.
12670
12671 2018-04-04 Florian Weimer <fweimer@redhat.com>
12672
12673 inet: Actually build and run tst-deadline.
12674 * inet/Makefile (tests-internal): Add tst-deadline and do not
12675 overwrite the variable.
12676 (tests-static-internal): Remove variable.
12677
12678 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12679
12680 [BZ #22947]
12681 * bits/uio-ext.h (RWF_APPEND): New.
12682 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12683 * manual/llio.texi: Document RWF_APPEND.
12684 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12685 (RWF_SUPPORTED): Add RWF_APPEND.
12686
12687 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12688
12689 [BZ #22391]
12690 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12691 check for internal nptl signals.
12692 * nptl/sigaction.c (__sigaction): Likewise.
12693 * signal/sigaddset.c (sigaddset): Likewise.
12694 * signal/sigdelset.c (sigdelset): Likewise.
12695 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12696 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12697 value.
12698 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12699 to filter out internal nptl signals.
12700 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12701 also check realtime signals using standard macros.
12702 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12703 __is_internal_signal, __libc_signal_block_all,
12704 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12705 * sysdeps/nptl/sigfillset.c: Remove file.
12706 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12707 Change return to bool.
12708 (__clear_internal_signals): Remove SIGTIMER clean since it is
12709 equal to SIGCANEL on Linux.
12710 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12711 signal set was constructed using standard functions.
12712
12713 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12714
12715 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12716 ifname is too long.
12717 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12718 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12719 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12720 hidden def.
12721 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12722 * signal/sigaddset.c: Include <sigsetopts.h>.
12723 * signal/sigdelset.c: Likewise.
12724
12725 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12726
12727 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12728 (__cos): Likewise.
12729 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12730 logic as sin and cos.
12731
12732 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12733
12734 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12735 inputs. Return correct sign.
12736 (do_sincos): Remove small input check before do_sin, let do_sin set
12737 the sign.
12738 (__sin): Likewise.
12739 (__cos): Likewise.
12740
12741 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12742
12743 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12744 (do_cos_slow): Likewise.
12745 (do_sin_slow): Likewise.
12746 (reduce_and_compute): Likewise.
12747 (slow): Likewise.
12748 (slow1): Likewise.
12749 (slow2): Likewise.
12750 (sloww): Likewise.
12751 (sloww1): Likewise.
12752 (sloww2): Likewise.
12753 (bslow): Likewise.
12754 (bslow1): Likewise.
12755 (bslow2): Likewise.
12756 (cslow2): Likewise.
12757
12758 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12759
12760 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12761 (do_cos): Remove corp parameter and calculations.
12762 (do_sin): Likewise.
12763 (do_sincos): Remove cor variable.
12764 (__sin): Use do_sincos for huge inputs.
12765 (__cos): Likewise.
12766 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12767 (reduce_and_compute_sincos): Remove unused function.
12768
12769 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12770
12771 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12772 reduce_sincos, improve accuracy to 136 bits.
12773 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12774 (__sin): Use improved reduction and simplified do_sincos calculation.
12775 (__cos): Likewise.
12776 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12777
12778 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12779
12780 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12781 (do_sincos_2): Likewise.
12782 (__sin): Remove middle range reduction case.
12783 (__cos): Likewise.
12784 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12785 reduction case.
12786
12787 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12788
12789 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12790 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12791 inputs.
12792 (__cos): Likewise.
12793 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12794
12795 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12796
12797 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12798 version to 4.16
12799
12800 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12801
12802 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12803 Remove definitions.
12804 (opendir_oflags): Use O_DIRECTORY regardless.
12805 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12806 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12807
12808 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12809
12810 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12811 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12812 macros.
12813 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12814 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12815 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12816 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12817 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12818 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12819
12820 * htl/Makefile: Bump licence to LGPL 2.1+.
12821 * htl/alloca_cutoff.c: Likewise.
12822 * htl/cthreads-compat.c: Likewise.
12823 * htl/lockfile.c: Likewise.
12824 * htl/pt-alloc.c: Likewise.
12825 * htl/pt-cancel.c: Likewise.
12826 * htl/pt-cleanup.c: Likewise.
12827 * htl/pt-create.c: Likewise.
12828 * htl/pt-dealloc.c: Likewise.
12829 * htl/pt-detach.c: Likewise.
12830 * htl/pt-exit.c: Likewise.
12831 * htl/pt-getattr.c: Likewise.
12832 * htl/pt-initialize.c: Likewise.
12833 * htl/pt-internal.h: Likewise.
12834 * htl/pt-join.c: Likewise.
12835 * htl/pt-self.c: Likewise.
12836 * htl/pt-setcancelstate.c: Likewise.
12837 * htl/pt-setcanceltype.c: Likewise.
12838 * htl/pt-sigmask.c: Likewise.
12839 * htl/pt-spin-inlines.c: Likewise.
12840 * htl/pt-testcancel.c: Likewise.
12841 * htl/pt-yield.c: Likewise.
12842 * htl/tests/test-1.c: Likewise.
12843 * htl/tests/test-10.c: Likewise.
12844 * htl/tests/test-11.c: Likewise.
12845 * htl/tests/test-12.c: Likewise.
12846 * htl/tests/test-13.c: Likewise.
12847 * htl/tests/test-14.c: Likewise.
12848 * htl/tests/test-15.c: Likewise.
12849 * htl/tests/test-16.c: Likewise.
12850 * htl/tests/test-17.c: Likewise.
12851 * htl/tests/test-2.c: Likewise.
12852 * htl/tests/test-3.c: Likewise.
12853 * htl/tests/test-4.c: Likewise.
12854 * htl/tests/test-5.c: Likewise.
12855 * htl/tests/test-6.c: Likewise.
12856 * htl/tests/test-7.c: Likewise.
12857 * htl/tests/test-8.c: Likewise.
12858 * htl/tests/test-9.c: Likewise.
12859 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12860 * sysdeps/htl/bits/cancelation.h: Likewise.
12861 * sysdeps/htl/bits/pthread-np.h: Likewise.
12862 * sysdeps/htl/bits/pthread.h: Likewise.
12863 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12864 * sysdeps/htl/bits/semaphore.h: Likewise.
12865 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12866 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12867 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12868 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12869 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12870 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12871 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12872 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12873 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12874 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12875 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12876 * sysdeps/htl/old_pt-atfork.c: Likewise.
12877 * sysdeps/htl/pt-atfork.c: Likewise.
12878 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12879 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12880 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12881 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12882 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12883 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12884 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12885 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12886 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12887 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12888 * sysdeps/htl/pt-attr-init.c: Likewise.
12889 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12890 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12891 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12892 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12893 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12894 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12895 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12896 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12897 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12898 * sysdeps/htl/pt-attr.c: Likewise.
12899 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12900 * sysdeps/htl/pt-barrier-init.c: Likewise.
12901 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12902 * sysdeps/htl/pt-barrier.c: Likewise.
12903 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12904 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12905 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12906 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12907 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12908 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12909 * sysdeps/htl/pt-cond-init.c: Likewise.
12910 * sysdeps/htl/pt-cond-signal.c: Likewise.
12911 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12912 * sysdeps/htl/pt-cond-wait.c: Likewise.
12913 * sysdeps/htl/pt-cond.c: Likewise.
12914 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12915 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12916 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12917 * sysdeps/htl/pt-condattr-init.c: Likewise.
12918 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
12919 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
12920 * sysdeps/htl/pt-destroy-specific.c: Likewise.
12921 * sysdeps/htl/pt-equal.c: Likewise.
12922 * sysdeps/htl/pt-getconcurrency.c: Likewise.
12923 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
12924 * sysdeps/htl/pt-getschedparam.c: Likewise.
12925 * sysdeps/htl/pt-getspecific.c: Likewise.
12926 * sysdeps/htl/pt-init-specific.c: Likewise.
12927 * sysdeps/htl/pt-key-create.c: Likewise.
12928 * sysdeps/htl/pt-key-delete.c: Likewise.
12929 * sysdeps/htl/pt-key.h: Likewise.
12930 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
12931 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
12932 * sysdeps/htl/pt-mutex-init.c: Likewise.
12933 * sysdeps/htl/pt-mutex-lock.c: Likewise.
12934 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
12935 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
12936 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
12937 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
12938 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
12939 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
12940 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
12941 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
12942 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
12943 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
12944 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
12945 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
12946 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
12947 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
12948 * sysdeps/htl/pt-mutexattr.c: Likewise.
12949 * sysdeps/htl/pt-once.c: Likewise.
12950 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
12951 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
12952 * sysdeps/htl/pt-rwlock-init.c: Likewise.
12953 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
12954 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
12955 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
12956 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
12957 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
12958 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
12959 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
12960 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
12961 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
12962 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
12963 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
12964 * sysdeps/htl/pt-setconcurrency.c: Likewise.
12965 * sysdeps/htl/pt-setschedparam.c: Likewise.
12966 * sysdeps/htl/pt-setschedprio.c: Likewise.
12967 * sysdeps/htl/pt-setspecific.c: Likewise.
12968 * sysdeps/htl/pt-spin.c: Likewise.
12969 * sysdeps/htl/pt-startup.c: Likewise.
12970 * sysdeps/htl/pthread.h: Likewise.
12971 * sysdeps/htl/sem-close.c: Likewise.
12972 * sysdeps/htl/sem-destroy.c: Likewise.
12973 * sysdeps/htl/sem-getvalue.c: Likewise.
12974 * sysdeps/htl/sem-init.c: Likewise.
12975 * sysdeps/htl/sem-open.c: Likewise.
12976 * sysdeps/htl/sem-post.c: Likewise.
12977 * sysdeps/htl/sem-timedwait.c: Likewise.
12978 * sysdeps/htl/sem-trywait.c: Likewise.
12979 * sysdeps/htl/sem-unlink.c: Likewise.
12980 * sysdeps/htl/sem-wait.c: Likewise.
12981 * sysdeps/hurd/htl/pt-kill.c: Likewise.
12982 * sysdeps/i386/htl/pt-machdep.h: Likewise.
12983 * sysdeps/mach/htl/pt-block.c: Likewise.
12984 * sysdeps/mach/htl/pt-spin.c: Likewise.
12985 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
12986 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
12987 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
12988 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
12989 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
12990 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
12991 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
12992 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
12993 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
12994 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
12995 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
12996 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
12997 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
12998 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
12999 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13000 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13001 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13002 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13003 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13004 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13005 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13006 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13007 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13008 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13009 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13010 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13011 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13012 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13013 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13014 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13015 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13016 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13017 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13018 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13019 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13020 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13021 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13022 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13023 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13024 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13025 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13026 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13027 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13028
13029 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13030 * README: Remove the mention of out-of-tree patches needed for
13031 GNU/Hurd.
13032
13033 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13034 (UTIME_NOW, UTIME_OMIT): Define macros.
13035
13036 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13037 instead of pthread_detach.
13038 (__cthread_fork): Call __pthread_create instead of pthread_create.
13039 (__cthread_keycreate): Call __pthread_key_create instead of
13040 pthread_key_create.
13041 (__cthread_getspecific): Call __pthread_getspecific instead of
13042 pthread_getspecific.
13043 (__cthread_setspecific): Call __pthread_setspecific instead of
13044 pthread_setspecific.
13045 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13046 __pthread_mutex_unlock instead of pthread_mutex_lock and
13047 pthread_mutex_unlock.
13048 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13049 ___pthread_get_cleanup_stack.
13050 (__pthread_get_cleanup_stack): New strong alias.
13051 * htl/pt-create.c: Include <pthreadP.h>.
13052 (entry_point): Call __pthread_exit instead of pthread_exit.
13053 (pthread_create): Rename to __pthread_create.
13054 (pthread_create): New strong alias.
13055 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13056 (pthread_detach): New strong alias.
13057 (__pthread_detach): Call __pthread_cond_broadcast instead of
13058 pthread_cond_broadcast.
13059 * htl/pt-exit.c: Include <pthreadP.h>.
13060 (__pthread_exit): Call __pthread_setcancelstate and
13061 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13062 __pthread_get_cleanup_stack.
13063 * htl/pt-testcancel.c: Include <pthreadP.h>.
13064 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13065 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13066 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13067 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13068 pthread_attr_getstacksize.
13069 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13070 Rename to __pthread_attr_getstackaddr.
13071 (pthread_attr_getstackaddr): New strong alias.
13072 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13073 Rename to __pthread_attr_getstacksize.
13074 (pthread_attr_getstacksize): New strong alias.
13075 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13076 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13077 (pthread_attr_setstack): New strong alias.
13078 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13079 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13080 pthread_attr_getstacksize, pthread_attr_setstacksize and
13081 pthread_attr_setstackaddr.
13082 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13083 Rename to __pthread_attr_setstackaddr.
13084 (pthread_attr_setstackaddr): New strong alias.
13085 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13086 Rename to __pthread_attr_setstacksize.
13087 (pthread_attr_setstacksize): New strong alias.
13088 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13089 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13090 pthread_exit.
13091 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13092 (__pthread_key_create): New hidden def.
13093 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13094 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13095 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13096 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13097 __pthread_setspecific, __pthread_setcancelstate,
13098 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13099 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13100 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13101 declarations.
13102 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13103 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13104 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13105 (pthread_attr_setstackaddr): New strong alias.
13106 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13107 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13108 (pthread_attr_setstacksize): New strong alias.
13109 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13110 (call_exit): Call __pthread_exit instead of pthread_exit.
13111 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13112 (_pthread_mutex_init): New hidden definition.
13113 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13114 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13115 instead of pthread_attr_init and pthread_attr_setstack.
13116
13117 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13118 __vm_deallocate instead of vm_allocate and vm_deallocate.
13119 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13120 setenv.
13121 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13122 of geteuid.
13123 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13124 strdup.
13125 * hurd/siginfo.c: Include <libioP.h>.
13126 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13127 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13128 munmap.
13129 * mach/devstream.c: Include <libioP.h>.
13130 (dealloc_ref): Call __mach_port_deallocate instead of
13131 mach_port_deallocate.
13132 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13133 Call __mach_port_deallocate instead of mach_port_deallocate.
13134 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13135 pathconf.
13136 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13137 munmap.
13138 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13139 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13140 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13141 of munmap.
13142 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13143 of close.
13144 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13145 instead of sysconf.
13146 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13147 __clock_gettime instead of clock_gettime.
13148 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13149 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13150 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13151 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13152 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13153 tcgetattr.
13154 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13155 __clock_gettime and __nanosleep instead of clock_gettime and
13156 nanosleep.
13157 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13158 __hurd_catch_signal.
13159 (hurd_catch_signal): New strong alias.
13160 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13161 __hurd_catch_signal instead of hurd_catch_signal.
13162 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13163 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13164 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13165 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13166 (_hurd_thread_sigstate): Add hidden def.
13167 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13168 mutex_unlock.
13169 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13170 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13171 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13172 __hurd_file_name_path_lookup.
13173 (hurd_file_name_path_lookup): New strong alias.
13174 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13175 hurd_file_name_path_lookup.
13176 * mach/errstring.c (mach_error_type): Add hidden def.
13177 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13178 * mach/mutex-init.c (__mutex_init): Add hidden def.
13179 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13180 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13181 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13182 * sysdeps/mach/hurd/getcwd.c
13183 (_hurd_canonicalize_directory_name_internal): Rename to
13184 __hurd_canonicalize_directory_name_internal.
13185 (_hurd_canonicalize_directory_name_internal): New strong alias.
13186 (__canonicalize_directory_name_internal, __getcwd): Call
13187 __hurd_canonicalize_directory_name_internal instead of
13188 _hurd_canonicalize_directory_name_internal.
13189 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13190 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13191 hidden defs.
13192 * sysdeps/hurd/include/hurd.h: New file.
13193 * sysdeps/hurd/include/hurd/fd.h: New file.
13194 * sysdeps/hurd/include/hurd/signal.h: New file.
13195 * sysdeps/mach/include/lock-intern.h: New file.
13196 * sysdeps/mach/include/mach.h: New file.
13197 * sysdeps/mach/include/mach/mig_support.h: New file.
13198 * sysdeps/mach/include/mach_error.h: New file.
13199 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13200 prototype.
13201 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13202 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13203 _HEADER_H_HIDDEN_DEF macro.
13204 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13205 _hurd_fd_error_signal): Add hidden prototype.
13206 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13207 hidden def.
13208 * libio/iolibio.h (_IO_puts): New hidden prototype.
13209 * libio/ioputs.c (_IO_puts): New hidden def.
13210 * sysdeps/mach/hurd/localplt.data: New file.
13211
13212 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13213 Amos Jeffries <squid3@treenet.co.nz>
13214 David Michael <fedora.dm0@gmail.com>
13215 Marco Gerards <marco@gnu.org>
13216 Marcus Brinkmann <marcus@gnu.org>
13217 Neal H. Walfield <neal@gnu.org>
13218 Pino Toscano <toscano.pino@tiscali.it>
13219 Richard Braun <rbraun@sceen.net>
13220 Roland McGrath <roland@gnu.org>
13221 Samuel Thibault <samuel.thibault@ens-lyon.org>
13222 Thomas DiModica <ricinwich@yahoo.com>
13223 Thomas Schwinge <tschwinge@gnu.org>
13224
13225 * htl: New directory.
13226 * sysdeps/htl: New directory.
13227 * sysdeps/hurd/htl: New directory.
13228 * sysdeps/i386/htl: New directory.
13229 * sysdeps/mach/htl: New directory.
13230 * sysdeps/mach/hurd/htl: New directory.
13231 * sysdeps/mach/hurd/i386/htl: New directory.
13232 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13233 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13234 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13235
13236 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13237
13238 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13239 signals in thread created for runing timers.
13240
13241 2018-04-01 Florian Weimer <fweimer@redhat.com>
13242
13243 * support/support_format_addrinfo.c (support_format_addrinfo):
13244 Include unknown error number in formatted result.
13245
13246 2018-03-29 Florian Weimer <fweimer@redhat.com>
13247
13248 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13249 capture SIGBUS.
13250
13251 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13252
13253 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13254 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13255 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13256 (__ASSUME_CLONE_BACKWARDS): Define.
13257
13258 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13259
13260 [BZ #23024]
13261 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13262 early when linux sentinel value is set.
13263
13264 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13265
13266 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13267
13268 2018-03-27 Andreas Schwab <schwab@suse.de>
13269
13270 [BZ #23005]
13271 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13272 allocation of private copy of nsaddr_list fails.
13273
13274 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13275
13276 [BZ #16552]
13277 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13278 * sysdeps/unix/sysv/linux/umount.c: ... here.
13279 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13280 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13281 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13282 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13283 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13284 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13285 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13286
13287 2018-03-26 Andreas Schwab <schwab@suse.de>
13288
13289 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13290 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13291 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13292 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13293 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13294 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13295 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13296 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13297 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13298 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13299 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13300 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13301 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13302 (R_RISCV_NUM): Define.
13303
13304 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13305
13306 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13307 TLS declaration of errno.
13308 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13309 __libc_setup_tls.
13310 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13311 (ARCH_SETUP_TLS): Likewise.
13312 * sysdeps/mach/hurd/libc-start.h: New file copied from
13313 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13314 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13315 instead of __libc_setup_tls.
13316 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13317 __libc_setup_tls before initializing libpthread and running _hurd_init
13318 which starts the signal thread.
13319 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13320 Declare function.
13321 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13322
13323 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13324
13325 [BZ #22998]
13326 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13327 after it is defined.
13328
13329 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13330 Max Horn <max@quendi.de>
13331
13332 [BZ #22644]
13333 CVE-2017-18269
13334 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13335 branch conditions.
13336 * string/test-memmove.c (do_test2): New testcase.
13337
13338 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13339
13340 * sysdeps/generic/frame.h: Remove file.
13341 * sysdeps/arm/frame.h: Likewise.
13342 * sysdeps/hppa/frame.h: Likewise.
13343 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13344 macro.
13345 (GET_FRAME): Likewise.
13346 (GET_STACK): Likewise.
13347 (CALL_SIGHANDLER): Likewise.
13348 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13349 Likewise.
13350 (GET_FRAME): Likewise.
13351 (GET_STACK): Likewise.
13352 (CALL_SIGHANDLER): Likewise.
13353 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13354 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13355 (GET_FRAME): Likewise.
13356 (GET_STACK): Likewise.
13357 (CALL_SIGHANDLER): Likewise.
13358 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13359 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13360 (GET_FRAME): Likewise.
13361 (GET_STACK): Likewise.
13362 (ADVANCE_STACK_FRAME): Likewise.
13363 (CALL_SIGHANDLER): Likewise.
13364 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13365 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13366 (GET_FRAME): Likewise.
13367 (GET_STACK): Likewise.
13368 (CALL_SIGHANDLER): Likewise.
13369 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13370 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13371 (GET_FRAME): Likewise.
13372 (GET_STACK): Likewise.
13373 (CALL_SIGHANDLER): Likewise.
13374 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13375 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13376 (GET_FRAME): Likewise.
13377 (GET_STACK): Likewise.
13378 (CALL_SIGHANDLER): Likewise.
13379 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13380 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13381 (GET_FRAME): Likewise.
13382 (GET_STACK): Likewise.
13383 (CALL_SIGHANDLER): Likewise.
13384 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13385 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13386 (GET_FRAME): Likewise.
13387 (GET_STACK): Likewise.
13388 (CALL_SIGHANDLER): Likewise.
13389 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13390 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13391 (GET_FRAME): Likewise.
13392 (GET_STACK): Likewise.
13393 (CALL_SIGHANDLER): Likewise.
13394 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13395 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13396 (GET_FRAME): Likewise.
13397 (GET_STACK): Likewise.
13398 (CALL_SIGHANDLER): Likewise.
13399 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13400 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13401 (GET_FRAME): Likewise.
13402 (GET_STACK): Likewise.
13403 (CALL_SIGHANDLER): Likewise.
13404 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13405 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13406 (GET_FRAME): Likewise.
13407 (GET_STACK): Likewise.
13408 (CALL_SIGHANDLER): Likewise.
13409 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13410 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13411 (FIRST_FRAME_POINTER): Likewise.
13412 (ADVANCE_STACK_FRAME): Likewise.
13413 (GET_STACK): Likewise.
13414 (GET_FRAME): Likewise.
13415 (CALL_SIGHANDLER): Likewise.
13416 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13417 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13418 (ADVANCE_STACK_FRAME): Likewise.
13419 (GET_STACK): Likewise.
13420 (GET_FRAME): Likewise.
13421 (CALL_SIGHANDLER): Likewise.
13422 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13423 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13424 (GET_FRAME): Likewise.
13425 (GET_STACK): Likewise.
13426 (CALL_SIGHANDLER): Likewise.
13427 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13428 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13429 (GET_FRAME): Likewise.
13430 (GET_STACK): Likewise.
13431 (CALL_SIGHANDLER): Likewise.
13432
13433 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13434
13435 * sysdeps/x86_64/backtrace.c: Move to ....
13436 * debug/backtrace.c: ... here.
13437 * sysdeps/aarch64/backtrace.c: Remove file.
13438 * sysdeps/alpha/backtrace.c: Likewise.
13439 * sysdeps/hppa/backtrace.c: Likewise.
13440 * sysdeps/ia64/backtrace.c: Likewise.
13441 * sysdeps/mips/backtrace.c: Likewise.
13442 * sysdeps/nios2/backtrace.c: Likewise.
13443 * sysdeps/riscv/backtrace.c: Likewise.
13444 * sysdeps/sh/backtrace.c: Likewise.
13445 * sysdeps/tile/backtrace.c: Likewise.
13446
13447 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13448
13449 [BZ #22987]
13450 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13451 function.
13452 (fdimf): Likewise.
13453 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13454
13455 [BZ #17343]
13456 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13457 possibly overflowing computations.
13458
13459 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13460
13461 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13462 values from Linux-specific section now that it is in the GNU section.
13463 * sysdeps/gnu/errlist.c: Regenerate.
13464
13465 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13466
13467 * math/Makefile (libm-narrow-fns): Add sub.
13468 (libm-test-funcs-narrow): Likewise.
13469 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13470 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13471 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13472 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13473 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13474 (NARROW_SUB_TRIVIAL): Likewise.
13475 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13476 macro.
13477 (__dsubl): Likewise.
13478 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13479 dsub.
13480 (CFLAGS-nldbl-dsub.c): New variable.
13481 (CFLAGS-nldbl-fsub.c): Likewise.
13482 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13483 __nldbl_dsubl.
13484 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13485 prototype.
13486 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13487 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13488 * math/auto-libm-test-in: Add tests of sub.
13489 * math/auto-libm-test-out-narrow-sub: New generated file.
13490 * math/libm-test-narrow-sub.inc: New file.
13491 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13492 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13493 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13494 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13495 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13496 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13497 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13498 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13499 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13500 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13501 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13502 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13503 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13504 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13505 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13506 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13507 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13508 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13509 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13510 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13511 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13512 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13513 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13514 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13515 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13516 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13517 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13518 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13519 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13520 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13521 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13522 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13527 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13528 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13529 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13530 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13531 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13532 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13533 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13534 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13535 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13536 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13537
13538 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13539
13540 [BZ #20079]
13541 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13542
13543 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13544
13545 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13546
13547 2018-03-18 Richard Braun <rbraun@sceen.net>
13548
13549 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13550 thread reference.
13551
13552 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13553
13554 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13555 (__libc_cleanup_fct): Define function.
13556 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13557 __libc_cleanup_end): Rewrite implementation using
13558 __attribute__ ((__cleanup__)).
13559 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13560 * hurd/Makefile (routines): Add hurdlock.
13561 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13562 interface.
13563 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13564 * hurd/hurdpid.c: Include <lowlevellock.h>
13565 (_S_msg_proc_newids): Use lll_wait to synchronize.
13566 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13567 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13568 * mach/Makefile (lock-headers): Remove machine-lock.h.
13569 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13570 <machine-lock.h>.
13571 (__spin_lock_t): New type.
13572 (__SPIN_LOCK_INITIALIZER): New macro.
13573 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13574 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13575 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13576 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13577 (__mutex_init): Initialize with lll.
13578 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13579 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13580 needing lll.
13581 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13582 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13583 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13584 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13585 (__setpgid): Use lll for synchronization.
13586 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13587 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13588 instead of <cthreads.h>.
13589 (_IO_lock_inexpensive): New macro
13590 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13591 (__libc_lock_self0): New declaration.
13592 (__libc_lock_owner_self): New macro.
13593 (__libc_key_t): Remove type.
13594 (_LIBC_LOCK_INITIALIZER): New macro.
13595 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13596 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13597 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13598 __libc_lock_define_initialized_recursive,
13599 __rtld_lock_define_initialized_recursive,
13600 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13601 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13602 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13603 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13604 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13605 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13606 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13607 New macros.
13608 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13609 * hurd/hurdlock.c: New file.
13610 * hurd/hurdlock.h: New file.
13611 * mach/lowlevellock.h: New file
13612
13613 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13614
13615 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13616 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13617 when opening a symlink with O_NOFOLLOW.
13618 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13619 path when flags contains O_NOFOLLOW.
13620 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13621 if flags contains O_DIRECTORY and the result is a directory.
13622 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13623 oneself when the pointer given in D is nul (as set by ext2fs).
13624 * sysdeps/mach/hurd/mlockall.c: New file.
13625 * sysdeps/mach/hurd/munlockall.c: New file.
13626
13627 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13628
13629 * hurd/hurdsig.c: Include <pthread.h>.
13630 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13631 get the signal thread stack layout.
13632 * hurd/Makefile (headers): Remove threadvar.h.
13633 (inline-headers): Remove threadvar.h.
13634 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13635 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13636 __hurd_threadvar_max, __hurd_errno_location.
13637 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13638 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13639 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13640 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13641 unless TLS is not initialized yet, in which case we do not need a
13642 critical section yet anyway.
13643 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13644 <machine-sp.h>.
13645 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13646 declarations.
13647 (__hurd_threadvar_index): Remove enum.
13648 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13649 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13650 inlines.
13651 (__hurd_reply_port0): New variable declaration.
13652 (__hurd_local_reply_port): New macro.
13653 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13654 (interrupted_reply_port_location): Add thread_t parameter. Use it
13655 with THREAD_TCB to access thread-local variables.
13656 (_hurdsig_abort_rpcs): Pass ss->thread to
13657 interrupted_reply_port_location.
13658 (_hurd_internal_post_signal): Likewise.
13659 (_hurdsig_init): Use presence of cthread_fork instead of
13660 __hurd_threadvar_stack_mask to start signal thread by hand.
13661 Remove signal thread threadvar initialization.
13662 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13663 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13664 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13665 of threadvar.
13666 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13667 __libc_lock_self0.
13668 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13669 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13670 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13671 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13672 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13673 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13674 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13675 define variables.
13676 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13677 <hurd/threadvar.h>.
13678 [IS_IN(rtld)] (rtld_errno): New variable.
13679 [IS_IN(rtld)] (__errno_location): New weak function.
13680 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13681 * sysdeps/mach/hurd/errno.c: Remove file.
13682 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13683 (__fork): Remove THREADVAR_SPACE macro and its use.
13684 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13685 variable.
13686 (init): Do not initialize threadvar.
13687 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13688 symbol.
13689 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13690 __hurd_local_reply_port instead of threadvar.
13691 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13692 _hurd_sigstate fields.
13693 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13694 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13695 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13696 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13697 instead of threadvar.
13698 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13699 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13700 (use_threadvar, global_reply_port): Remove variables.
13701 (__hurd_reply_port0): New variable.
13702 (__mig_get_reply_port): Use __hurd_local_reply_port and
13703 __hurd_reply_port0 instead of threadvar.
13704 (__mig_dealloc_reply_port): Likewise.
13705 (__mig_init): Do not initialize threadvar.
13706 * sysdeps/mach/hurd/profil.c: Fix comment.
13707 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13708 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13709 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13710 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13711 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13712 __cthread_setspecific.
13713 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13714 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13715 __cthread_t instead of cthread_fork, cthread_detach,
13716 pthread_getattr_np, pthread_attr_getstack.
13717 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13718 __cthread_keycreate.
13719 (cthread_getspecific): Rename to __cthread_getspecific.
13720 (cthread_setspecific): Rename to __cthread_setspecific.
13721 (__libc_getspecific): Use __cthread_getspecific instead of
13722 cthread_getspecific.
13723 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13724 __cthread_keycreate instead of cthread_keycreate.
13725 (__libc_setspecific): Use __cthread_setspecific instead of
13726 cthread_setspecific.
13727 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13728 Likewise.
13729 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13730 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13731 testing whether it is defined.
13732
13733 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13734
13735 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13736 Define macro.
13737 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13738 * sysdeps/mach/i386/thread_state.h
13739 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13740 i386_THREAD_STATE.
13741 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13742 i386_THREAD_STATE.
13743 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13744
13745 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13746 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13747
13748 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13749 macros.
13750 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13751 descriptor instead of creating a new one.
13752 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13753
13754 * mach/setup-thread.c: Include <ldsodefs.h>.
13755 (__mach_setup_thread): Call _dl_allocate_tls, pass
13756 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13757 MACHINE_THREAD_STATE_FLAVOR, before getting
13758 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13759 MACHINE_THREAD_STATE_FLAVOR with the result.
13760 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13761 MACHINE_THREAD_STATE_FIX_NEW.
13762 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13763 too. Add original thread parameter.
13764
13765 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13766
13767 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13768 Remove inline function.
13769
13770 * sysdeps/i386/fpu/libm-test-ulps: Update.
13771 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13772
13773 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13774
13775 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13776 commit.
13777
13778 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13779
13780 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13781 (__sincos_code): Remove define and undefine.
13782 [__FAST_MATH__] (__sincos): Remove inline function.
13783 [__FAST_MATH__] (__sincosf): Remove inline function.
13784 [__FAST_MATH__] (__sincosl): Remove inline function.
13785 (__atan2l): Remove inline functions.
13786 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13787 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13788 function.
13789 (floor): Remove inline function.
13790 (ceil): Likewise.
13791 [__FAST_MATH__] (__ldexp_code): Remove macro.
13792 [__FAST_MATH__] (ldexp): Remove inline function.
13793 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13794 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13795 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13796 [__USE_ISOC99] (__lrint_code): Remove macro.
13797 [__USE_ISOC99] (__llrint_code): Likewise.
13798 [__USE_ISOC99] (lrintf): Remove inline function.
13799 [__USE_ISOC99] (lrint): Likewise.
13800 [__USE_ISOC99] (lrintl): Likewise.
13801 [__USE_ISOC99] (llrint): Likewise.
13802 [__USE_ISOC99] (llrintf): Likewise.
13803 [__USE_ISOC99] (llrintl): Likewise.
13804
13805 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13806
13807 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13808 (__ieee754_sqrtf): Remove.
13809 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13810 (__ieee754_sqrtf): Remove.
13811 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13812 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13813 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13814 (__ieee754_sqrtf): Remove.
13815 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13816 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13817 (sqrtf): Remove.
13818 (sqrtl): Remove.
13819 (__ieee754_sqrt): Remove.
13820 (__ieee754_sqrtf): Remove.
13821 (__ieee754_sqrtl): Remove.
13822 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13823 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13824 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13825 (__ieee754_sqrtf): Remove.
13826 (__ieee754_sqrtl): Remove.
13827
13828 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13829
13830 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13831 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13832 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13833 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13834 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13835 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13836 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13837 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13838 Likewise.
13839 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13840 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13841 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13842 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13843 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13844 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13845 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13846 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13847 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13848 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13849 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13850 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13851 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13852 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13853 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13854 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13855 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13856 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13857 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13858 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13859 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13860 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13861 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13862 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13863 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13864 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13865 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13866 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13867 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13868 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13869 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13870 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13871 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13872 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13873 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13874 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13875 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13876 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13877 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13878 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13879
13880 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13881
13882 * include/math.h (sqrt): Declare with asm redirect.
13883 (sqrtf): Likewise.
13884 (sqrtl): Likewise.
13885 (sqrtf128): Likewise.
13886 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13887 nonlib and libnldbl with -fmath-errno.
13888 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13889 * math/w_sqrt_template.c: Likewise.
13890 * math/w_sqrtf_compat.c: Likewise.
13891 * math/w_sqrtl_compat.c: Likewise.
13892 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13893 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13894 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13895 complex.h.
13896
13897 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13898
13899 * benchtests/Makefile: Define _ISOMAC.
13900 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13901 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13902 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13903 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13904 * benchtests/bench-timing.h: Define attribute_hidden.
13905
13906 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13907
13908 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13909 mov + lsr.
13910
13911 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13912
13913 [BZ #22963]
13914 * localedata/locales/cs_CZ (mon): Rename to...
13915 (alt_mon): This.
13916 (mon): Import from CLDR (genitive case).
13917
13918 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13919
13920 [BZ #22937]
13921 * localedata/locales/el_CY (abmon): Rename to...
13922 (ab_alt_mon): This.
13923 (abmon): Import from CLDR (abbreviated genitive case).
13924 * localedata/locales/el_GR (abmon): Rename to...
13925 (ab_alt_mon): This.
13926 (abmon): Import from CLDR (abbreviated genitive case).
13927
13928 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13929
13930 [BZ #22932]
13931 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
13932
13933 2018-03-15 Robert Buj <robert.buj@gmail.com>
13934
13935 [BZ #22848]
13936 * localedata/locales/ca_ES (abmon): Rename to...
13937 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13938 (mon): Rename to...
13939 (alt_mon): This.
13940 (abmon): Import from CLDR (genitive case, month names preceded by
13941 "de" or "d’").
13942 (mon): Likewise.
13943 (abday): Synchronize with CLDR.
13944 (d_t_fmt): Likewise.
13945 (d_fmt): Likewise.
13946 (am_pm): Likewise.
13947
13948 (LC_TIME): Improve indentation.
13949 (LC_TELEPHONE): Likewise.
13950 (LC_NAME): Likewise.
13951 (LC_ADDRESS): Likewise.
13952
13953 2018-03-14 Joseph Myers <joseph@codesourcery.com>
13954
13955 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
13956 (lrintf): Remove definitions used only with old GCC.
13957 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
13958 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
13959 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
13960 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
13961 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
13962 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
13963 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
13964 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
13965 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
13966 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
13967 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
13968 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
13969 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
13970 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
13971 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
13972 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
13973 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
13974 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
13975 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
13976 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
13977 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
13978 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
13979 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
13980 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
13981 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
13982 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
13983 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
13984 [__FAST_MATH__] (__M_SQRT2): Remove macro.
13985
13986 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
13987
13988 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
13989 instruction to unbreak builds with binutils 2.26 and older.
13990
13991 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
13992
13993 * sysdeps/aarch64/strncmp.S (count): New macro.
13994 (strncmp): Store misaligned length in SRC1 in COUNT.
13995 (mutual_align): Adjust.
13996 (misaligned8): Load dword at a time when it is safe.
13997
13998 2018-03-12 Zack Weinberg <zackw@panix.com>
13999
14000 [BZ #1190]
14001 [BZ #19476]
14002 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14003 if the _IO_EOF_SEEN bit is already set; update commentary.
14004 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14005 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14006
14007 * support/support_openpty.c, support/tty.h: New files.
14008 * support/Makefile (libsupport-routines): Add support_openpty.
14009
14010 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14011 New test cases.
14012 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14013 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14014
14015 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14016
14017 * po/pt_BR.po: Update translations.
14018
14019 2018-03-12 David Michael <fedora.dm0@gmail.com>
14020
14021 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14022 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14023 get a port to the startup server.
14024
14025 2018-03-11 Zack Weinberg <zackw@panix.com>
14026
14027 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14028 before nldbl-compat.h.
14029
14030 2018-03-10 Zack Weinberg <zackw@panix.com>
14031
14032 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14033 math.h or math_private.h.
14034
14035 * sysdeps/alpha/fpu/s_isnan.c
14036 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14037 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14038 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14039 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14040 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14041 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14042 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14043 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14044 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14045 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14046 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14047 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14048 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14049 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14050 Include math_private.h.
14051
14052 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14053 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14054 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14055 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14056 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14057 * sysdeps/powerpc/power7/fpu/s_logb.c:
14058 Include math.h and math_private.h.
14059
14060 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14061 uses of $at in .set noat / .set at.
14062
14063 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14064
14065 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14066 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14067 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14068 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14069 Likewise.
14070
14071 2018-03-09 Florian Weimer <fweimer@redhat.com>
14072
14073 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14074 in comment.
14075
14076 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14077
14078 [BZ #22919]
14079 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14080 Add nop before __startcontext, add explaining comments.
14081
14082 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14083
14084 [BZ #22926]
14085 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14086 empty for __SPE__.
14087 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14088 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14089 Do not build hardware transactional code for __SPE__.
14090 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14091 (__lll_trylock_elision): Likewise.
14092 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14093 (__lll_unlock_elision): Likewise.
14094
14095 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14096 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14097 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14098 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14099 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14100 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14101 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14102 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14103 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14104 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14105 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14106 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14107 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14108 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14109 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14110 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14111 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14112 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14113 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14114 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14115 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14116 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14117 (__ASSUME_CLONE_BACKWARDS): Define.
14118 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14119 __clone2 if __NR_clone2 is defined.
14120 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14121 (__ASSUME_CLONE_BACKWARDS): Likewise.
14122 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14123 (__ASSUME_CLONE_BACKWARDS): Likewise.
14124 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14125 (__ASSUME_CLONE2): Likewise.
14126 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14127 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14128 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14129 variants and the define architecture can use.
14130 (__ASSUME_CLONE_DEFAULT): Define as default.
14131 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14132 (__ASSUME_CLONE_BACKWARDS): Likewise.
14133 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14134 (__ASSUME_CLONE_BACKWARDS): Likewise.
14135 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14136 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14137
14138 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14139
14140 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14141
14142 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14143 time.
14144
14145 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14146 (do_test_limit): Likewise.
14147
14148 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14149 for every implementation.
14150 (do_test): Likewise.
14151
14152 * benchtests/bench-strncmp.c: Convert output to json.
14153
14154 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14155
14156 * io/futimens.c: Add missing start-of-file descriptive comment.
14157 * io/utime.c: Likewise.
14158 * misc/futimesat.c: Likewise.
14159 * misc/utimes.c: Likewise.
14160 * sysdeps/mach/hurd/futimesat.c: Likewise.
14161 * sysdeps/mach/hurd/utimes.c: Likewise.
14162 * sysdeps/posix/utime.c: Likewise.
14163 * sysdeps/posix/utimes.c: Likewise.
14164 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14165 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14166 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14167 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14168
14169 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14170
14171 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14172 hurd_futimes.
14173 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14174 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14175 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14176 (__futimens): Move implementation to...
14177 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14178 utime_tvalue_from_tspec): ... new helper functions.
14179 (hurd_futimens): New function.
14180 * sysdeps/mach/hurd/futimesat.c: New file.
14181 * sysdeps/mach/hurd/utimensat.c: New file.
14182
14183 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14184
14185 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14186 UTIME_OMIT): New macros.
14187 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14188 before reverting to converting time spec to time value and calling
14189 __file_utimes.
14190 * sysdeps/mach/hurd/utime-helper.c: New file.
14191 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14192 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14193 reverting to utime_tvalue_from_tval and __file_utimes.
14194 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14195 (__lutimes): Just call hurd_futimens after lookup.
14196 * sysdeps/mach/hurd/utimes.c: Likewise.
14197
14198 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14199
14200 * bits/sigaction.h: Add include guard.
14201 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14202 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14203 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14204 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14205 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14206 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14207 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14208 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14209 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14210
14211 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14212
14213 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14214 -Wmaybe-uninitialized for -Os.
14215 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14216 this disabling.
14217
14218 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14219
14220 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14221 __INO_T_MATCHES_INO64_T is defined.
14222 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14223 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14224 of definition.
14225 * dirent/alphasort64.c: Likewise.
14226 * dirent/scandir.c: Likewise.
14227 * dirent/scandir64-tail.c: Likewise.
14228 * dirent/scandir64.c: Likewise.
14229 * dirent/scandirat.c: Likewise.
14230 * dirent/scandirat64.c: Likewise.
14231 * dirent/versionsort.c: Likewise.
14232 * dirent/versionsort64.c: Likewise.
14233 * include/dirent.h: Likewise.
14234
14235 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14236 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14237 for socketpair endpoint.
14238 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14239 WRITE_BUFFER_SIZE as buffer size for sending socket.
14240 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14241 issue on system where send is implemented with sendto syscall.
14242 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14243 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14244 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14245 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14246
14247 [BZ #21269]
14248 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14249 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14250 sa_restorer for vDSO case.
14251 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14252
14253 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14254
14255 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14256 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14257 * hurd/hurd/ioctl.h: Include <mach/port.h>
14258 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14259 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14260 <mach/mach_types.h> and <mach/message.h>.
14261 (headers): Move mach/param.h to bits/mach/param.h.
14262 * sysdeps/mach/i386/mach/param.h: Move file to ...
14263 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14264 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14265 of <mach/param.h>.
14266 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14267 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14268 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14269 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14270 trivial, for C++ conformity.
14271 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14272 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14273 Process mig output through $(migheadersed).
14274 * hurd/Makefile (migheadersed): Define variable.
14275 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14276 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14277 headers.
14278 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14279 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14280 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14281 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14282 <bits/types/sigset_t.h>.
14283 [!defined __USE_GNU]: Do not #error out.
14284 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14285 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14286 Include <stddef.h> and <bits/types/sigset_t.h>
14287 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14288 instead of sighandler_t.
14289 * stdlib/errno.h (error_t): Move definition to...
14290 * bits/types/error_t.h: ... new header.
14291 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14292 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14293 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14294 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14295 * hurd/hurd.h: Include <bits/types/error_t.h>
14296 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14297 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14298 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14299 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14300 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14301 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14302 * sysdeps/mach/hurd/futimens.c: New file.
14303
14304 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14305
14306 [BZ #22918]
14307 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14308 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14309 * nscd/gai.c (__nss_hosts_database): Readd definition.
14310 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14311 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14312 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14313
14314 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14315
14316 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14317 (ifunc_one): Likewise.
14318
14319 2018-03-01 DJ Delorie <dj@delorie.com>
14320
14321 [BZ #22342]
14322 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14323 key value.
14324
14325 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14326
14327 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14328 `match_pid' parameter.
14329 (td_ta_thr_iter): Update accordingly.
14330
14331 2018-03-01 Florian Weimer <fweimer@redhat.com>
14332
14333 * nptl/Makefile (install-lib-ldscripts): Remove.
14334 (install): Remove rule.
14335 ($(inst_libdir)/libpthread.so): Likewise.
14336
14337 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14338
14339 [BZ #22896]
14340 * localedata/locales/an_ES: update month and day names,
14341 improve d_fmt, improve postal_fmt, add country_post,
14342 add country_isbn
14343
14344 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14345
14346 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14347 Ukrainian instead of Bulgarian.
14348
14349 2018-03-01 Florian Weimer <fweimer@redhat.com>
14350
14351 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14352 reference.
14353
14354 2018-03-01 Florian Weimer <fweimer@redhat.com>
14355
14356 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14357 * nptl/Makefile (routines): Add pthread_atfork.
14358 (static-only-routines): Set to pthread_atfork.
14359 (libpthread-routines): Remove pthread_atfork.
14360 (libpthread-static-only-routines): Remove.
14361 (install): Update comment.
14362 (libpthread.so): Do not install libpthread_nonshared.a.
14363 (tests): Do not link with libpthread_nonshared.a.
14364 (generated): Remove libpthread_nonshared.a.
14365 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14366 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14367 with libpthread_nonshared.a.
14368
14369 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14370
14371 [BZ #22902]
14372 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14373 (libc_feholdexcept_setroundf128): New macro.
14374 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14375
14376 [BZ #15105]
14377 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14378 libc_hidden_def.
14379 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14380 * include/inttypes.h: New file.
14381
14382 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14383
14384 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14385 -Os in two more places.
14386
14387 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14388
14389 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14390 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14391 be sorted correctly at the moment because of a bug.
14392
14393 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14394
14395 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14396 treat ñ as a primary different character, sync the collation
14397 for Spanish with CLDR.
14398 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14399 * localedata/Makefile: Add new test files.
14400 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14401 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14402 collation order.
14403 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14404 * localedata/am_ET.UTF-8.in: New test file.
14405 * localedata/az_AZ.UTF-8.in: Likewise.
14406 * localedata/be_BY.UTF-8.in: Likewise.
14407 * localedata/ber_DZ.UTF-8.in: Likewise.
14408 * localedata/ber_MA.UTF-8.in: Likewise.
14409 * localedata/bg_BG.UTF-8.in: Likewise.
14410 * localedata/br_FR.UTF-8.in: Likewise.
14411 * localedata/cmn_TW.UTF-8.in: Likewise.
14412 * localedata/crh_UA.UTF-8.in: Likewise.
14413 * localedata/csb_PL.UTF-8.in: Likewise.
14414 * localedata/cv_RU.UTF-8.in: Likewise.
14415 * localedata/cy_GB.UTF-8.in: Likewise.
14416 * localedata/dz_BT.UTF-8.in: Likewise.
14417 * localedata/eo.UTF-8.in: Likewise.
14418 * localedata/es_ES.UTF-8.in: Likewise.
14419 * localedata/fa_IR.UTF-8.in: Likewise.
14420 * localedata/fi_FI.UTF-8.in: Likewise.
14421 * localedata/fil_PH.UTF-8.in: Likewise.
14422 * localedata/fur_IT.UTF-8.in: Likewise.
14423 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14424 * localedata/ha_NG.UTF-8.in: Likewise.
14425 * localedata/ig_NG.UTF-8.in: Likewise.
14426 * localedata/ik_CA.UTF-8.in: Likewise.
14427 * localedata/kk_KZ.UTF-8.in: Likewise.
14428 * localedata/ku_TR.UTF-8.in: Likewise.
14429 * localedata/ky_KG.UTF-8.in: Likewise.
14430 * localedata/ln_CD.UTF-8.in: Likewise.
14431 * localedata/mi_NZ.UTF-8.in: Likewise.
14432 * localedata/ml_IN.UTF-8.in: Likewise.
14433 * localedata/mn_MN.UTF-8.in: Likewise.
14434 * localedata/mr_IN.UTF-8.in: Likewise.
14435 * localedata/mt_MT.UTF-8.in: Likewise.
14436 * localedata/nb_NO.UTF-8.in: Likewise.
14437 * localedata/om_KE.UTF-8.in: Likewise.
14438 * localedata/os_RU.UTF-8.in: Likewise.
14439 * localedata/ps_AF.UTF-8.in: Likewise.
14440 * localedata/ro_RO.UTF-8.in: Likewise.
14441 * localedata/ru_RU.UTF-8.in: Likewise.
14442 * localedata/sc_IT.UTF-8.in: Likewise.
14443 * localedata/se_NO.UTF-8.in: Likewise.
14444 * localedata/sq_AL.UTF-8.in: Likewise.
14445 * localedata/sv_SE.UTF-8.in: Likewise.
14446 * localedata/szl_PL.UTF-8.in: Likewise.
14447 * localedata/tg_TJ.UTF-8.in: Likewise.
14448 * localedata/tk_TM.UTF-8.in: Likewise.
14449 * localedata/tt_RU.UTF-8.in: Likewise.
14450 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14451 * localedata/ug_CN.UTF-8.in: Likewise.
14452 * localedata/uz_UZ.UTF-8.in: Likewise.
14453 * localedata/vi_VN.UTF-8.in: Likewise.
14454 * localedata/yi_US.UTF-8.in: Likewise.
14455 * localedata/yo_NG.UTF-8.in: Likewise.
14456 * localedata/zh_CN.UTF-8.in: Likewise.
14457 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14458 file and fix bugs in the collation.
14459 * localedata/locales/az_AZ: Likewise.
14460 * localedata/locales/be_BY: Likewise.
14461 * localedata/locales/ber_DZ: Likewise.
14462 * localedata/locales/ber_MA: Likewise.
14463 * localedata/locales/bg_BG: Likewise.
14464 * localedata/locales/br_FR: Likewise.
14465 * localedata/locales/br_FR@euro: Likewise.
14466 * localedata/locales/ca_ES: Likewise.
14467 * localedata/locales/cns11643_stroke: Likewise.
14468 * localedata/locales/crh_UA: Likewise.
14469 * localedata/locales/cs_CZ: Likewise.
14470 * localedata/locales/csb_PL: Likewise.
14471 * localedata/locales/cv_RU: Likewise.
14472 * localedata/locales/cy_GB: Likewise.
14473 * localedata/locales/da_DK: Likewise.
14474 * localedata/locales/dz_BT: Likewise.
14475 * localedata/locales/en_CA: Likewise.
14476 * localedata/locales/eo: Likewise.
14477 * localedata/locales/es_CU: Likewise.
14478 * localedata/locales/es_EC: Likewise.
14479 * localedata/locales/es_ES: Likewise.
14480 * localedata/locales/es_US: Likewise.
14481 * localedata/locales/et_EE: Likewise.
14482 * localedata/locales/fa_IR: Likewise.
14483 * localedata/locales/fi_FI: Likewise.
14484 * localedata/locales/fil_PH: Likewise.
14485 * localedata/locales/fur_IT: Likewise.
14486 * localedata/locales/gez_ER@abegede: Likewise.
14487 * localedata/locales/ha_NG: Likewise.
14488 * localedata/locales/hr_HR: Likewise.
14489 * localedata/locales/hsb_DE: Likewise.
14490 * localedata/locales/hu_HU: Likewise.
14491 * localedata/locales/ig_NG: Likewise.
14492 * localedata/locales/ik_CA: Likewise.
14493 * localedata/locales/is_IS: Likewise.
14494 * localedata/locales/iso14651_t1_pinyin: Likewise.
14495 * localedata/locales/kk_KZ: Likewise.
14496 * localedata/locales/ku_TR: Likewise.
14497 * localedata/locales/ky_KG: Likewise.
14498 * localedata/locales/ln_CD: Likewise.
14499 * localedata/locales/lt_LT: Likewise.
14500 * localedata/locales/lv_LV: Likewise.
14501 * localedata/locales/mi_NZ: Likewise.
14502 * localedata/locales/ml_IN: Likewise.
14503 * localedata/locales/mn_MN: Likewise.
14504 * localedata/locales/mr_IN: Likewise.
14505 * localedata/locales/mt_MT: Likewise.
14506 * localedata/locales/nb_NO: Likewise.
14507 * localedata/locales/om_KE: Likewise.
14508 * localedata/locales/os_RU: Likewise.
14509 * localedata/locales/pl_PL: Likewise.
14510 * localedata/locales/ps_AF: Likewise.
14511 * localedata/locales/ro_RO: Likewise.
14512 * localedata/locales/ru_RU: Likewise.
14513 * localedata/locales/ru_UA: Likewise.
14514 * localedata/locales/sc_IT: Likewise.
14515 * localedata/locales/se_NO: Likewise.
14516 * localedata/locales/si_LK: Likewise.
14517 * localedata/locales/sq_AL: Likewise.
14518 * localedata/locales/sv_FI: Likewise.
14519 * localedata/locales/sv_FI@euro: Likewise.
14520 * localedata/locales/sv_SE: Likewise.
14521 * localedata/locales/szl_PL: Likewise.
14522 * localedata/locales/tg_TJ: Likewise.
14523 * localedata/locales/ti_ER: Likewise.
14524 * localedata/locales/tk_TM: Likewise.
14525 * localedata/locales/tl_PH: Likewise.
14526 * localedata/locales/tr_TR: Likewise.
14527 * localedata/locales/tt_RU: Likewise.
14528 * localedata/locales/tt_RU@iqtelif: Likewise.
14529 * localedata/locales/ug_CN: Likewise.
14530 * localedata/locales/uk_UA: Likewise.
14531 * localedata/locales/uz_UZ: Likewise.
14532 * localedata/locales/uz_UZ@cyrillic: Likewise.
14533 * localedata/locales/vi_VN: Likewise.
14534 * localedata/locales/yi_US: Likewise.
14535 * localedata/locales/yo_NG: Likewise.
14536
14537 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14538
14539 * gen-locales.mk: Make test files which contain @ modifiers in their
14540 name work.
14541 * localedata/gen-locale.sh: Likewise.
14542
14543 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14544
14545 * posix/tst-fnmatch.input: Fix results for range expressions
14546 for non C locales.
14547 * posix/tst-regexloc.c: Do not use a range expression for
14548 de_DE.ISO-8859-1 locale.
14549
14550 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14551
14552 * posix/bug-regex5.c: Fix test case because with the new
14553 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14554 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14555 file.
14556
14557 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14558
14559 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14560 downloaded from ISO, the collation order of @-. and space has changed.
14561 Therefore, this test file needed to be adapted.
14562 * localedata/fr_CA.UTF-8.in: Likewise.
14563 * localedata/fr_FR.UTF-8.in: Likewise.
14564 * localedata/uk_UA.UTF-8.in: Likewise.
14565
14566 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14567
14568 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14569 order of ȥ in the new iso14651_t1_common file.
14570 * localedata/pl_PL.UTF-8.in: Likewise.
14571
14572 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14573
14574 * localedata/locales/iso14651_t1_common: Add sections for various
14575 scripts to the iso14651_t1_common file.
14576
14577 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14578
14579 * localedata/locales/iso14651_t1_common: Use the code point of a
14580 character in the fourth collation level instead of IGNORE for all
14581 entries which have IGNORE on all 4 levels.
14582
14583 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14584
14585 * localedata/locales/iso14651_t1_common: Add some convenient collation
14586 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14587 rules similar to those in CLDR.
14588
14589 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14590
14591 * localedata/locales/iso14651_t1_common: The new version of this
14592 file downloaded from ISO contained several syntax errors which
14593 are fixed by this patch.
14594
14595 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14596
14597 * localedata/locales/iso14651_t1_common: replace all <U.....>
14598 with <U000.....> because glibc understands only 4 digit or 8 digit
14599
14600 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14601
14602 * localedata/locales/iso14651_t1_common: Necessary changes
14603 to make the file downloaded from ISO usable by glibc.
14604
14605 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14606
14607 [BZ #14095]
14608 * localedata/locales/iso14651_t1_common: Update file to
14609 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14610
14611 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14612
14613 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14614 of <nptl/pthreadP.h>
14615 (thread_attr_compare): Move function to...
14616 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14617 * sysdeps/nptl/timer_routines.h: ... new header.
14618 * sysdeps/mach/hurd/gai_misc.h: New file.
14619
14620 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14621
14622 * string/strcoll_l.c: Include <libc-diag.h>.
14623 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14624 declarations of seq1 and seq2.
14625
14626 [BZ #15105]
14627 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14628 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14629
14630 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14631
14632 [BZ #22433]
14633 [BZ #22807]
14634 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14635 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14636 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14637 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14638 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14639 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14640
14641 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14642
14643 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14644 macros used in __ptrace_request.
14645
14646 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14647
14648 [BZ #22792]
14649 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14650 to $(CC).
14651 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14652 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14653 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14654 <tcb-offsets.h>.
14655
14656 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14657
14658 [BZ #15105]
14659 * ctype/ctype.c (tolower): Use libc_hidden_def.
14660 (toupper): Likewise.
14661 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14662 [!_ISOMAC] (toupper): Likewise.
14663
14664 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14665
14666 * localedata/Makefile: Remove --quiet argument when
14667 installing locales
14668
14669 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14670
14671 [BZ #17438]
14672 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14673 in d_fmt.
14674 * localedata/locales/pt_PT (LC_TIME): likewise
14675
14676 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14677
14678 [BZ #22646]
14679 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14680 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14681 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14682
14683 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14684
14685 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14686
14687 * nptl/Makefile (routines): Remove unregister-atfork.
14688 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14689 (fork_handler_alloc): Remove function.
14690 (fork_handlers, fork_handler_init): New variables.
14691 (__fork_lock): Rename to atfork_lock.
14692 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14693 to use a dynamic array to add/remove atfork handlers.
14694 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14695 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14696 Remove declaration.
14697 (fork_handler): Remove next, refcntr, and need_signal member.
14698 (__run_fork_handler_type): New enum.
14699 (__run_fork_handlers): New prototype.
14700 * nptl/register-atfork.c: Remove file.
14701 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14702
14703 * sysdeps/nptl/nptl-signals.h: Move to ...
14704 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14705 comments.
14706 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14707 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14708 unnecessary check for SIGTIMER.
14709 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14710 remove unnecessary removal of SIGTIMER.
14711 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14712 include-signals.h rename.
14713 * nptl/pthreadP.h: Likewise.
14714 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14715 __is_internal_signal instead of __nptl_is_internal_signal.
14716
14717 2018-02-22 Andrew Waterman <andrew@sifive.com>
14718
14719 [BZ # 22884]
14720 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14721 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14722 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14723 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14724
14725 2018-02-22 DJ Delorie <dj@delorie.com>
14726
14727 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14728
14729 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14730
14731 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14732 do_misaligned, not misaligned8.
14733
14734 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14735
14736 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14737 Add memcpy_thunderx2.
14738 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14739 Increment to 4.
14740 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14741 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14742 and IS_THUNDERX2PA checks.
14743 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14744 Use macro to set name appropriately.
14745 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14746 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14747 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14748 New macro.
14749 (IS_THUNDERX2): New macro.
14750
14751 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14752
14753 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14754
14755 2018-02-21 Zack Weinberg <zackw@panix.com>
14756
14757 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14758 Define here, unconditionally.
14759 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14760 * libio/libioP.h: Remove #if 0 blocks.
14761 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14762 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14763 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14764
14765 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14766 Assume weak_alias is always defined.
14767
14768 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14769 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14770 Remove #if 0 and #ifdef TODO blocks.
14771 Assume text_set_element is always defined.
14772
14773 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14774 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14775 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14776
14777 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14778 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14779 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14780 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14781 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14782 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14783 Reformat bit flags for _flags field to make occupancy clearer.
14784 Update commentary.
14785 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14786 Keep definitions consistent with those in libio/libio.h.
14787
14788 * libio/libio.h (_IO_file_flags): Remove macro.
14789 All uses changed to _flags.
14790
14791 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14792 (__HAVE_COLUMN, _IO_BE): Don't define.
14793 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14794 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14795 * libio/libioP.h (EOF): Don't define.
14796 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14797 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14798 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14799 testing _IO_UNIFIED_JUMPTABLES.
14800
14801 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14802 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14803 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14804 (_IO_size_t): Delete; all uses changed to size_t.
14805 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14806 (_IO_off_t): Delete; all uses changed to off_t.
14807 (_IO_off64_t): Delete; all uses changed to off64_t.
14808 (_IO_pid_t): Delete; all uses changed to pid_t.
14809 (_IO_uid_t): Delete; all uses changed to uid_t.
14810 (_IO_wint_t): Delete; all uses changed to wint_t.
14811 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14812 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14813 (_IO_cookie_io_functions_t): Delete; all uses changed to
14814 cookie_io_functions_t.
14815 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14816 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14817 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14818 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14819
14820 * libio/iofopncook.c: Remove unnecessary forward declarations.
14821 * libio/iolibio.h: Correct outdated commentary.
14822 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14823 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14824 Remove unnecessary casts.
14825 * stdio-common/getline.c: Use _IO_getdelim directly.
14826 Don't redefine ssize_t.
14827 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14828 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14829 Remove outdated comments.
14830 * stdio-common/vfscanf.c: Don't redefine va_list.
14831
14832 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14833 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14834 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14835 which are always true, and __cplusplus, which is always false.
14836
14837 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14838
14839 [BZ #15105]
14840 [BZ #19463]
14841 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14842 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14843 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14844 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14845 libc_hidden_proto.
14846 [!_ISOMAC] (putc_unlocked): Likewise.
14847 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14848 define inline if [__USE_EXTERN_INLINES].
14849 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14850 putc_unlocked.
14851
14852 [BZ #15105]
14853 [BZ #19463]
14854 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14855 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14856 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14857 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14858 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14859 getc_unlocked.
14860 * time/tzfile.c (__tzfile_read): Likewise.
14861
14862 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14863
14864 [BZ #22517]
14865 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14866
14867 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14868
14869 * io/fcntl.h: Fix a typo in a comment.
14870
14871 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14872
14873 [BZ #22862]
14874 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14875 define _DEFAULT_SOURCE.
14876 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14877
14878 2018-02-21 Florian Weimer <fweimer@redhat.com>
14879
14880 [BZ #20890]
14881 * elf/cache.c (save_cache): Call fsync on temporary file before
14882 renaming it.
14883 (save_aux_cache): Call fdatasync on temporary file before renaming
14884 it.
14885
14886 2018-02-21 Florian Weimer <fweimer@redhat.com>
14887
14888 [BZ #22787]
14889 * include/caller.h: Remove file.
14890 * elf/dl-caller.c: Likewise.
14891 * elf/Makefile (dl-routines): Remove dl-caller.
14892 (shared-only-routines): Do not add dl-caller.
14893 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14894 __check_caller.
14895 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14896 member.
14897 (dl_open_worker): Do not call __check_caller.
14898 (_dl_open): Do not set caller_dl_open member.
14899 * elf/rtld.c (_rtld_global_ro): Do not initialize
14900 _dl_check_caller member.
14901 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14902 _dl_check_caller member.
14903 (_dl_check_caller): Remove declaration.
14904 * sysdeps/unix/sysv/linux/dl-execstack.c
14905 (_dl_make_stack_executable): Do not call __check_caller.
14906
14907 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14908
14909 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14910 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14911
14912 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14913
14914 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14915 description.
14916
14917 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14918
14919 [BZ #16335]
14920 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
14921 of 199606L, 200112L, and 200809L.
14922 (_XOPEN_SOURCE): Document special values of 600 and 700.
14923 (_ISOC11_SOURCE): Document macro.
14924 (_ATFILE_SOURCE): Likewise.
14925 (_FORTIFY_SOURCE): Likewise.
14926
14927 2018-02-19 Joseph Myers <joseph@codesourcery.com>
14928
14929 [BZ #15105]
14930 [BZ #19463]
14931 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
14932 and define as weak alias of __ferror_unlocked. Use
14933 libc_hidden_weak.
14934 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
14935 libc_hidden_proto.
14936 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
14937 function if [__USE_EXTERN_INLINES].
14938 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
14939 ferror_unlocked.
14940
14941 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
14942
14943 [BZ #6889]
14944 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
14945
14946 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14947
14948 [BZ #22818]
14949 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
14950 the GLIBC_2.1 version.
14951
14952 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14953
14954 [BZ #21508]
14955 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
14956 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
14957 intl/tst-gettext-de.po from po/de.po by removing the
14958 POT-Creation-Date line.
14959 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
14960 ../po/de.po.
14961 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
14962 ../po/de.po.
14963
14964 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14965
14966 * mach/Makefile (headers): Add mach/param.h.
14967 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
14968 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
14969 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
14970 (__ptsname_r): Move implementation to...
14971 (__ptsname_internal): ... new function. Add filling the STP
14972 structure.
14973
14974 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
14975
14976 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
14977 idouble to 1 ULP.
14978
14979 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
14980
14981 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
14982 syntax.
14983
14984 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
14985
14986 * nptl/Makefile (tst-mutex8-ENV): Delete.
14987 * nptl/tst-mutex8.c (check_type):
14988 Add runtime check if mutex will be elided.
14989
14990 2018-02-15 Joseph Myers <joseph@codesourcery.com>
14991
14992 [BZ #20980]
14993 [BZ #21234]
14994 * manual/install.texi (Configuring and compiling): Describe
14995 passing CC and CFLAGS on configure command line, not as
14996 environment variables. Use @code markup on those variables.
14997 Specify what options go in CC and what go in CFLAGS. Note the
14998 requirement to compile with optimization.
14999 * INSTALL: Regenerated.
15000
15001 [BZ #18124]
15002 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15003 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15004 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15005 __sigprocmask instead of sigprocmask.
15006 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15007 Likewise.
15008 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15009 __sigsetjmp and sigprocmask.
15010
15011 [BZ #15105]
15012 * include/argz.h (argz_next): Use libc_hidden_proto.
15013 (__argz_next): Likewise.
15014 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15015 (argz_next): Use libc_hidden_weak.
15016
15017 [BZ #15105]
15018 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15019 libc_hidden_proto.
15020 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15021 libc_hidden_def.
15022
15023 [BZ #15105]
15024 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15025 libc_hidden_proto.
15026 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15027
15028 [BZ #15105]
15029 [BZ #19463]
15030 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15031 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15032 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15033 (__feof_unlocked): New declaration, and inline function if
15034 [__USE_EXTERN_INLINES].
15035 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15036 instead of feof_unlocked.
15037 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15038 * nss/nsswitch.c (nss_parse_file): Likewise.
15039 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15040 Likewise.
15041 * time/getdate.c (__getdate_r): Likewise.
15042 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15043 Define as macro to call __feof_unlocked.
15044
15045 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15046
15047 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15048
15049 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15050
15051 * math/Makefile: Remove mpexp.c and mplog.c
15052 * sysdeps/i386/fpu/mpexp.c: Delete file.
15053 * sysdeps/i386/fpu/mplog.c: Likewise.
15054 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15055 * sysdeps/ia64/fpu/mplog.c: Likewise.
15056 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15057 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15058 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15059 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15060 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15061 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15062 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15063 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15064 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15065 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15066 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15067 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15068 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15069 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15070 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15071 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15072
15073 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15074
15075 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15076
15077 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15078
15079 * sysdeps/sh/libm-test-ulps: Update.
15080
15081 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15082
15083 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15084 idouble to 1 ULP.
15085
15086 2018-02-12 Zack Weinberg <zackw@panix.com>
15087
15088 [BZ #19239]
15089 * posix/sys/types.h: Don't include sys/sysmacros.h.
15090 * misc/sys/sysmacros.h: Remove the conditional deprecation
15091 warnings for the macros defined by this header.
15092
15093 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15094
15095 * manual/probes.texi: Remove slowexp probes.
15096 * math/Makefile: Remove slowexp.
15097 * sysdeps/generic/math_private.h (__slowexp): Remove.
15098 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15099 document error bounds.
15100 * sysdeps/i386/fpu/slowexp.c: Remove.
15101 * sysdeps/ia64/fpu/slowexp.c: Remove.
15102 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15103 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15104 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15105 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15106 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15107 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15108 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15109 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15110 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15111 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15112 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15113
15114 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15115
15116 [BZ #13932]
15117 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15118 * benchtests/pow-inputs: Update comment for slow path cases.
15119 * manual/probes.texi (slowpow_p10): Delete removed probe.
15120 (slowpow_p10): Likewise.
15121 * math/Makefile: Remove halfulp.c and slowpow.c.
15122 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15123 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15124 (__halfulp): Remove.
15125 (__slowpow): Remove.
15126 * sysdeps/i386/fpu/halfulp.c: Delete file.
15127 * sysdeps/i386/fpu/slowpow.c: Likewise.
15128 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15129 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15130 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15131 improve comments and add error analysis.
15132 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15133 (power1): Remove function:
15134 (log1): Remove error argument, add error analysis.
15135 (my_log2): Remove function.
15136 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15137 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15138 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15139 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15140 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15141 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15142 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15143 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15144 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15145 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15146 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15147 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15148 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15149 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15150
15151 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15152
15153 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15154 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15155
15156 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15157
15158 [BZ #22433]
15159 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15160 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15161 and PTRACE_SETHBPREGS.
15162
15163 2018-02-10 Zack Weinberg <zackw@panix.com>
15164
15165 [BZ #22830]
15166 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15167 correctly.
15168 * malloc/tst-malloc-stats-cancellation.c: New test case.
15169 * malloc/Makefile: Add new test case.
15170
15171 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15172
15173 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15174
15175 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15176
15177 * math/Makefile (libm-narrow-fns): Add add.
15178 (libm-test-funcs-narrow): Likewise.
15179 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15180 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15181 * math/gen-auto-libm-tests.c (test_functions): Add add.
15182 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15183 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15184 (NARROW_ADD_TRIVIAL): Likewise.
15185 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15186 macro.
15187 (__daddl): Likewise.
15188 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15189 dadd.
15190 (CFLAGS-nldbl-dadd.c): New variable.
15191 (CFLAGS-nldbl-fadd.c): Likewise.
15192 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15193 __nldbl_daddl.
15194 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15195 prototype.
15196 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15197 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15198 * math/auto-libm-test-in: Add tests of add.
15199 * math/auto-libm-test-out-narrow-add: New generated file.
15200 * math/libm-test-narrow-add.inc: New file.
15201 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15202 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15203 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15204 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15205 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15206 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15207 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15208 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15209 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15210 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15211 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15212 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15213 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15214 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15215 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15216 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15217 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15218 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15219 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15220 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15221 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15222 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15223 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15224 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15225 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15226 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15227 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15228 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15229 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15230 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15231 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15232 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15233 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15234 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15235 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15236 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15237 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15238 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15239 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15240 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15241 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15242 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15243 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15244 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15245 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15246 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15247
15248 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15249 (f128-pairs): New variable.
15250 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15251 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15252 to CFLAGS.
15253 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15254 Also make tests add $(f128-loader-link) to gnulib-tests.
15255
15256 2018-02-09 DJ Delorie <dj@redhat.com>
15257
15258 [BZ #22827]
15259 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15260 64-bit ELF type for 64-bit ELF objects.
15261
15262 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15263
15264 * math/libm-test-driver.c (snan_tests_arg): New variable.
15265 * math/libm-test-support.h (snan_tests_arg): New declaration.
15266 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15267
15268 * math/Makefile (test-type-pairs): New variable.
15269 (test-type-pairs-f64xf128-yes): Likewise.
15270 (tests): Add test-narrow-macros.
15271 (libm-test-funcs-narrow): New variable.
15272 (libm-test-c-narrow): Likewise.
15273 (generated): Add $(libm-test-c-narrow).
15274 (libm-tests-base-narrow): New variable.
15275 (libm-tests-narrow): Likewise.
15276 (libm-tests): Add $(libm-tests-narrow).
15277 (libm-tests-for-type): Handle $(libm-tests-narrow).
15278 (libm-test-c-narrow-obj): New variable.
15279 ($(libm-test-c-narrow-obj)): New rule.
15280 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15281 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15282 $(o-iterator) to set dependencies and CFLAGS.
15283 * math/gen-auto-libm-tests.c: Document use for narrowing
15284 functions.
15285 (output_for_one_input_case): Take argument NARROW.
15286 (generate_output): Likewise. Update call to
15287 output_for_one_input_case.
15288 (main): Take --narrow option. Update call to generate_output.
15289 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15290 (apply_lit): Update call to _apply_lit.
15291 (apply_arglit): New function.
15292 (parse_args): Handle "a" arguments.
15293 (parse_auto_input): Handle format names using ":".
15294 * math/README.libm-test: Document "a" parameter type.
15295 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15296 (ARG_TYPE_TRUE_MIN): Likewise.
15297 (ARG_TYPE_MAX): Likwise.
15298 (ARG_MIN_EXP): Likewise.
15299 (ARG_MAX_EXP): Likewise.
15300 (ARG_MANT_DIG): Likewise.
15301 (TEST_COND_arg_ibm128): Likewise.
15302 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15303 (TEST_COND_arg_fmt): New macro.
15304 (init_max_error): Update prototype.
15305 * math/libm-test-support.c (test_ibm128): New variable.
15306 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15307 instead of using [TEST_COND_ibm128] conditional.
15308 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15309 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15310 [TEST_NARROW] (TEST_MSG): New definition.
15311 (arg_plus_zero): New macro.
15312 (arg_minus_zero): Likewise.
15313 (arg_plus_infty): Likewise.
15314 (arg_minus_infty): Likewise.
15315 (arg_qnan_value_pl): Likewise.
15316 (arg_qnan_value): Likewise.
15317 (arg_snan_value_pl): Likewise.
15318 (arg_snan_value): Likewise.
15319 (arg_max_value): Likewise.
15320 (arg_min_value): Likewise.
15321 (arg_min_subnorm_value): Likewise.
15322 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15323 (RUN_TEST_LOOP_aa_f): New macro.
15324 (TEST_SUFF): New macro.
15325 (TEST_SUFF_STR): Likewise.
15326 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15327 (TEST_COND_any_ibm128): New macro.
15328 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15329 this_func. Update call to init_max_error.
15330 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15331 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15332 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15333 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15334 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15335 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15336 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15337 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15338 * math/test-math-vector.h (TEST_NARROW): Likewise.
15339 * math/test-arg-double.h: New file.
15340 * math/test-arg-float128.h: Likewise.
15341 * math/test-arg-float32x.h: Likewise.
15342 * math/test-arg-float64.h: Likewise.
15343 * math/test-arg-float64x.h: Likewise.
15344 * math/test-arg-ldouble.h: Likewise.
15345 * math/test-math-narrow.h: Likewise.
15346 * math/test-narrow-macros.c: Likewise.
15347 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15348 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15349 test-narrow-macros-ldbl-64.
15350 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15351
15352 * math/bits/mathcalls-narrow.h: New file.
15353 * include/bits/mathcalls-narrow.h: Likewise.
15354 * math/math-narrow.h: Likewise.
15355 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15356 (__MATHCALL_NARROW_ARGS_2): Likewise.
15357 (__MATHCALL_NARROW_ARGS_3): Likewise.
15358 (__MATHCALL_NARROW_NORMAL): Likewise.
15359 (__MATHCALL_NARROW_REDIR): Likewise.
15360 (__MATHCALL_NARROW): Likewise.
15361 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15362 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15363 defined.
15364 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15365 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15366 (libm-narrow-fns): New variable.
15367 (libm-narrow-types-basic): Likewise.
15368 (libm-narrow-types-ldouble-yes): Likewise.
15369 (libm-narrow-types-float128-yes): Likewise.
15370 (libm-narrow-types-float128-alias-yes): Likewise.
15371 (libm-narrow-types): Likewise.
15372 (libm-routines): Add narrowing functions.
15373 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15374 (libc_feholdexcept_setroundf128): New macro.
15375 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15376 * sysdeps/ieee754/float128/float128_private.h: Include
15377 <math/math-narrow.h>.
15378 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15379 Undefine and redefine.
15380 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15381 (libm_alias_float_ldouble): Undefine and redefine.
15382 (libm_alias_double_ldouble): Likewise.
15383
15384 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15385
15386 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15387
15388 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15389 FPCR/FPSR.
15390
15391 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15392
15393 * manual/creature.texi: Convert references to gcc.info to gcc.
15394 * manual/stdio.texi: Likewise.
15395 * manual/string.texi: Likewise.
15396
15397 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15398
15399 [BZ #17979]
15400 * posix/bits/types.h (__int_least8_t): New typedef.
15401 (__uint_least8_t): Likewise.
15402 (__int_least16_t): Likewise.
15403 (__uint_least16_t): Likewise.
15404 (__int_least32_t): Likewise.
15405 (__uint_least32_t): Likewise.
15406 (__int_least64_t): Likewise.
15407 (__uint_least64_t): Likewise.
15408 * sysdeps/generic/stdint.h (int_least8_t): Define using
15409 __int_least8_t.
15410 (int_least16_t): Define using __int_least16_t.
15411 (int_least32_t): Define using __int_least32_t.
15412 (int_least64_t): Define using __int_least64_t.
15413 (uint_least8_t): Define using __uint_least8_t.
15414 (uint_least16_t): Define using __uint_least16_t.
15415 (uint_least32_t): Define using __uint_least32_t.
15416 (uint_least64_t): Define using __uint_least64_t.
15417 * wcsmbs/uchar.h: Include <bits/types.h>.
15418 (char16_t): Define using __uint_least16_t conditional only on
15419 [!__USE_ISOCXX11].
15420 (char32_t): Define using __uint_least32_t conditional only on
15421 [!__USE_ISOCXX11].
15422 * wcsmbs/test-char-types.c: New file.
15423 * wcsmbs/Makefile (tests): Add test-char-types.
15424
15425 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15426 version to 4.0.1.
15427
15428 2018-02-07 Zack Weinberg <zackw@panix.com>
15429
15430 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15431 Delete all contents except for definitions of _G_HAVE_MMAP and
15432 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15433 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15434 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15435 change as above.
15436
15437 * libio/libio.h: Don't include bits/_G_config.h here.
15438 Include stddef.h with __need_wchar_t defined. Include
15439 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15440 Define _IO_iconv_t here, directly.
15441 Don't define _IO_HAVE_ST_BLKSIZE.
15442 * libio/libioP.h: Include _G_config.h here. Move include of
15443 shlib-compat.h up with rest of includes. Simplify conditionals
15444 controlling definition of _IO_JUMPS_OFFSET.
15445
15446 * csu/init.c: Remove always-true #if around entire file.
15447 Don't include stdio.h. Set _IO_stdin_used to hardwired
15448 constant 0x20001, and update commentary.
15449 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15450 Replace all uses of _G_va_list with __gnuc_va_list.
15451 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15452 instead of #if _IO_HAVE_ST_BLKSIZE.
15453 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15454 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15455 not #ifdef.
15456
15457 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15458 multiple-include guard to match.
15459 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15460 into this file.
15461 Remove preprocessor conditionals that are always true and/or
15462 redundant to other preprocessor conditionals in the same nest.
15463 Include shlib-compat.h unconditionally.
15464 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15465 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15466 defined after including stdio.h.
15467 Use __BEGIN_DECLS/__END_DECLS.
15468
15469 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15470 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15471 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15472
15473 2018-02-07 Zack Weinberg <zackw@panix.com>
15474
15475 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15476 New single-type headers split from _G_config.h.
15477 * libio/bits/types/cookie_io_functions_t.h
15478 * libio/bits/types/struct_FILE.h
15479 New single-type headers split from libio.h.
15480
15481 * libio/Makefile: Install the above new headers. Don't install
15482 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15483 bits/libio-ldbl.h.
15484 * libio/_G_config.h, libio/libio.h: Delete file.
15485
15486 * libio/bits/libio.h: Remove improper-inclusion guard.
15487 Include stdio.h and don't repeat anything that it does.
15488 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15489 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15490 __io_read_fn as cookie_read_function_t,
15491 __io_write_fn as cookie_write_function_t,
15492 __io_seek_fn as cookie_seek_function_t,
15493 __io_close_fn as cookie_close_function_t,
15494 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15495 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15496 here, in the "compatibility defines" section. Remove an #if 0
15497 block. Use the "body" macros from bits/types/struct_FILE.h to
15498 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15499 and _IO_ferror_unlocked.
15500 Move prototypes of __uflow and __overflow...
15501
15502 * libio/stdio.h: ...here. Don't include bits/libio.h.
15503 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15504 directly from stdarg.h. Include bits/types/__fpos_t.h,
15505 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15506 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15507 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15508 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15509 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15510 __ssize_t, not _IO_ssize_t. Unconditionally define
15511 BUFSIZ as 8192 and EOF as (-1).
15512
15513 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15514 macros from bits/types/struct_FILE.h instead of _IO_* macros
15515 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15516 instead of _IO_ssize_t.
15517 * libio/bits/stdio2.h: Similarly.
15518
15519 * libio/iolibio.h: Add multiple-include guard.
15520 Include bits/libio.h after stdio.h.
15521 * libio/libioP.h: Add multiple-include guard.
15522 Include stdio.h and bits/libio.h before iolibio.h.
15523
15524 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15525 * include/bits/types/cookie_io_functions_t.h
15526 * include/bits/types/struct_FILE.h: New wrappers.
15527
15528 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15529 Get definitions of _G_fpos_t and _G_fpos64_t from
15530 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15531 respectively. Remove improper-inclusion guards.
15532
15533 * conform/data/stdio.h-data: Update expectations of va_list.
15534 * scripts/check-installed-headers.sh: Remove special case for
15535 libio.h and _G_config.h.
15536
15537 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15538
15539 [BZ #15105]
15540 [BZ #19463]
15541 * include/sys/sysmacros.h [!_ISOMAC]
15542 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15543 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15544 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15545 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15546 libc_hidden_proto.
15547 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15548 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15549 Likewise.
15550 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15551 Undefine and redefine to add use __gnu_dev_ prefix.
15552 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15553 Likewise.
15554 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15555 and define as hidden inline function.
15556 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15557 Likewise.
15558 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15559 Likewise.
15560 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15561 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15562 (gnu_dev_minor): Likewise.
15563 (gnu_dev_makedev): Likewise.
15564 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15565 makedev.
15566 * posix/wordexp.c (exec_comm_child): Likewise.
15567 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15568 instead of minor and __gnu_dev_major instead of major.
15569 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15570 __gnu_dev_major instead of major.
15571 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15572 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15573 instead of gnu_dev_minor.
15574 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15575 (SLAVE_P): Likewise.
15576 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15577 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15578 instead of major.
15579
15580 [BZ #21313]
15581 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15582 in another place.
15583 * locale/weightwc.h (findidx): Likewise.
15584
15585 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15586
15587 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15588 (slowlog_inexact): Likewise
15589 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15590 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15591
15592 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15593
15594 [BZ #22797]
15595 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15596 missing second underscore to parameter name.
15597
15598 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15599
15600 [BZ #14508]
15601 [BZ #15512]
15602 [BZ #17082]
15603 [BZ #20530]
15604 * bits/byteswap.h: Update file comment. Do not include
15605 <bits/byteswap-16.h>.
15606 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15607 constant.
15608 (__bswap_16): Define as inline function.
15609 (__bswap_constant_32): Reformat definition.
15610 (__bswap_32): Always define as inline function, not macro, using
15611 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15612 otherwise __bswap_constant_32.
15613 (__bswap_constant_64): Reformat definition. Do not use
15614 __extension__ here.
15615 (__bswap_64): Always define as inline function, not macro. Use
15616 __extension__ on function definition. Use __builtin_bswap64 if
15617 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15618 * string/test-endian-file-scope.c: New file.
15619 * string/test-endian-sign-conversion.c: Likewise.
15620 * string/Makefile (headers): Remove bits/byteswap-16.h.
15621 (tests): Add test-endian-file-scope and
15622 test-endian-sign-conversion.
15623 (CFLAGS-test-endian-sign-conversion.c): New variable.
15624 * bits/byteswap-16.h: Remove file.
15625 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15626 * sysdeps/ia64/bits/byteswap.h: Likewise.
15627 * sysdeps/m68k/bits/byteswap.h: Likewise.
15628 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15629 * sysdeps/s390/bits/byteswap.h: Likewise.
15630 * sysdeps/tile/bits/byteswap.h: Likewise.
15631 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15632 * sysdeps/x86/bits/byteswap.h: Likewise.
15633
15634 [BZ #17721]
15635 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15636 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15637 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15638 199901L] (__restrict): Define to restrict.
15639
15640 [BZ #19667]
15641 * string/testcopy.c: Include <support/support.h>. Do not include
15642 <malloc.h>. Use <support/test-driver.c>.
15643 (main): Rename to do_test. Make static. Use xmalloc instead of
15644 malloc.
15645
15646 [BZ #13575]
15647 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15648 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15649 (SSIZE_MAX): Define to INT_MAX.
15650 * posix/test-ssize-max.c: New file.
15651 * posix/Makefile (tests): Add test-ssize-max.
15652
15653 [BZ #19668]
15654 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15655 <support/support.h>. Do not include <malloc.h>.
15656 (query_auxv): Use xmalloc instead of malloc.
15657
15658 [BZ #14553]
15659 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15660 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15661 instead of loff_t.
15662
15663 2018-02-06 Florian Weimer <fweimer@redhat.com>
15664
15665 [BZ #18023]
15666 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15667 Use scratch_buffer instead of extend_alloca.
15668
15669 2018-02-06 Zack Weinberg <zackw@panix.com>
15670
15671 * libio/stdio.h: Don't define getc or putc as macros.
15672 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15673 not _IO_getc and _IO_putc.
15674
15675 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15676 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15677
15678 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15679
15680 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15681 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15682
15683 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15684
15685 [BZ #14890]
15686 * elf/elf.h (NT_PRFPREG): New macro.
15687 (NT_S390_VXRS_LOW): Likewise.
15688 (NT_S390_VXRS_HIGH): Likewise.
15689 (NT_S390_GS_CB): Likewise.
15690 (NT_S390_GS_BC): Likewise.
15691 (NT_S390_RI_CB): Likewise.
15692
15693 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15694 (MAP_SYNC): New macro.
15695 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15696 Likewise.
15697 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15698 (MAP_SYNC): Likewise.
15699 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15700 (MAP_SYNC): Likewise.
15701 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15702 (MAP_SYNC): Likewise.
15703 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15704 (MAP_SYNC): Likewise.
15705 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15706 (MAP_SYNC): Likewise.
15707 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15708 (MAP_SYNC): Likewise.
15709 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15710 Likewise.
15711 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15712 Likewise.
15713
15714 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15715 (MAP_SHARED_VALIDATE): New macro.
15716 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15717 (MAP_SHARED_VALIDATE): Likewise.
15718
15719 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15720
15721 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15722 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15723 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15724
15725 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15726
15727 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15728 (DT_NUM): Updated to 35.
15729
15730 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15731
15732 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15733 __builtin_expect with __glibc_likely and __glibc_unlikely.
15734 (elf_machine_rela): Likewise.
15735 (elf_machine_lazy_rel): Likewise.
15736
15737 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15738
15739 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15740 __builtin_expect with __glibc_likely and __glibc_unlikely.
15741 (elf_machine_lazy_rel): Likewise.
15742
15743 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15744
15745 [BZ #22638]
15746 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15747 SHARED.
15748 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15749
15750 2018-02-05 Andreas Schwab <schwab@suse.de>
15751
15752 [BZ #22761]
15753 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15754 string.
15755
15756 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15757
15758 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15759 not check against PTHREAD_STACK_MIN.
15760
15761 2018-02-02 Sean McKean <smckean83@gmail.com>
15762
15763 [BZ #22735]
15764 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15765
15766 2018-02-02 Florian Weimer <fweimer@redhat.com>
15767
15768 [BZ #22753]
15769 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15770 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15771 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15772 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15773 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15774 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15775 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15776 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15777 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15778 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15779 * misc/tst-preadvwritev2.c (do_test): Call it.
15780 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15781
15782 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15783
15784 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15785
15786 * benchtests/bench-memcmp.c: Print json instead of plain text.
15787
15788 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15789 every test run.
15790
15791 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15792
15793 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15794 version to 4.15.
15795 (s390_sthyi): New syscall.
15796
15797 * sysdeps/generic/ldbl-classify-compat.h: New file.
15798 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15799 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15800 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15801 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15802 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15803 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15804 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15805 <ldbl-classify-compat.h>.
15806 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15807 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15808 <ldbl-classify-compat.h>.
15809 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15810 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15811 <ldbl-classify-compat.h>.
15812 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15813 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15814 <ldbl-classify-compat.h>.
15815 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15816 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15817 <ldbl-classify-compat.h>.
15818 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15819 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15820 <ldbl-classify-compat.h>.
15821 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15822 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15823 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15824 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15825 * sysdeps/microblaze/math_private.h: Likewise.
15826 * sysdeps/nios2/math_private.h: Likewise.
15827 * sysdeps/sh/math_private.h: Likewise.
15828
15829 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15830 * sysdeps/m68k/coldfire/math_private.h: ... here.
15831 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15832 * sysdeps/tile/math_private.h: Likewise.
15833 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15834 Remove macro.
15835 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15836 Likewise.
15837
15838 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15839 Remove macro.
15840 (libc_fetestexcept): Likewise.
15841 (libc_feupdateenv_test): Likewise.
15842 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15843 (libc_fetestexcept): Likewise.
15844 (libc_feupdateenv_test): Likewise.
15845 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15846 (libc_fetestexcept): Likewise.
15847 (libc_feupdateenv_test): Likewise.
15848 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15849 (libc_fetestexcept): Likewise.
15850 (libc_feupdateenv_test): Likewise.
15851
15852 * sysdeps/generic/math_private.h
15853 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15854 New inline function.
15855 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15856 Likewise.
15857
15858 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15859 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15860 * sysdeps/generic/math_private.h
15861 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15862 inline function.
15863 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15864 Likewise.
15865 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15866 Likewise.
15867 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15868 Likewise.
15869 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15870 Likewise.
15871 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15872 Likewise.
15873 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15874 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15875 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15876 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15877 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15878 (__fegetenv): Likewise.
15879 (fesetenv): Likewise.
15880 (__fesetenv): Likewise.
15881 (feupdateenv): Likewise.
15882 (__feupdateenv): Likewise.
15883 (fegetround): Likewise.
15884 (__fegetround): Likewise.
15885 (fesetround): Likewise.
15886 (__fesetround): Likewise.
15887
15888 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15889 (feraiseexcept): New macro.
15890 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15891 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15892 Remove macro.
15893 (__feraiseexcept): Likewise.
15894 (feclearexcept): Likewise.
15895 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15896 (__feraiseexcept): Likewise.
15897 (feclearexcept): Likewise.
15898 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15899 (__feraiseexcept): Likewise.
15900 (feclearexcept): Likewise.
15901 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15902 (__feraiseexcept): Likewise.
15903 (feclearexcept): Likewise.
15904 (fetestexcept): Likewise.
15905
15906 * sysdeps/m68k/coldfire/math-tests.h: New file.
15907
15908 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15909 * sysdeps/m68k/bits/fenv.h: ... here.
15910 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15911 not define.
15912 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15913 Likewise.
15914 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15915 Likewise.
15916 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15917 Likewise.
15918 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
15919 Likewise.
15920 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
15921 Define to 0.
15922 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
15923 (__FE_UNDEFINED): New enum constant.
15924 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
15925 Do not define.
15926 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
15927 Likewise.
15928 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
15929 Likewise.
15930 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
15931 to match generic bits/fenv.h.
15932 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
15933 Do not define.
15934
15935 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
15936 packed on bits.
15937 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
15938 * soft-fp/half.h (union _FP_UNION_H): Likewise.
15939 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
15940 * soft-fp/single.h (union _FP_UNION_S): Likewise.
15941
15942 2018-02-01 Carlos O'Donell <carlos@redhat.com>
15943 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
15944 Joseph Myers <joseph@codesourcery.com>
15945
15946 [BZ #21314]
15947 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
15948 (__log1p): Disable -Wmaybe-uninitialized for -Os around
15949 computation using c.
15950 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
15951 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
15952 computation using c.
15953
15954 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15955
15956 * version.h (RELEASE): Set to "development".
15957 (VERSION): Set to "2.27.9000".
15958 * NEWS (2.28): New section.
15959
15960 * version.h (RELEASE): Set to "stable".
15961 (VERSION): Set to "2.27".
15962 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
15963
15964 * NEWS: Add the list of bugs fixed in 2.27.
15965
15966 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15967
15968 * stdlib/test-atexit-race-common.c (do_test): Check stack size
15969 against PTHREAD_STACK_MIN.
15970
15971 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15972
15973 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
15974 New entries.
15975 (Rafal Luzynski, Andreas Schwab): Update.
15976
15977 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
15978
15979 [BZ #10871]
15980 * NEWS: List the languages which actually use the alternative
15981 months feature in this release. Also explain that "alt_mon" and
15982 "ab_alt_mon" are optional.
15983
15984 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
15985
15986 [BZ #22765]
15987 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
15988
15989 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
15990
15991 * manual/install.texi (Tools for Compilation): Update the newest
15992 versions of gcc, binutils, texinfo, gawk, bison, and sed.
15993 * INSTALL: Regenerated.
15994
15995 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
15996
15997 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
15998 instead of __builtin_expect.
15999
16000 2018-01-30 Florian Weimer <fweimer@redhat.com>
16001
16002 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16003 data.
16004 * nss/tst-nss-getpwent.c (do_test): Likewise.
16005
16006 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16007
16008 [BZ #10871]
16009 * localedata/locales/hr_HR (mon): Rename to...
16010 (alt_mon): This.
16011 (mon): Import from CLDR (genitive case).
16012 (d_t_fmt): Update the comment.
16013
16014 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16015
16016 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16017 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16018 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16019
16020 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16021
16022 * mach/Versions: Fix version when __mach_host_self_ was added.
16023 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16024 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16025 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16026 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16027 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16028 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16029 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16030 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16031 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16032 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16033 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16034 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16035 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16036 || to respect codestyle.
16037 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16038 (do_test_bz20181): Rename accordingly.
16039 * malloc/malloc.c: Include <assert.h>.
16040 (assert): Do not define.
16041 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16042 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16043 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16044 * sysdeps/mach/hurd/hp-timing.h: New file.
16045 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16046
16047 2018-01-29 Darius Rad <darius@bluespec.com>
16048
16049 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16050
16051 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16052
16053 * sysdeps/init_array/crti.S (.section .init_array): Add
16054 PREINIT_FUNCTION when defined.
16055 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16056 * config.h.in: Regenerate.
16057 * manual/platform.texi: Add RISC-V documenation for
16058 __riscv_flush_icache.
16059 * sysdeps/riscv/__longjmp.S: New file.
16060 * sysdeps/riscv/backtrace.c: Likewise.
16061 * sysdeps/riscv/bits/endian.h: Likewise.
16062 * sysdeps/riscv/bits/setjmp.h: Likewise.
16063 * sysdeps/riscv/bits/wordsize.h: Likewise.
16064 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16065 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16066 * sysdeps/riscv/dl-trampoline.S: Likewise.
16067 * sysdeps/riscv/gccframe.h: Likewise.
16068 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16069 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16070 * sysdeps/riscv/machine-gmon.h: Likewise.
16071 * sysdeps/riscv/memusage.h: Likewise.
16072 * sysdeps/riscv/setjmp.S: Likewise.
16073 * sysdeps/riscv/sys/asm.h: Likewise.
16074 * sysdeps/riscv/tls-macros.h: Likewise.
16075 * sysdeps/riscv/dl-tls.h: New file.
16076 * sysdeps/riscv/libc-tls.c: Likewise.
16077 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16078 * sysdeps/riscv/nptl/tls.h: Likewise.
16079 * sysdeps/riscv/stackinfo.h: Likewise.
16080 * sysdeps/riscv/bits/fenv.h: New file.
16081 * sysdeps/riscv/e_sqrtl.c: Likewise.
16082 * sysdeps/riscv/fpu_control.h: Likewise.
16083 * sysdeps/riscv/math-tests.h: Likewise.
16084 * sysdeps/riscv/nofpu/Implies: Likewise.
16085 * sysdeps/riscv/sfp-machine.h: Likewise.
16086 * sysdeps/riscv/tininess.h: Likewise.
16087 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16088 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16089 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16090 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16091 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16092 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16093 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16094 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16095 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16096 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16097 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16098 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16099 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16100 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16101 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16102 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16103 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16104 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16105 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16106 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16107 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16108 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16109 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16110 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16111 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16112 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16113 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16114 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16115 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16116 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16117 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16118 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16119 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16120 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16121 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16122 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16123 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16124 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16125 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16126 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16127 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16128 * sysdeps/riscv/rvf/math_private.h: Likewise.
16129 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16130 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16131 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16132 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16133 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16134 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16135 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16136 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16137 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16138 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16139 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16140 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16141 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16142 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16143 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16144 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16145 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16146 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16147 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16148 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16149 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16150 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16151 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16152 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16153 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16154 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16155 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16156 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16157 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16158 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16159 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16160 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16161 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16162 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16163 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16164 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16165 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16166 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16167 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16168 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16169 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16170 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16171 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16172 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16173 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16174 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16175 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16176 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16177 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16178 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16179 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16180 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16181 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16182 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16183 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16184 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16185 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16186 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16187 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16188 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16189 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16190 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16191 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16192 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16193 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16194 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16195 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16196 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16197 * sysdeps/riscv/Implies: New file.
16198 * sysdeps/riscv/Makefile: Likewise.
16199 * sysdeps/riscv/configure: Likewise.
16200 * sysdeps/riscv/configure.ac: Likewise.
16201 * sysdeps/riscv/nptl/Makefile: Likewise.
16202 * sysdeps/riscv/preconfigure: Likewise.
16203 * sysdeps/riscv/rv64/Implies-after: Likewise.
16204 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16205 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16206 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16207 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16208 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16209 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16210 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16211 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16212 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16213 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16214 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16215 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16216 (Config): Likewise.
16217
16218 2018-01-29 Florian Weimer <fweimer@redhat.com>
16219
16220 [BZ #22701]
16221 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16222 libnsl_hidden_proto.
16223 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16224 libnsl_hidden_proto.
16225 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16226 * nis/Makefile (libnsl-routines): Add nss-default only for
16227 build-obsolete-nsl.
16228 * nis/nis_defaults.c (__nis_default_ttl): Add
16229 libnsl_hidden_nolink_def.
16230 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16231 declaration.
16232 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16233 * nis/ypclnt.c (yp_maplist): Likewise.
16234
16235 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16236
16237 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16238 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16239
16240 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16241
16242 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16243 clean -dxfq for git updates when replacing sources.
16244
16245 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16246 --disable-libcilkrts unconditionally, not just for the final GCC
16247 build for Hurd.
16248
16249 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16250 version to 4.15.
16251
16252 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16253
16254 [BZ #10871]
16255 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16256 case).
16257
16258 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16259
16260 [BZ #10871]
16261 * localedata/locales/be_BY (mon): Rename to...
16262 (alt_mon): This, then synchronize with CLDR (nominative case).
16263 (abmon): Rename to...
16264 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16265 (mon): Import from CLDR (genitive case).
16266 (abmon): Likewise.
16267 * localedata/locales/be_BY@latin (mon): Rename to...
16268 (alt_mon): This.
16269 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16270
16271 * localedata/locales/be_BY@latin (lang_name): Reworded to
16272 "biełaruskaja mova".
16273
16274 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16275
16276 [BZ #10871]
16277 * localedata/locales/el_CY (mon): Renamed to...
16278 (alt_mon): This.
16279 (mon): Import from CLDR (genitive case).
16280 * localedata/locales/el_GR: Likewise.
16281
16282 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16283
16284 [BZ #10871]
16285 * localedata/locales/ru_RU (mon): Rename to...
16286 (alt_mon): This.
16287 (abmon): Rename to...
16288 (ab_alt_mon): This.
16289 (mon): Import from CLDR (genitive case).
16290 (abmon): Copy from the old content except the 5th month which is
16291 now in the genitive case, even when abbreviated.
16292 * localedata/locales/ru_UA: Likewise.
16293 * time/tst-strptime.c (day_tests): Add an actual example of
16294 a difference between %b and %Ob in Russian.
16295
16296 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16297
16298 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16299 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16300 a `c' variable.
16301 * resolv/res-close.c: Include <stdlib.h>.
16302 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16303 <sys/wait.h>, <time.h>, <sys/uio.h>.
16304 (NOT_CANCEL_H): Add inclusion guard.
16305 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16306 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16307 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16308 return 0.
16309 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16310 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16311 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16312 instead of void *.
16313 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16314 timer_ptr2id to cast struct timer_node * to void *.
16315 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16316 --disable-libcilkrts to gcc configure.
16317 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16318 and make them the default for now.
16319 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16320 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16321 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16322 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16323 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16324 MACH_IPC_COMPAT.
16325 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16326 __task_terminate would ever return successfully.
16327 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16328 to global scope.
16329 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16330 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16331 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16332 critical section to make code simpler and avoid warning.
16333 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16334 critical section to make code simpler and avoid warning.
16335 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16336 const char * instead of char *.
16337 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16338 __hurd_file_name_split, hurd_file_name_split,
16339 __hurd_directory_name_split, hurd_directory_name_split,
16340 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16341 hurd_file_name_path_lookup): Make lookup function parameter take a
16342 const char *name instead of char *name.
16343 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16344 __hurd_directory_name_split): Likewise.
16345 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16346 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16347 * sysdeps/mach/hurd/check_native.c: New file.
16348 * sysdeps/mach/hurd/check_pf.c: New file.
16349 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16350 (__freeifaddrs): Define macro to freeifaddrs.
16351 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16352 * sysdeps/mach/libmachuser.abilist: New file.
16353 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16354 (do_test_bz20181): Rename accordingly.
16355 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16356 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16357 <sys/mount.h>.
16358 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16359 version only if __USE_EXTERN_INLINES is defined.
16360 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16361 __hurd_sockfail): Likewise.
16362 (_hurd_fd_get): Always declare functions, and provide inline versions
16363 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16364 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16365 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16366 _hurd_port_set): Always declare functions, and provide inline versions
16367 only if __USE_EXTERN_INLINES and _LIBC are defined and
16368 IS_IN(libc).
16369 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16370 _hurd_critical_section_unlock): Likewise.
16371 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16372 * __hurd_threadvar_location): Likewise.
16373 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16374 _hurd_userlink_clear): Likewise.
16375 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16376 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16377 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16378 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16379 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16380 __spin_lock_locked): Likewise.
16381 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16382 __spin_lock_locked): Likewise.
16383 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16384 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16385 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16386 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16387 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16388 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16389 _POSIX_NO_TRUNC): Define to 0.
16390 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16391 check size against PTHREAD_STACK_MIN.
16392 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16393 IS_IN(libpthread)]: Include <sigsetops.h>.
16394 * mach/Makefile (user-interfaces): Add mach/gnumach.
16395 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16396 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16397 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16398 instead of invalid -1.
16399 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16400 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16401 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16402 <net/ppp_defs.h>.
16403
16404 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16405
16406 * hurd/fcntl-internal.h: New file.
16407
16408 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16409
16410 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16411
16412 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16413
16414 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16415
16416 [BZ #22701]
16417 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16418 Build only shared objects.
16419
16420 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16421
16422 * README: Update for hppa.
16423
16424 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16425
16426 * sysdeps/sparc/fpu/libm-test-ulps: Update
16427 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16428
16429 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16430
16431 Revert:
16432
16433 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16434
16435 [BZ #22563]
16436 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16437 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16438 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16439 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16440 to feature_1.
16441
16442 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16443
16444 [BZ #22563]
16445 * bits/types/__cancel_jmp_buf_tag.h: New file.
16446 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16447 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16448 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16449 * nptl/Makefile (headers): Add
16450 bits/types/__cancel_jmp_buf_tag.h.
16451 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16452 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16453 * sysdeps/nptl/pthread.h: Include
16454 <bits/types/__cancel_jmp_buf_tag.h>.
16455 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16456 __cancel_jmp_buf.
16457 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16458
16459 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16460
16461 [BZ #10871]
16462 * localedata/locales/uk_UA (mon): Renamed to...
16463 (alt_mon): This.
16464 (alt_digits): "0" removed and then renamed to...
16465 (mon): This.
16466 (date_fmt): Definition changed not to use the alternative
16467 digits hack.
16468
16469 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16470
16471 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16472 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16473 * elf/elf.h (EF_RISCV_RVC): New define.
16474 (EF_RISCV_FLOAT_ABI): Likewise.
16475 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16476 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16477 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16478 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16479 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16480 define.
16481 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16482
16483 2018-01-25 Andreas Schwab <schwab@suse.de>
16484
16485 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16486 single quotes.
16487 * sysdeps/gnu/configure: Regenerate.
16488 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16489 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16490 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16491 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16492 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16493 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16494 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16495 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16496
16497 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16498
16499 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16500 URL, and run autoconf, make it the default for now.
16501
16502 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16503
16504 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16505 soft-float ColdFire configuration.
16506
16507 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16508 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16509 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16510
16511 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16512 MicroBlaze file.
16513
16514 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16515 ....
16516 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16517 ... here.
16518 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16519 New file.
16520
16521 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16522 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16523 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16524 file.
16525
16526 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16527
16528 [BZ #22742]
16529 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16530 Rename to __reserved and add comment.
16531 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16532 Rename to __reserved.
16533
16534 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16535
16536 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16537 i686-gnu configurations.
16538 (Context.run_builds): Include mig, gnumach and hurd in components
16539 considered.
16540 (Context.checkout): Add mig, gnumach and hurd to components.
16541 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16542 hurd.
16543 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16544 (Config.build): Install gnumach headers, build mig and install
16545 hurd headers for 'gnu' OS.
16546 (Config.install_gnumach_headers): New function.
16547 (Config.install_hurd_headers): Likewise.
16548 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16549 when building for 'gnu' OS.
16550
16551 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16552
16553 * manual/tunables.texi (Hardware Capability Tunables): Fix
16554 spelling.
16555
16556 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16557
16558 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16559 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16560 (ALTMON_11, ALTMON_12): Improve documentation.
16561 * manual/time.texi (strftime): Likewise.
16562
16563 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16564
16565 [BZ #10871]
16566 * localedata/locales/pl_PL: Alternative month names added,
16567 primary month names are genitive now.
16568 * time/tst-strptime.c (day_tests): Actually use a genitive case
16569 of a month name in Polish language.
16570
16571 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16572
16573 [BZ #10871]
16574 * manual/locale.texi: Document ALTMON_1..12 constants for
16575 nl_langinfo. Specify when to use ALTMON instead of MON.
16576 * manual/time.texi (strftime, strptime): Document GNU extension
16577 permitting O modifier with %B and %b. Specify when to use
16578 %OB instead of %B.
16579
16580 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16581
16582 [BZ #10871]
16583 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16584 names, define them as the same as abbreviated month names explicitly.
16585 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16586 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16587 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16588 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16589 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16590 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16591 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16592 _NL_WABALTMON_12): New enum constants.
16593 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16594 wab_alt_mon, and ab_alt_mon_defined members.
16595 (time_output): Output ab_alt_mon and wab_alt_mon members.
16596 (time_read): Read them, initialize them as copies of abmon and wabmon
16597 respectively if they are missing, initialize ab_alt_mon_defined.
16598 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16599 * locale/programs/locfile-kw.h: Regenerate.
16600 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16601 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16602 and ru_RU.UTF-8.
16603 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16604 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16605 (__strftime_internal): Handle %Ob and %Oh formats.
16606 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16607 (__strptime_internal): Handle %Ob and %Oh formats.
16608 * time/tst-strptime.c (day_tests): Add more tests to parse different
16609 forms of month names including the new %Ob format specifier.
16610
16611 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16612
16613 [BZ #10871]
16614 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16615 define them as the same as primary full month names explicitly.
16616 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16617 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16618 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16619 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16620 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16621 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16622 _NL_WALTMON_12): New enum constants.
16623 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16624 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16625 macros.
16626 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16627 walt_mon, and alt_mon_defined members.
16628 (time_output): Output alt_mon and walt_mon members.
16629 (time_read): Read them, initialize them as copies of mon and wmon
16630 respectively if they are missing, initialize alt_mon_defined.
16631 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16632 * locale/programs/locfile-kw.h: Regenerate.
16633 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16634 * localedata/tst-langinfo.c (map): Add tests for the new constants
16635 ALTMON_1 .. ALTMON_12.
16636 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16637 and pl_PL.UTF-8.
16638 * time/strftime_l.c (f_altmonth): New macro.
16639 (__strftime_internal): Handle %OB format.
16640 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16641 (__strptime_internal): Handle %OB format.
16642 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16643 of month names including the new %OB format specifier.
16644
16645 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16646
16647 [BZ #22685]
16648 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16649 from ABORT_TRANSACTION.
16650 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16651 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16652 ABORT_TRANSACTION_IMPL): Likewise.
16653 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16654 Linux code, but remove the code that aborts transactions.
16655
16656 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16657
16658 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16659
16660 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16661
16662 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16663 in date: "2004-14-09" should be "2004-09-14".
16664 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16665 "2003-15-09" should be "2003-09-15".
16666
16667 2018-01-18 Arjun Shankar <arjun@redhat.com>
16668
16669 [BZ #22343]
16670 [BZ #22774]
16671 CVE-2018-6485
16672 CVE-2018-6551
16673 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16674 after padding.
16675 (_int_memalign): check for integer overflow before calling
16676 _int_malloc.
16677 * malloc/tst-malloc-too-large.c: New test.
16678 * malloc/Makefile: Add tst-malloc-too-large.
16679
16680 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16681
16682 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16683 in date: "2017-24-07" should be "2017-07-24".
16684 * localedata/locales/mai_IN: Likewise.
16685 * localedata/locales/mai_NP: Likewise.
16686
16687 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16688
16689 * po/ru.po: Update translations.
16690
16691 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16692
16693 [BZ #22719]
16694 * sysdeps/hppa/backtrace.c: New file.
16695
16696 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16697
16698 [BZ #22715]
16699 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16700 align La_x86_64_retval to VEC_SIZE.
16701
16702 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16703
16704 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16705 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16706
16707 2018-01-16 Florian Weimer <fweimer@redhat.com>
16708
16709 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16710 Move tst-thread-exit-clobber ...
16711 [$(CXX)] (tests-unsupported): ... to here.
16712
16713 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16714
16715 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16716 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16717 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16718 (_dl_aarch64_cap_flags): Update.
16719 (_DL_HWCAP_COUNT): Update.
16720
16721 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16722
16723 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16724 (_DL_HWCAP_LAST): Remove.
16725 (_DL_HWCAP_COUNT): Move to ...
16726 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16727 (_DL_HWCAP_COUNT): ... here.
16728
16729 2018-01-16 Florian Weimer <fweimer@redhat.com>
16730
16731 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16732 mode with GNU extensions.
16733
16734 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16735
16736 * elf/elf.h (NT_ARM_SVE): Define.
16737
16738 2018-01-15 Florian Weimer <fweimer@redhat.com>
16739
16740 [BZ #22636]
16741 * nptl/tst-minstack-throw.cc: New file.
16742 * nptl/Makefile (tests): Add tst-minstack-throw.
16743 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16744 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16745
16746 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16747
16748 * scripts/build-many-glibcs.py (Context.checkout): Default
16749 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16750 version to 1.1.0.
16751
16752 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16753
16754 [BZ #22707]
16755 * elf/elf.h (DF_1_STUB): Define.
16756 (DF_1_PIE): Define.
16757
16758 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16759
16760 [BZ #22697]
16761 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16762 Do not add 0.5 to integer or out-of-range arguments.
16763
16764 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16765
16766 * po/bg.po: Update translations.
16767 * po/cs.po: Likewise.
16768 * po/de.po: Likewise.
16769 * po/ko.po: Likewise.
16770 * po/pl.po: Likewise.
16771 * po/sv.po: Likewise.
16772 * po/uk.po: Likewise.
16773 * po/vi.po: Likewise.
16774
16775 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16776
16777 * aarch64/start.S (_start): Use __wrap_main.
16778 (__wrap_main): New local symbol.
16779
16780 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16781
16782 [BZ #22679]
16783 CVE-2018-1000001
16784 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16785 generic_getcwd if the path returned by getcwd syscall is not absolute.
16786 * io/tst-getcwd-abspath.c: New test.
16787 * io/Makefile (tests): Add tst-getcwd-abspath.
16788
16789 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16790
16791 * malloc/malloc.c (malloc_consolidate): Add size check.
16792
16793 2018-01-12 Florian Weimer <fweimer@redhat.com>
16794
16795 * support/write_message.c (write_message): Preserve errno.
16796 * support/check.c (print_failure): Likewise.
16797 * support/support_test_verify_impl.c (support_test_verify_impl):
16798 Likewise.
16799 * support/support_test_compare_failure.c
16800 (support_test_compare_failure): Likewise.
16801
16802 2018-01-12 Florian Weimer <fweimer@redhat.com>
16803
16804 [BZ #22701]
16805 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16806 Prevent installation of libnsl.so.
16807 (libnsl-inhibit-o): Do not build (or install) static libraries.
16808
16809 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16810
16811 [BZ #22657]
16812 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16813 before the day number which may produce a double space.
16814 (date_fmt): Likewise.
16815
16816 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16817
16818 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16819 instead of fegetenv.
16820
16821 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16822
16823 [BZ #22702]
16824 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16825 comment to say exceptions are discarded.
16826 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16827 __fegetenv.
16828 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16829 be enabled.
16830
16831 2018-01-11 Florian Weimer <fweimer@redhat.com>
16832
16833 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16834 and error message.
16835
16836 2018-01-11 Florian Weimer <fweimer@redhat.com>
16837
16838 [BZ #22636]
16839 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16840 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16841
16842 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16843
16844 [BZ #22693]
16845 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16846 negative arguments in test for NaN or infinity argument.
16847
16848 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16849
16850 * po/libc.pot: Regenerate.
16851
16852 2018-01-10 Florian Weimer <fweimer@redhat.com>
16853
16854 [BZ #22636]
16855 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16856 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16857
16858 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16859
16860 * hurd/hurd/fd.h: Include <fcntl.h>
16861 (__hurd_at_flags): New function.
16862 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16863 with call to __hurd_at_flags.
16864 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16865 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16866 __faccessat
16867 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16868 (__access_noerrno): Use __faccessat_common instead of access_common.
16869 (__access): Likewise.
16870 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16871 with a call to __faccessat.
16872 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16873 (__faccessat_common): ... this. Move implementation of __access into it when
16874 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16875 reauthenticate_cwdir_at helper to implement AT mechanism.
16876 (__faccessat_noerrno): New function, just calls __faccessat_common.
16877 (__faccessat): New function, just calls __faccessat_common.
16878 (faccessat): Define weak alias.
16879
16880 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16881
16882 [BZ #22691]
16883 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16884 (CFLAGS-s_fmaxmagl.c): New variable.
16885 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16886
16887 [BZ #22690]
16888 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16889 long int for arguments of possibly overflowing addition or
16890 subtraction.
16891 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16892
16893 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16894
16895 [BZ #22688]
16896 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16897 (CFLAGS-e_remainderl.c): New variable.
16898
16899 [BZ #22687]
16900 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16901 variable.
16902 (CFLAGS-s_cacoshl.c): Likewise.
16903 (CFLAGS-s_casinhl.c): Likewise.
16904 (CFLAGS-s_catanl.c): Likewise.
16905 (CFLAGS-s_catanhl.c): Likewise.
16906 (CFLAGS-s_cexpl.c): Likewise.
16907 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16908 (CFLAGS-s_csinhl.c): Likewise.
16909 (CFLAGS-s_clogl.c): Likewise.
16910 (CFLAGS-s_clog10l.c): Likewise.
16911 (CFLAGS-s_csinl.c): Likewise.
16912 (CFLAGS-s_csqrtl.c): Likewise.
16913
16914 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16915 2017-01-09 Svante Signell <svante.signell@gmail.com>
16916
16917 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
16918 (_hurd_exec_paths): New function.
16919 * hurd/hurd.h (_hurd_exec): Deprecate function.
16920 (_hurd_exec_paths): Declare function.
16921 * hurd/Versions: Export _hurd_exec_paths.
16922 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
16923 (__execve): Use __getcwd to build absolute path, and use
16924 _hurd_exec_paths instead of _hurd_exec.
16925 * sysdeps/mach/hurd/spawni.c: Likewise.
16926 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
16927 _hurd_exec.
16928
16929 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
16930
16931 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
16932 test instead of failing in case of ENOENT returned by posix_openpt.
16933
16934 2018-01-08 Florian Weimer <fweimer@redhat.com>
16935
16936 resolv: Support binary labels in test framework.
16937 * support/resolv_test.c (struct to_be_freed): Remove.
16938 (struct compressed_name): New.
16939 (allocate_compressed_name, ascii_tolower)
16940 (compare_compressed_name): New functions.
16941 (struct resolv_response_builder): Update type of
16942 compression_offsets for use with tsearch. Rempve to_be_freed.
16943 (response_push_pointer_to_free): Remove function.
16944 (resolv_response_add_name): Rewrite using struct compressed_name
16945 and tsearch instead of hsearch_r.
16946 (response_builder_allocate): Remove initialization of
16947 compression_offsets.
16948 (response_builder_free): Update for removal of to_be_freed. Use
16949 tdestroy instead of hdestroy_r.
16950 * resolv/Makefile (tests): Add tst-resolv-binary.
16951 (tst-resolv-binary): Link with -lresolv -lpthread.
16952
16953 2018-01-08 Florian Weimer <fweimer@redhat.com>
16954
16955 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
16956 time. Pass positive flag instead of negative flag to
16957 support_test_compare_failure.
16958 (support_test_compare_failure): Change negative parameter to
16959 positive.
16960 * support/support_test_compare_failure.c (report)
16961 (support_test_compare_failure): Likewise.
16962 * support/tst-test_compare.c (return_ssize_t, return_int): New.
16963 (do_test): Check int/size_t, ssize_t/size_t comparisons.
16964
16965 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
16966
16967 [BZ #22637]
16968 * nptl/descr.h (stackblock, stackblock_size): Update comments.
16969 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
16970 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
16971 stacksize.
16972 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
16973
16974 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
16975
16976 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16977 Add s_sincosf-sse2 and s_sincosf-fma.
16978 (CFLAGS-s_sincosf-fma.c): New.
16979 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
16980 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
16981 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
16982 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
16983 __sincosf is defined.
16984
16985 2018-01-08 Florian Weimer <fweimer@redhat.com>
16986
16987 * nptl/tst-thread-exit-clobber.cc: New file.
16988 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
16989 C++11 mode.
16990 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
16991 (tests): Add tst-thread-exit-clobber.
16992 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
16993
16994 2018-01-08 Florian Weimer <fweimer@redhat.com>
16995
16996 * support/check.h (support_static_assert): Define.
16997 (TEST_COMPARE): Use it.
16998
16999 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17000
17001 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17002 [!__RLIM_T_MATCHES_RLIM64_T]
17003 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17004 __getrlimit64. Add libc_hidden_weak.
17005
17006 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17007
17008 * elf/elf.h (R_RISCV_NONE): New define.
17009 (R_RISCV_32): Likewise.
17010 (R_RISCV_64): Likewise.
17011 (R_RISCV_RELATIVE): Likewise.
17012 (R_RISCV_COPY): Likewise.
17013 (R_RISCV_JUMP_SLOT): Likewise.
17014 (R_RISCV_TLS_DTPMOD32): Likewise.
17015 (R_RISCV_TLS_DTPMOD64): Likewise.
17016 (R_RISCV_TLS_DTPREL32): Likewise.
17017 (R_RISCV_TLS_DTPREL64): Likewise.
17018 (R_RISCV_TLS_TPREL32): Likewise.
17019 (R_RISCV_TLS_TPREL64): Likewise.
17020 * Makerules (make-link-multidir): Make directories before linking into
17021 them.
17022 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17023 define.
17024 (VDSO_HASH_LINUX_4_15): Likewise.
17025 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17026 in subdirectories of lib.
17027 * nptl/Makefile (/librt.so): Always depend on
17028 "$(shared-thread-library)".
17029
17030 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17031
17032 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17033 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17034 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17035 (___tls_get_addr).
17036 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17037 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17038 "-O2 -march=i686".
17039 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17040 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17041 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17042 * sysdeps/gnu/glob-lstat-compat.c: New file.
17043 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17044 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17045
17046 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17047
17048 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17049 Reserve 16 chars to reloc_addr before calling _itoa_word.
17050
17051 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17052
17053 [BZ #22678]
17054 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17055 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17056
17057 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17058 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17059
17060 * resource/tst-getrlimit.c: Add copyright header.
17061
17062 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17063 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17064
17065 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17066 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17067 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17068 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17069 instead.
17070 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17071 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17072 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17073 RLIM64_INFINITY): Fix values to match the kernel ones.
17074 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17075 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17076 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17077 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17078 getrlimit64@@GLIBC_2_27.
17079 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17080 and setrlimit64.
17081 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17082 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17083 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17084 setrlimit, getrlimit64 and setrlimit64.
17085
17086 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17087
17088 [BZ #22648]
17089 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17090 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17091
17092 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17093
17094 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17095 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17096 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17097
17098 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17099
17100 [BZ #15479]
17101 [BZ #22666]
17102 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17103 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17104
17105 [BZ #15479]
17106 [BZ #22665]
17107 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17108 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17109 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17110 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17111
17112 2018-01-04 Florian Weimer <fweimer@redhat.com>
17113
17114 [BZ #22667]
17115 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17116 Align the stack before calling exit.
17117 * stdlib/tst-makecontext-align.c: New file.
17118 * stdlib/Makefile (tests): Add tst-makecontext-align.
17119
17120 2018-01-04 Florian Weimer <fweimer@redhat.com>
17121
17122 Add support for calling dlvsym from libc.so.
17123 * include/dlfcn.h (__libc_dlvsym): Declare.
17124 * elf/Makefile (tests-static-internal): Add
17125 tst-libc_dlvsym-static.
17126 (tests-internal): Add tst-libc_dlvsym.
17127 (modules-names): Add tst-libc_dlvsym-dso.
17128 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17129 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17130 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17131 object tst-libc_dlvsym-dso.so needs to be built before running
17132 these tests.
17133 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17134 * elf/Versions: Export __libc_dlvsym.
17135 * elf/dl-libc.c (struct do_dlvsym_args): New.
17136 (do_dlvsym, __libc_dlvsym): New functions.
17137 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17138 (_dl_open_hook2): New variable.
17139 (__libc_register_dl_open_hook): Set it.
17140 * elf/tst-libc_dlvsym-dso.c: New file.
17141 * elf/tst-libc_dlvsym-static.c: Likewise.
17142 * elf/tst-libc_dlvsym.c: Likewise.
17143 * elf/tst-libc_dlvsym.h: Likewise.
17144
17145 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17146
17147 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17148 include <sys/mount.h>.
17149
17150 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17151
17152 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17153 Add __NO_MATH_ERRNO__ check.
17154
17155 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17156
17157 * sysdeps/mips/mips32/libm-test-ulps: Update.
17158 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17159
17160 2018-01-02 Florian Weimer <fweimer@redhat.com>
17161
17162 * misc/tst-pselect.c: Add copyright header.
17163
17164 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17165
17166 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17167 comment.
17168 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17169 comment.
17170 (settrlimit): Rename into setrlimit.
17171 (__sttrlimit): Rename into __setrlimit.
17172
17173 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17174 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17175 never defined in that case.
17176
17177 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17178
17179 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17180
17181 * sysdeps/arm/libm-test-ulps: Update.
17182
17183 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17184 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17185
17186 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17187
17188 * NEWS: Add cosf and sincosf to list of optimized functions.
17189
17190 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17191
17192 [BZ #22660]
17193 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17194 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17195 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17196 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17197
17198 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17199
17200 [BZ #22433]
17201 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17202
17203 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17204 making a copy of it.
17205
17206 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17207
17208 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17209 trailing whitespace removed.
17210 * scripts/config.guess: Update to version 2018-01-01.
17211 * scripts/config.sub: Update to version 2018-01-01.
17212 * scripts/move-if-change: Update from gnulib.
17213
17214 * NEWS: Update copyright dates.
17215 * catgets/gencat.c (print_version): Likewise.
17216 * csu/version.c (banner): Likewise.
17217 * debug/catchsegv.sh: Likewise.
17218 * debug/pcprofiledump.c (print_version): Likewise.
17219 * debug/xtrace.sh (do_version): Likewise.
17220 * elf/ldconfig.c (print_version): Likewise.
17221 * elf/ldd.bash.in: Likewise.
17222 * elf/pldd.c (print_version): Likewise.
17223 * elf/sotruss.sh: Likewise.
17224 * elf/sprof.c (print_version): Likewise.
17225 * iconv/iconv_prog.c (print_version): Likewise.
17226 * iconv/iconvconfig.c (print_version): Likewise.
17227 * locale/programs/locale.c (print_version): Likewise.
17228 * locale/programs/localedef.c (print_version): Likewise.
17229 * login/programs/pt_chown.c (print_version): Likewise.
17230 * malloc/memusage.sh (do_version): Likewise.
17231 * malloc/memusagestat.c (print_version): Likewise.
17232 * malloc/mtrace.pl: Likewise.
17233 * manual/libc.texinfo: Likewise.
17234 * nptl/version.c (banner): Likewise.
17235 * nscd/nscd.c (print_version): Likewise.
17236 * nss/getent.c (print_version): Likewise.
17237 * nss/makedb.c (print_version): Likewise.
17238 * posix/getconf.c (main): Likewise.
17239 * scripts/test-installation.pl: Likewise.
17240 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17241
17242 * All files with FSF copyright notices: Update copyright dates
17243 using scripts/update-copyrights.
17244 * locale/programs/charmap-kw.h: Regenerated.
17245 * locale/programs/locfile-kw.h: Likewise.
17246
17247 2017-12-31 Zack Weinberg <zackw@panix.com>
17248
17249 * libio/bits/libio-ldbl.h: Correct check for improper
17250 inclusion. Add own multiple include guard.
17251
17252 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17253 Dmitry V. Levin <ldv@altlinux.org>
17254
17255 [BZ #22625]
17256 CVE-2017-16997
17257 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17258 string token expansion. Check for NULL pointer or empty string possibly
17259 returned by expand_dynamic_string_token.
17260 (decompose_rpath): Check for empty path after dynamic string
17261 token expansion.
17262
17263 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17264
17265 [BZ #22433]
17266 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17267
17268 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17269 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17270 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17271 and PTRACE_SYSCALL.
17272 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17273 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17274 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17275 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17276 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17277 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17278
17279 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17280 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17281 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17282 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17283 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17284 bits/ptrace-shared.h.
17285 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17286 <bits/ptrace-shared.h>.
17287 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17288 __ptrace_peeksiginfo_flags, ptrace): Remove.
17289 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17290 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17291 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17292 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17293 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17294
17295 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17296
17297 [BZ #17804]
17298 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17299 end of the loop. Improve comments.
17300
17301 2017-12-29 Zack Weinberg <zackw@panix.com>
17302
17303 [BZ #22615]
17304 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17305 might be set on success.
17306
17307 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17308
17309 [BZ #22611]
17310 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17311 is unchanged on success.
17312
17313 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17314
17315 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17316 updated.
17317 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17318 expand_dynamic_string_token): Likewise.
17319 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17320 is_path argument.
17321
17322 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17323 contains ':'.
17324
17325 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17326 is set and name contains ':', and all code depending on these checks.
17327
17328 2017-12-24 Zack Weinberg <zackw@panix.com>
17329
17330 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17331 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17332 respectively.
17333 * libio/libio.h: Rename the original version of this file to
17334 libio/bits/libio.h. Error out if not included by stdio.h or the
17335 stub libio.h.
17336 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17337 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17338 if not included by bits/libio.h or the stub _G_config.h.
17339 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17340 sysdeps/unix/sysv/linux/bits. Error out if not included by
17341 bits/libio.h or the stub _G_config.h.
17342 * libio/stdio.h: Include bits/libio.h, not libio.h.
17343 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17344 well as libio.h and _G_config.h.
17345
17346 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17347 * libio/strfile.h, stdio-common/vfscanf.c
17348 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17349 Include stdio.h, not _G_config.h nor libio.h.
17350 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17351 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17352
17353 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17354
17355 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17356
17357 [BZ #22347]
17358 * stdlib/getrandom.c (getrandom): Fix comment.
17359 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17360
17361 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17362
17363 [BZ #21161]
17364 * manual/arith.texi (strtoul): Fix a typo.
17365
17366 [BZ #22596]
17367 * manual/arith.texi (finite): Fix the description of the return
17368 value.
17369
17370 2017-12-22 Eric Blake <ebb9@byu.net>
17371
17372 Avoid gcc warnings on cygwin
17373 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17374 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17375 Avoid unused variable.
17376
17377 2017-12-22 Florian Weimer <fweimer@redhat.com>
17378
17379 * io/Makefile (routines): Add copy_file_range.
17380 (tests): Add tst-copy_file_range.
17381 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17382 * io/Versions (GLIBC_2.27): Export copy_file_range.
17383 * io/copy_file_range-compat.c: New file.
17384 * io/copy_file_range.c: Likewise.
17385 * io/tst-copy_file_range-compat.c: Likewise.
17386 * io/tst-copy_file_range.c: Likewise.
17387 * manual/llio.texi (Copying File Data): New section.
17388 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17389 * support/Makefile (libsupport-routines): Add support-xfstat,
17390 xftruncate, xlseek.
17391 * support/support-xfstat.c: New file.
17392 * support/xftruncate.c: Likewise.
17393 * support/xlseek.c: Likewise.
17394 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17395 * sysdeps/unix/sysv/linux/**.abilist: Update.
17396 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17397
17398 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17399
17400 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17401 disable-multi-arch variant to aarch64-linux-gnu.
17402
17403 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17404
17405 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17406 trailing whitespace removed.
17407 * scripts/config.guess: Update to version 2017-12-17.
17408 * scripts/config.sub: Update to version 2017-11-23.
17409 * scripts/install-sh: Update to version 2017-09-23.17.
17410 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17411
17412 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17413
17414 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17415 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17416 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17417 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17418 * sysdeps/tile/crtn.S: Likewise.
17419 * sysdeps/tile/dl-start.S (_start): Likewise.
17420 * sysdeps/tile/dl-trampoline.S: Likewise.
17421 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17422 * sysdeps/tile/start.S (_start): Likewise.
17423 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17424 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17425 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17426 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17427 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17428 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17429 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17430
17431 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17432 comment.
17433 * sysdeps/tile/preconfigure: Remove tilegx folder.
17434 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17435 * sysdeps/tile/Implies: ... here.
17436 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17437 * sysdeps/tile/Makefile: ... here.
17438 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17439 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17440 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17441 * sysdeps/tile/bits/wordsize.h: ... here.
17442 * sysdeps/tile/tilegx/*: Move to ...
17443 * sysdeps/tile/*: ... here.
17444 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17445 * sysdeps/tile/tilegx32/Implies: ... here.
17446 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17447 * sysdeps/tile/tilegx64/Implies: ... here.
17448 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17449 to ...
17450 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17451 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17452 * sysdeps/unix/sysv/linux/tile/*: ... here.
17453 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17454 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17455 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17456 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17457
17458 * README: Remove tilepro-*-linux-gnu from supported architecture.
17459 * scripts/build-many-glibcs.py: Likewise.
17460 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17461 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17462 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17463 elf_machine_matches_host, elf_machine_dynamic,
17464 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17465 howto, elf_machine_rela): Likewise.
17466 * sysdeps/tile/dl-start.S (_start): Likewise.
17467 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17468 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17469 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17470 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17471 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17472 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17473 Likewise.
17474 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17475 * sysdeps/tile/preconfigure: Likewise.
17476 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17477 POINTER_CHK_GUARD): Likewise.
17478 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17479 * sysdeps/tile/start.S (_start): Likewise.
17480 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17481 Likewise.
17482 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17483 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17484 CMOVNEZ): Remove.
17485 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17486 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17487 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17488 Likewise.
17489 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17490 * sysdeps/tile/tilepro/Implies: Remove file.
17491 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17492 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17493 * sysdeps/tile/tilepro/memchr.c: Likewise.
17494 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17495 * sysdeps/tile/tilepro/memset.c: Likewise.
17496 * sysdeps/tile/tilepro/memusage.h: Likewise.
17497 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17498 * sysdeps/tile/tilepro/strchr.c: Likewise.
17499 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17500 * sysdeps/tile/tilepro/strlen.c: Likewise.
17501 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17502 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17503 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17504 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17505 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17506 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17507 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17508 Likewise.
17509 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17510 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17511 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17512 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17513 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17514 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17515 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17516 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17517 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17518 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17519 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17520 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17521 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17522 tilepro mention in comment.
17523
17524 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17525 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17526 * nptl/pthread_join_common.c: New file: common function used on
17527 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17528 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17529 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17530 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17531 (cleanup): Move definition to pthread_join_common.c.
17532 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17533 Remove superflous checks.
17534 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17535 Likewise.
17536
17537 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17538
17539 * sysdeps/aarch64/libm-test-ulps: Update.
17540
17541 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17542
17543 * sysdeps/aarch64/memset.S (MEMSET): Define.
17544
17545 2017-12-20 Florian Weimer <fweimer@redhat.com>
17546
17547 [BZ #22635]
17548 nptl: Provide full implementation of pthread_self in libc.so.
17549 * nptl/Makefile (routines): Add pthread_self.
17550 (libpthread-routines): Replace pthread_self with
17551 compat-pthread_self.
17552 * nptl/forward.c (pthread_self): Remove.
17553 * nptl/nptl-init.c (pthread_functions): Do not initialize
17554 ptr_pthread_self.
17555 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17556 * nptl/compat-pthread_self.c: New file.
17557 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17558 Remove ptr_pthread_self.
17559
17560 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17561
17562 * posix/regcomp.c: Fix spelling in comments.
17563 * posix/regex.h: Likewise.
17564 * posix/regex_internal.c: Likewise.
17565 * posix/regexec.c: Likewise.
17566
17567 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17568
17569 [BZ #22377]
17570 * math/Makefile [C++] (tests): Add test for iseqsig.
17571 * math/math.h [C++] (iseqsig): New implementation, which does
17572 not rely on __MATH_TG/__builtin_types_compatible_p.
17573 * math/test-math-iseqsig.cc: New file.
17574 * sysdeps/powerpc/powerpc64le/Makefile
17575 (CFLAGS-test-math-iseqsig.cc): New variable.
17576
17577 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17578
17579 * elf/dl-load.c (is_trusted_path): Remove.
17580 (fillin_rpath): Remove check_trusted argument and its use,
17581 all callers changed.
17582
17583 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17584
17585 [BZ #22630]
17586 * Makeconfig (link-pie-before-libc): Replace -pie with
17587 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17588 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17589 (tst-dlopen-aout-no-pie): New.
17590 (LDFLAGS-tst-prelink): Removed.
17591 (tst-prelink-no-pie): New.
17592 (LDFLAGS-tst-main1): Removed.
17593 (tst-main1-no-pie): New.
17594 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17595 (tst-gmon-no-pie): New.
17596
17597 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17598
17599 * manual/install.texi: Document that --enable-static-pie
17600 implies PIE.
17601 * INSTALL: Regenerated.
17602
17603 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17604
17605 [BZ #21309]
17606 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17607 unsigned.
17608
17609 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17610
17611 Revert:
17612
17613 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17614
17615 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17616
17617 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17618
17619 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17620 <errno.h>. Include "eexp.tbl".
17621 (half): New constant.
17622 (one): Likewise.
17623 (__ieee754_exp): Rewrite.
17624 (__slowexp): Remove prototype.
17625 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17626 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17627 * sysdeps/i386/fpu/slowexp.c: Likewise.
17628 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17629 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17630 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17631 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17632 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17633 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17634 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17635 comment.
17636 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17637 (CPPFLAGS-slowexp.c): Remove variable.
17638 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17639 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17640 (CFLAGS-slowexp-fma.c): Remove variable.
17641 (CFLAGS-slowexp-fma4.c): Likewise.
17642 (CFLAGS-slowexp-avx.c): Likewise.
17643 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17644 define as macro.
17645 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17646 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17647 * math/Makefile (type-double-routines): Remove slowexp.
17648 * manual/probes.texi (slowexp_p6): Remove.
17649 (slowexp_p32): Likewise.
17650
17651 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17652
17653 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17654 arithmetic.
17655
17656 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17657
17658 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17659
17660 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17661
17662 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17663
17664 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17665 <errno.h>. Include "eexp.tbl".
17666 (half): New constant.
17667 (one): Likewise.
17668 (__ieee754_exp): Rewrite.
17669 (__slowexp): Remove prototype.
17670 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17671 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17672 * sysdeps/i386/fpu/slowexp.c: Likewise.
17673 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17674 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17675 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17676 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17677 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17678 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17679 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17680 comment.
17681 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17682 (CPPFLAGS-slowexp.c): Remove variable.
17683 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17684 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17685 (CFLAGS-slowexp-fma.c): Remove variable.
17686 (CFLAGS-slowexp-fma4.c): Likewise.
17687 (CFLAGS-slowexp-avx.c): Likewise.
17688 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17689 define as macro.
17690 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17691 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17692 * math/Makefile (type-double-routines): Remove slowexp.
17693 * manual/probes.texi (slowexp_p6): Remove.
17694 (slowexp_p32): Likewise.
17695
17696 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17697 James Clarke <jrtc27@jrtc27.com>
17698
17699 [BZ #22603]
17700 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17701 addition.
17702
17703 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17704
17705 [BZ #22605]
17706 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17707 code.
17708
17709 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17710
17711 [BZ #22563]
17712 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17713 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17714 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17715 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17716 to feature_1.
17717
17718 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17719
17720 [BZ #22563]
17721 * bits/types/__cancel_jmp_buf_tag.h: New file.
17722 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17723 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17724 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17725 * nptl/Makefile (headers): Add
17726 bits/types/__cancel_jmp_buf_tag.h.
17727 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17728 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17729 * sysdeps/nptl/pthread.h: Include
17730 <bits/types/__cancel_jmp_buf_tag.h>.
17731 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17732 __cancel_jmp_buf.
17733 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17734
17735 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17736
17737 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17738 --enable-static-pie variants to x86_64, x32 and i686.
17739
17740 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17741
17742 [BZ #22631]
17743 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17744 argument for attrubutes. All callers changed.
17745 (__inline_mathop1): Likewise. All callers changed.
17746 (__inline_mathop): Likewise. All callers changed.
17747 [__USE_MISC] (scalbn): Use __inline_forward instead of
17748 __inline_forward_c.
17749 [__USE_ISOC99] (scalbln): Likewise.
17750 [__USE_ISOC99] (nearbyint): Likewise.
17751 [__USE_ISOC99] (lrint): Likewise.
17752 [__USE_MISC] (scalbnf): Likewise.
17753 [__USE_ISOC99] (scalblnf): Likewise.
17754 [__USE_ISOC99] (nearbyintf): Likewise.
17755 [__USE_ISOC99] (lrintf): Likewise.
17756 [__USE_MISC] (scalbnl): Likewise.
17757 [__USE_ISOC99] (scalblnl): Likewise.
17758 [__USE_ISOC99] (nearbyintl): Likewise.
17759 [__USE_ISOC99] (lrintl): Likewise.
17760 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17761 __inline_mathop and __m81_defun changed.
17762
17763 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17764 CPU or FPU for ARM hard-float configurations.
17765
17766 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17767
17768 * nptl/tst-attr3.c: Include <libc-diag.h>.
17769 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17770
17771 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17772
17773 * string/tester.c (test_strncat): Also disable -Warray-bounds
17774 warnings for two tests.
17775
17776 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17777
17778 [BZ #22614]
17779 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17780 $(cc-pie-default) == yes.
17781 * config.make.in (cc-pie-default): New.
17782 * configure.ac (libc_cv_pie_default): Renamed to ...
17783 (libc_cv_cc_pie_default): This.
17784 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17785 * configure: Regenerated.
17786
17787 2017-12-18 Florian Weimer <fweimer@redhat.com>
17788
17789 [BZ #20204]
17790 ld.so: Harden dl-libc/libdl hooks.
17791 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17792 (rtld_active): New function.
17793 * dlfcn/dladdr.c (__dladdr): Call it.
17794 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17795 * dlfcn/dlclose.c (__dlcose): Likewise.
17796 * dlfcn/dlerror.c (__dlerror): Likewise.
17797 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17798 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17799 * dlfcn/dlopen.c (__dlopen): Likewise.
17800 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17801 * dlfcn/dlsym.c (__dlsym): Likewise.
17802 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17803 * libio/vtables.c (_IO_vtable_check): Likewise.
17804 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17805 (__libc_dlclose): Likewise.
17806 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17807 assignment.
17808
17809 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17810
17811 [BZ #22446]
17812 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17813 buffers for readlink input and output.
17814
17815 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17816
17817 [BZ #22624]
17818 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17819 inhibit_stack_protector.
17820
17821 [BZ #22624]
17822 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17823 inhibit_stack_protector.
17824
17825 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17826
17827 [BZ #22627]
17828 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17829 code and invocation.
17830
17831 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17832
17833 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17834
17835 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17836
17837 [BZ #22505]
17838 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17839
17840 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17841
17842 * sysdeps/s390/fpu/libm-test-ulps: Update.
17843
17844 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17845
17846 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17847
17848 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17849
17850 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17851 constants to s_sincosf.h file.
17852 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17853 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17854 implementation.
17855 * sysdeps/ieee754/flt-32/s_sincosf.h:
17856 New file.
17857
17858 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17859
17860 [BZ #14681]
17861 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17862 before mtrace.
17863
17864 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17865
17866 [BZ #19574]
17867 * INSTALL: Regenerated.
17868 * Makeconfig (real-static-start-installed-name): New.
17869 (pic-default): Updated for --enable-static-pie.
17870 (pie-default): New for --enable-static-pie.
17871 (default-pie-ldflag): Likewise.
17872 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17873 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17874 Replace $(static-start-installed-name) with
17875 $(real-static-start-installed-name).
17876 (+prectorT): Updated for --enable-static-pie.
17877 (+postctorT): Likewise.
17878 (CFLAGS-.o): Add $(pie-default).
17879 (CFLAGS-.op): Likewise.
17880 * NEWS: Mention --enable-static-pie.
17881 * config.h.in (ENABLE_STATIC_PIE): New.
17882 * configure.ac (--enable-static-pie): New configure option.
17883 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17884 (have-static-pie): Likewise.
17885 Enable static PIE if linker supports --no-dynamic-linker.
17886 (ENABLE_STATIC_PIE): New AC_DEFINE.
17887 (enable-static-pie): New LIBC_CONFIG_VAR.
17888 * configure: Regenerated.
17889 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17890 gr$(start-installed-name) for --enable-static-pie.
17891 (extra-objs): Likewise.
17892 (install-lib): Likewise.
17893 (extra-objs): Add static-reloc.o and static-reloc.os
17894 ($(objpfx)$(start-installed-name)): Also depend on
17895 $(objpfx)static-reloc.o.
17896 ($(objpfx)r$(start-installed-name)): New.
17897 ($(objpfx)g$(start-installed-name)): Also depend on
17898 $(objpfx)static-reloc.os.
17899 ($(objpfx)gr$(start-installed-name)): New.
17900 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17901 in libc.a.
17902 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17903 initimage.
17904 * csu/static-reloc.c: New file.
17905 * elf/Makefile (routines): Add dl-reloc-static-pie.
17906 (elide-routines.os): Likewise.
17907 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17908 (tst-tls1-static-non-pie-no-pie): New.
17909 * elf/dl-reloc-static-pie.c: New file.
17910 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17911 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17912 STATIC_PIE_BOOTSTRAP.
17913 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17914 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17915 (tests-static): Likewise.
17916 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17917 (tst-gmon-static-no-pie): New.
17918 (CFLAGS-tst-gmon-static-pie.c): Likewise.
17919 (CRT-tst-gmon-static-pie): Likewise.
17920 (tst-gmon-static-pie-ENV): Likewise.
17921 (tests-special): Likewise.
17922 ($(objpfx)tst-gmon-static-pie.out): Likewise.
17923 (clean-tst-gmon-static-pie-data): Likewise.
17924 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
17925 * gmon/tst-gmon-static-pie.c: New file.
17926 * manual/install.texi: Document --enable-static-pie.
17927 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
17928 (_dl_get_dl_main_map): Likewise.
17929 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
17930 * sysdeps/x86_64/configure.ac: Likewise.
17931 * sysdeps/i386/configure: Regenerated.
17932 * sysdeps/x86_64/configure: Likewise.
17933 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
17934 (ASFLAGS-.op): Likewise.
17935
17936 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17937
17938 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
17939 * posix/tst-mmap-offset.c (fname): Use /tmp.
17940 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
17941
17942 2017-12-15 Steve Ellcey <sellcey@cavium.com>
17943
17944 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
17945
17946 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
17947
17948 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
17949 errno.
17950
17951 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17952
17953 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
17954 --with-float=hard for arm-linux-gnueabihf configurations.
17955
17956 [BZ #14121]
17957 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
17958 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
17959 ($(mo-installed)): Use $(objpfx)%.mo.
17960 (realclean): Remove rule.
17961
17962 * po/Makefile (linguas): Remove rule and dependencies.
17963 (linguas.mo): Likewise.
17964 (.PHONY): Do not depend on linguas and linguas.mo.
17965 (podir): Remove variable.
17966 (pofiles): Likewise.
17967 [$(pofiles)] (%.po): Remove rule.
17968
17969 * sysdeps/sparc/sparc32/Makefile
17970 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
17971 start-of-line whitespace in argument of echo.
17972 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
17973 with whitespace. Generate __wrap_.udiv alias.
17974 * sysdeps/sparc/sparc32/rem.S: Regenerated.
17975 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
17976 * sysdeps/sparc/sparc32/udiv.S: Likewise.
17977 * sysdeps/sparc/sparc32/urem.S: Likewise.
17978
17979 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17980
17981 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
17982 for aligned inputs.
17983
17984 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
17985
17986 * benchtests/bench-strcmp.c: Print output in JSON format.
17987
17988 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
17989
17990 2017-12-14 Florian Weimer <fweimer@redhat.com>
17991
17992 [BZ #22607]
17993 CVE-2017-1000409
17994 * elf/dl-load.c (_dl_init_paths): Compute number of components in
17995 the expanded path string.
17996
17997 2017-12-14 Florian Weimer <fweimer@redhat.com>
17998
17999 [BZ #22606]
18000 CVE-2017-1000408
18001 * elf/dl-load.c (system_dirs): Update comment.
18002 (nsystem_dirs_len): Use array_length.
18003 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18004
18005 2017-12-14 Florian Weimer <fweimer@redhat.com>
18006
18007 Simplify compiling most of support/ outside of glibc.
18008 * support/check_addrinfo.c: Include <string.h>.
18009 * support/check_dns_packet.c: Likewise.
18010 * support/check_hostent.c: Likewise.
18011 * support/support_can_chroot.c: Include <support/xunistd.h>.
18012 * support/support_format_addrinfo.c: Include <stdlib.h>
18013 * support/support_format_dns_packet.c: Include <stdbool.h>.
18014 * support/support_format_hostent.c: Include <stdlib.h>.
18015 * support/support_format_netent.c: Likewise.
18016 * support/support_write_string.c: Include <support/xunistd.h>.
18017 * support/xdlfcn.c: Include <stddef.h>.
18018
18019 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18020
18021 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18022
18023 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18024 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18025
18026 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18027 (sysdeps_routines): Add memset-niagara7.
18028 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18029 Likewise.
18030 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18031 file.
18032 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18033 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18034 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18035 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18036 Add niagara7 option.
18037 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18038 memset.
18039
18040 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18041 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18042 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18043 Likewise.
18044 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18045 New file.
18046 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18047 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18048 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18049 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18050 and __memmove_niagara7.
18051 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18052 Add niagara7 option.
18053 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18054 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18055 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18056 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18057 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18058
18059 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18060
18061 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18062 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18063 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18064 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18065
18066 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18067 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18068 _dl_sparc_cap_flags array.
18069 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18070
18071 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18072
18073 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18074 time whenever possible.
18075
18076 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18077
18078 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18079 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18080
18081 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18082
18083 * soft-fp/fmadf4.c: Move to ....
18084 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18085 * soft-fp/fmasf4.c: Move to ....
18086 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18087 * soft-fp/fmatf4.c: Move to ....
18088 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18089 * sysdeps/ieee754/soft-fp/Makefile: New file.
18090 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18091 * sysdeps/arm/preconfigure: Regenerated.
18092 * sysdeps/arm/nofpu/Implies: New file.
18093 * sysdeps/arm/s_fma.c: Remove file.
18094 * sysdeps/arm/s_fmaf.c: Likewise.
18095 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18096 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18097 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18098 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18099 * sysdeps/microblaze/s_fma.c: Remove file.
18100 * sysdeps/microblaze/s_fmaf.c: Likewise.
18101 * sysdeps/mips/mips32/nofpu/Implies: New file.
18102 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18103 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18104 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18105 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18106 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18107 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18108 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18109 implementation.
18110 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18111 * sysdeps/nios2/s_fma.c: Remove file.
18112 * sysdeps/nios2/s_fmaf.c: Likewise.
18113 * sysdeps/sh/nofpu/Implies: New file.
18114 * sysdeps/sh/s_fma.c: Remove file.
18115 * sysdeps/sh/s_fmaf.c: Likewise.
18116 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18117 * sysdeps/tile/s_fma.c: Remove file.
18118 * sysdeps/tile/s_fmaf.c: Likewise.
18119
18120 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18121
18122 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18123 Add s_cosf-sse2 and s_cosf-fma.
18124 (CFLAGS-s_cosf-fma.c): New.
18125 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18126 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18127 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18128
18129 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18130
18131 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18132
18133 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18134
18135 * libio/Makefile (tests): Add tst-bz22415.
18136 (tst-bz22415-ENV): New rule.
18137 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18138 (tests-special): Add tst-bz22415-mem.out.
18139 ($(objpfx)tst-bz22415-mem.out): New rule.
18140 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18141 in case of a successful seek operation.
18142 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18143 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18144 buffer is required.
18145 * libio/tst-bz22415.c: New test.
18146
18147 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18148
18149 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18150
18151 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18152 __IPC_64 to 0 to avoid IPC_64 being set.
18153
18154 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18155
18156 [BZ #22593]
18157 * math/bits/mathcalls.h (nextafter): Remove const.
18158 (nexttoward): Likewise.
18159
18160 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18161
18162 * configure.ac (--with-fp): Remove configure option.
18163 (with_fp_cond): New variable.
18164 (libc_cv_with_fp): New configure test. Use this variable instead
18165 of with_fp.
18166 * configure: Regenerated.
18167 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18168 * manual/install.texi (Configuring and compiling): Remove
18169 --without-fp.
18170 * INSTALL: Regenerated.
18171 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18172 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18173 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18174 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18175 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18176 use --without-fp to configure glibc.
18177
18178 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18179
18180 * manual/locale.texi (nl_langinfo): Fix a typo.
18181
18182 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18183
18184 [BZ #22588]
18185 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18186
18187 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18188
18189 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18190 (CFLAGS-argp-parse.c): Likewise.
18191 (CFLAGS-argp-fmtstream.c): Likewise.
18192 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18193 (CPPFLAGS-sha512-crypt.c): Likewise.
18194 (CPPFLAGS-md5-crypt.c): Likewise.
18195 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18196 (CFLAGS-stack_chk_fail_local.c): Likewise.
18197 (CFLAGS-backtrace.c): Likewise.
18198 (CFLAGS-sprintf_chk.c): Likewise.
18199 (CFLAGS-snprintf_chk.c): Likewise.
18200 (CFLAGS-vsprintf_chk.c): Likewise.
18201 (CFLAGS-vsnprintf_chk.c): Likewise.
18202 (CFLAGS-asprintf_chk.c): Likewise.
18203 (CFLAGS-vasprintf_chk.c): Likewise.
18204 (CFLAGS-obprintf_chk.c): Likewise.
18205 (CFLAGS-dprintf_chk.c): Likewise.
18206 (CFLAGS-vdprintf_chk.c): Likewise.
18207 (CFLAGS-printf_chk.c): Likewise.
18208 (CFLAGS-fprintf_chk.c): Likewise.
18209 (CFLAGS-vprintf_chk.c): Likewise.
18210 (CFLAGS-vfprintf_chk.c): Likewise.
18211 (CFLAGS-gets_chk.c): Likewise.
18212 (CFLAGS-fgets_chk.c): Likewise.
18213 (CFLAGS-fgets_u_chk.c): Likewise.
18214 (CFLAGS-fread_chk.c): Likewise.
18215 (CFLAGS-fread_u_chk.c): Likewise.
18216 (CFLAGS-swprintf_chk.c): Likewise.
18217 (CFLAGS-vswprintf_chk.c): Likewise.
18218 (CFLAGS-wprintf_chk.c): Likewise.
18219 (CFLAGS-fwprintf_chk.c): Likewise.
18220 (CFLAGS-vwprintf_chk.c): Likewise.
18221 (CFLAGS-vfwprintf_chk.c): Likewise.
18222 (CFLAGS-fgetws_chk.c): Likewise.
18223 (CFLAGS-fgetws_u_chk.c): Likewise.
18224 (CFLAGS-read_chk.c): Likewise.
18225 (CFLAGS-pread_chk.c): Likewise.
18226 (CFLAGS-pread64_chk.c): Likewise.
18227 (CFLAGS-recv_chk.c): Likewise.
18228 (CFLAGS-recvfrom_chk.c): Likewise.
18229 (CFLAGS-tst-longjmp_chk.c): Likewise.
18230 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18231 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18232 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18233 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18234 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18235 (CFLAGS-tst-chk1.c): Likewise.
18236 (CFLAGS-tst-chk2.c): Likewise.
18237 (CFLAGS-tst-chk3.c): Likewise.
18238 (CFLAGS-tst-chk4.cc): Likewise.
18239 (CFLAGS-tst-chk5.cc): Likewise.
18240 (CFLAGS-tst-chk6.cc): Likewise.
18241 (CFLAGS-tst-lfschk1.c): Likewise.
18242 (CFLAGS-tst-lfschk2.c): Likewise.
18243 (CFLAGS-tst-lfschk3.c): Likewise.
18244 (CFLAGS-tst-lfschk4.cc): Likewise.
18245 (CFLAGS-tst-lfschk5.cc): Likewise.
18246 (CFLAGS-tst-lfschk6.cc): Likewise.
18247 (CFLAGS-tst-ssp-1.c): Likewise.
18248 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18249 (CFLAGS-scandir64.c): Likewise.
18250 (CFLAGS-scandir-tail.c): Likewise.
18251 (CFLAGS-scandir64-tail.c): Likewise.
18252 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18253 (CFLAGS-dl-tunables.c): Likewise.
18254 (CFLAGS-dl-runtime.c): Likewise.
18255 (CFLAGS-dl-lookup.c): Likewise.
18256 (CFLAGS-dl-iterate-phdr.c): Likewise.
18257 (CFLAGS-vismain.c): Likewise.
18258 (CFLAGS-tst-linkall-static.c): Likewise.
18259 (CFLAGS-tst-linkall-static.c): Likewise.
18260 (CPPFLAGS-dl-load.c): Likewise.
18261 (CFLAGS-ldconfig.c): Likewise.
18262 (CFLAGS-dl-cache.c): Likewise.
18263 (CFLAGS-cache.c): Likewise.
18264 (CFLAGS-rtld.c): Likewise.
18265 (CFLAGS-multiload.c): Likewise.
18266 (CFLAGS-filtmod1.c): Likewise.
18267 (CFLAGS-tst-align.c): Likewise.
18268 (CFLAGS-tst-align2.c): Likewise.
18269 (CFLAGS-tst-alignmod.c): Likewise.
18270 (CFLAGS-tst-alignmod2.c): Likewise.
18271 (CPPFLAGS-tst-execstack.c): Likewise.
18272 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18273 (CFLAGS-tst-latepthreadmod.c): Likewise.
18274 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18275 (CFLAGS-getgrnam_r.c): Likewise.
18276 (CFLAGS-getgrent_r.c): Likewise.
18277 (CFLAGS-getgrent.c): Likewise.
18278 (CFLAGS-fgetgrent.c): Likewise.
18279 (CFLAGS-fgetgrent_r.c): Likewise.
18280 (CFLAGS-putgrent.c): Likewise.
18281 (CFLAGS-initgroups.c): Likewise.
18282 (CFLAGS-getgrgid.c): Likewise.
18283 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18284 (CFLAGS-getsgent.c): Likewise.
18285 (CFLAGS-fgetsgent.c): Likewise.
18286 (CFLAGS-fgetsgent_r.c): Likewise.
18287 (CFLAGS-putsgent.c): Likewise.
18288 (CFLAGS-getsgnam.c): Likewise.
18289 (CFLAGS-getsgnam_r.c): Likewise.
18290 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18291 (CFLAGS-iconv_charmap.c): Likewise.
18292 (CFLAGS-dummy-repertoire.c): Likewise.
18293 (CFLAGS-charmap.c): Likewise.
18294 (CFLAGS-linereader.c): Likewise.
18295 (CFLAGS-simple-hash.c): Likewise.
18296 (CFLAGS-gconv_conf.c): Likewise.
18297 (CFLAGS-iconvconfig.c): Likewise.
18298 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18299 (CFLAGS-gethstbyad.c): Likewise.
18300 (CFLAGS-gethstbynm_r.c): Likewise.
18301 (CFLAGS-gethstbynm.c): Likewise.
18302 (CFLAGS-gethstbynm2_r.c): Likewise.
18303 (CFLAGS-gethstbynm2.c): Likewise.
18304 (CFLAGS-gethstent_r.c): Likewise.
18305 (CFLAGS-gethstent.c): Likewise.
18306 (CFLAGS-rcmd.c): Likewise.
18307 (CFLAGS-getnetbynm_r.c): Likewise.
18308 (CFLAGS-getnetbynm.c): Likewise.
18309 (CFLAGS-getnetbyad_r.c): Likewise.
18310 (CFLAGS-getnetbyad.c): Likewise.
18311 (CFLAGS-getnetent_r.c): Likewise.
18312 (CFLAGS-getnetent.c): Likewise.
18313 (CFLAGS-getaliasent_r.c): Likewise.
18314 (CFLAGS-getaliasent.c): Likewise.
18315 (CFLAGS-getrpcent_r.c): Likewise.
18316 (CFLAGS-getrpcent.c): Likewise.
18317 (CFLAGS-getservent_r.c): Likewise.
18318 (CFLAGS-getservent.c): Likewise.
18319 (CFLAGS-getprtent_r.c): Likewise.
18320 (CFLAGS-getprtent.c): Likewise.
18321 (CFLAGS-either_ntoh.c): Likewise.
18322 (CFLAGS-either_hton.c): Likewise.
18323 (CFLAGS-getnetgrent.c): Likewise.
18324 (CFLAGS-getnetgrent_r.c): Likewise.
18325 (CFLAGS-tst-checks-posix.c): Likewise.
18326 (CFLAGS-tst-sockaddr.c): Likewise.
18327 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18328 (CFLAGS-tst-translit.c): Likewise.
18329 (CFLAGS-tst-gettext2.c): Likewise.
18330 (CFLAGS-tst-codeset.c): Likewise.
18331 (CFLAGS-tst-gettext3.c): Likewise.
18332 (CFLAGS-tst-gettext4.c): Likewise.
18333 (CFLAGS-tst-gettext5.c): Likewise.
18334 (CFLAGS-tst-gettext6.c): Likewise.
18335 * io/Makefile (CFLAGS-open.c): Likewise.
18336 (CFLAGS-open64.c): Likewise.
18337 (CFLAGS-creat.c): Likewise.
18338 (CFLAGS-creat64.c): Likewise.
18339 (CFLAGS-fcntl.c): Likewise.
18340 (CFLAGS-poll.c): Likewise.
18341 (CFLAGS-ppoll.c): Likewise.
18342 (CFLAGS-lockf.c): Likewise.
18343 (CFLAGS-statfs.c): Likewise.
18344 (CFLAGS-fstatfs.c): Likewise.
18345 (CFLAGS-statvfs.c): Likewise.
18346 (CFLAGS-fstatvfs.c): Likewise.
18347 (CFLAGS-fts.c): Likewise.
18348 (CFLAGS-fts64.c): Likewise.
18349 (CFLAGS-ftw.c): Likewise.
18350 (CFLAGS-ftw64.c): Likewise.
18351 (CFLAGS-lockf.c): Likewise.
18352 (CFLAGS-posix_fallocate.c): Likewise.
18353 (CFLAGS-posix_fallocate64.c): Likewise.
18354 (CFLAGS-fallocate.c): Likewise.
18355 (CFLAGS-fallocate64.c): Likewise.
18356 (CFLAGS-read.c): Likewise.
18357 (CFLAGS-write.c): Likewise.
18358 (CFLAGS-test-stat.c): Likewise.
18359 (CFLAGS-test-lfs.c): Likewise.
18360 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18361 (CFLAGS-fputc.c): Likewise.
18362 (CFLAGS-fputwc.c): Likewise.
18363 (CFLAGS-freopen64.c): Likewise.
18364 (CFLAGS-freopen.c): Likewise.
18365 (CFLAGS-fseek.c): Likewise.
18366 (CFLAGS-fseeko64.c): Likewise.
18367 (CFLAGS-fseeko.c): Likewise.
18368 (CFLAGS-ftello64.c): Likewise.
18369 (CFLAGS-ftello.c): Likewise.
18370 (CFLAGS-fwide.c): Likewise.
18371 (CFLAGS-genops.c): Likewise.
18372 (CFLAGS-getc.c): Likewise.
18373 (CFLAGS-getchar.c): Likewise.
18374 (CFLAGS-getwc.c): Likewise.
18375 (CFLAGS-getwchar.c): Likewise.
18376 (CFLAGS-iofclose.c): Likewise.
18377 (CFLAGS-iofflush.c): Likewise.
18378 (CFLAGS-iofgetpos64.c): Likewise.
18379 (CFLAGS-iofgetpos.c): Likewise.
18380 (CFLAGS-iofgets.c): Likewise.
18381 (CFLAGS-iofgetws.c): Likewise.
18382 (CFLAGS-iofputs.c): Likewise.
18383 (CFLAGS-iofputws.c): Likewise.
18384 (CFLAGS-iofread.c): Likewise.
18385 (CFLAGS-iofsetpos64.c): Likewise.
18386 (CFLAGS-iofsetpos.c): Likewise.
18387 (CFLAGS-ioftell.c): Likewise.
18388 (CFLAGS-iofwrite.c): Likewise.
18389 (CFLAGS-iogetdelim.c): Likewise.
18390 (CFLAGS-iogetline.c): Likewise.
18391 (CFLAGS-iogets.c): Likewise.
18392 (CFLAGS-iogetwline.c): Likewise.
18393 (CFLAGS-ioputs.c): Likewise.
18394 (CFLAGS-ioseekoff.c): Likewise.
18395 (CFLAGS-ioseekpos.c): Likewise.
18396 (CFLAGS-iosetbuffer.c): Likewise.
18397 (CFLAGS-iosetvbuf.c): Likewise.
18398 (CFLAGS-ioungetc.c): Likewise.
18399 (CFLAGS-ioungetwc.c): Likewise.
18400 (CFLAGS-oldfileops.c): Likewise.
18401 (CFLAGS-oldiofclose.c): Likewise.
18402 (CFLAGS-oldiofgetpos64.c): Likewise.
18403 (CFLAGS-oldiofgetpos.c): Likewise.
18404 (CFLAGS-oldiofsetpos64.c): Likewise.
18405 (CFLAGS-oldiofsetpos.c): Likewise.
18406 (CFLAGS-peekc.c): Likewise.
18407 (CFLAGS-putc.c): Likewise.
18408 (CFLAGS-putchar.c): Likewise.
18409 (CFLAGS-putwc.c): Likewise.
18410 (CFLAGS-putwchar.c): Likewise.
18411 (CFLAGS-rewind.c): Likewise.
18412 (CFLAGS-wfileops.c): Likewise.
18413 (CFLAGS-wgenops.c): Likewise.
18414 (CFLAGS-oldiofopen.c): Likewise.
18415 (CFLAGS-iofopen.c): Likewise.
18416 (CFLAGS-iofopen64.c): Likewise.
18417 (CFLAGS-oldtmpfile.c): Likewise.
18418 (CFLAGS-tst_putwc.c): Likewise.
18419 * locale/Makefile (CFLAGS-md5.c): Likewise.
18420 (CFLAGS-charmap.c): Likewise.
18421 (CFLAGS-locfile.c): Likewise.
18422 (CFLAGS-charmap-dir.c): Likewise.
18423 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18424 (CFLAGS-getpt.c): Likewise.
18425 (CFLAGS-pt_chown.c): Likewise.
18426 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18427 (CFLAGS-obstack.c): Likewise.
18428 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18429 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18430 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18431 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18432 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18433 (CFLAGS-test-tgmath.c): Likewise.
18434 (CFLAGS-test-tgmath2.c): Likewise.
18435 (CFLAGS-test-tgmath-ret.c): Likewise.
18436 (CFLAGS-test-powl.c): Likewise.
18437 (CFLAGS-test-snan.c): Likewise.
18438 (CFLAGS-test-signgam-finite.c): Likewise.
18439 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18440 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18441 (CFLAGS-test-signgam-uchar.c): Likewise.
18442 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18443 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18444 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18445 (CFLAGS-test-signgam-uint.c): Likewise.
18446 (CFLAGS-test-signgam-uint-init.c): Likewise.
18447 (CFLAGS-test-signgam-uint-static.c): Likewise.
18448 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18449 (CFLAGS-test-signgam-ullong.c): Likewise.
18450 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18451 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18452 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18453 (CFLAGS-test-math-cxx11.cc): Likewise.
18454 (CFLAGS-test-math-isinff.cc): Likewise.
18455 (CFLAGS-test-math-iszero.cc): Likewise.
18456 (CFLAGS-test-math-issignaling.cc): Likewise.
18457 (CFLAGS-test-math-iscanonical.cc): Likewise.
18458 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18459 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18460 (CFLAGS-test-flt-eval-method.c): Likewise.
18461 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18462 (CFLAGS-test-finite-macros.c): Likewise.
18463 * misc/Makefile (CFLAGS-select.c): Likewise.
18464 (CFLAGS-tsearch.c): Likewise.
18465 (CFLAGS-lsearch.c): Likewise.
18466 (CFLAGS-pselect.c): Likewise.
18467 (CFLAGS-readv.c): Likewise.
18468 (CFLAGS-writev.c): Likewise.
18469 (CFLAGS-preadv.c): Likewise.
18470 (CFLAGS-preadv64.c): Likewise.
18471 (CFLAGS-pwritev.c): Likewise.
18472 (CFLAGS-pwritev64.c): Likewise.
18473 (CFLAGS-preadv2.c): Likewise.
18474 (CFLAGS-preadv64v2.c): Likewise.
18475 (CFLAGS-pwritev2.c): Likewise.
18476 (CFLAGS-pwritev64v2.c): Likewise.
18477 (CFLAGS-usleep.c): Likewise.
18478 (CFLAGS-syslog.c): Likewise.
18479 (CFLAGS-error.c): Likewise.
18480 (CFLAGS-getpass.c): Likewise.
18481 (CFLAGS-mkstemp.c): Likewise.
18482 (CFLAGS-mkstemp64.c): Likewise.
18483 (CFLAGS-getsysstats.c): Likewise.
18484 (CFLAGS-getusershell.c): Likewise.
18485 (CFLAGS-err.c): Likewise.
18486 (CFLAGS-tst-tsearch.c): Likewise.
18487 (CFLAGS-msync.c): Likewise.
18488 (CFLAGS-fdatasync.c): Likewise.
18489 (CFLAGS-fsync.c): Likewise.
18490 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18491 (CFLAGS-unwind.c): Likewise.
18492 (CFLAGS-unwind-forcedunwind.c): Likewise.
18493 (CFLAGS-pthread_cancel.c): Likewise.
18494 (CFLAGS-pthread_setcancelstate.c): Likewise.
18495 (CFLAGS-pthread_setcanceltype.c): Likewise.
18496 (CFLAGS-cancellation.c): Likewise.
18497 (CFLAGS-libc-cancellation.c): Likewise.
18498 (CFLAGS-pthread_exit.c): Likewise.
18499 (CFLAGS-forward.c): Likewise.
18500 (CFLAGS-pthread_testcancel.c): Likewise.
18501 (CFLAGS-pthread_join.c): Likewise.
18502 (CFLAGS-pthread_timedjoin.c): Likewise.
18503 (CFLAGS-pthread_once.c): Likewise.
18504 (CFLAGS-pthread_cond_wait.c): Likewise.
18505 (CFLAGS-sem_wait.c): Likewise.
18506 (CFLAGS-sem_timedwait.c): Likewise.
18507 (CFLAGS-fcntl.c): Likewise.
18508 (CFLAGS-lockf.c): Likewise.
18509 (CFLAGS-pread.c): Likewise.
18510 (CFLAGS-pread64.c): Likewise.
18511 (CFLAGS-pwrite.c): Likewise.
18512 (CFLAGS-pwrite64.c): Likewise.
18513 (CFLAGS-wait.c): Likewise.
18514 (CFLAGS-waitpid.c): Likewise.
18515 (CFLAGS-sigwait.c): Likewise.
18516 (CFLAGS-msgrcv.c): Likewise.
18517 (CFLAGS-msgsnd.c): Likewise.
18518 (CFLAGS-tcdrain.c): Likewise.
18519 (CFLAGS-open.c): Likewise.
18520 (CFLAGS-open64.c): Likewise.
18521 (CFLAGS-pause.c): Likewise.
18522 (CFLAGS-recv.c): Likewise.
18523 (CFLAGS-send.c): Likewise.
18524 (CFLAGS-accept.c): Likewise.
18525 (CFLAGS-sendto.c): Likewise.
18526 (CFLAGS-connect.c): Likewise.
18527 (CFLAGS-recvfrom.c): Likewise.
18528 (CFLAGS-recvmsg.c): Likewise.
18529 (CFLAGS-sendmsg.c): Likewise.
18530 (CFLAGS-close.c): Likewise.
18531 (CFLAGS-read.c): Likewise.
18532 (CFLAGS-write.c): Likewise.
18533 (CFLAGS-nanosleep.c): Likewise.
18534 (CFLAGS-sigsuspend.c): Likewise.
18535 (CFLAGS-msync.c): Likewise.
18536 (CFLAGS-fdatasync.c): Likewise.
18537 (CFLAGS-fsync.c): Likewise.
18538 (CFLAGS-pt-system.c): Likewise.
18539 (CFLAGS-tst-cleanup2.c): Likewise.
18540 (CFLAGS-tst-cleanupx2.c): Likewise.
18541 (CFLAGS-flockfile.c): Likewise.
18542 (CFLAGS-ftrylockfile.c): Likewise.
18543 (CFLAGS-funlockfile.c): Likewise.
18544 (CFLAGS-tst-initializers1.c): Likewise.
18545 (CFLAGS-tst-initializers1-c89.c): Likewise.
18546 (CFLAGS-tst-initializers1-c99.c): Likewise.
18547 (CFLAGS-tst-initializers1-c11.c): Likewise.
18548 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18549 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18550 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18551 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18552 (CFLAGS-nscd_getgr_r.c): Likewise.
18553 (CFLAGS-nscd_gethst_r.c): Likewise.
18554 (CFLAGS-nscd_getai.c): Likewise.
18555 (CFLAGS-nscd_initgroups.c): Likewise.
18556 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18557 (CFLAGS-pause.c): Likewise.
18558 (CFLAGS-pread.c): Likewise.
18559 (CFLAGS-pread64.c): Likewise.
18560 (CFLAGS-pwrite.c): Likewise.
18561 (CFLAGS-pwrite64.c): Likewise.
18562 (CFLAGS-sleep.c): Likewise.
18563 (CFLAGS-wait.c): Likewise.
18564 (CFLAGS-waitid.c): Likewise.
18565 (CFLAGS-waitpid.c): Likewise.
18566 (CFLAGS-getopt.c): Likewise.
18567 (CFLAGS-wordexp.c): Likewise.
18568 (CFLAGS-sysconf.c): Likewise.
18569 (CFLAGS-pathconf.c): Likewise.
18570 (CFLAGS-fpathconf.c): Likewise.
18571 (CFLAGS-spawn.c): Likewise.
18572 (CFLAGS-spawnp.c): Likewise.
18573 (CFLAGS-spawni.c): Likewise.
18574 (CFLAGS-glob.c): Likewise.
18575 (CFLAGS-glob64.c): Likewise.
18576 (CFLAGS-getconf.c): Likewise.
18577 (CFLAGS-nanosleep.c): Likewise.
18578 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18579 (CFLAGS-getpwent.c): Likewise.
18580 (CFLAGS-getpw.c): Likewise.
18581 (CFLAGS-fgetpwent_r.c): Likewise.
18582 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18583 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18584 (CFLAGS-mq_timedreceive.c): Likewise.
18585 (CFLAGS-mq_timedsend.c): Likewise.
18586 (CFLAGS-clock_nanosleep.c): Likewise.
18587 (CFLAGS-librt-cancellation.c): Likewise.
18588 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18589 (CFLAGS-getspent.c): Likewise.
18590 (CFLAGS-fgetspent.c): Likewise.
18591 (CFLAGS-fgetspent_r.c): Likewise.
18592 (CFLAGS-putspent.c): Likewise.
18593 (CFLAGS-getspnam.c): Likewise.
18594 (CFLAGS-getspnam_r.c): Likewise.
18595 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18596 (CFLAGS-sigsuspend.c): Likewise.
18597 (CFLAGS-sigtimedwait.c): Likewise.
18598 (CFLAGS-sigwait.c): Likewise.
18599 (CFLAGS-sigwaitinfo.c): Likewise.
18600 (CFLAGS-sigreturn.c): Likewise.
18601 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18602 (CFLAGS-vfwprintf.c): Likewise.
18603 (CFLAGS-tmpfile.c): Likewise.
18604 (CFLAGS-tmpfile64.c): Likewise.
18605 (CFLAGS-tempname.c): Likewise.
18606 (CFLAGS-psignal.c): Likewise.
18607 (CFLAGS-vprintf.c): Likewise.
18608 (CFLAGS-cuserid.c): Likewise.
18609 (CFLAGS-errlist.c): Likewise.
18610 (CFLAGS-siglist.c): Likewise.
18611 (CFLAGS-scanf15.c): Likewise.
18612 (CFLAGS-scanf17.c): Likewise.
18613 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18614 (CFLAGS-msort.c): Likewise.
18615 (CFLAGS-qsort.c): Likewise.
18616 (CFLAGS-system.c): Likewise.
18617 (CFLAGS-fmtmsg.c): Likewise.
18618 (CFLAGS-strfmon.c): Likewise.
18619 (CFLAGS-strfmon_l.c): Likewise.
18620 (CFLAGS-strfromd.c): Likewise.
18621 (CFLAGS-strfromf.c): Likewise.
18622 (CFLAGS-strfroml.c): Likewise.
18623 (CFLAGS-tst-bsearch.c): Likewise.
18624 (CFLAGS-tst-qsort.c): Likewise.
18625 (CFLAGS-tst-makecontext2.c): Likewise.
18626 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18627 (CFLAGS-xnlm_prot.c): Likewise.
18628 (CFLAGS-xrstat.c): Likewise.
18629 (CFLAGS-xyppasswd.c): Likewise.
18630 (CFLAGS-xklm_prot.c): Likewise.
18631 (CFLAGS-xrex.c): Likewise.
18632 (CFLAGS-xsm_inter.c): Likewise.
18633 (CFLAGS-xmount.c): Likewise.
18634 (CFLAGS-xrusers.c): Likewise.
18635 (CFLAGS-xspray.c): Likewise.
18636 (CFLAGS-xnfs_prot.c): Likewise.
18637 (CFLAGS-xrquota.c): Likewise.
18638 (CFLAGS-xkey_prot.c): Likewise.
18639 (CFLAGS-auth_unix.c): Likewise.
18640 (CFLAGS-key_call.c): Likewise.
18641 (CFLAGS-pmap_rmt.c): Likewise.
18642 (CFLAGS-clnt_perr.c): Likewise.
18643 (CFLAGS-openchild.c): Likewise.
18644 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18645 (CFLAGS-msgsnd.c): Likewise.
18646 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18647 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18648 (CFLAGS-tzset.c): Likewise.
18649 (CFLAGS-getdate.c): Likewise.
18650 (CFLAGS-test_time.c): Likewise.
18651 (CPPFLAGS-tst-tzname.c): Likewise.
18652 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18653 (CFLAGS-zic.c): Likewise.
18654 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18655 (CFLAGS-wcswidth.c): Likewise.
18656 (CFLAGS-wcstol.c): Likewise.
18657 (CFLAGS-wcstoul.c): Likewise.
18658 (CFLAGS-wcstoll.c): Likewise.
18659 (CFLAGS-wcstoull.c): Likewise.
18660 (CFLAGS-wcstod.c): Likewise.
18661 (CFLAGS-wcstold.c): Likewise.
18662 (CFLAGS-wcstof128.c): Likewise.
18663 (CFLAGS-wcstof.c): Likewise.
18664 (CFLAGS-wcstol_l.c): Likewise.
18665 (CFLAGS-wcstoul_l.c): Likewise.
18666 (CFLAGS-wcstoll_l.c): Likewise.
18667 (CFLAGS-wcstoull_l.c): Likewise.
18668 (CFLAGS-wcstod_l.c): Likewise.
18669 (CFLAGS-wcstold_l.c): Likewise.
18670 (CFLAGS-wcstof128_l.c): Likewise.
18671 (CFLAGS-wcstof_l.c): Likewise.
18672 (CPPFLAGS-tst-wchar-h.c): Likewise.
18673 (CPPFLAGS-wcstold_l.c): Likewise.
18674
18675 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18676
18677 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18678
18679 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18680 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18681
18682 * manual/tunables.texi (Hardware Capability Tunables): Document
18683 glibc.tune.cached_memopt.
18684 * sysdeps/powerpc/cpu-features.c: New file.
18685 * sysdeps/powerpc/cpu-features.h: New file.
18686 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18687 _dl_powerpc_cpu_features.
18688 * sysdeps/powerpc/dl-tunables.list: New file.
18689 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18690 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18691 (INIT_ARCH): Initialize use_aligned_memopt.
18692 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18693 IS_IN(rtld))]: Restrict dl_platform_init availability and
18694 initialize CPU features used by tunables.
18695 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18696 Add memcpy-power8-cached.
18697 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18698 __memcpy_power8_cached.
18699 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18700 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18701 New file.
18702
18703 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18704
18705 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18706 (CFLAGS-noinl-tester.c): Likewise.
18707 (CFLAGS-tst-strlen.c): Likewise.
18708 (CFLAGS-stratcliff.c): Likewise.
18709 (CFLAGS-test-ffs.c): Likewise.
18710 (CFLAGS-tst-inlcall.c): Likewise.
18711 (CFLAGS-tst-xbzero-opt.c): Likewise.
18712 (CFLAGS-memcpy.c): Likewise.
18713 (CFLAGS-wordcopy.c): Likewise.
18714
18715 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18716
18717 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18718 Store r15 on stack and add cfi rule.
18719 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18720 Likewise.
18721
18722 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18723
18724 [BZ #22577]
18725 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18726 call.
18727
18728 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18729
18730 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18731 Add s_sinf-sse2 and s_sinf-fma.
18732 (CFLAGS-s_sinf-fma.c): New.
18733 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18734 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18735 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18736
18737 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18738
18739 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18740
18741 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18742
18743 [BZ #22568]
18744 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18745 part of result to imaginary part of argument if it is zero and the
18746 real part of the argument is not finite.
18747 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18748 of result to real part of argument if it is zero and the imaginary
18749 part of the argument is not finite.
18750
18751 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18752
18753 [BZ #22524]
18754 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18755 and to the list of locales to be built for testing.
18756 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18757 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18758 and build the collation rules upon that.
18759
18760 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18761
18762 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18763 * manual/math.texi (Mathematics): Document support for _Float32.
18764 * math/Makefile (test-types): Add float32.
18765 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18766 * stdlib/Versions (GLIBC_2.27): Likewise.
18767 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18768 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18769 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18770 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18771 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18772 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18773 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18774 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18775 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18776 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18777 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18778 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18779 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18780 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18781 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18782 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18783 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18784 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18785 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18786 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18787 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18788 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18789 Likewise.
18790 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18791 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18792 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18793 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18794 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18796 Likewise.
18797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18798 Likewise.
18799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18800 Likewise.
18801 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18802 Likewise.
18803
18804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18805 Likewise.
18806 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18807 Likewise.
18808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18809 Likewise.
18810 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18811 Likewise.
18812 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18813 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18814 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18815 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18816 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18817 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18818 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18819 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18820 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18821 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18822 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18823 Likewise.
18824 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18825 Likewise.
18826 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18827 Likewise.
18828 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18829 Likewise.
18830 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18831 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18832 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18833 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18834 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18835 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18836 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18837 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18838
18839 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18840
18841 * stdlib/strtof.c: Include <bits/floatn.h>
18842 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18843 and later undefine as macro. Define as weak alias if
18844 [!USE_WIDE_CHAR].
18845 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18846 and later undefine as macro. Define as weak alias if
18847 [USE_WIDE_CHAR].
18848 * stdlib/strtof_l.c: Include <bits/floatn.h>
18849 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18850 and later undefine as macro. Define as weak alias if
18851 [!USE_WIDE_CHAR].
18852 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18853 and later undefine as macro. Define as weak alias if
18854 [USE_WIDE_CHAR].
18855
18856 * stdlib/strfromf.c: Include <bits/floatn.h>.
18857 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18858 and later undefine as macro and define as weak alias.
18859
18860 * math/test-float32.h: New file.
18861
18862 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18863 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18864 (libm_alias_float_other_r): Create f32 alias.
18865 (libm_alias_float_r): Use semicolon before call to
18866 libm_alias_float_other_r.
18867
18868 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18869 second argument to libm_alias_float_other.
18870 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18871 second argument to libm_alias_float_other.
18872 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18873 argument to libm_alias_float_other.
18874
18875 [BZ #22561]
18876 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18877 real part of result for argument 0 + i * NaN.
18878 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18879 results for tests of 0 + i * NaN.
18880
18881 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18882
18883 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18884
18885 2017-12-06 David S. Miller <davem@davemloft.net>
18886
18887 * sysdeps/sparc/fpu/libm-test-ulps: Update
18888 exp_{downward,towardzero,upward} ulps.
18889
18890 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18891
18892 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18893 variables static.
18894
18895 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18896 (Y0_2D): Likewise.
18897 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18898 (Y0_2D): Likewise.
18899 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18900 (Y0_2D): Likewise.
18901 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18902 (Y0_2D): Likewise.
18903
18904 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18905
18906 [BZ #22515]
18907 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18908 and to the list of locales to be built for testing.
18909 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18910 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18911 and build the collation rules upon that.
18912
18913 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18914
18915 * NEWS: Add sinf to list of optimized functions.
18916
18917 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18918
18919 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
18920 (__HAVE_FLOAT32X): Likewise.
18921 * manual/math.texi (Mathematics): Document support for _Float64
18922 and _Float32x.
18923 * math/Makefile (test-types): Add float64 and float32x.
18924 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
18925 functions.
18926 * stdlib/Versions (GLIBC_2.27): Likewise.
18927 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18928 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18929 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18930 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18931 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18932 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18933 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18934 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18935 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18936 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18937 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18938 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18939 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18940 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18941 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18942 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18943 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18944 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18945 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18946 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18947 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18948 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18949 Likewise.
18950 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18951 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18952 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18953 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18954 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18955 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18956 Likewise.
18957 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18958 Likewise.
18959 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18960 Likewise.
18961 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18962 Likewise.
18963 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18964 Likewise.
18965 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18966 Likewise.
18967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18968 Likewise.
18969 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18970 Likewise.
18971 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18972 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18973 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18974 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18975 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18976 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18977 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18978 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18979 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18980 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18981 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18982 Likewise.
18983 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18984 Likewise.
18985 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18986 Likewise.
18987 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18988 Likewise.
18989 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18990 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18991 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18992 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18993 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18994 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18995 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18996 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18997
18998 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18999
19000 * bits/floatn-common.h: Include <bits/long-double.h>.
19001 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19002 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19003 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19004 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19005 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19006 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19007 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19008 (__builtin_huge_valf64): Use __builtin_huge_vall.
19009 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19010 (__builtin_inff64): Use __builtin_infl.
19011 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19012 (__builtin_nanf64): Use __builtin_nanl.
19013 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19014 (__builtin_nansf64): Use __builtin_nansl.
19015
19016 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19017 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19018 Carlos O'Donnell <carlos@redhat.com>
19019
19020 * elf/dl-tunables.list: Add elision parameters.
19021 * manual/tunables.texi: Add entries about elision tunable.
19022 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19023 Add callback functions to dynamically enable/disable elision.
19024 Add multiple callbacks functions to set elision parameters.
19025 Deleted __libc_enable_secure check.
19026 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19027 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19028 * configure: Regenerated.
19029 * configure.ac: Option enable_lock_elision was deleted.
19030 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19031 * config.make.in: Remove references to enable_lock_elision.
19032 * manual/install.texi: Elision configure option was removed.
19033 * INSTALL: Regenerated to remove enable_lock_elision.
19034 * nptl/Makefile:
19035 Disable elision so it can verify error case for destroying a mutex.
19036 * sysdeps/powerpc/nptl/elide.h:
19037 Cleanup ENABLE_LOCK_ELISION check.
19038 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19039 * sysdeps/s390/configure: Regenerated.
19040 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19041 * nptl/tst-mutex8.c:
19042 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19043 * sysdeps/powerpc/powerpc32/sysdep.h:
19044 Deleted all ENABLE_LOCK_ELISION checks.
19045 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19046 * sysdeps/powerpc/sysdep.h: Likewise.
19047 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19048 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19049 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19050 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19051 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19052 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19053 enable-lock-elision.
19054
19055 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19056
19057 * stdlib/strtod.c: Include <bits/floatn.h>.
19058 (BUILD_DOUBLE): New macro.
19059 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19060 (strtof64): Define and later undefine as macro. Define as weak
19061 alias if [!USE_WIDE_CHAR].
19062 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19063 (wcstof64): Define and later undefine as macro. Define as weak
19064 alias if [USE_WIDE_CHAR].
19065 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19066 (strtof32x): Define and later undefine as macro. Define as weak
19067 alias if [!USE_WIDE_CHAR].
19068 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19069 (wcstof32x): Define and later undefine as macro. Define as weak
19070 alias if [USE_WIDE_CHAR].
19071 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19072 (BUILD_DOUBLE): New macro.
19073 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19074 (strtof64_l): Define and later undefine as macro. Define as weak
19075 alias if [!USE_WIDE_CHAR].
19076 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19077 (wcstof64_l): Define and later undefine as macro. Define as weak
19078 alias if [USE_WIDE_CHAR].
19079 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19080 (strtof32x_l): Define and later undefine as macro. Define as weak
19081 alias if [!USE_WIDE_CHAR].
19082 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19083 (wcstof32x_l): Define and later undefine as macro. Define as weak
19084 alias if [USE_WIDE_CHAR].
19085
19086 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19087
19088 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19089 (reduced): Use ones as double instead of integer.
19090
19091 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19092
19093 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19094
19095 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19096
19097 * stdlib/strfromd.c: Include <bits/floatn.h>.
19098 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19099 and later undefine as macro and define as weak alias.
19100 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19101 Likewise.
19102
19103 * math/test-float32x.h: New file.
19104 * math/test-float64.h: Likewise.
19105
19106 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19107 (libm_alias_double_other_r_f64): New macro.
19108 (libm_alias_double_other_r_f32x): Likewise.
19109 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19110 libm_alias_double_other_r_f32x.
19111 (libm_alias_double_r): Use semicolon before call to
19112 libm_alias_double_other_r.
19113 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19114 <bits/floatn.h>.
19115 (libm_alias_double_other_r_f64): New macro.
19116 (libm_alias_double_other_r_f32x): Likewise.
19117 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19118 libm_alias_double_other_r_f32x.
19119
19120 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19121
19122 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19123 int.
19124 (SINF_FUNC): Likewise. Replace floor with simple casts.
19125
19126 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19127
19128 [BZ #22517]
19129 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19130 and to the list of locales to be built for testing.
19131 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19132 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19133 and build the collation rules upon that.
19134
19135 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19136
19137 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19138 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19139 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19140 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19141 instead of __insn__xxx.
19142 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19143 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19144 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19145 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19146 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19147 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19148
19149 2017-12-05 Florian Weimer <fweimer@redhat.com>
19150
19151 Linux: Implement interfaces for memory protection keys
19152 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19153 xsignal, xsysconf.
19154 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19155 * support/xunistd.h (xsysconf): Declare.
19156 * support/xraise.c: New file.
19157 * support/xsigaction.c: Likewise.
19158 * support/xsignal.c: Likewise.
19159 * support/xsysconf.c: Likewise.
19160 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19161 pkey_set, pkey_get, pkey_mprotect.
19162 [misc] (tests): Add tst-pkey.
19163 (tst-pkey): Link with -lpthread.
19164 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19165 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19166 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19167 (PKEY_DISABLE_WRITE): Define.
19168 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19169 Declare.
19170 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19171 (SEGV_PKUERR): Add.
19172 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19173 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19174 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19175 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19176 Add.
19177 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19178 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19179 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19180 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19181 * sysdeps/unix/sysv/linux/**.abilist: Update.
19182
19183 2017-12-05 Florian Weimer <fweimer@redhat.com>
19184
19185 * support/tst-test_compare.c (subprocess): Use long long instead
19186 of long argument for consistent type width across 32-bit and
19187 64-bit architectures.
19188 (do_test): Adjust expected output.
19189
19190 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19191
19192 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19193 (cosf): Define using libm_alias_float.
19194 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19195 (fabsf): Define using libm_alias_float.
19196 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19197 (fmaf): Define using libm_alias_float.
19198 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19199 (rintf): Define using libm_alias_float.
19200 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19201 (sinf): Define using libm_alias_float.
19202 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19203 <libm-alias-float.h>.
19204 (modff): Define using libm_alias_float.
19205 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19206 <libm-alias-float.h>.
19207 (logbf): Define using libm_alias_float.
19208 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19209 <libm-alias-float.h>.
19210 (ceilf): Define using libm_alias_float.
19211 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19212 <libm-alias-float.h>.
19213 (copysignf): Define using libm_alias_float.
19214 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19215 <libm-alias-float.h>.
19216 (floorf): Define using libm_alias_float.
19217 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19218 <libm-alias-float.h>.
19219 (llrintf): Define using libm_alias_float.
19220 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19221 <libm-alias-float.h>.
19222 (llroundf): Define using libm_alias_float.
19223 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19224 <libm-alias-float.h>.
19225 (lrintf): Define using libm_alias_float.
19226 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19227 <libm-alias-float.h>.
19228 (lroundf): Define using libm_alias_float.
19229 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19230 <libm-alias-float.h>.
19231 (nearbyintf): Define using libm_alias_float.
19232 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19233 <libm-alias-float.h>.
19234 (rintf): Define using libm_alias_float.
19235 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19236 <libm-alias-float.h>.
19237 (roundf): Define using libm_alias_float.
19238 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19239 <libm-alias-float.h>.
19240 (truncf): Define using libm_alias_float.
19241 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19242 Include <libm-alias-float.h>.
19243 (ceilf): Define using libm_alias_float.
19244 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19245 Include <libm-alias-float.h>.
19246 (copysignf): Define using libm_alias_float.
19247 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19248 Include <libm-alias-float.h>.
19249 (floorf): Define using libm_alias_float.
19250 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19251 Include <libm-alias-float.h>.
19252 (llrintf): Define using libm_alias_float.
19253 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19254 Include <libm-alias-float.h>.
19255 (llroundf): Define using libm_alias_float.
19256 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19257 Include <libm-alias-float.h>.
19258 (logbf): Define using libm_alias_float.
19259 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19260 Include <libm-alias-float.h>.
19261 (lrintf): Define using libm_alias_float.
19262 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19263 Include <libm-alias-float.h>.
19264 (lroundf): Define using libm_alias_float.
19265 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19266 Include <libm-alias-float.h>.
19267 (modff): Define using libm_alias_float.
19268 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19269 Include <libm-alias-float.h>.
19270 (roundf): Define using libm_alias_float.
19271 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19272 Include <libm-alias-float.h>.
19273 (truncf): Define using libm_alias_float.
19274 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19275 <libm-alias-float.h>.
19276 (llrintf): Define using libm_alias_float.
19277 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19278 <libm-alias-float.h>.
19279 (llroundf): Define using libm_alias_float.
19280 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19281 <libm-alias-float.h>.
19282 (ceilf): Define using libm_alias_float.
19283 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19284 <libm-alias-float.h>.
19285 (floorf): Define using libm_alias_float.
19286 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19287 <libm-alias-float.h>.
19288 (llroundf): Define using libm_alias_float.
19289 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19290 <libm-alias-float.h>.
19291 (lroundf): Define using libm_alias_float.
19292 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19293 <libm-alias-float.h>.
19294 (roundf): Define using libm_alias_float.
19295 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19296 <libm-alias-float.h>.
19297 (truncf): Define using libm_alias_float.
19298 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19299 <libm-alias-float.h>.
19300 (copysignf): Define using libm_alias_float.
19301 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19302 <libm-alias-float.h>.
19303 (llrintf): Define using libm_alias_float.
19304 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19305 <libm-alias-float.h>.
19306 (llroundf): Define using libm_alias_float.
19307 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19308 <libm-alias-float.h>.
19309 (lrintf): Define using libm_alias_float.
19310 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19311 <libm-alias-float.h>.
19312 (lroundf): Define using libm_alias_float.
19313 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19314 <libm-alias-float.h>.
19315 (ceilf): Define using libm_alias_float.
19316 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19317 <libm-alias-float.h>.
19318 (copysignf): Define using libm_alias_float.
19319 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19320 <libm-alias-float.h>.
19321 (cosf): Define using libm_alias_float.
19322 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19323 <libm-alias-float.h>.
19324 (floorf): Define using libm_alias_float.
19325 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19326 <libm-alias-float.h>.
19327 (llrintf): Define using libm_alias_float.
19328 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19329 <libm-alias-float.h>.
19330 (llroundf): Define using libm_alias_float.
19331 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19332 <libm-alias-float.h>.
19333 (logbf): Define using libm_alias_float.
19334 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19335 <libm-alias-float.h>.
19336 (modff): Define using libm_alias_float.
19337 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19338 <libm-alias-float.h>.
19339 (roundf): Define using libm_alias_float.
19340 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19341 <libm-alias-float.h>.
19342 (sinf): Define using libm_alias_float.
19343 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19344 <libm-alias-float.h>.
19345 (truncf): Define using libm_alias_float.
19346 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19347 <libm-alias-float.h>.
19348 (ceilf): Define using libm_alias_float.
19349 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19350 <libm-alias-float.h>.
19351 (copysignf): Define using libm_alias_float.
19352 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19353 <libm-alias-float.h>.
19354 (floorf): Define using libm_alias_float.
19355 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19356 <libm-alias-float.h>.
19357 (llrintf): Define using libm_alias_float.
19358 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19359 <libm-alias-float.h>.
19360 (llroundf): Define using libm_alias_float.
19361 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19362 <libm-alias-float.h>.
19363 (nearbyintf): Define using libm_alias_float.
19364 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19365 <libm-alias-float.h>.
19366 (rintf): Define using libm_alias_float.
19367 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19368 <libm-alias-float.h>.
19369 (roundf): Define using libm_alias_float.
19370 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19371 <libm-alias-float.h>.
19372 (truncf): Define using libm_alias_float.
19373 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19374 <libm-alias-float.h>.
19375 (ceilf): Define using libm_alias_float.
19376 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19377 <libm-alias-float.h>.
19378 (floorf): Define using libm_alias_float.
19379 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19380 <libm-alias-float.h>.
19381 (llroundf): Define using libm_alias_float.
19382 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19383 <libm-alias-float.h>.
19384 (roundf): Define using libm_alias_float.
19385 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19386 <libm-alias-float.h>.
19387 (truncf): Define using libm_alias_float.
19388 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19389 <libm-alias-float.h>.
19390 (copysignf): Define using libm_alias_float.
19391 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19392 <libm-alias-float.h>.
19393 (llrintf): Define using libm_alias_float.
19394 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19395 <libm-alias-float.h>.
19396 (llroundf): Define using libm_alias_float.
19397 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19398 <libm-alias-float.h>.
19399 (cosf): Define using libm_alias_float.
19400 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19401 <libm-alias-float.h>.
19402 (llrintf): Define using libm_alias_float.
19403 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19404 <libm-alias-float.h>.
19405 (llroundf): Define using libm_alias_float.
19406 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19407 <libm-alias-float.h>.
19408 (sinf): Define using libm_alias_float.
19409
19410 2017-12-04 Florian Weimer <fweimer@redhat.com>
19411
19412 * support/check.h (TEST_COMPARE): Define.
19413 (support_test_compare_failure): Declare.
19414 * support/Makefile (libsupport-routines): Add
19415 support_test_compare_failure.
19416 (tests): Add tst-test_compare.
19417 * support /support_test_compare_failure.c: New file.
19418 * support/tst-test_compare.c: Likewise.
19419
19420 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19421
19422 [BZ #22527]
19423 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19424 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19425 available, this rewrite of the collation rules does reproduce
19426 the test file in the same order.
19427
19428 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19429
19430 [BZ #10580]
19431 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19432 digraphs in the month and day names. Using single code points for
19433 digraphs is deprecated. While there are dedicated Unicode
19434 codepoints, for the digraphs, these are included for backwards
19435 compatibility and modern texts use a sequence of Basic Latin
19436 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19437 This makes the month and day names agree exactly with CLDR now,
19438 CLDR does not use the single code points for the digraphs either.
19439
19440 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19441
19442 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19443
19444 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19445
19446 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19447 of floor.
19448
19449 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19450
19451 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19452 Define only for libc.so.
19453
19454 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19455
19456 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19457 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19458 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19459 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19460 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19461
19462 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19463
19464 [BZ #5997]
19465 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19466
19467 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19468
19469 [BZ libc/19170]
19470 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19471 PREINIT_FUNCTION_WEAK is nonzero.
19472 (gmon_initializer): New function. Put procedure label for it in
19473 .init_array section.
19474 (_init): Don't call PREINIT_FUNCTION.
19475 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19476 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19477 value when map argument is null.
19478
19479 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19480 depi instruction from PIC pc-relative sequence.
19481 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19482 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19483 (elf_machine_load_address): Likewise.
19484 (elf_machine_runtime_setup): Likewise.
19485
19486 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19487
19488 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19489 <libm-alias-double.h>.
19490 (logb): Define using libm_alias_double.
19491 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19492 <libm-alias-double.h>.
19493 (copysign): Define using libm_alias_double.
19494 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19495 <libm-alias-double.h>.
19496 (llrint): Define using libm_alias_double.
19497 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19498 <libm-alias-double.h>.
19499 (llround): Define using libm_alias_double.
19500 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19501 <libm-alias-double.h>.
19502 (lrint): Define using libm_alias_double.
19503 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19504 <libm-alias-double.h>.
19505 (lround): Define using libm_alias_double.
19506 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19507 Include <libm-alias-double.h>.
19508 (copysign): Define using libm_alias_double.
19509 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19510 Include <libm-alias-double.h>.
19511 (llrint): Define using libm_alias_double.
19512 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19513 Include <libm-alias-double.h>.
19514 (llround): Define using libm_alias_double.
19515 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19516 <libm-alias-double.h>.
19517 (logb): Define using libm_alias_double.
19518 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19519 Include <libm-alias-double.h>.
19520 (lrint): Define using libm_alias_double.
19521 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19522 Include <libm-alias-double.h>.
19523 (lround): Define using libm_alias_double.
19524 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19525 <libm-alias-double.h>.
19526 (llrint): Define using libm_alias_double.
19527 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19528 <libm-alias-double.h>.
19529 (llround): Define using libm_alias_double.
19530 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19531 <libm-alias-double.h>.
19532 (llround): Define using libm_alias_double.
19533 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19534 <libm-alias-double.h>.
19535 (lround): Define using libm_alias_double.
19536 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19537 <libm-alias-double.h>.
19538 (copysign): Define using libm_alias_double.
19539 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19540 <libm-alias-double.h>.
19541 (llrint): Define using libm_alias_double.
19542 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19543 <libm-alias-double.h>.
19544 (llround): Define using libm_alias_double.
19545 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19546 <libm-alias-double.h>.
19547 (lrint): Define using libm_alias_double.
19548 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19549 <libm-alias-double.h>.
19550 (lround): Define using libm_alias_double.
19551 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19552 <libm-alias-double.h>.
19553 (copysign): Define using libm_alias_double.
19554 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19555 <libm-alias-double.h>.
19556 (llrint): Define using libm_alias_double.
19557 (lrint): Likewise.
19558 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19559 <libm-alias-double.h>.
19560 (llround): Define using libm_alias_double.
19561 (lround): Likewise.
19562 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19563 <libm-alias-double.h>.
19564 (logb): Define using libm_alias_double.
19565 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19566 <libm-alias-double.h>.
19567 (copysign): Define using libm_alias_double.
19568 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19569 <libm-alias-double.h>.
19570 (llrint): Define using libm_alias_double.
19571 (lrint): Likewise.
19572 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19573 <libm-alias-double.h>.
19574 (llround): Define using libm_alias_double.
19575 (lround): Likewise.
19576 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19577 <libm-alias-double.h>.
19578 (llround): Define using libm_alias_double.
19579 (lround): Likewise.
19580 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19581 <libm-alias-double.h>.
19582 (copysign): Define using libm_alias_double.
19583 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19584 <libm-alias-double.h>.
19585 (llrint): Define using libm_alias_double.
19586 (lrint): Likewise.
19587 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19588 <libm-alias-double.h>.
19589 (llround): Define using libm_alias_double.
19590 (lround): Likewise.
19591 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19592 <libm-alias-double.h>.
19593 (llrint): Define using libm_alias_double.
19594 (lrint): Likewise.
19595 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19596 <libm-alias-double.h>.
19597 (llround): Define using libm_alias_double.
19598 (lround): Likewise.
19599
19600 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19601
19602 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19603 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19604 compat symbol based on llround.
19605
19606 * sysdeps/powerpc/power7/fpu/s_logb.c
19607 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19608 symbol based on __logb, not on logb.
19609 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19610 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19611 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19612 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19613
19614 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19615 (rint): Define using libm_alias_double.
19616 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19617 <libm-alias-double.h>.
19618 (modf): Define using libm_alias_double.
19619 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19620 <libm-alias-double.h>.
19621 (ceil): Define using libm_alias_double.
19622 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19623 <libm-alias-double.h>.
19624 (floor): Define using libm_alias_double.
19625 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19626 <libm-alias-double.h>.
19627 (nearbyint): Define using libm_alias_double.
19628 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19629 <libm-alias-double.h>.
19630 (rint): Define using libm_alias_double.
19631 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19632 <libm-alias-double.h>.
19633 (round): Define using libm_alias_double.
19634 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19635 <libm-alias-double.h>.
19636 (trunc): Define using libm_alias_double.
19637 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19638 <libm-alias-double.h>.
19639 (ceil): Define using libm_alias_double.
19640 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19641 Include <libm-alias-double.h>.
19642 (floor): Define using libm_alias_double.
19643 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19644 <libm-alias-double.h>.
19645 (modf): Define using libm_alias_double.
19646 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19647 Include <libm-alias-double.h>.
19648 (round): Define using libm_alias_double.
19649 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19650 Include <libm-alias-double.h>.
19651 (trunc): Define using libm_alias_double.
19652 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19653 <libm-alias-double.h>.
19654 (ceil): Define using libm_alias_double.
19655 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19656 <libm-alias-double.h>.
19657 (floor): Define using libm_alias_double.
19658 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19659 <libm-alias-double.h>.
19660 (round): Define using libm_alias_double.
19661 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19662 <libm-alias-double.h>.
19663 (trunc): Define using libm_alias_double.
19664 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19665 <libm-alias-double.h>.
19666 (ceil): Define using libm_alias_double.
19667 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19668 <libm-alias-double.h>.
19669 (floor): Define using libm_alias_double.
19670 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19671 <libm-alias-double.h>.
19672 (modf): Define using libm_alias_double.
19673 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19674 <libm-alias-double.h>.
19675 (round): Define using libm_alias_double.
19676 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19677 <libm-alias-double.h>.
19678 (trunc): Define using libm_alias_double.
19679 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19680 <libm-alias-double.h>.
19681 (ceil): Define using libm_alias_double.
19682 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19683 <libm-alias-double.h>.
19684 (floor): Define using libm_alias_double.
19685 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19686 <libm-alias-double.h>.
19687 (nearbyint): Define using libm_alias_double.
19688 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19689 <libm-alias-double.h>.
19690 (rint): Define using libm_alias_double.
19691 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19692 <libm-alias-double.h>.
19693 (round): Define using libm_alias_double.
19694 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19695 <libm-alias-double.h>.
19696 (trunc): Define using libm_alias_double.
19697 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19698 <libm-alias-double.h>.
19699 (ceil): Define using libm_alias_double.
19700 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19701 <libm-alias-double.h>.
19702 (floor): Define using libm_alias_double.
19703 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19704 <libm-alias-double.h>.
19705 (round): Define using libm_alias_double.
19706 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19707 <libm-alias-double.h>.
19708 (trunc): Define using libm_alias_double.
19709
19710 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19711 (fabs): Define using libm_alias_double.
19712 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19713 (fma): Define using libm_alias_double.
19714 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19715 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19716 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19717 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19718
19719 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19720
19721 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19722
19723 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19724 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19725 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19726
19727 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19728 due redirect macro.
19729
19730 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19731
19732 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19733
19734 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19735
19736 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19737 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19738 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19739 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19740
19741 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19742 (libm-sysdep_routines): Add s_nearbyintf-generic and
19743 s_nearbyint-generic.
19744 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19745 New file.
19746 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19747 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19748 Likewise.
19749 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19750 Likewise.
19751 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19752 file.
19753 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19754 Likewise.
19755
19756 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19757 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19758 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19759 file.
19760 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19761 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19762 Likewise.
19763 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19764 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19765 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19766
19767 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19768 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19769 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19770 file.
19771 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19772 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19773 Likewise.
19774 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19775 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19776 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19777
19778 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19779 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19780 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19781 file.
19782 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19783 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19784 Likewise.
19785 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19786 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19787 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19788
19789 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19790 (sysdep_calls): New rule.
19791 (sysdep_routines): Use sysdep_calls as base.
19792 (libm-sysdep_routines): Add generic rule for symbols shared with
19793 libc. Add s_copysign-generic and s_copysign-generic objects.
19794 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19795 New file.
19796 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19797 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19798 Likewise.
19799 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19800 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19801 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19802
19803 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19804
19805 [BZ #22519]
19806 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19807 the list of locales to be built for testing.
19808 * localedata/is_IS.UTF-8.in: New file.
19809 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19810 on iso14651_t1.
19811
19812 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19813
19814 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19815 <libm-alias-float.h>.
19816 (fabsf): Define using libm_alias_float.
19817
19818 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19819
19820 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19821
19822 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19823
19824 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19825 <libm-alias-float.h>.
19826 (fabsf): Define using libm_alias_float.
19827 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19828 <libm-alias-float.h>.
19829 (lrintf): Define using libm_alias_float.
19830 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19831 <libm-alias-float.h>.
19832 (rintf): Define using libm_alias_float.
19833
19834 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19835 <libm-alias-double.h>.
19836 (fabs): Define using libm_alias_double.
19837 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19838 <libm-alias-double.h>.
19839 (lrint): Define using libm_alias_double.
19840 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19841 <libm-alias-double.h>.
19842 (rint): Define using libm_alias_double.
19843
19844 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19845 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19846 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19847 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19848 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19849 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19850 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19851 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19852 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19853 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19854 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19855 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19856 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19857 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19858 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19859 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19860 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19861 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19862 s_atan_template.c.
19863 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19864 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19865 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19866 s_ceil_template.c.
19867 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19868 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19869 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19870 s_cos_template.c.
19871 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19872 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19873 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19874 s_expm1_template.c.
19875 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19876 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19877 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19878 s_fabs_template.c.
19879 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19880 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19881 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19882 s_floor_template.c.
19883 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19884 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19885 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19886 s_frexp_template.c.
19887 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19888 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19889 s_lrint_template.c.
19890 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19891 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19892 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19893 s_modf_template.c.
19894 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19895 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19896 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19897 s_nearbyint_template.c.
19898 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19899 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19900 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19901 s_remquo_template.c.
19902 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19903 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19904 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19905 s_rint_template.c.
19906 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19907 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19908 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19909 s_sin_template.c.
19910 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19911 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19912 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19913 s_sincos_template.c.
19914 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19915 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19916 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19917 s_tan_template.c.
19918 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
19919 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
19920 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
19921 s_tanh_template.c.
19922 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
19923 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
19924 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
19925 s_trunc_template.c.
19926 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
19927 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
19928 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
19929 s_atan.c instead of including s_atan.c.
19930 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
19931 s_atanf.c instead of including s_atanf.c.
19932 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
19933 s_atanl.c instead of including s_atanl.c.
19934 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
19935 instead of s_atan.c.
19936 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
19937 instead of s_atanf.c.
19938 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
19939 instead of s_atanl.c.
19940
19941 * scripts/update-copyrights: Do not handle intl/plural.c
19942 specially.
19943
19944 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
19945
19946 [BZ #22432]
19947 * configure.ac (BISON): Require to be present.
19948 * configure: Regenerated.
19949 * intl/Makefile (generated): Add plural.c.
19950 [$(BISON) != no]: Make code unconditional.
19951 (plural.c): Change rule to $(objpfx)plural.c.
19952 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
19953 * intl/plural.c: Remove.
19954 * manual/install.texi (Tools for Compilation): Document bison as
19955 required.
19956 * INSTALL: Regenerated.
19957
19958 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19959
19960 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
19961 <libm-alias-double.h>.
19962 (llrint): Define using libm_alias_double.
19963 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
19964 <libm-alias-float.h>.
19965 (llrintf): Define using libm_alias_float.
19966 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
19967 <libm-alias-ldouble.h>.
19968 (llrintl): Define using libm_alias_ldouble.
19969
19970 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
19971 declare_mgen_alias instead of weak_alias.
19972 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
19973 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
19974 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
19975
19976 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19977
19978 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19979 Add add_n-generic.
19980 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
19981 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
19982 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
19983
19984 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19985 Add submul_1-generic.
19986 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
19987 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
19988 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
19989
19990 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19991 Add addmul_1-generic.
19992 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
19993 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
19994 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
19995
19996 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19997 Add sub_n-generic.
19998 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
19999 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20000 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20001
20002 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20003 Add mul_1-generic.
20004 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20005 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20006 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20007
20008 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20009
20010 According to CLDR, collation rules for Serbian and Bosnian
20011 should be the same as for Croatian.
20012
20013 [BZ #22534]
20014 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20015 and to the list of locales to be built for testing.
20016 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20017 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20018 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20019 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20020
20021 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20022
20023 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20024 to make test case pass.
20025 * localedata/hr_HR.UTF-8.in: Add more test strings.
20026
20027 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20028
20029 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20030
20031 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20032
20033 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20034 the list of locales to built for testing.
20035 * localedata/hr_HR.UTF-8.in: New file.
20036
20037 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20038
20039 [BZ #10580]
20040 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20041 iso14651_t1.
20042 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20043 CLDR (except use ligatures for the digraphs, CLDR does not use
20044 the ligatures), add first_workday, some fixes in the date and time
20045 formats.
20046 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20047 for Đ and đ.
20048 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20049 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20050 Add int_p_cs_precedes and int_n_cs_precedes.
20051 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20052 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20053 LC_MONETARY now).
20054 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20055 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20056 name_miss.
20057 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20058 and lang_lib. Change postal_fmt.
20059
20060 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20061
20062 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20063 <setjmp.h>.
20064 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20065 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20066 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20067 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20068 * sysdeps/generic/setjmpP.h: New file.
20069 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20070 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20071 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20072 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20073 Add jmp_buf-ssp.sym.
20074 (tests): Add tst-saved_mask-1.
20075
20076 2017-11-30 Arjun Shankar <arjun@redhat.com>
20077
20078 [BZ #22375]
20079 CVE-2017-17426
20080 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20081 instead of request2size.
20082
20083 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20084
20085 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20086 (__lllrint): Remove alias.
20087 (lllrint): Likewise.
20088 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20089 (__lllrintf): Likewise.
20090 (lllrintf): Likewise.
20091
20092 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20093 <libm-alias-float.h>.
20094 (copysignf): Define using libm_alias_float.
20095 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20096 <libm-alias-float.h>.
20097 (fabsf): Define using libm_alias_float.
20098 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20099 Include <libm-alias-float.h>.
20100 (copysignf): Define using libm_alias_float.
20101 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20102 <libm-alias-float.h>.
20103 (fabsf): Define using libm_alias_float.
20104 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20105 <libm-alias-float.h>.
20106 (fdimf): Define using libm_alias_float.
20107 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20108 <libm-alias-float.h>.
20109 (fmaf): Define using libm_alias_float.
20110 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20111 <libm-alias-float.h>.
20112 (llrintf): Define using libm_alias_float.
20113 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20114 Include <libm-alias-float.h>.
20115 (nearbyintf): Define using libm_alias_float.
20116 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20117 <libm-alias-float.h>.
20118 (rintf): Define using libm_alias_float.
20119 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20120 <libm-alias-float.h>.
20121 (llrintf): Define using libm_alias_float.
20122 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20123 <libm-alias-float.h>.
20124 (lrintf): Define using libm_alias_float.
20125 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20126 <libm-alias-float.h>.
20127 (nearbyintf): Define using libm_alias_float.
20128 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20129 <libm-alias-float.h>.
20130 (rintf): Define using libm_alias_float.
20131 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20132 <libm-alias-float.h>.
20133 (ceilf): Define using libm_alias_float.
20134 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20135 <libm-alias-float.h>.
20136 (floorf): Define using libm_alias_float.
20137 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20138 <libm-alias-float.h>.
20139 (fmaf): Define using libm_alias_float.
20140 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20141 <libm-alias-float.h>.
20142 (lrintf): Define using libm_alias_float.
20143 (llrintf): Likewise.
20144 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20145 <libm-alias-float.h>.
20146 (nearbyintf): Define using libm_alias_float.
20147 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20148 <libm-alias-float.h>.
20149 (rintf): Define using libm_alias_float.
20150 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20151 <libm-alias-float.h>.
20152 (truncf): Define using libm_alias_float.
20153 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20154 <libm-alias-float.h>.
20155 (copysignf): Define using libm_alias_float.
20156 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20157 <libm-alias-float.h>.
20158 (fabsf): Define using libm_alias_float.
20159 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20160 <libm-alias-float.h>.
20161 (lrintf): Define using libm_alias_float.
20162 (llrintf): Likewise.
20163 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20164 <libm-alias-float.h>.
20165 (nearbyintf): Define using libm_alias_float.
20166 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20167 <libm-alias-float.h>.
20168 (rintf): Define using libm_alias_float.
20169
20170 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20171
20172 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20173 <libm-alias-double.h>.
20174 (copysign): Define using libm_alias_double.
20175 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20176 <libm-alias-double.h>.
20177 (fabs): Define using libm_alias_double.
20178 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20179 Include <libm-alias-double.h>.
20180 (copysign): Define using libm_alias_double.
20181 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20182 <libm-alias-double.h>.
20183 (fabs): Define using libm_alias_double.
20184 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20185 <libm-alias-double.h>.
20186 (fdim): Define using libm_alias_double.
20187 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20188 <libm-alias-double.h>.
20189 (fma): Define using libm_alias_double.
20190 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20191 <libm-alias-double.h>.
20192 (llrint): Define using libm_alias_double.
20193 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20194 Include <libm-alias-double.h>.
20195 (nearbyint): Define using libm_alias_double.
20196 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20197 <libm-alias-double.h>.
20198 (rint): Define using libm_alias_double.
20199 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20200 <libm-alias-double.h>.
20201 (fabs): Define using libm_alias_double.
20202 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20203 <libm-alias-double.h>.
20204 (llrint): Define using libm_alias_double.
20205 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20206 <libm-alias-double.h>.
20207 (nearbyint): Define using libm_alias_double.
20208 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20209 <libm-alias-double.h>.
20210 (rint): Define using libm_alias_double.
20211 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20212 <libm-alias-double.h>.
20213 (ceil): Define using libm_alias_double.
20214 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20215 <libm-alias-double.h>.
20216 (floor): Define using libm_alias_double.
20217 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20218 <libm-alias-double.h>.
20219 (fma): Define using libm_alias_double.
20220 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20221 <libm-alias-double.h>.
20222 (lrint): Define using libm_alias_double.
20223 (llrint): Likewise.
20224 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20225 <libm-alias-double.h>.
20226 (nearbyint): Define using libm_alias_double.
20227 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20228 <libm-alias-double.h>.
20229 (rint): Define using libm_alias_double.
20230 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20231 <libm-alias-double.h>.
20232 (trunc): Define using libm_alias_double.
20233 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20234 <libm-alias-double.h>.
20235 (copysign): Define using libm_alias_double.
20236 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20237 <libm-alias-double.h>.
20238 (fabs): Define using libm_alias_double.
20239 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20240 <libm-alias-double.h>.
20241 (lrint): Define using libm_alias_double.
20242 (llrint): Likewise.
20243 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20244 <libm-alias-double.h>.
20245 (nearbyint): Define using libm_alias_double.
20246 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20247 <libm-alias-double.h>.
20248 (rint): Define using libm_alias_double.
20249
20250 [BZ #22229]
20251 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20252 <math_ldbl_opt.h>.
20253 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20254
20255 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20256 SPARC --disable-multi-arch glibc variants.
20257
20258 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20259 <libm-alias-float.h>.
20260 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20261 if [SHARED].
20262 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20263 <libm-alias-float.h>.
20264 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20265 if [SHARED].
20266 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20267 <libm-alias-float.h>.
20268 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20269 if [SHARED].
20270 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20271 <libm-alias-float.h>.
20272 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20273 if [SHARED].
20274 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20275 <libm-alias-float.h>.
20276 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20277 if [SHARED].
20278 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20279 <libm-alias-float.h>.
20280 (ceilf): Define using libm_alias_float.
20281 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20282 <libm-alias-float.h>.
20283 (floorf): Define using libm_alias_float.
20284 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20285 <libm-alias-float.h>.
20286 (fmaf): Define using libm_alias_float.
20287 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20288 <libm-alias-float.h>.
20289 (nearbyintf): Define using libm_alias_float.
20290 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20291 <libm-alias-float.h>.
20292 (rintf): Define using libm_alias_float.
20293 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20294 <libm-alias-float.h>.
20295 (truncf): Define using libm_alias_float.
20296 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20297 (copysignf): Define using libm_alias_float.
20298 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20299 (cosf): Define using libm_alias_float.
20300 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20301 (fabsf): Define using libm_alias_float.
20302 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20303 (fmaxf): Define using libm_alias_float.
20304 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20305 (fminf): Define using libm_alias_float.
20306 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20307 (llrintf): Define using libm_alias_float.
20308 [!__ILP32__] (lrintf): Likewise.
20309 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20310 (sincosf): Define using libm_alias_float.
20311 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20312 (sinf): Define using libm_alias_float.
20313 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20314 (lrintf): Define using libm_alias_float.
20315
20316 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20317 <libm-alias-double.h>.
20318 (atan): Define using libm_alias_double.
20319 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20320 <libm-alias-double.h>.
20321 (ceil): Define using libm_alias_double.
20322 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20323 <libm-alias-double.h>.
20324 (floor): Define using libm_alias_double.
20325 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20326 <libm-alias-double.h>.
20327 (fma): Define using libm_alias_double.
20328 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20329 <libm-alias-double.h>.
20330 (nearbyint): Define using libm_alias_double.
20331 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20332 <libm-alias-double.h>.
20333 (rint): Define using libm_alias_double.
20334 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20335 <libm-alias-double.h>.
20336 (sin): Define using libm_alias_double.
20337 (cos): Likewise.
20338 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20339 <libm-alias-double.h>.
20340 (tan): Define using libm_alias_double.
20341 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20342 <libm-alias-double.h>.
20343 (trunc): Define using libm_alias_double.
20344 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20345 (copysign): Define using libm_alias_double.
20346 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20347 (fabs): Define using libm_alias_double.
20348 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20349 (fmax): Define using libm_alias_double.
20350 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20351 (fmin): Define using libm_alias_double.
20352 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20353 (llrint): Define using libm_alias_double.
20354 [!__ILP32__] (lrint): Likewise.
20355 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20356 (lrint): Define using libm_alias_double.
20357
20358 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20359
20360 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20361 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20362 objects.
20363 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20364 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20365 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20366 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20367 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20368 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20369
20370 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20371 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20372 objects.
20373 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20374 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20375 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20376 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20377 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20378 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20379
20380 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20381 (libm-sysdep_routines): Add s_nearbyint-generic and
20382 s_nearbyintf-generic objects.
20383 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20384 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20385 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20386 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20387 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20388 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20389
20390 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20391 Add s_finitef-generic and s_finite-generic objects.
20392 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20393 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20394 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20395 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20396 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20397 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20398
20399 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20400 Add s_isinff-generic and s_isinf-generic objects.
20401 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20402 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20403 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20404 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20405 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20406 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20407
20408 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20409 Add s_isnanf-generic and s_isnan-generic objects.
20410 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20411 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20412 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20413 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20414 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20415 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20416
20417 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20418 macro.
20419 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20420 rule.
20421 (sysdep_routines): Use sysdep_calls as base.
20422 (libm-sysdep_routines): Add generic rule for symbols shared with
20423 libc. Add s_signbit-generic and s_signbitf-generic objects.
20424 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20425 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20426 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20427 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20428 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20429 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20430
20431 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20432
20433 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20434 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20435 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20436 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20437 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20438 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20439 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20440 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20441 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20442 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20443 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20444 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20445 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20446 libm_alias_float_r.
20447 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20448 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20449 (logf): Likewise.
20450 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20451 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20452 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20453 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20454 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20455 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20456 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20457 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20458 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20459 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20460 libm_alias_float.
20461 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20462 (cosf): Likewise.
20463 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20464 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20465 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20466 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20467 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20468 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20469 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20470 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20471 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20472 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20473 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20474 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20475 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20476 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20477 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20478 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20479 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20480 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20481 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20482 libm_alias_float.
20483 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20484 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20485 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20486 * sysdeps/ia64/fpu/w_lgammaf_main.c
20487 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20488 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20489
20490 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20491 Alexandre Oliva <aoliva@redhat.com>
20492
20493 [BZ #17750]
20494 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20495 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20496 accents sorting.
20497 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20498 sorting.
20499 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20500 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20501 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20502 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20503 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20504 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20505 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20506 instead of “ifdef DIACRIT_BACKWARD”.
20507
20508 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20509
20510 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20511 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20512 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20513 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20514 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20515 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20516 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20517 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20518 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20519 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20520 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20521 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20522 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20523 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20524 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20525 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20526 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20527 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20528 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20529 ($(have-as-vis3) == yes): Remove conditional.
20530 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20531 Likewise.
20532 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20533 file.
20534 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20535 file.
20536 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20537 file.
20538 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20539 file.
20540 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20541 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20542 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20543 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20544 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20545 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20546 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20547 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20548
20549 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20550
20551 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20552 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20553 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20554 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20555 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20556 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20557 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20558 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20559 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20560 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20561 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20562 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20563 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20564 libm_alias_double_r.
20565 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20566 (log): Likewise.
20567 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20568 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20569 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20570 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20571 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20572 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20573 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20574 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20575 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20576 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20577 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20578 libm_alias_double.
20579 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20580 (cos): Likewise.
20581 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20582 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20583 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20584 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20585 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20586 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20587 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20588 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20589 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20590 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20591 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20592 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20593 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20594 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20595 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20596 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20597 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20598 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20599 libm_alias_double.
20600 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20601 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20602 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20603 * sysdeps/ia64/fpu/w_lgamma_main.c
20604 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20605 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20606
20607 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20608
20609 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20610 address of $global$ into %dp register earlier. Use pc-relative
20611 instruction sequence for PIC case.
20612
20613 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20614
20615 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20616 (asinhf): Define using libm_alias_float.
20617 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20618 (atanf): Define using libm_alias_float.
20619 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20620 (cbrtf): Define using libm_alias_float.
20621 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20622 (ceilf): Define using libm_alias_float.
20623 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20624 (copysignf): Define using libm_alias_float.
20625 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20626 (expm1f): Define using libm_alias_float.
20627 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20628 (fabsf): Define using libm_alias_float.
20629 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20630 (floorf): Define using libm_alias_float.
20631 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20632 (fmaxf): Define using libm_alias_float.
20633 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20634 (fminf): Define using libm_alias_float.
20635 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20636 (frexpf): Define using libm_alias_float.
20637 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20638 (llrintf): Define using libm_alias_float.
20639 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20640 (logbf): Define using libm_alias_float.
20641 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20642 (lrintf): Define using libm_alias_float.
20643 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20644 (nearbyintf): Define using libm_alias_float.
20645 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20646 (remquof): Define using libm_alias_float.
20647 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20648 (rintf): Define using libm_alias_float.
20649 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20650 (truncf): Define using libm_alias_float.
20651 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20652 <libm-alias-float.h>.
20653 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20654 if [SHARED].
20655 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20656 <libm-alias-float.h>.
20657 (expf): Define using libm_alias_float, or libm_alias_float_other
20658 if [SHARED].
20659 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20660 <libm-alias-float.h>.
20661 (log2f): Define using libm_alias_float, or libm_alias_float_other
20662 if [SHARED].
20663 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20664 <libm-alias-float.h>.
20665 (logf): Define using libm_alias_float, or libm_alias_float_other
20666 if [SHARED].
20667 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20668 <libm-alias-float.h>.
20669 (powf): Define using libm_alias_float, or libm_alias_float_other
20670 if [SHARED].
20671 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20672 <libm-alias-float.h>.
20673 (cosf): Define using libm_alias_float.
20674 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20675 <libm-alias-float.h>.
20676 (sincosf): Define using libm_alias_float.
20677 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20678 <libm-alias-float.h>.
20679 (sinf): Define using libm_alias_float.
20680 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20681 (fmaxf): Define using libm_alias_float.
20682 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20683 (fminf): Define using libm_alias_float.
20684 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20685 <libm-alias-float.h>.
20686 (fmaf): Define using libm_alias_float.
20687
20688 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20689 (asinh): Define using libm_alias_double.
20690 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20691 (atan): Define using libm_alias_double.
20692 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20693 (cbrt): Define using libm_alias_double.
20694 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20695 (ceil): Define using libm_alias_double.
20696 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20697 (copysign): Define using libm_alias_double.
20698 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20699 (expm1): Define using libm_alias_double.
20700 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20701 (fabs): Define using libm_alias_double.
20702 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20703 (fdim): Define using libm_alias_double.
20704 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20705 (floor): Define using libm_alias_double.
20706 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20707 (fmax): Define using libm_alias_double.
20708 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20709 (fmin): Define using libm_alias_double.
20710 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20711 (frexp): Define using libm_alias_double.
20712 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20713 (llrint): Define using libm_alias_double.
20714 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20715 (logb): Define using libm_alias_double.
20716 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20717 (lrint): Define using libm_alias_double.
20718 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20719 (nearbyint): Define using libm_alias_double.
20720 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20721 (remquo): Define using libm_alias_double.
20722 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20723 (rint): Define using libm_alias_double.
20724 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20725 (trunc): Define using libm_alias_double.
20726 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20727 (fmax): Define using libm_alias_double.
20728 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20729 (fmin): Define using libm_alias_double.
20730 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20731 (fma): Define using libm_alias_double.
20732
20733 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20734
20735 [BZ #22370]
20736 * elf/dl-hwcaps.c (ROUND): Removed.
20737 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20738 and ELF_NOTE_NEXT_OFFSET.
20739 * elf/dl-load.c (ROUND): Removed.
20740 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20741 * elf/readelflib.c (ROUND): Removed.
20742 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20743 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20744 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20745 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20746
20747 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20748
20749 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20750 [!__fmaf] (fmaf): Define using libm_alias_float.
20751
20752 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20753 [!__fma] (fma): Define using libm_alias_double.
20754 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20755
20756 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20757
20758 [BZ #22336]
20759 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20760 and implement the collation rules for cs from CLDR on top of that.
20761 * Makefile: Add cs_CZ.UTF-8 to test-input.
20762 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20763
20764 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20765
20766 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20767
20768 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20769 Icarus Sparry <icarus.w.sparry@intel.com>
20770
20771 * benchtests/Makefile:Add BENCHSET to allow subsets of
20772 benchmarks to be run.
20773 * benchtests/README: Add documentation for: Running subsets of
20774 benchmarks.
20775
20776 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20777
20778 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20779 range of tests names.
20780
20781 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20782 result from property and remove "max", min" and "mean" from
20783 required properties based on benchtests/bench-skeleton.c.
20784
20785 2017-11-28 Florian Weimer <fweimer@redhat.com>
20786
20787 [BZ #20826]
20788 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20789 due to Internet requirement.
20790 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20791 tst-getaddrinfo5.
20792 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20793
20794 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20795
20796 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20797 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20798 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20799 (sysdep_routines): Add memset-ultra1.
20800 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20801 file.
20802 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20803 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20804 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20805 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20806 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20807 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20808 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20809 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20810
20811 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20812 file.
20813 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20814 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20815 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20816 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20817 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20818 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20819 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20820 macro.
20821 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20822 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20823 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20824 (sysdep_routines): Add memcpy-ultra1.
20825 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20826 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20827
20828 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20829
20830 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20831 (cfloat_versions): Take function argument without trailing 'f'.
20832 Call libm_alias_float_other.
20833 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20834 * sysdeps/alpha/fpu/cargf.c: Likewise.
20835 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20836 * sysdeps/alpha/fpu/conjf.c: Likewise.
20837 * sysdeps/alpha/fpu/crealf.c: Likewise.
20838 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20839 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20840 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20841 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20842 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20843 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20844 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20845 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20846 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20847 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20848 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20849 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20850 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20851 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20852 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20853 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20854 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20855 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20856 (clog10f): Use libm_alias_float_other.
20857 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20858 (ceilf): Define using libm_alias_float.
20859 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20860 (copysignf): Define using libm_alias_float.
20861 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20862 (fabsf): Define using libm_alias_float.
20863 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20864 (floorf): Define using libm_alias_float.
20865 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20866 (fmaxf): Define using libm_alias_float.
20867 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20868 (fminf): Define using libm_alias_float.
20869 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20870 (lrintf): Define using libm_alias_float.
20871 (llrintf): Likewise.
20872 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20873 (lroundf): Define using libm_alias_float.
20874 (llroundf): Likewise.
20875 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20876 (rintf): Define using libm_alias_float.
20877 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20878 (truncf): Define using libm_alias_float.
20879
20880 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20881 (ceilf): Define using libm_alias_float.
20882 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20883 (floorf): Define using libm_alias_float.
20884 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20885 (fmaf): Define using libm_alias_float.
20886 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20887 (fmaxf): Define using libm_alias_float.
20888 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20889 (fminf): Define using libm_alias_float.
20890 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20891 (llrintf): Define using libm_alias_float.
20892 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20893 (llroundf): Define using libm_alias_float.
20894 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20895 (lrintf): Define using libm_alias_float.
20896 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20897 (lroundf): Define using libm_alias_float.
20898 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20899 <libm-alias-float.h>.
20900 (nearbyintf): Define using libm_alias_float.
20901 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20902 (rintf): Define using libm_alias_float.
20903 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20904 (roundf): Define using libm_alias_float.
20905 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20906 (truncf): Define using libm_alias_float.
20907
20908 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20909 (ceil): Define using libm_alias_double.
20910 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20911 (copysign): Define using libm_alias_double.
20912 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20913 (fabs): Define using libm_alias_double.
20914 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20915 (floor): Define using libm_alias_double.
20916 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20917 (fmax): Define using libm_alias_double.
20918 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
20919 (fmin): Define using libm_alias_double.
20920 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
20921 (lrint): Define using libm_alias_double.
20922 (llrint): Likewise.
20923 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
20924 (lround): Define using libm_alias_double.
20925 (llround): Likewise.
20926 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
20927 (rint): Define using libm_alias_double.
20928 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
20929 (trunc): Define using libm_alias_double.
20930
20931 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
20932 (libm_alias_double_r): Add semicolon after weak_alias call.
20933
20934 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20935
20936 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
20937 (ceil): Define using libm_alias_double.
20938 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
20939 (floor): Define using libm_alias_double.
20940 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
20941 (fma): Define using libm_alias_double.
20942 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
20943 (fmax): Define using libm_alias_double.
20944 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
20945 (fmin): Define using libm_alias_double.
20946 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
20947 (llrint): Define using libm_alias_double.
20948 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
20949 (llround): Define using libm_alias_double.
20950 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
20951 (lrint): Define using libm_alias_double.
20952 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
20953 (lround): Define using libm_alias_double.
20954 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
20955 (nearbyint): Define using libm_alias_double.
20956 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
20957 (rint): Define using libm_alias_double.
20958 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
20959 (round): Define using libm_alias_double.
20960 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
20961 (trunc): Define using libm_alias_double.
20962
20963 2017-11-27 Florian Weimer <fweimer@redhat.com>
20964
20965 * sysdeps/unix/sysv/linux/mlock2.c: New file.
20966 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
20967 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
20968 (tests): Add tst-mlock2.
20969 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
20970 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
20971 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
20972 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
20973 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
20974 for mlock. Document mlock2.
20975
20976 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20977
20978 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
20979 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
20980 Likewise.
20981 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
20982 Likewise.
20983 * sysdeps/x86/Makeconfig: New file.
20984 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
20985 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20986 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
20987 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20988 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20989 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20990 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
20991 Likewise.
20992 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20993 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20994 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20995 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20996 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20997 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20998 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20999 * manual/math.texi (Mathematics): Document support for _Float64x.
21000 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21001 * stdlib/Versions (GLIBC_2.27): Likewise.
21002 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21003 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21004 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21005 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21006 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21007 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21008 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21009 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21010 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21011 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21012 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21013 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21015 Likewise.
21016 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21017 Likewise.
21018 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21019 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21020 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21021 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21022 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21023 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21024 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21025 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21026 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21027 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21028 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21029 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21030 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21031 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21032
21033 2017-11-27 Andreas Schwab <schwab@suse.de>
21034
21035 * elf/Makefile (dl-routines): Add dl-sort-maps.
21036 * elf/dl-sort-maps.c: New file.
21037 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21038 (_dl_sort_maps): Declare.
21039 * elf/dl-fini.c (_dl_sort_fini): Remove.
21040 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21041 * elf/dl-close.c (_dl_close_worker): Likewise.
21042 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21043 open-coding it.
21044 * elf/dl-open.c (dl_open_worker): Likewise.
21045
21046 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21047
21048 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21049 using libm_alias_float128.
21050 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21051 Likewise.
21052 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21053 Likewise.
21054 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21055 (setpayloadsigf128): Likewise.
21056 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21057 Likewise.
21058 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21059 Likewise.
21060
21061 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21062 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21063 -mfloat128 to CFLAGS.
21064 ($(foreach
21065 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21066 Likewise.
21067 (CFLAGS-libm-test-support-float64x.c): New variable.
21068 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21069 $(f128-loader-link) to gnulib-tests.
21070
21071 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21072 (libm_alias_float128_other_r): If
21073 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21074 alias.
21075 (libm_alias_float128_r): Add semicolon after weak_alias call.
21076 * sysdeps/generic/libm-alias-ldouble.h
21077 (libm_alias_ldouble_other_r_f128): New macro.
21078 (libm_alias_ldouble_other_r_f64x): Likewise.
21079 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21080 and libm_alias_ldouble_other_r_f64x.
21081 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21082 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21083 (libm_alias_ldouble_other_r_f128): New macro.
21084 (libm_alias_ldouble_other_r_f64x): Likewise.
21085 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21086 and libm_alias_ldouble_other_r_f64x.
21087
21088 * stdlib/strfroml.c: Always include <stdlib.h>.
21089 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21090 undefine as macro and define as weak alias.
21091 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21092 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21093 <stdlib.h>.
21094 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21095 Define and later undefine as macro and define as weak alias.
21096
21097 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21098 Define and later undefine as macro. Define as weak alias if
21099 [!USE_WIDE_CHAR].
21100 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21101 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21102 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21103 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21104 Define and later undefine as macro. Define as weak alias if
21105 [!USE_WIDE_CHAR].
21106 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21107 Define and later undefine as macro. Define as weak alias if
21108 [USE_WIDE_CHAR].
21109 * sysdeps/ieee754/float128/strtof128_l.c
21110 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21111 Define and later undefine as macro. Define as weak alias if
21112 [!USE_WIDE_CHAR].
21113 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21114 Define and later undefine as macro. Define as weak alias if
21115 [USE_WIDE_CHAR].
21116 * sysdeps/ieee754/ldbl-128/strtold_l.c
21117 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21118 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21119 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21120 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21121 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21122 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21123 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21124 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21125 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21126 * sysdeps/ieee754/ldbl-96/strtold_l.c
21127 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21128 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21129 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21130 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21131
21132 * math/test-float64x.h: New file.
21133 * math/Makefile (type-float64x-yes): New variable.
21134 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21135
21136 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21137 function-like macro.
21138 (min_of_type_): Likewise.
21139 (min_of_type_l): Likewise.
21140 (min_of_type_f128): Likewise.
21141 (min_of_type): Pass () as last argument of __MATH_TG.
21142
21143 * stdlib/tst-strtod-round-skeleton.c
21144 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21145 headers.
21146
21147 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21148 for combinations of long double with _Float64 and _Float64x.
21149
21150 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21151 (__DECL_SIMD_cosf32): Likewise.
21152 (__DECL_SIMD_cosf64): Likewise.
21153 (__DECL_SIMD_cosf32x): Likewise.
21154 (__DECL_SIMD_cosf64x): Likewise.
21155 (__DECL_SIMD_cosf128x): Likewise.
21156 (__DECL_SIMD_sinf16): Likewise.
21157 (__DECL_SIMD_sinf32): Likewise.
21158 (__DECL_SIMD_sinf64): Likewise.
21159 (__DECL_SIMD_sinf32x): Likewise.
21160 (__DECL_SIMD_sinf64x): Likewise.
21161 (__DECL_SIMD_sinf128x): Likewise.
21162 (__DECL_SIMD_sincosf16): Likewise.
21163 (__DECL_SIMD_sincosf32): Likewise.
21164 (__DECL_SIMD_sincosf64): Likewise.
21165 (__DECL_SIMD_sincosf32x): Likewise.
21166 (__DECL_SIMD_sincosf64x): Likewise.
21167 (__DECL_SIMD_sincosf128x): Likewise.
21168 (__DECL_SIMD_logf16): Likewise.
21169 (__DECL_SIMD_logf32): Likewise.
21170 (__DECL_SIMD_logf64): Likewise.
21171 (__DECL_SIMD_logf32x): Likewise.
21172 (__DECL_SIMD_logf64x): Likewise.
21173 (__DECL_SIMD_logf128x): Likewise.
21174 (__DECL_SIMD_expf16): Likewise.
21175 (__DECL_SIMD_expf32): Likewise.
21176 (__DECL_SIMD_expf64): Likewise.
21177 (__DECL_SIMD_expf32x): Likewise.
21178 (__DECL_SIMD_expf64x): Likewise.
21179 (__DECL_SIMD_expf128x): Likewise.
21180 (__DECL_SIMD_powf16): Likewise.
21181 (__DECL_SIMD_powf32): Likewise.
21182 (__DECL_SIMD_powf64): Likewise.
21183 (__DECL_SIMD_powf32x): Likewise.
21184 (__DECL_SIMD_powf64x): Likewise.
21185 (__DECL_SIMD_powf128x): Likewise.
21186
21187 * stdlib/Versions (libc): Move entries for wcstof128 and
21188 wcstof128_l to ....
21189 * wcsmbs/Versions (libc): ... here.
21190 Include <float128-abi.h>.
21191
21192 2017-11-24 Florian Weimer <fweimer@redhat.com>
21193
21194 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21195 bits/mman-shared.h.
21196 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21197 <bits/mman-shared.h>.
21198 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21199 to ...
21200 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21201 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21202 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21203 <bits/mman-shared.h>.
21204
21205 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21206
21207 [BZ #22457]
21208 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21209 posix_memalign/free.
21210 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21211
21212 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21213
21214 [BZ #22469]
21215 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21216 and implement the collation rules for pl from CLDR on top of that.
21217 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21218 of locales to be built for testing.
21219 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21220
21221 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21222
21223 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21224 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21225 libm_alias_ldouble_other.
21226 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21227 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21228 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21229 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21230 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21231 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21232 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21233 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21234 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21235 libm_alias_ldouble_r.
21236 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21237 libm_alias_ldouble_other.
21238 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21239 (log10l): Likewise.
21240 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21241 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21242 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21243 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21244 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21245 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21246 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21247 (atan2l): Likewise.
21248 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21249 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21250 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21251 libm_alias_ldouble.
21252 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21253 (cosl): Likewise.
21254 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21255 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21256 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21257 (expl): Likewise.
21258 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21259 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21260 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21261 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21262 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21263 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21264 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21265 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21266 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21267 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21268 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21269 libm_alias_ldouble.
21270 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21271 libm_alias_ldouble_other.
21272 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21273 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21274 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21275 libm_alias_ldouble.
21276 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21277 libm_alias_ldouble_other.
21278 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21279 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21280 * sysdeps/ia64/fpu/w_lgammal_main.c
21281 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21282 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21283
21284 2017-11-23 Florian Weimer <fweimer@redhat.com>
21285
21286 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21287 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21288 alike. Remove freeres marker.
21289 * malloc/arena.c (arena_thread_freeres): Call
21290 tcache_thread_shutdown.
21291
21292 2017-11-23 Florian Weimer <fweimer@redhat.com>
21293
21294 [BZ #22459]
21295 Export nscd hash function as __nss_hash.
21296 * include/nss.h (__nss_hash): Declare.
21297 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21298 symbol.
21299 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21300 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21301 of __nscd_hash.
21302 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21303 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21304 * nss/Makefiles (routines): Add nss_hash.
21305 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21306 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21307 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21308 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21309
21310 2017-11-23 Florian Weimer <fweimer@redhat.com>
21311
21312 [BZ #22478]
21313 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21314 Return error code, not -1.
21315 * signal/tst-sigwait-eintr.c: New file.
21316 * signal/Makefile (tests): Add tst-sigwait-eintr.
21317
21318 2017-11-23 Florian Weimer <fweimer@redhat.com>
21319
21320 Linux: Add memfd_create system call wrapper
21321 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21322 tst-memfd_create.
21323 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21324 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21325 [__USE_GNU] (memfd_create): Declare.
21326 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21327 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21328 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21329 * sysdeps/unix/sysv/linux/**.abilist: Update.
21330 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21331
21332 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21333
21334 * localedata/gen-locale.sh: Fix typo in variable name.
21335
21336 * resolv/res_debug.c (p_secstodate): Condition definition on
21337 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21338 directly as __p_secstodate, and as a compat symbol. Do not use
21339 libresolv_hidden_def.
21340 * resolv/resolv.h (p_secstodate): Remove macro and function
21341 declaration.
21342 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21343 using p_secstodate.
21344 * include/resolv.h (__p_secstodate): Do not use
21345 libresolv_hidden_proto.
21346 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21347 (tests-internal): ... here.
21348 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21349 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21350 and declare and use __p_secstodate and use compat_symbol_reference
21351 in that case.
21352 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21353 implementation returning 77.
21354
21355 [BZ #22463]
21356 * resolv/res_debug.c: Include <libc-diag.h>.
21357 (p_secstodate): Assert time_t at least as wide as u_long. On
21358 overflow, use integer seconds since the epoch as output, or use
21359 "<overflow>" as output and set errno to EOVERFLOW if integer
21360 seconds since the epoch would be 14 or more characters.
21361 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21362 for sprintf call.
21363 * resolv/tst-p_secstodate.c: New file.
21364 * resolv/Makefile (tests): Add tst-p_secstodate.
21365 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21366
21367 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21368 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21369 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21370
21371 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21372
21373 * posix/regcomp.c (init_word_char): Add comments.
21374
21375 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21376
21377 [BZ #22447]
21378 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21379 strlen to compute length of ut_user and set trailing NUL byte of
21380 result explicitly.
21381
21382 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21383
21384 [BZ #15537]
21385 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21386 using “copy "iso14651_t1"” and then implementing the
21387 collation rules for lv from CLDR on top of that.
21388 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21389 of locales to be built for testing.
21390 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21391 sorting.
21392
21393 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21394
21395 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21396 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21397 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21398 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21399 [__USE_MISC] (MADV_HWPOISON): New macro.
21400 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21401
21402 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21403
21404 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21405 -Wmissing-braces on GCC 4.9.
21406
21407 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21408
21409 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21410 * sysdeps/s390/s390-32/start.S (_start): Likewise
21411 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21412 (thread_start): Likewise.
21413 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21414 (thread_start): Likewise.
21415 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21416 (__makecontext_ret): Likewise.
21417 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21418 (__makecontext_ret): Likewise.
21419
21420 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21421
21422 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21423 __wcschrnul): Remove attribute_hidden.
21424
21425 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21426
21427 regex: don't assume uint64_t or uint32_t
21428 This avoids -Werror=overflow errors for 32-bit systems in
21429 the 64-bit case. Problem reported by Joseph Myers in:
21430 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21431 Also, when this code is used in Gnulib it ports to platforms
21432 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21433 them, and on some 32-bit compilers there is no uint64_t.
21434 Problem reported by Gianluigi Tiesi in:
21435 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21436 * posix/regcomp.c (init_word_char): Don't assume that the types
21437 uint64_t and uint32_t exist. Adapted from Gnulib patch
21438 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21439 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21440
21441 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21442
21443 * sysdeps/aarch64/memset-reg.h: New file.
21444 * sysdeps/aarch64/memset.S: Use it.
21445 (__memset): Rename to MEMSET macro.
21446 [ZVA_MACRO]: Use zva_macro.
21447 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21448 Add memset_generic and memset_falkor.
21449 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21450 (__libc_ifunc_impl_list): Add memset ifuncs.
21451 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21452 local variable zva_size.
21453 * sysdeps/aarch64/multiarch/memset.c: New file.
21454 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21455 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21456 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21457 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21458 (DCZID_DZP_MASK): New macro.
21459 (DCZID_BS_MASK): Likewise.
21460 (init_cpu_features): Read and set zva_size.
21461 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21462 (struct cpu_features): New member zva_size.
21463
21464 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21465 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21466 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21467
21468 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21469 backwards. Fix timing computation.
21470 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21471 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21472 on memset by N at a time. Fix timing computation.
21473
21474 2017-11-20 Florian Weimer <fweimer@redhat.com>
21475
21476 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21477 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21478
21479 2017-11-19 Florian Weimer <fweimer@redhat.com>
21480
21481 manual: Document mprotect
21482 * manual/memory.texi (Memory Protection): New section.
21483 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21484 documentation of PROT_* flags and reference the Memory Protection
21485 section instead.
21486
21487 2017-11-19 Florian Weimer <fweimer@redhat.com>
21488
21489 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21490 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21491 (Scatter-Gather): ... to here. Remove misleading comment.
21492
21493 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21494
21495 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21496 style.
21497
21498 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21499 when /proc/<pid>/setgroups does not exist.
21500
21501 2017-11-18 Florian Weimer <fweimer@redhat.com>
21502
21503 * sysdeps/unix/sysv/linux/tst-ttyname.c
21504 (become_root_in_mount_ns): Remove.
21505 (do_in_chroot_1): Call support_enter_mount_namespace.
21506 (do_in_chroot_2): Likewise.
21507 (do_test): Call support_become_root early.
21508
21509 2017-11-18 Florian Weimer <fweimer@redhat.com>
21510
21511 * support/namespace.h (support_enter_mount_namespace): Declare.
21512 * support/support_enter_mount_namespace.c: New file.
21513 * support/Makefile (libsupport-routines): Add
21514 support_enter_mount_namespace.
21515
21516 2017-11-18 Florian Weimer <fweimer@redhat.com>
21517
21518 * support/temp_file.c (support_create_temp_directory): Use
21519 test_dir and do not rely on the presence of the XXXXXX suffix.
21520 * support/temp_file.h (support_create_temp_directory): Update
21521 comment.
21522 * support/tst-xreadlink.c (do_test): Adjust.
21523 * support/support_chroot.c (support_chroot_create): Likewise.
21524
21525 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21526
21527 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21528 macro.
21529 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21530 htm-no-suspend.
21531
21532 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21533
21534 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21535 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21536 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21537 (ceill): Define using libm_alias_ldouble.
21538 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21539 <libm-alias-ldouble.h>.
21540 (copysignl): Define using libm_alias_ldouble.
21541 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21542 (fabsl): Define using libm_alias_ldouble.
21543 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21544 (floorl): Define using libm_alias_ldouble.
21545 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21546 (fmaxl): Define using libm_alias_ldouble.
21547 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21548 (fminl): Define using libm_alias_ldouble.
21549 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21550 (llrintl): Define using libm_alias_ldouble.
21551 (lrintl): Likewise.
21552 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21553 <libm-alias-ldouble.h>.
21554 (nearbyintl): Define using libm_alias_ldouble.
21555 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21556 (truncl): Define using libm_alias_ldouble.
21557 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21558 <libm-alias-ldouble.h>.
21559 (lrintl): Define using libm_alias_ldouble.
21560
21561 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21562 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21563 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21564 (asinhl): Define using libm_alias_ldouble.
21565 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21566 (atanl): Define using libm_alias_ldouble.
21567 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21568 (cbrtl): Define using libm_alias_ldouble.
21569 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21570 (ceill): Define using libm_alias_ldouble.
21571 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21572 (copysignl): Define using libm_alias_ldouble.
21573 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21574 (fabsl): Define using libm_alias_ldouble.
21575 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21576 (floorl): Define using libm_alias_ldouble.
21577 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21578 (fmaxl): Define using libm_alias_ldouble.
21579 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21580 (fminl): Define using libm_alias_ldouble.
21581 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21582 (frexpl): Define using libm_alias_ldouble.
21583 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21584 (llrintl): Define using libm_alias_ldouble.
21585 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21586 (logbl): Define using libm_alias_ldouble.
21587 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21588 (lrintl): Define using libm_alias_ldouble.
21589 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21590 (nearbyintl): Define using libm_alias_ldouble.
21591 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21592 (nextafterl): Define using libm_alias_ldouble.
21593 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21594 (remquol): Define using libm_alias_ldouble.
21595 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21596 (rintl): Define using libm_alias_ldouble.
21597 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21598 (truncl): Define using libm_alias_ldouble.
21599 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21600 (fmaxl): Define using libm_alias_ldouble.
21601 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21602 (fminl): Define using libm_alias_ldouble.
21603
21604 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21605 to C syntax instead of availability and properties of types.
21606 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21607 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21608 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21609 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21610 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21611 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21612
21613 2017-11-17 Florian Weimer <fweimer@redhat.com>
21614
21615 support_become_root: Enable file creation in namespaces.
21616 * support/support_become_root.c (setup_mapping): New function.
21617 (support_become_root): Call it.
21618
21619 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21620
21621 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21622 macro.
21623
21624 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21625
21626 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21627 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21628
21629 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21630
21631 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21632
21633 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21634 version to 4.14.
21635
21636 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21637
21638 * INSTALL: Fix botched up regeneration.
21639
21640 * NEWS: Update sourceare link to https.
21641 * configure.ac: Likewise.
21642 * crypt/md5test-giant.c: Likewise.
21643 * dlfcn/bug-atexit1.c: Likewise.
21644 * dlfcn/bug-atexit2.c: Likewise.
21645 * localedata/README: Likewise.
21646 * malloc/tst-mallocfork.c: Likewise.
21647 * manual/install.texi: Likewise.
21648 * nptl/tst-pthread-getattr.c: Likewise.
21649 * stdio-common/tst-fgets.c: Likewise.
21650 * stdio-common/tst-fwrite.c: Likewise.
21651 * sunrpc/Makefile: Likewise.
21652 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21653 * wcsmbs/tst-mbrtowc2.c: Likewise.
21654 * configure: Regenerate.
21655 * INSTALL: Regenerate.
21656
21657 2017-11-15 Martin Sebor <msebor@redhat.com>
21658
21659 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21660 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21661 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21662
21663 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21664
21665 [BZ #22145]
21666 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21667 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21668
21669 [BZ #22145]
21670 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21671 Defer is_pty check until end of the function.
21672 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21673
21674 [BZ #22145]
21675 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21676 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21677 (ttyname): Likewise.
21678 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21679 (__ttyname_r): Likewise.
21680
21681 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21682 int to bool.
21683
21684 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21685
21686 * manual/terminal.texi (Is It a Terminal):
21687 Mention ENODEV for ttyname and ttyname_r.
21688
21689 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21690
21691 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21692 constant and macro.
21693
21694 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21695 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21696 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21697 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21698 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21699 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21700
21701 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21702
21703 * signal/sigrelse.c (sigrelse): Optimize implementation.
21704
21705 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21706 (__sigpause): Rely on __sigsuspend to implement single thread
21707 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21708
21709 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21710
21711 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21712 kernel version to 4.14.
21713
21714 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21715
21716 [BZ #22442]
21717 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21718 Check if ifname is too long.
21719
21720 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21721
21722 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21723
21724 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21725
21726 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21727 was accidentally lost.
21728
21729 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21730
21731 * localedata/locales/az_IR: Add standard copyright header.
21732
21733 2017-11-15 Florian Weimer <fweimer@redhat.com>
21734
21735 [BZ #22439]
21736 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21737 not just the top one. Output a new "subheaps" statistic.
21738
21739 2017-11-15 Florian Weimer <fweimer@redhat.com>
21740
21741 [BZ #22408]
21742 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21743 under the per-arena lock.
21744 * malloc/Makefile (tests): Add tst-malloc_info.
21745 (tst-malloc_info): Link with libpthread.
21746 * malloc/tst-malloc_info.c: New file.
21747
21748 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21749
21750 [BZ #21660]
21751 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21752 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21753 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21754 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21755 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21756 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21757 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21758 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21759 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21760 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21761 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21762 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21763 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21764 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21765 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21766 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21767 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21768 (__floating_type): Likewise.
21769 (__real_integer_type): Likewise.
21770 (__complex_integer_type): Likewise.
21771 (__expr_is_real): Likewise.
21772 (__tgmath_real_type_sub): Likewise.
21773 (__tgmath_real_type): Likewise.
21774 (__tgmath_complex_type_sub): Likewise.
21775 (__tgmath_complex_type): Likewise.
21776 (__TGMATH_F128): Likewise.
21777 (__TGMATH_CF128): Likewise.
21778 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21779 new macros.
21780 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21781 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21782 Likewise.
21783 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21784 Likewise.
21785 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21786 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21787 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21788 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21789 Likewise.
21790 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21791 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21792 Likewise.
21793 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21794 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21795 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21796 Likewise.
21797 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21798 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21799 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21800 (cimag): Likewise.
21801 (creal): Likewise.
21802
21803 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21804
21805 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21806 for stpncpy calls for GCC 8.
21807 (test_strncat): Disable -Wstringop-truncation warning for strncat
21808 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21809 strncat call for GCC 7.
21810 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21811 calls for GCC 8.
21812 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21813 trailing NUL.
21814
21815 * string/bug-strncat1.c: Include <libc-diag.h>.
21816 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21817
21818 2017-11-13 Claude Paroz <claude@2xlibre.net>
21819
21820 [BZ #22387]
21821 * localedata/locales/aa_DJ: Improved readibility by replacing
21822 <Uxxxx> sequences in the ASCII printable range by their ASCII
21823 character equivalents.
21824 * localedata/locales/aa_ER: Likewise.
21825 * localedata/locales/aa_ER@saaho: Likewise.
21826 * localedata/locales/aa_ET: Likewise.
21827 * localedata/locales/af_ZA: Likewise.
21828 * localedata/locales/agr_PE: Likewise.
21829 * localedata/locales/ak_GH: Likewise.
21830 * localedata/locales/am_ET: Likewise.
21831 * localedata/locales/anp_IN: Likewise.
21832 * localedata/locales/ar_AE: Likewise.
21833 * localedata/locales/ar_BH: Likewise.
21834 * localedata/locales/ar_DZ: Likewise.
21835 * localedata/locales/ar_EG: Likewise.
21836 * localedata/locales/ar_IN: Likewise.
21837 * localedata/locales/ar_IQ: Likewise.
21838 * localedata/locales/ar_JO: Likewise.
21839 * localedata/locales/ar_KW: Likewise.
21840 * localedata/locales/ar_LB: Likewise.
21841 * localedata/locales/ar_LY: Likewise.
21842 * localedata/locales/ar_MA: Likewise.
21843 * localedata/locales/ar_OM: Likewise.
21844 * localedata/locales/ar_QA: Likewise.
21845 * localedata/locales/ar_SA: Likewise.
21846 * localedata/locales/ar_SD: Likewise.
21847 * localedata/locales/ar_SS: Likewise.
21848 * localedata/locales/ar_SY: Likewise.
21849 * localedata/locales/ar_TN: Likewise.
21850 * localedata/locales/ar_YE: Likewise.
21851 * localedata/locales/as_IN: Likewise.
21852 * localedata/locales/ast_ES: Likewise.
21853 * localedata/locales/ayc_PE: Likewise.
21854 * localedata/locales/az_AZ: Likewise.
21855 * localedata/locales/az_IR: Likewise.
21856 * localedata/locales/be_BY: Likewise.
21857 * localedata/locales/be_BY@latin: Likewise.
21858 * localedata/locales/bem_ZM: Likewise.
21859 * localedata/locales/ber_DZ: Likewise.
21860 * localedata/locales/ber_MA: Likewise.
21861 * localedata/locales/bg_BG: Likewise.
21862 * localedata/locales/bhb_IN: Likewise.
21863 * localedata/locales/bho_IN: Likewise.
21864 * localedata/locales/bi_VU: Likewise.
21865 * localedata/locales/bn_BD: Likewise.
21866 * localedata/locales/bn_IN: Likewise.
21867 * localedata/locales/bo_CN: Likewise.
21868 * localedata/locales/bo_IN: Likewise.
21869 * localedata/locales/br_FR: Likewise.
21870 * localedata/locales/brx_IN: Likewise.
21871 * localedata/locales/bs_BA: Likewise.
21872 * localedata/locales/byn_ER: Likewise.
21873 * localedata/locales/ca_AD: Likewise.
21874 * localedata/locales/ca_ES: Likewise.
21875 * localedata/locales/ca_FR: Likewise.
21876 * localedata/locales/ca_IT: Likewise.
21877 * localedata/locales/ce_RU: Likewise.
21878 * localedata/locales/chr_US: Likewise.
21879 * localedata/locales/cmn_TW: Likewise.
21880 * localedata/locales/crh_UA: Likewise.
21881 * localedata/locales/cs_CZ: Likewise.
21882 * localedata/locales/csb_PL: Likewise.
21883 * localedata/locales/cv_RU: Likewise.
21884 * localedata/locales/cy_GB: Likewise.
21885 * localedata/locales/da_DK: Likewise.
21886 * localedata/locales/de_AT: Likewise.
21887 * localedata/locales/de_BE: Likewise.
21888 * localedata/locales/de_CH: Likewise.
21889 * localedata/locales/de_DE: Likewise.
21890 * localedata/locales/de_IT: Likewise.
21891 * localedata/locales/de_LI: Likewise.
21892 * localedata/locales/de_LU: Likewise.
21893 * localedata/locales/doi_IN: Likewise.
21894 * localedata/locales/dv_MV: Likewise.
21895 * localedata/locales/dz_BT: Likewise.
21896 * localedata/locales/el_CY: Likewise.
21897 * localedata/locales/el_GR: Likewise.
21898 * localedata/locales/en_AG: Likewise.
21899 * localedata/locales/en_AU: Likewise.
21900 * localedata/locales/en_BW: Likewise.
21901 * localedata/locales/en_CA: Likewise.
21902 * localedata/locales/en_DK: Likewise.
21903 * localedata/locales/en_GB: Likewise.
21904 * localedata/locales/en_HK: Likewise.
21905 * localedata/locales/en_IE: Likewise.
21906 * localedata/locales/en_IL: Likewise.
21907 * localedata/locales/en_IN: Likewise.
21908 * localedata/locales/en_NG: Likewise.
21909 * localedata/locales/en_NZ: Likewise.
21910 * localedata/locales/en_PH: Likewise.
21911 * localedata/locales/en_SG: Likewise.
21912 * localedata/locales/en_US: Likewise.
21913 * localedata/locales/en_ZA: Likewise.
21914 * localedata/locales/en_ZM: Likewise.
21915 * localedata/locales/en_ZW: Likewise.
21916 * localedata/locales/eo: Likewise.
21917 * localedata/locales/es_AR: Likewise.
21918 * localedata/locales/es_BO: Likewise.
21919 * localedata/locales/es_CL: Likewise.
21920 * localedata/locales/es_CO: Likewise.
21921 * localedata/locales/es_CR: Likewise.
21922 * localedata/locales/es_CU: Likewise.
21923 * localedata/locales/es_DO: Likewise.
21924 * localedata/locales/es_EC: Likewise.
21925 * localedata/locales/es_ES: Likewise.
21926 * localedata/locales/es_GT: Likewise.
21927 * localedata/locales/es_HN: Likewise.
21928 * localedata/locales/es_MX: Likewise.
21929 * localedata/locales/es_NI: Likewise.
21930 * localedata/locales/es_PA: Likewise.
21931 * localedata/locales/es_PE: Likewise.
21932 * localedata/locales/es_PR: Likewise.
21933 * localedata/locales/es_PY: Likewise.
21934 * localedata/locales/es_SV: Likewise.
21935 * localedata/locales/es_US: Likewise.
21936 * localedata/locales/es_UY: Likewise.
21937 * localedata/locales/es_VE: Likewise.
21938 * localedata/locales/et_EE: Likewise.
21939 * localedata/locales/eu_ES: Likewise.
21940 * localedata/locales/eu_ES@euro: Likewise.
21941 * localedata/locales/fa_IR: Likewise.
21942 * localedata/locales/ff_SN: Likewise.
21943 * localedata/locales/fi_FI: Likewise.
21944 * localedata/locales/fil_PH: Likewise.
21945 * localedata/locales/fo_FO: Likewise.
21946 * localedata/locales/fr_BE: Likewise.
21947 * localedata/locales/fr_CA: Likewise.
21948 * localedata/locales/fr_CH: Likewise.
21949 * localedata/locales/fr_FR: Likewise.
21950 * localedata/locales/fr_LU: Likewise.
21951 * localedata/locales/fur_IT: Likewise.
21952 * localedata/locales/fy_DE: Likewise.
21953 * localedata/locales/fy_NL: Likewise.
21954 * localedata/locales/ga_IE: Likewise.
21955 * localedata/locales/gd_GB: Likewise.
21956 * localedata/locales/gez_ER: Likewise.
21957 * localedata/locales/gez_ET: Likewise.
21958 * localedata/locales/gl_ES: Likewise.
21959 * localedata/locales/gu_IN: Likewise.
21960 * localedata/locales/gv_GB: Likewise.
21961 * localedata/locales/ha_NG: Likewise.
21962 * localedata/locales/hak_TW: Likewise.
21963 * localedata/locales/he_IL: Likewise.
21964 * localedata/locales/hi_IN: Likewise.
21965 * localedata/locales/hif_FJ: Likewise.
21966 * localedata/locales/hne_IN: Likewise.
21967 * localedata/locales/hr_HR: Likewise.
21968 * localedata/locales/hsb_DE: Likewise.
21969 * localedata/locales/ht_HT: Likewise.
21970 * localedata/locales/hu_HU: Likewise.
21971 * localedata/locales/hy_AM: Likewise.
21972 * localedata/locales/i18n: Likewise.
21973 * localedata/locales/ia_FR: Likewise.
21974 * localedata/locales/id_ID: Likewise.
21975 * localedata/locales/ig_NG: Likewise.
21976 * localedata/locales/ik_CA: Likewise.
21977 * localedata/locales/is_IS: Likewise.
21978 * localedata/locales/it_CH: Likewise.
21979 * localedata/locales/it_IT: Likewise.
21980 * localedata/locales/iu_CA: Likewise.
21981 * localedata/locales/ja_JP: Likewise.
21982 * localedata/locales/ka_GE: Likewise.
21983 * localedata/locales/kk_KZ: Likewise.
21984 * localedata/locales/kl_GL: Likewise.
21985 * localedata/locales/kn_IN: Likewise.
21986 * localedata/locales/ko_KR: Likewise.
21987 * localedata/locales/kok_IN: Likewise.
21988 * localedata/locales/ks_IN: Likewise.
21989 * localedata/locales/ks_IN@devanagari: Likewise.
21990 * localedata/locales/ku_TR: Likewise.
21991 * localedata/locales/kw_GB: Likewise.
21992 * localedata/locales/ky_KG: Likewise.
21993 * localedata/locales/lb_LU: Likewise.
21994 * localedata/locales/lg_UG: Likewise.
21995 * localedata/locales/li_BE: Likewise.
21996 * localedata/locales/li_NL: Likewise.
21997 * localedata/locales/lij_IT: Likewise.
21998 * localedata/locales/ln_CD: Likewise.
21999 * localedata/locales/lo_LA: Likewise.
22000 * localedata/locales/lt_LT: Likewise.
22001 * localedata/locales/lv_LV: Likewise.
22002 * localedata/locales/lzh_TW: Likewise.
22003 * localedata/locales/mag_IN: Likewise.
22004 * localedata/locales/mai_IN: Likewise.
22005 * localedata/locales/mg_MG: Likewise.
22006 * localedata/locales/mhr_RU: Likewise.
22007 * localedata/locales/mi_NZ: Likewise.
22008 * localedata/locales/mk_MK: Likewise.
22009 * localedata/locales/ml_IN: Likewise.
22010 * localedata/locales/mn_MN: Likewise.
22011 * localedata/locales/mni_IN: Likewise.
22012 * localedata/locales/mr_IN: Likewise.
22013 * localedata/locales/ms_MY: Likewise.
22014 * localedata/locales/mt_MT: Likewise.
22015 * localedata/locales/my_MM: Likewise.
22016 * localedata/locales/nan_TW: Likewise.
22017 * localedata/locales/nan_TW@latin: Likewise.
22018 * localedata/locales/nb_NO: Likewise.
22019 * localedata/locales/nds_DE: Likewise.
22020 * localedata/locales/nds_NL: Likewise.
22021 * localedata/locales/ne_NP: Likewise.
22022 * localedata/locales/nhn_MX: Likewise.
22023 * localedata/locales/niu_NU: Likewise.
22024 * localedata/locales/niu_NZ: Likewise.
22025 * localedata/locales/nl_AW: Likewise.
22026 * localedata/locales/nl_BE: Likewise.
22027 * localedata/locales/nl_NL: Likewise.
22028 * localedata/locales/nn_NO: Likewise.
22029 * localedata/locales/nr_ZA: Likewise.
22030 * localedata/locales/nso_ZA: Likewise.
22031 * localedata/locales/oc_FR: Likewise.
22032 * localedata/locales/om_ET: Likewise.
22033 * localedata/locales/om_KE: Likewise.
22034 * localedata/locales/or_IN: Likewise.
22035 * localedata/locales/os_RU: Likewise.
22036 * localedata/locales/pa_IN: Likewise.
22037 * localedata/locales/pa_PK: Likewise.
22038 * localedata/locales/pap_AW: Likewise.
22039 * localedata/locales/pap_CW: Likewise.
22040 * localedata/locales/pl_PL: Likewise.
22041 * localedata/locales/ps_AF: Likewise.
22042 * localedata/locales/pt_BR: Likewise.
22043 * localedata/locales/pt_PT: Likewise.
22044 * localedata/locales/quz_PE: Likewise.
22045 * localedata/locales/raj_IN: Likewise.
22046 * localedata/locales/ro_RO: Likewise.
22047 * localedata/locales/ru_RU: Likewise.
22048 * localedata/locales/ru_UA: Likewise.
22049 * localedata/locales/rw_RW: Likewise.
22050 * localedata/locales/sa_IN: Likewise.
22051 * localedata/locales/sat_IN: Likewise.
22052 * localedata/locales/sc_IT: Likewise.
22053 * localedata/locales/sd_IN: Likewise.
22054 * localedata/locales/sd_IN@devanagari: Likewise.
22055 * localedata/locales/se_NO: Likewise.
22056 * localedata/locales/sgs_LT: Likewise.
22057 * localedata/locales/shs_CA: Likewise.
22058 * localedata/locales/si_LK: Likewise.
22059 * localedata/locales/sid_ET: Likewise.
22060 * localedata/locales/sk_SK: Likewise.
22061 * localedata/locales/sl_SI: Likewise.
22062 * localedata/locales/sm_WS: Likewise.
22063 * localedata/locales/so_DJ: Likewise.
22064 * localedata/locales/so_ET: Likewise.
22065 * localedata/locales/so_KE: Likewise.
22066 * localedata/locales/so_SO: Likewise.
22067 * localedata/locales/sq_AL: Likewise.
22068 * localedata/locales/sq_MK: Likewise.
22069 * localedata/locales/sr_ME: Likewise.
22070 * localedata/locales/sr_RS: Likewise.
22071 * localedata/locales/sr_RS@latin: Likewise.
22072 * localedata/locales/ss_ZA: Likewise.
22073 * localedata/locales/st_ZA: Likewise.
22074 * localedata/locales/sv_FI: Likewise.
22075 * localedata/locales/sv_SE: Likewise.
22076 * localedata/locales/sw_KE: Likewise.
22077 * localedata/locales/sw_TZ: Likewise.
22078 * localedata/locales/szl_PL: Likewise.
22079 * localedata/locales/ta_IN: Likewise.
22080 * localedata/locales/ta_LK: Likewise.
22081 * localedata/locales/tcy_IN: Likewise.
22082 * localedata/locales/te_IN: Likewise.
22083 * localedata/locales/tg_TJ: Likewise.
22084 * localedata/locales/th_TH: Likewise.
22085 * localedata/locales/the_NP: Likewise.
22086 * localedata/locales/ti_ER: Likewise.
22087 * localedata/locales/ti_ET: Likewise.
22088 * localedata/locales/tig_ER: Likewise.
22089 * localedata/locales/tk_TM: Likewise.
22090 * localedata/locales/tl_PH: Likewise.
22091 * localedata/locales/tn_ZA: Likewise.
22092 * localedata/locales/to_TO: Likewise.
22093 * localedata/locales/tpi_PG: Likewise.
22094 * localedata/locales/tr_CY: Likewise.
22095 * localedata/locales/tr_TR: Likewise.
22096 * localedata/locales/ts_ZA: Likewise.
22097 * localedata/locales/tt_RU: Likewise.
22098 * localedata/locales/tt_RU@iqtelif: Likewise.
22099 * localedata/locales/ug_CN: Likewise.
22100 * localedata/locales/uk_UA: Likewise.
22101 * localedata/locales/unm_US: Likewise.
22102 * localedata/locales/ur_IN: Likewise.
22103 * localedata/locales/ur_PK: Likewise.
22104 * localedata/locales/uz_UZ: Likewise.
22105 * localedata/locales/uz_UZ@cyrillic: Likewise.
22106 * localedata/locales/ve_ZA: Likewise.
22107 * localedata/locales/vi_VN: Likewise.
22108 * localedata/locales/wa_BE: Likewise.
22109 * localedata/locales/wae_CH: Likewise.
22110 * localedata/locales/wal_ET: Likewise.
22111 * localedata/locales/wo_SN: Likewise.
22112 * localedata/locales/xh_ZA: Likewise.
22113 * localedata/locales/yi_US: Likewise.
22114 * localedata/locales/yo_NG: Likewise.
22115 * localedata/locales/yue_HK: Likewise.
22116 * localedata/locales/yuw_PG: Likewise.
22117 * localedata/locales/zh_CN: Likewise.
22118 * localedata/locales/zh_HK: Likewise.
22119 * localedata/locales/zh_SG: Likewise.
22120 * localedata/locales/zh_TW: Likewise.
22121 * localedata/locales/zu_ZA: Likewise.
22122
22123 2017-11-13 Florian Weimer <fweimer@redhat.com>
22124
22125 * support/next_to_fault.h, support/next_to_fault.c: New files.
22126 * support/Makefile (libsupport-routines): Add next_to_fault.
22127 * resolv/tst-inet_pton.c (struct next_to_fault)
22128 (next_to_fault_allocate, next_to_fault_free): Remove.
22129 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22130
22131 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22132
22133 * elf/dl-support.c: Include <dl-procruntime.c>.
22134 * include/link.h: Include <link_map.h>.
22135 * sysdeps/generic/dl-procruntime.c: New file.
22136 * sysdeps/generic/link_map.h: Likewise.
22137 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22138 the writable ld.so namespace.
22139
22140 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22141
22142 timezone: pacify GCC -Wstringop-truncation
22143 Problem reported by Martin Sebor in:
22144 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22145 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22146
22147 2017-11-12 Florian Weimer <fweimer@redhat.com>
22148
22149 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22150 tst-xreadlink.
22151 (tests): Add tst-xreadlink.
22152 * support/support.h (xstrndup): Declare.
22153 * support/xunistd.h (xunlink, xreadlink): Declare.
22154 * support/temp_file.h (support_create_temp_directory): Declare.
22155 * support/temp_file.c (support_create_temp_directory): New function.
22156 * support/support_chroot.c (support_chroot_create): Use it.
22157 * support/xreadlink.c: New file.
22158 * support/xstrndup.c: Likewise.
22159 * support/xunlink.c: Likewise.
22160 * support/tst-xreadlink.c: Likewise.
22161
22162 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22163
22164 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22165
22166 2017-11-11 Florian Weimer <fweimer@redhat.com>
22167
22168 [BZ #22409]
22169 [BZ #22412]
22170 * resolv/res_comp.c (printable_string, binary_hnok)
22171 (binary_leading_dash): New functions.
22172 (res_hnok): Reimplement using these functions and ns_name_pton.
22173 (res_ownok): Likewise.
22174 (res_mailok): Reimplement using printable_string, ns_name_pton and
22175 binary_hnok.
22176 (res_dnok): Reimplement using printable_string and ns_name_pton.
22177 * resolv/tst-res_hnok.c (tests): Add additional tests.
22178 (LETTERDIGITS, PRINTABLE): Define.
22179 (do_test): Adjust one_char results.
22180
22181 2017-11-11 Florian Weimer <fweimer@redhat.com>
22182
22183 [BZ #22413]
22184 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22185 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22186
22187 2017-11-11 Florian Weimer <fweimer@redhat.com>
22188
22189 * resolv/tst-ns_name_pton.c: New file.
22190 * resolv/Makefile (tests): Add tst-ns_name_pton.
22191 (tst-ns_name_pton): Link against libresolv.
22192
22193 2017-11-11 Florian Weimer <fweimer@redhat.com>
22194
22195 * resolv/tst-res_hnok.c: New file.
22196 * resolv/Makefile (tests): Add tst-res_hnok.
22197 (tst-res_hnok): Link against libresolv.
22198
22199 2017-11-11 Florian Weimer <fweimer@redhat.com>
22200
22201 * resolv/tst-resolv-network.c: Use test framework instead explicit
22202 main function.
22203
22204 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22205
22206 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22207 <jmp_buf-macros.h>.
22208 [!_ISOMAC] (STR_HELPER): New.
22209 [!_ISOMAC] (STR): Likewise.
22210 [!_ISOMAC] (TEST_SIZE): Likewise.
22211 [!_ISOMAC] (TEST_ALIGN): Likewise.
22212 [!_ISOMAC] (TEST_OFFSET): Likewise.
22213 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22214 field offsets of jmp_buf as well as sigjmp_buf.
22215 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22216 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22217 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22218 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22219 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22220 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22221 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22222 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22223 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22224 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22225 Likewise.
22226 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22227 Likewise.
22228 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22229 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22230 Likewise.
22231 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22232 Likewise.
22233 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22234 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22235 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22236 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22237 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22238 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22239 Likewise.
22240 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22241 Likewise.
22242 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22243 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22244 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22245
22246 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22247
22248 * include/float.h
22249 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22250 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22251 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22252 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22253 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22254 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22255 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22256 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22257 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22258 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22259 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22260 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22261 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22262 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22263 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22264 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22265 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22266 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22267 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22268 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22269 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22270 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22271 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22272 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22273 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22274 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22275 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22276 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22277 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22278 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22279 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22280 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22281 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22282 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22283 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22284 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22285 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22286 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22287 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22288 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22289 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22290 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22291 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22292 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22293 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22294 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22295 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22296 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22297 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22298 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22299 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22300 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22301 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22302 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22303 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22304 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22305 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22306 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22307 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22308 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22309 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22310 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22311 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22312 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22313 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22314 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22315 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22316 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22317 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22318 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22319 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22320 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22321 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22322 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22323 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22324 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22325 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22326 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22327 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22328 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22329 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22330 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22331 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22332 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22333 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22334 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22335 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22336 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22337
22338 * stdlib/tst-strtod.h (F16): New macro.
22339 (F32): Likewise.
22340 (F64): Likewise.
22341 (F32X): Likewise.
22342 (F64X): Likewise.
22343 (F128X): Likewise.
22344 (IF_FLOAT16): Likewise.
22345 (IF_FLOAT32): Likewise.
22346 (IF_FLOAT64): Likewise.
22347 (IF_FLOAT32X): Likewise.
22348 (IF_FLOAT64X): Likewise.
22349 (IF_FLOAT128X): Likewise.
22350 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22351 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22352 (STRTOD_TEST_FOREACH): Likewise.
22353 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22354 (CHOOSE_f64): Likewise.
22355 (CHOOSE_f32x): Likewise.
22356 (CHOOSE_f64x): Likewise.
22357
22358 2017-11-07 Andreas Schwab <schwab@suse.de>
22359
22360 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22361
22362 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22363
22364 [BZ #22403]
22365 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22366 to be escaped.
22367 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22368 to be escaped.
22369
22370 2017-11-07 Claude Paroz <claude@2xlibre.net>
22371
22372 [BZ #22403]
22373 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22374 to be escaped.
22375 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22376 to be escaped.
22377 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22378 to be escaped.
22379
22380 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22381
22382 [BZ #22298]
22383 * nptl/allocatestack.c (allocate_stack): Check if
22384 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22385 __PTHREAD_MUTEX_HAVE_PREV is defined.
22386 * nptl/descr.h (pthread): Likewise.
22387 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22388 Likewise.
22389 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22390 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22391 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22392 * sysdeps/nptl/bits/thread-shared-types.h
22393 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22394 defines.
22395 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22396 of __WORDSIZE for internal layout.
22397 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22398 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22399 instead of __WORDSIZE whether to use an union for __spins and __list
22400 fields.
22401 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22402 case.
22403 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22404 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22405 defines.
22406 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22407 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22408 Likewise.
22409 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22410 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22411 Likewise.
22412 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22413 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22414 Likewise.
22415 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22416 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22417 Likewise.
22418 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22419 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22420 Likewise.
22421 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22422 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22423 Likewise.
22424 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22425 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22426 Likewise.
22427 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22428 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22429 Likewise.
22430 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22431 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22432 Likewise.
22433 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22434 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22435 Likewise.
22436 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22437 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22438 Likewise.
22439 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22440 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22441 Likewise.
22442 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22443 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22444 Likewise.
22445 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22446 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22447 Likewise.
22448
22449 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22450 New macros.
22451 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22452 checks for expected input type size.
22453 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22454 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22455 Likewise.
22456 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22457 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22458 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22459 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22460 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22461 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22462 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22463 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22464 superflous runtime assert check.
22465 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22466 Likewise.
22467 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22468 Likewise.
22469 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22470 Likewise.
22471 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22472 Likewise.
22473 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22474 Likewise.
22475 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22476 Likewise.
22477 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22478 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22479 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22480 Likewise.
22481 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22482 Likewise.
22483 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22484 Likewise.
22485 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22486 Likewise.
22487 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22488 Likewise.
22489 * nptl/pthread_attr_setinheritsched.c
22490 (__pthread_attr_setinheritsched): Likewise.
22491 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22492 Likewise.
22493 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22494 Likewise.
22495 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22496 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22497 __old_pthread_attr_setstack): Likewise.
22498 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22499 Likewise.
22500 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22501 Likewise.
22502 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22503 Likewise.
22504 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22505 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22506 Likewise.
22507 * nptl/tst-typesizes.c: Remove file.
22508
22509 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22510 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22511 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22512 checks for internal pthread_mutex_t offsets.
22513 * sysdeps/aarch64/nptl/pthread-offsets.h
22514 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22515 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22516 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22517 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22518 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22519 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22520 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22521 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22522 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22523 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22524 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22525 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22526 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22527 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22528 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22529 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22530 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22531 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22532
22533 2017-11-07 Florian Weimer <fweimer@redhat.com>
22534
22535 * bits/mman-linux.h: Move ...
22536 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22537 comment.
22538 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22539 outdated comment.
22540
22541 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22542
22543 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22544 Redefine STRNLEN as __strnlen_power8.
22545
22546 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22547
22548 * signal/sighold.c (sighold): Optimize implementation.
22549
22550 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22551 __NR_rt_sigqueueinfo.
22552
22553 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22554 __sigtimedwait.
22555 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22556 assume __NR_rt_sigtimedwait.
22557 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22558 and add LIBC_CANCEL_HANDLED for cancellation marking.
22559 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22560
22561 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22562 (sysdeps_routines): Add memchr_noneon.
22563 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22564 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22565 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22566 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22567 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22568 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22569 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22570
22571 * sysdeps/arm/arm-ifunc.h: New file.
22572 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22573 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22574 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22575 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22576 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22577 (__memcpy_neon): Avoid create hidden alias.
22578 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22579 (__memcpy_vfp): Likewise.
22580 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22581 (sysdep_routines): Add memcpy_arm.
22582 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22583
22584 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22585
22586 [BZ #22362]
22587 * Makerules (make-link-multidir): New.
22588 * config.make.in (multidir): New.
22589 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22590 * configure: Regenerated.
22591 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22592 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22593 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22594 New target.
22595
22596 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22597
22598 [BZ #22402]
22599 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22600 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22601
22602 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22603
22604 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22605 to be escaped.
22606
22607 2017-11-04 Florian Weimer <fweimer@redhat.com>
22608
22609 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22610
22611 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22612
22613 * math/math.h [__HAVE_DISTINCT_FLOAT16
22614 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22615 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22616 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22617 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22618 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22619 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22620 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22621 (__MATH_TG_F32): New macro.
22622 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22623 (__MATH_TG_F64X): Likewise.
22624 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22625 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22626
22627 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22628
22629 * po/de.po: Update translations.
22630 * po/ru.po: Likewise.
22631
22632 2017-11-03 Florian Weimer <fweimer@redhat.com>
22633
22634 * manual/filesys.texi (Hard Links): Document linkat.
22635
22636 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22637
22638 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22639 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22640 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22641 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22642 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22643 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22644 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22645 the same as _Float128.
22646 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22647 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22648 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22649
22650 * stdlib/stdlib.h
22651 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22652 Declare.
22653 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22654 Likewise.
22655 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22656 Likewise.
22657 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22658 (strtof32x): Likewise.
22659 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22660 (strtof64x): Likewise.
22661 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22662 (strtof128x): Likewise.
22663 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22664 (strfromf16): Likewise.
22665 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22666 (strfromf32): Likewise.
22667 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22668 (strfromf64): Likewise.
22669 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22670 (strfromf32x): Likewise.
22671 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22672 (strfromf64x): Likewise.
22673 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22674 (strfromf128x): Likewise.
22675 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22676 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22677 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22678 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22679 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22680 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22681
22682 2017-11-03 Richard Henderson <rth@twiddle.net>
22683
22684 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22685
22686 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22687
22688 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22689
22690 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22691
22692 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22693 DT_TLSDESC_GOT initialization.
22694 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22695 (_dl_tlsdesc_resolve_hold): Likewise.
22696 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22697 (_dl_tlsdesc_resolve_hold): Likewise.
22698 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22699 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22700
22701 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22702
22703 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22704
22705 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22706
22707 [BZ #18572]
22708 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22709 non-lazily for R_ARM_TLS_DESC.
22710
22711 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22712
22713 [BZ #17078]
22714 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22715 R_ARM_TLS_DESC case.
22716 (elf_machine_lazy_rel): Remove the prelink check.
22717
22718 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22719
22720 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22721 DT_TLSDESC_GOT initialization.
22722 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22723 (_dl_tlsdesc_resolve_rela): Likewise.
22724 (_dl_tlsdesc_resolve_hold): Likewise.
22725 (_dl_tlsdesc_undefweak): Remove ldar.
22726 (_dl_tlsdesc_dynamic): Likewise.
22727 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22728 (_dl_tlsdesc_resolve_rela): Likewise.
22729 (_dl_tlsdesc_resolve_hold): Likewise.
22730 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22731 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22732 (_dl_tlsdesc_resolve_rela): Likewise.
22733 (_dl_tlsdesc_resolve_hold): Likewise.
22734
22735 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22736
22737 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22738 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22739
22740 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22741
22742 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22743 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22744
22745 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22746
22747 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22748 Declare.
22749 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22750 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22751 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22752 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22753 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22754 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22755 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22756 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22757 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22758 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22759 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22760
22761 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22762
22763 [BZ #22382]
22764 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22765 * localedata/locales/tpi_PG: Add standard header.
22766
22767 2017-11-02 Florian Weimer <fweimer@redhat.com>
22768
22769 test-errno-linux: quotactl can fail with EPERM in containers.
22770 * sysdeps/unix/sysv/linux/test-errno-linux.c
22771 (LIST, LIST_FORWARD): New macros.
22772 (check_error_in_list): New function.
22773 (test_wrp_rv): Accept list of permitted error codes.
22774 (test_wrp_rv2): Remove.
22775 (test_wrp): Call test_wrp_rv with list of error codes.
22776 (test_wrp2): Accept list of error codes.
22777 (do_test): Adjust. Allow EPERM for quotactl.
22778
22779 2017-11-02 Florian Weimer <fweimer@redhat.com>
22780
22781 * stdio-common/bug16.c (do_test): Use array_length.
22782 * stdio-common/errlist.c (_sys_nerr): Likewise.
22783 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22784 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22785 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22786 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22787 (do_test): Use array_length.
22788 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22789 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22790 * stdio-common/tst-printf-round.c (do_test): Likewise.
22791 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22792 (CHECK): Use array_length.
22793 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22794 * stdio-common/tstscanf.c (main): Likewise.
22795 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22796
22797 2017-11-02 Florian Weimer <fweimer@redhat.com>
22798
22799 Add array_length and array_end macros.
22800 * include/array_length.h: New file.
22801
22802 2017-11-02 Florian Weimer <fweimer@redhat.com>
22803
22804 [BZ #22332]
22805 * posix/tst-glob-tilde.c (do_noescape): New variable.
22806 (one_test): Process it.
22807 (do_test): Set do_noescape. Add unescaping test case.
22808
22809 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22810
22811 * math/complex.h
22812 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22813 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22814 with appropriate macros defined and undefined.
22815 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22816 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22817 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22818 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22819 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22820 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22821 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22822 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22823 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22824 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22825
22826 * math/complex.h
22827 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22828 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22829 that for long double. Do not condition define and undefine of
22830 _Mdouble_complex_ on [__CFLOAT128].
22831
22832 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22833
22834 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22835 of <sysdeps/generic/sysdep.h>.
22836 (ALIGNARG): Removed.
22837 (ASM_SIZE_DIRECTIVE): Likewise.
22838 (ENTRY): Likewise.
22839 (END): Likewise.
22840 (ENTRY_CHK): Likewise.
22841 (END_CHK): Likewise.
22842 (syscall_error): Likewise.
22843 (mcount): Likewise.
22844 (PSEUDO_END): Likewise.
22845 (L): Likewise.
22846 (atom_text_section): Likewise.
22847 * sysdeps/x86/sysdep.h: New file.
22848 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22849 of <sysdeps/generic/sysdep.h>.
22850 (ALIGNARG): Removed.
22851 (ASM_SIZE_DIRECTIVE): Likewise.
22852 (ENTRY): Likewise.
22853 (END): Likewise.
22854 (ENTRY_CHK): Likewise.
22855 (END_CHK): Likewise.
22856 (syscall_error): Likewise.
22857 (mcount): Likewise.
22858 (PSEUDO_END): Likewise.
22859 (L): Likewise.
22860 (atom_text_section): Likewise.
22861
22862 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22863
22864 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22865 category of LC_CTYPE set to "i18n:2012".
22866 * localedata/locales/i18n_ctype: Regenerate.
22867
22868 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22869
22870 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22871 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22872 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22873 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22874
22875 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22876 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22877 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22878 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22879
22880 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22881
22882 * math/complex.h
22883 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22884 New macro.
22885 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22886 Likewise.
22887 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22888 Likewise.
22889 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22890 (CMPLXF32X): Likewise.
22891 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22892 (CMPLXF64X): Likewise.
22893 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22894 (CMPLXF128X): Likewise.
22895
22896 * math/math.h
22897 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22898 (__MATH_EVAL_FMT2): Define to add 0.0f.
22899
22900 2017-10-31 Alan Modra <amodra@gmail.com>
22901
22902 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22903 include sysdep.h.
22904 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22905 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22906 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22907 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22908 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22909 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22910 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22911 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22912 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22913 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22914 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22915 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22916 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22917 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
22918 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
22919 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
22920 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
22921 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
22922 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
22923 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
22924 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
22925 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
22926 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
22927 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
22928 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
22929 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
22930 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
22931 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
22932 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
22933 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
22934 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
22935 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
22936 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
22937 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
22938 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
22939 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
22940 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
22941 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
22942 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
22943 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
22944 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
22945 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
22946 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
22947 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
22948 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
22949 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
22950 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
22951 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
22952 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22953 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
22954 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
22955 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
22956 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
22957 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
22958 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
22959 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
22960 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
22961 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
22962 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22963 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22964 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
22965 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
22966 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
22967 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
22968 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
22969 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
22970 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
22971 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
22972 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
22973
22974 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
22975 include sysdep.h and math_ldbl_opt.h.
22976
22977 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
22978 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
22979 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
22980 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
22981 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
22982 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
22983 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
22984 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
22985 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
22986 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
22987 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
22988 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
22989 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
22990 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
22991 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
22992 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
22993 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
22994 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
22995 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
22996 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
22997 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
22998 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
22999 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23000 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23001 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23002 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23003
23004 2017-10-31 Alan Modra <amodra@gmail.com>
23005
23006 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23007 string/strncase_l.c, not string/strncase.c.
23008 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23009 (libc_hidden_def): Redefine.
23010
23011 2017-10-31 Alan Modra <amodra@gmail.com>
23012
23013 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23014 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23015 (__strcasecmp): Don't define.
23016
23017 2017-10-31 Alan Modra <amodra@gmail.com>
23018
23019 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23020 IS_IN (libc).
23021 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23022 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23023 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23024
23025 2017-10-31 Alan Modra <amodra@gmail.com>
23026
23027 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23028 USE_AS_STPNCPY.
23029
23030 2017-10-31 Alan Modra <amodra@gmail.com>
23031
23032 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23033 Redefine only when SHARED.
23034
23035 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23036
23037 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23038 Include <bits/math-finite.h> with appropriate macros defined and
23039 undefined.
23040 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23041 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23042 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23043 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23044 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23045
23046 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23047 [!_Mlong_double_] (_Mlong_double_): Likewise.
23048 [!_Mfloat16_] (_Mfloat16_): Likewise.
23049 [!_Mfloat32_] (_Mfloat32_): Likewise.
23050 [!_Mfloat64_] (_Mfloat64_): Likewise.
23051 [!_Mfloat128_] (_Mfloat128_): Likewise.
23052 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23053 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23054 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23055 (_Mdouble_): Define without indirection through those macros.
23056 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23057 [!_Mfloat128_] (_Mfloat128_): Likewise.
23058 [_Mlong_double_] (_Mlong_double_): Likewise.
23059 (_Mdouble_): Define without indirection through those macros.
23060 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23061 not add -D_Mlong_double_=double.
23062 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23063 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23064
23065 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23066
23067 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23068
23069 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23070
23071 * sysdeps/x86/libc-start.c: Reformat.
23072
23073 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23074
23075 [BZ #22353]
23076 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23077 (1): Renamed to ...
23078 (L(Src0)): This.
23079 (L(Src1)): New.
23080 (L(Src2)): Likewise.
23081 (L(1)): Renamed to ...
23082 (L(Src3)): This.
23083
23084 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23085
23086 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23087 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23088 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23089 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23090 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23091 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23092 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23093 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23094 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23095 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23096 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23097 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23098 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23099 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23100 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23101 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23102 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23103 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23104 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23105 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23106 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23107 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23108 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23109 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23110 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23111 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23112 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23113 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23114 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23115 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23116 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23117 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23118 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23119 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23120 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23121 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23122 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23123 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23124 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23125 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23126 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23127 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23128 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23129 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23130 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23131 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23132 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23133 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23134 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23135 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23136 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23137 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23138 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23139 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23140 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23141 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23142 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23143 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23144 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23145 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23146 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23147 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23148 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23149 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23150 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23151 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23152
23153 2017-10-30 Florian Weimer <fweimer@redhat.com>
23154
23155 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23156 always defined.
23157 * io/tst-mkdirat.c (do_test): Likewise.
23158 * io/tst-mkfifoat.c (do_test): Likewise.
23159 * io/tst-mknodat.c (do_test): Likewise.
23160 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23161 * locale/programs/locale.c (select_dirs): Likewise.
23162 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23163 * posix/bug-glob2.c (my_readdir): Likewise.
23164 * posix/tst-dir.c (main): Likewise.
23165 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23166 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23167
23168 2017-10-30 Florian Weimer <fweimer@redhat.com>
23169
23170 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23171 just __USE_GNU.
23172
23173 2017-10-30 Florian Weimer <fweimer@redhat.com>
23174
23175 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23176 Convert to support/test-driver.c.
23177 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23178 New macro parameters.
23179 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23180 * posix/tst-gnuglob.c: New file.
23181 * posix/tst-gnuglob64.c: Likewise.
23182 * posix/Makefile (tests): Add tst-gnuglob64.
23183
23184 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23185
23186 [BZ #19485]
23187 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23188 and use a better translation for March in “mon”.
23189 * localedata/locales/csb_PL: Use more ASCII to improve the
23190 readability of the source.
23191
23192 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23193
23194 [BZ #13953]
23195 * localedata/locales/km_KH: Use ASCII as much
23196 as possible for better readability of the source and
23197 remove useless comments.
23198 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23199 was commented out and apparently wrong anyway because it was
23200 using Lao characters. If Buddhist era should be used
23201 for km_KH, a native speaker should write the correct formaat
23202 for Khmer.
23203 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23204 (According to CLDR, the first weekday for Cambodia is Sunday).
23205 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23206 (These were using Lao characters which must be wrong. If we get
23207 the correct data from a native speaker, we could add it back, until
23208 then it is better not to have name_mr and name_mrs at all than
23209 having it wrong).
23210
23211 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23212
23213 * locale/loadlocale.c: Correct size of
23214 _nl_value_type_LC_<category> arrays.
23215
23216 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23217
23218 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23219 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23220 with appropriate macros defined and undefined.
23221 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23222 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23223 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23224 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23225 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23226
23227 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23228
23229 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23230 "-O2 -march=i586".
23231
23232 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23233
23234 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23235 with lowercase letters to make it agree with CLDR.
23236
23237 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23238
23239 [BZ #15260]
23240 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23241 first letters of yesstr and nostr in yesexpr and noexpr,
23242 not for the full words.
23243 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23244 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23245 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23246 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23247 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23248 first letters of yesstr and nostr in yesexpr and noexpr,
23249 until now only English was matched in yesexpr and noexpr.
23250 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23251 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23252 fil but not for tl. As tl and fil are very similar, using fil
23253 is probably better than using English.
23254
23255 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23256
23257 [BZ #21706]
23258 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23259 in yesstr and nostr.
23260
23261 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23262
23263 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23264 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23265 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23266 Likewise.
23267 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23268 Likewise.
23269 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23270 Likewise.
23271 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23272 Likewise.
23273 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23274 (SNANF128X): Likewise.
23275
23276 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23277 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23278 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23279 (HUGE_VAL_F32): Likewise.
23280 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23281 (HUGE_VAL_F64): Likewise.
23282 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23283 (HUGE_VAL_F32X): Likewise.
23284 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23285 (HUGE_VAL_F64X): Likewise.
23286 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23287 (HUGE_VAL_F128X): Likewise.
23288
23289 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23290
23291 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23292 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23293 for the br_FR locale.
23294
23295 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23296
23297 [BZ #21706]
23298 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23299
23300 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23301
23302 * locale/programs/record-status.h: Define globals, and function
23303 prototypes. Move function bodies...
23304 * locale/programs/record-status.c: ... to here. New file.
23305 * iconv/Makefile (iconv_prog-modules): Add record-status.
23306 * locale/Makefile (lib-modules): Likewise.
23307 * iconv/iconv_prog.c: Remove verbose.
23308 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23309 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23310 record a warning about ASCII compatibility.
23311 * locale/programs/ld-monetary.c (monetary_finish): If
23312 warn_int_curr_symbol is true then record a warning about the symbol
23313 not being in our ISO 4217 list.
23314 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23315 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23316 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23317 (OPT_NO_WARN): Define.
23318 (OPT_WARN): Define.
23319 (options): Add entry for --no-warnings, and --warnings.
23320 (set_warnings): New function to enable/disable warnings.
23321 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23322 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23323 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23324 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23325 Pass flags to generate_locale.
23326 (generate_locale): Accept new flag argument and pass it to localedef
23327 invocation.
23328 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23329 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23330
23331 * localedata/Makefile (test-input-data): Use full file name.
23332 * localedata/da_DK.in: Rename to...
23333 * localedata/da_DK.ISO-8859-1.in: ...this.
23334 * localedata/de_DE.in: Rename to...
23335 * localedata/de_DE.ISO-8859-1.in: ...this.
23336 * localedata/en_US.in: Rename to...
23337 * localedata/en_US.ISO-8859-1.in: ...this.
23338 * localedata/fr_FR.in: Rename to...
23339 * localedata/fr_FR.UTF-8.in: ... this.
23340 * localedata/hr_HR.in: Rename to...
23341 * localedata/hr_HR.ISO-8859-2.in: ...this.
23342 * localedata/hu_HU.in: Rename to...
23343 * localedata/hu_HU.UTF-8.in: ...this.
23344 * localedata/si_LK.in: Rename to...
23345 * localedata/si_LK.UTF-8.in: ...this.
23346 * localedata/sv_SE.in: Rename to...
23347 * localedata/sv_SE.ISO-8859-1.in: ...this.
23348 * localedata/tr_TR.in: Rename to...
23349 * localedata/tr_TR.UTF-8.in: ...this.
23350 * localedata/uk_UA.in: Rename to...
23351 * localedata/uk_UA.UTF-8.in: ...this.
23352 * localedata/sort-test.sh: Test file is locale name with the
23353 suffix.
23354
23355 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23356 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23357 file.
23358 * localedata/locales/i18n_ctype: Regenerate.
23359 * localedata/locales/tr_TR: Likewise.
23360 * localedata/locales/translit_circle: Likewise.
23361 * localedata/locales/translit_cjk_compat: Likewise.
23362 * localedata/locales/translit_combining: Likewise.
23363 * localedata/locales/translit_compat: Likewise.
23364 * localedata/locales/translit_font: Likewise.
23365 * localedata/locales/translit_fraction: Likewise.
23366
23367 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23368
23369 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23370 lxvd2x/stxvd2x with lvx/stvx.
23371 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23372
23373 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23374
23375 * include/alloc_buffer.h: Replace "if if " with "if " in
23376 comments.
23377 * sysdeps/mips/memcpy.S: Likkewise.
23378 * sysdeps/mips/memset.S: Likewise.
23379 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23380 Likewise.
23381 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23382 Likewise.
23383 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23384 Likewise.
23385
23386 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23387
23388 [BZ #15261]
23389 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23390 yesexpr and noexpr.
23391 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23392 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23393 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23394 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23395 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23396 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23397 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23398
23399 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23400
23401 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23402 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23403 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23404 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23405 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23406 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23407 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23408 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23409 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23410 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23411 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23412 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23413
23414 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23415
23416 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23417 as possible for better readability of the source.
23418 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23419 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23420 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23421 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23422 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23423 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23424 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23425 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23426 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23427 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23428 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23429 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23430 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23431 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23432 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23433 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23434 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23435 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23436 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23437 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23438 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23439 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23440 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23441 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23442 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23443 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23444 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23445 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23446 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23447 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23448 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23449 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23450 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23451 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23452 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23453 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23454 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23455 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23456 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23457 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23458 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23459 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23460 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23461 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23462 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23463 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23464 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23465 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23466 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23467 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23468 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23469 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23470 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23471 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23472 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23473 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23474 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23475 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23476 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23477 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23478 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23479 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23480 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23481 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23482 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23483 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23484 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23485 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23486 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23487 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23488 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23489 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23490 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23491 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23492 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23493 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23494 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23495 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23496 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23497 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23498 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23499 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23500 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23501 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23502 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23503 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23504 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23505 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23506 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23507 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23508 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23509 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23510 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23511 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23512 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23513 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23514 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23515 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23516 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23517 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23518 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23519 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23520 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23521 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23522 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23523 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23524 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23525 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23526 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23527 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23528 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23529 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23530 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23531 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23532 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23533 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23534 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23535 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23536 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23537 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23538 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23539 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23540 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23541 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23542 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23543 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23544 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23545 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23546 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23547 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23548 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23549 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23550 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23551 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23552 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23553 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23554 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23555 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23556 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23557 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23558 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23559 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23560 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23561 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23562 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23563 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23564 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23565 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23566 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23567 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23568 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23569 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23570 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23571 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23572 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23573 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23574 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23575 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23576 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23577 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23578 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23579 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23580 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23581 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23582 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23583 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23584 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23585 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23586 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23587 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23588 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23589 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23590 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23591 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23592
23593 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23594
23595 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23596 (Use first letters of yesstr and nostr correctly instead of using
23597 full words).
23598
23599 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23600
23601 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23602 (Use first letters of yesstr and nostr correctly).
23603
23604 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23605
23606 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23607 also check for the first characters of yesstr and nostr.
23608 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23609 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23610
23611 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23612
23613 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23614 also check for Chinese characters.
23615
23616 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23617
23618 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23619 match also for the contents of yesstr and nostr. As the first letter
23620 of yesstr and nostr is equal, checking only for the first letter
23621 is not enough.
23622
23623 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23624
23625 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23626 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23627
23628 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23629
23630 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23631 of main contributor.
23632
23633 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23634
23635 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23636 instead of using English.
23637
23638 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23639
23640 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23641 by including the first letters of nostr and yesexpr in the regexp.
23642 Also make it more readable by using ASCII where possible.
23643
23644 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23645
23646 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23647 the first letter of nostr in the regexp. It agrees with CLDR now.
23648 Also make it more readable by using ASCII where possible.
23649
23650 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23651
23652 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23653 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23654 these strings contain a U+17D6 (which somewhat looks like a colon)
23655 instead of a real colon to separate the full words for “yes”
23656 and “no” from the single letter responses.
23657
23658 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23659
23660 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23661 it agree with CLDR (include the first letter of yesstr).
23662 Also make it more readable by using ASCII where possible.
23663
23664 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23665
23666 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23667 and improve yesexpr and noexpr. The yesstr and nostr apparently
23668 came from CLDR. And CLDR has a bug there: these strings contain
23669 a U+0903 (which looks like a colon) instead of a real colon
23670 to separate the full words for “yes” and “no” from the single
23671 letter responses.
23672
23673 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23674
23675 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23676 letters of the full yesstr and nostr in yesexpr and noexpr.
23677
23678 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23679
23680 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23681 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23682 * localedata/locales/an_ES: Make source more readable by using ASCII
23683 where possible.
23684
23685 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23686
23687 [BZ #20952]
23688 * localedata/locales/yuw_PG: New file.
23689 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23690 * locale/iso-639.def: Add Yau (Uruwa).
23691
23692 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23693
23694 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23695
23696 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23697
23698 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23699 (__libc_realloc): Likewise.
23700 (_mid_memalign): Likewise.
23701 (__libc_calloc): Likewise.
23702
23703 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23704
23705 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23706 by adding the generic +1 and -0 as in all other locales.
23707 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23708 day names and make it more readable by using ASCII where possible.
23709
23710 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23711
23712 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23713 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23714
23715 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23716
23717 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23718 WNOHANG in waitpid call.
23719
23720 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23721
23722 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23723 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23724
23725 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23726 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23727 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23728 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23729 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23730 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23731 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23732 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23733 variables.
23734
23735 2017-10-23 Michael Collison <michael.collison@arm.com>
23736
23737 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23738 with __builtin_sqrt.
23739 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23740 with __builtin_sqrtf.
23741 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23742 with __builtin_ceil.
23743 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23744 with __builtin_ceilf.
23745 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23746 with __builtin_floor.
23747 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23748 with __builtin_floorf.
23749 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23750 with __builtin_fma.
23751 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23752 with __builtin_fmaf.
23753 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23754 with __builtin_fmax.
23755 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23756 with __builtin_fmaxf.
23757 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23758 with __builtin_fmin.
23759 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23760 with __builtin_fminf.
23761 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23762 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23763 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23764 with builtin_rint and conversion to int.
23765 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23766 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23767 with builtin_llround.
23768 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23769 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23770 with builtin_rint and conversion to long int.
23771 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23772 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23773 with builtin_lround.
23774 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23775 with builtin_lroundf.
23776 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23777 statements with __builtin_nearbyint.
23778 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23779 statements with __builtin_nearbyintf.
23780 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23781 with __builtin_rint.
23782 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23783 with __builtin_rintf.
23784 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23785 with __builtin_round.
23786 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23787 with __builtin_roundf.
23788 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23789 with __builtin_trunc.
23790 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23791 with __builtin_truncf.
23792 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23793 and s_l[l]round[f].c too.
23794
23795 2017-10-23 Alan Modra <amodra@gmail.com>
23796
23797 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23798 Adjust stack after restoring regs. Add missing LR cfi_restore.
23799
23800 2017-10-23 Alan Modra <amodra@gmail.com>
23801
23802 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23803 Move LR save and frame setup/teardown and LR restore to
23804 immediately around memset call. Provide cfi.
23805
23806 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23807
23808 * sysdeps/i386/fpu/e_powf.S: Removed.
23809 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23810 * sysdeps/i386/fpu/w_powf.c: Likewise.
23811 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23812 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23813 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23814 Add e_powf-sse2.
23815 (CFLAGS-e_powf-sse2.c): New.
23816 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23817 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23818
23819 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23820
23821 * sysdeps/i386/fpu/e_log2f.S: Removed.
23822 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23823 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23824 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23825 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23826 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23827 Add e_log2f-sse2.
23828 (CFLAGS-e_log2f-sse2.c): New.
23829 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23830 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23831
23832 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23833
23834 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23835 Add e_powf-fma.
23836 (CFLAGS-e_powf-fma.c): New.
23837 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23838 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23839
23840 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23841
23842 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23843 Add e_log2f-fma.
23844 (CFLAGS-e_log2f-fma.c): New.
23845 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23846 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23847
23848 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23849
23850 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23851 Add e_logf-fma.
23852 (CFLAGS-e_logf-fma.c): New.
23853 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23854 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23855
23856 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23857
23858 * sysdeps/i386/fpu/e_logf.S: Removed.
23859 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23860 * sysdeps/i386/fpu/w_logf.c: Likewise.
23861 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23862 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23863 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23864 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23865 Add e_logf-sse2.
23866 (CFLAGS-e_logf-sse2.c): New.
23867 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23868 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23869
23870 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23871
23872 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23873 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23874 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23875 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23876 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23877 Add e_exp2f-sse2.
23878 (CFLAGS-e_exp2f-sse2.c): New.
23879 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23880 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23881
23882 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23883
23884 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23885 Add e_exp2f-fma.
23886 (CFLAGS-e_exp2f-fma.c): New.
23887 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23888 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23889
23890 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23891
23892 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23893 * sysdeps/i386/fpu/e_expf.S: Likewise.
23894 * sysdeps/i386/fpu/math_errf.c: Likewise.
23895 * sysdeps/i386/fpu/w_expf.c: Likewise.
23896 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23897 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23898 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23899 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23900 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23901 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23902 Remove e_expf-ia32.
23903 (CFLAGS-e_expf-sse2.c): New.
23904 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23905 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23906
23907 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23908
23909 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23910 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23911 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23912 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23913 e_expf.c.
23914 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23915 New.
23916 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23917 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
23918 Renamed to ...
23919 (__redirect_expf): This.
23920 (SYMBOL_NAME): Changed to expf.
23921 (__ieee754_expf): Renamed to ...
23922 (__expf): This.
23923 (__GI___expf): This.
23924 (__ieee754_expf): Add strong_alias.
23925 (__expf_finite): Likewise.
23926 (__expf): New.
23927 Include <sysdeps/ieee754/flt-32/e_expf.c>.
23928
23929 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
23930
23931 [BZ #22332]
23932 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
23933 unescaping.
23934
23935 2017-10-21 Florian Weimer <fweimer@redhat.com>
23936
23937 * posix/Makefile (tests): Add tst-glob-tilde.
23938 (tests-special): Add tst-glob-tilde-mem.out
23939 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
23940 (tst-glob-tilde-mem.out): Add mtrace check.
23941 * posix/tst-glob-tilde.c: New file.
23942
23943 2017-10-20 Joseph Myers <joseph@codesourcery.com>
23944
23945 * bits/floatn-common.h: New file.
23946 * math/Makefile (headers): Add bits/floatn-common.h.
23947 * bits/floatn.h: Include <bits/floatn-common.h>.
23948 * sysdeps/ia64/bits/floatn.h: Likewise.
23949 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
23950 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
23951 * sysdeps/powerpc/bits/floatn.h: Likewise.
23952 * sysdeps/x86/bits/floatn.h: Likewise.
23953
23954 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23955
23956 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
23957 indicates whether compiler emits an warning for alias for
23958 functions with incompatible types.
23959
23960 [BZ #22273]
23961 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
23962 the auxiliary process is terminated by a signal before calling _exit
23963 or execve.
23964
23965 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23966
23967 [BZ #21265]
23968 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
23969 New.
23970 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
23971 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
23972 and bit_arch_XSAVEC_Usable if needed.
23973 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
23974 and bit_arch_Use_dl_runtime_resolve_opt.
23975 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
23976 Removed.
23977 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
23978 (bit_arch_Prefer_No_AVX512): Updated.
23979 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
23980 (bit_arch_XSAVEC_Usable): New.
23981 (STATE_SAVE_OFFSET): Likewise.
23982 (STATE_SAVE_MASK): Likewise.
23983 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
23984 (cpu_features): Add xsave_state_size and xsave_state_full_size.
23985 (index_arch_Use_dl_runtime_resolve_opt): Removed.
23986 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
23987 (index_arch_XSAVEC_Usable): New.
23988 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
23989 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
23990 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
23991 is enabled.
23992 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
23993 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
23994 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
23995 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
23996 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
23997 _dl_runtime_resolve_xsavec.
23998 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
23999 Removed.
24000 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24001 instead of VEC_SIZE.
24002 (REGISTER_SAVE_BND0): Removed.
24003 (REGISTER_SAVE_BND1): Likewise.
24004 (REGISTER_SAVE_BND3): Likewise.
24005 (REGISTER_SAVE_RAX): Always defined to 0.
24006 (VMOV): Removed.
24007 (_dl_runtime_resolve_avx): Likewise.
24008 (_dl_runtime_resolve_avx_slow): Likewise.
24009 (_dl_runtime_resolve_avx_opt): Likewise.
24010 (_dl_runtime_resolve_avx512): Likewise.
24011 (_dl_runtime_resolve_avx512_opt): Likewise.
24012 (_dl_runtime_resolve_sse): Likewise.
24013 (_dl_runtime_resolve_sse_vex): Likewise.
24014 (USE_FXSAVE): New.
24015 (_dl_runtime_resolve_fxsave): Likewise.
24016 (USE_XSAVE): Likewise.
24017 (_dl_runtime_resolve_xsave): Likewise.
24018 (USE_XSAVEC): Likewise.
24019 (_dl_runtime_resolve_xsavec): Likewise.
24020 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24021 Removed.
24022 (_dl_runtime_resolve_avx512_opt): Likewise.
24023 (_dl_runtime_resolve_avx): Likewise.
24024 (_dl_runtime_resolve_avx_opt): Likewise.
24025 (_dl_runtime_resolve_sse): Likewise.
24026 (_dl_runtime_resolve_sse_vex): Likewise.
24027 (_dl_runtime_resolve_fxsave): New.
24028 (_dl_runtime_resolve_xsave): Likewise.
24029 (_dl_runtime_resolve_xsavec): Likewise.
24030
24031 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24032
24033 [BZ #22320]
24034 CVE-2017-15670
24035 * posix/glob.c (__glob): Fix one-byte overflow.
24036
24037 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24038
24039 * malloc/malloc.c (sysdep-cancel.h): Add include.
24040
24041 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24042
24043 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24044
24045 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24046
24047 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24048 (tests): Remove $(objpfx)ga_test depdendency.
24049 * resolv/ga_test.c: Remove file.
24050
24051 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24052
24053 [BZ #18812]
24054 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24055 * localedata/locales/kab_DZ: New file.
24056
24057 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24058
24059 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24060 _dl_relocate_static_pie instead of _dl_start to compute load
24061 address in static PIE.
24062
24063 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24064
24065 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24066
24067 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24068
24069 [BZ #13605]
24070 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24071 * localedata/locales/shn_MM: New file.
24072
24073 2017-10-20 Florian Weimer <fweimer@redhat.com>
24074
24075 [BZ #22321]
24076 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24077 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24078 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24079 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24080 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24081 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24082
24083 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24084
24085 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24086
24087 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24088
24089 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24090
24091 [BZ #22322]
24092 * sysdeps/mips/bits/long-double.h: Move to ....
24093 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24094
24095 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24096
24097 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24098
24099 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24100 H.J. Lu <hongjiu.lu@intel.com>
24101
24102 [BZ #22299]
24103 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24104 GLRO(dl_platform) to NULL.
24105 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24106 (modules-names): Add tst-platformmod-1 and
24107 x86_64/tst-platformmod-2.
24108 (CFLAGS-tst-platform-1.c): New.
24109 (CFLAGS-tst-platformmod-1.c): Likewise.
24110 (CFLAGS-tst-platformmod-2.c): Likewise.
24111 (LDFLAGS-tst-platformmod-2.so): Likewise.
24112 ($(objpfx)tst-platform-1): Likewise.
24113 ($(objpfx)tst-platform-1.out): Likewise.
24114 (tst-platform-1-ENV): Likewise.
24115 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24116 * sysdeps/x86_64/tst-platform-1.c: New file.
24117 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24118 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24119
24120 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24121
24122 [BZ #13994]
24123 * locale/iso-639.def: Add Karbi.
24124 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24125 * localedata/locales/mjw_IN: New file.
24126
24127 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24128
24129 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24130 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24131 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24132 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24133 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24134 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24135 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24136 <bits/floatn.h>.
24137 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24138 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24139 * manual/math.texi (Mathematics): Document additional architecture
24140 support for _Float128.
24141 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24142 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24143 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24144 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24145 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24146 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24147 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24148 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24149 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24150 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24151 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24152 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24153 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24154 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24155 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24156
24157 2017-10-18 Renlin Li <renlin.li@arm.com>
24158
24159 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24160 _DYNAMIC symbol to calculate load address.
24161
24162 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24163
24164 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24165 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24166 summary bits.
24167 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24168 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24169
24170 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24171
24172 [BZ #16777]
24173 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24174 and improve readability by using more ASCII.
24175 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24176 and improve readability by using more ASCII.
24177
24178 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24179
24180 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24181 not all targets support atomics on bool.
24182
24183 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24184
24185 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24186 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24187 __f128.
24188 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24189 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24190 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24191 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24192 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24193 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24194
24195 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24196
24197 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24198 defines.
24199
24200 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24201
24202 [BZ #22159]
24203 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24204 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24205 (do_check_remalloced_chunk): Fix build bug.
24206 (do_check_malloc_state): Add assert that checks arena->top.
24207 (malloc_consolidate): Remove initialization.
24208 (int_mallinfo): Remove call to malloc_consolidate.
24209 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24210
24211 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24212
24213 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24214 (have_fastchunks): Remove.
24215 (clear_fastchunks): Remove.
24216 (set_fastchunks): Remove.
24217 (malloc_state): Add have_fastchunks.
24218 (malloc_init_state): Use have_fastchunks.
24219 (do_check_malloc_state): Remove incorrect invariant checks.
24220 (_int_malloc): Use have_fastchunks.
24221 (_int_free): Likewise.
24222 (malloc_consolidate): Likewise.
24223
24224 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24225
24226 * malloc/malloc.c (tcache_put): Inline.
24227 (tcache_get): Inline.
24228
24229 2017-10-17 Jordi Mallach <jordi@gnu.org>
24230
24231 Aurelien Jarno <aurelien@aurel32.net>
24232 [BZ #2522]
24233 * localedata/locales/ca_ES@valencia: New file.
24234 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24235
24236 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24237
24238 [BZ #22296]
24239 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24240 < 6.x
24241
24242 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24243
24244 * scripts/build-many-glibcs.py (Context.add_all_configs):
24245 Add arm-linux-gnueabihf multiarch extra_glibcs.
24246
24247 * sysdeps/generic/ifunc-init.h: New file.
24248 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24249
24250 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24251
24252 [BZ #22019]
24253 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24254 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24255 * stdlib/tst-strfmon_l.c: adapt test case.
24256
24257 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24258
24259 * sysdeps/generic/float128-abi.h: New file.
24260 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24261 non-__prefixed symbols to ....
24262 * math/Versions: ... here. Include <float128-abi.h>.
24263 * stdlib/Versions ... and here. Include <float128-abi.h>
24264
24265 2017-10-16 Florian Weimer <fweimer@redhat.com>
24266
24267 * version.h (VERSION): Switch to ".9000" as the development
24268 version suffix.
24269
24270 2017-10-16 Florian Weimer <fweimer@redhat.com>
24271
24272 [BZ #22050]
24273 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24274 compat_symbol_reference to access non-default version.
24275
24276 2017-10-16 Florian Weimer <fweimer@redhat.com>
24277
24278 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24279
24280 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24281
24282 * include/shlib-compat.h (compat_symbol_reference): Update
24283 comment.
24284
24285 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24286
24287 * math/Makefile (test-types): Add
24288 $(type-float128-$(float128-alias-fcts)).
24289 * math/test-float128.h (TYPE_STR): Define conditional on
24290 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24291 (ULP_IDX): Likewise.
24292 (ULP_I_IDX): Likewise.
24293
24294 * stdlib/strtold.c: Include <bits/floatn.h>
24295 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24296 and later undefine as macro. Define as weak alias if
24297 [!USE_WIDE_CHAR].
24298 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24299 and later undefine as macro. Define as weak alias if
24300 [USE_WIDE_CHAR].
24301 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24302 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24303 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24304 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24305 Define and later undefine as macro. Define as weak alias if
24306 [USE_WIDE_CHAR].
24307 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24308 <bits/floatn.h>.
24309 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24310 Define and later undefine as macro. Define as weak alias if
24311 [!USE_WIDE_CHAR].
24312 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24313 Define and later undefine as macro. Define as weak alias if
24314 [USE_WIDE_CHAR].
24315
24316 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24317
24318 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24319 record_verbose messages.
24320
24321 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24322
24323 [BZ #22052]
24324 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24325 to silence -O3 -Wall warning with GCC 7.
24326
24327 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24328
24329 * Makeconfig (+link-static-before-libc): Use the first of
24330 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24331 * gmon/Makefile (tests): Add tst-gmon-static.
24332 (tests-static): Likewise.
24333 (CFLAGS-tst-gmon-static.c): New.
24334 (CRT-tst-gmon-static): Likewise.
24335 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24336 (tst-gmon-static-ENV): Likewise.
24337 (tests-special): Likewise.
24338 ($(objpfx)tst-gmon-static.out): Likewise.
24339 (clean-tst-gmon-static-data): Likewise.
24340 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24341 * gmon/tst-gmon-static-gprof.sh: New file.
24342 * gmon/tst-gmon-static.c: Likewise.
24343
24344 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24345
24346 [BZ #22295]
24347 * locale/programs/linereader.c (get_string): Don't warn on
24348 non-symbolic character.
24349
24350 [BZ #22294]
24351 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24352 int_curr_symbol.
24353
24354 [BZ #22292]
24355 * locale/programs/record-status.h: New file
24356 * locale/programs/locale.c: Add comment.
24357 * locale/programs/charmap-dir.c: Don't include error.h.
24358 (charmap_opendir): Use record_error.
24359 * locale/programs/charmap.c: Don't include error.h.
24360 (charmap_read): Use record_error, and record_warning.
24361 (parse_charmap): Likewise.
24362 * locale/programs/ld-address.c: Don't include error.h.
24363 (address_finish): Use record_error, and record_warning.
24364 * locale/programs/ld-collate.c: Don't include error.h.
24365 (collate_finish): Use record_error, and record_error_at_line.
24366 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24367 (ctype_class_new): Likewise.
24368 (ctype_map_new): Likewise.
24369 (set_one_default): Likewise.
24370 (set_class_defaults): Likewise.
24371 (translit_flatten): Likewise.
24372 (allocate_arrays): Use record_error, and record_verbose.
24373 * locale/programs/ld-identification.c: Don't include error.h.
24374 (indentation_finish): Use record_error and record_warning.
24375 * locale/programs/ld-measurement.c: Don't include error.h.
24376 (measurement_finish): Use record_error.
24377 * locale/programs/ld-messages.c
24378 (message_finish): Likewise.
24379 * locale/programs/ld-monetary.c
24380 (monetary_finish): Likewise.
24381 * locale/programs/ld-name.c (name_finish): Use record_error
24382 and record_warning.
24383 * locale/programs/ld-numeric.c
24384 (numeric_finish): Use record_error.
24385 * locale/programs/ld-paper.c: Don't include error.h.
24386 (paper_finish): Use record_error.
24387 * locale/programs/ld-telephone.c: Don't include error.h.
24388 (telephone_finish): Use record_error.
24389 * locale/programs/ld-time.c (time_finish): Likewise.
24390 * locale/programs/linereader.h (lr_error): Make inline func.
24391 * locale/programs/localedef.c: Define recorded_warning_count,
24392 and recorded_error_count.
24393 (main): Use record_error. Use recorded_error_count and
24394 recorded_warning_count to issue correct error returns.
24395 (add_to_readlist): Use record_error.
24396 (find_locale): Likewise.
24397 (load_locale): Likewise.
24398 * locale/programs/localedef.h: Remove be_quiet
24399 and WITH_CUR_LOCALE.
24400 * locale/programs/locarchive.c (compare_from_file): Use
24401 record_error.
24402 * locale/programs/locfile.c (write_locale_data): Use
24403 record_error.
24404 * locale/programs/repertoire.c: Dont include error.h.
24405 (repertoire_complain): Use record_error.
24406 * localedata/tst-fmon.sh: Expect failures from localedef.
24407 * localedata/tst-locale.sh: Likewise.
24408 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24409
24410 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24411 (REPORTS): Likewise.
24412 (check): Likewise.
24413 (i18n): Rename to...
24414 (i18n_ctype): ...this.
24415 (i18n-report): Rename to...
24416 (i18n_ctype-report): ...this.
24417 * localedata/locales/i18n_ctype: Regenerate.
24418 * localedata/locales/i18n: copy i18n_ctype.
24419
24420 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24421
24422 * stdlib/strfroml.c: Include <bits/floatn.h>.
24423 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24424 Define before include of <stdlib.h> and undefine afterwards, then
24425 define as weak alias.
24426
24427 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24428 Undefine and restore default definition. Use
24429 libm_alias_ldouble_other.
24430
24431 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24432
24433 [BZ #22153]
24434 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24435 in coredumps.
24436
24437 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24438
24439 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24440 Assign sym_map to be map for local symbols, as TLS relocations
24441 use sym_map to determine whether the symbol is defined and to
24442 extract the TLS information.
24443 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24444 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24445
24446 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24447
24448 [BZ #22189]
24449 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24450 (math_force_eval): Add powerpc version.
24451
24452 [BZ #22142]
24453 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24454 -DBL_MAX.
24455 (do_test): Likewise.
24456 * stdio-common/tst-printf.sh: Likewise.
24457 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24458 ifdef clause in order to set the carry bit right. Replace r0 by
24459 0 without changing the behavior.
24460
24461 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24462
24463 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24464 <libm-alias-ldouble.h>.
24465 (fabsl): Define using libm_alias_ldouble.
24466 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24467 <libm-alias-ldouble.h>.
24468 (fabsl): Define using libm_alias_ldouble.
24469
24470 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24471 Remove conditional code.
24472
24473 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24474 Rename to __clog10_internal_l.
24475 (__clog10_internal_l): Define aliases using
24476 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24477 with __clog10.
24478
24479 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24480
24481 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24482 * benchtests/sincosf-inputs: New file.
24483 * benchtests/cosf-inputs: New file.
24484 * benchtests/sinf-inputs: New file.
24485
24486 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24487
24488 * posix/tst-spawn.c (do_test): Wait for both children.
24489
24490 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24491
24492 [BZ #22284]
24493 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24494 tests-pie): Add tst-gmon-pie.
24495 (CFLAGS-tst-gmon-pie.c): New.
24496 (CRT-tst-gmon-pie): Likewise.
24497 (tst-gmon-pie-ENV): Likewise.
24498 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24499 ($(objpfx)tst-gmon-pie.out): Likewise.
24500 (clean-tst-gmon-pie-data): Likewise.
24501 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24502 * gmon/gmon.c [PIC]: Include <link.h>.
24503 [PIC] (callback): New function.
24504 (write_hist): Add an argument for load address. Subtract load
24505 address from PCs.
24506 (write_call_graph): Likewise.
24507 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24508 it to write_hist and write_call_graph.
24509 * gmon/tst-gmon-pie.c: New file.
24510
24511 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24512
24513 * math/Makefile (test-types-basic): New variable.
24514 (test-types): Likewise.
24515 (libm-test-support): Use $(test-types) instead of $(types).
24516 (libm-tests-base-normal): Likewise.
24517 (libm-tests-base-finite): Likewise.
24518 (libm-tests-base-inline): Likewise.
24519 (generated): Likewise.
24520 ($(objpfx)libm-test-support-$(t).c): Likewise.
24521 (libm-tests-for-type iterator): Likewise.
24522 (libm-test-support iterator): Likewise.
24523 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24524 (ulp_idx): Use ULP_IDX.
24525 * math/test-ldouble.h: Include <float.h>.
24526 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24527 (ULP_IDX): New macro.
24528 (ULP_I_IDX): Likewise.
24529 * math/test-double.h (ULP_IDX): Likewise.
24530 (ULP_I_IDX): Likewise.
24531 * math/test-float.h (ULP_IDX): Likewise.
24532 (ULP_I_IDX): Likewise.
24533 * math/test-float128.h (ULP_IDX): Likewise.
24534 (ULP_I_IDX): Likewise.
24535
24536 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24537
24538 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24539 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24540 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24541 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24542 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24543 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24544 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24545 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24546 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24547 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24548 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24549 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24550 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24551 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24552 (SINGLE_THREAD_BY_GLOBAL): Define.
24553 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24554 Likewise.
24555 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24556 Likewise.
24557 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24558 Likewise.
24559 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24560 Likewise.
24561 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24562 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24563 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24564 Likewise.
24565
24566 2017-10-11 Andreas Schwab <schwab@suse.de>
24567
24568 * nis/Makefile (aux): Remove.
24569 * nscd/Makefile (aux): Add nscd_hash.
24570 (nscd-modules): Likewise.
24571 ($(objpfx)nscd): Don't depend on libnsl.
24572 * nscd/nscd_hash.c: New file.
24573 * nscd/nscd_hash.h: Likewise.
24574 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24575 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24576 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24577 instead of <nis/rpcsvc/nis.h>.
24578 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24579
24580 2017-10-11 Florian Weimer <fweimer@redhat.com>
24581
24582 [BZ #22078]
24583 Avoid large NSS buffers with many addresses, aliases.
24584 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24585 using dynarrays and struct alloc_buffer.
24586 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24587 (tst-nss-files-hosts-multi): Link with -ldl.
24588 * nss/tst-nss-files-hosts-multi.c: New file.
24589
24590 2017-10-11 Florian Weimer <fweimer@redhat.com>
24591
24592 [BZ #18023]
24593 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24594 scratch_buffer. Eliminate gotos.
24595
24596 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24597
24598 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24599 libm_alias_ldouble_other.
24600 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24601 undefine and redefine.
24602 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24603 (exp10l): Do not define here.
24604 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24605 (weak_alias): Undefine and redefine.
24606 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24607 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24608 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24609 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24610
24611 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24612 [!__fma] (fma): Define using libm_alias_double.
24613 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24614 [!__fmaf] (fmaf): Define using libm_alias_float.
24615 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24616 (fmal): Define using libm_alias_ldouble.
24617
24618 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24619
24620 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24621 New macro.
24622 (libm_alias_double_other): Likewise.
24623 (libm_alias_double_r): Use libm_alias_double_other_r.
24624 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24625 New macro.
24626 (libm_alias_float_other): Likewise.
24627 (libm_alias_float_r): Use libm_alias_float_other_r.
24628 * sysdeps/generic/libm-alias-float128.h
24629 (libm_alias_float128_other_r): New macro.
24630 (libm_alias_float128_other): Likewise.
24631 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24632 * sysdeps/generic/libm-alias-ldouble.h
24633 (libm_alias_ldouble_other_r): New macro.
24634 (libm_alias_ldouble_other): Likewise.
24635 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24636 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24637 (libm_alias_double_other_r): New macro.
24638 (libm_alias_double_other): Likewise.
24639 (libm_alias_double_r): Use libm_alias_double_other_r.
24640 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24641 (libm_alias_ldouble_other_r): New macro.
24642 (libm_alias_ldouble_other): Likewise.
24643 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24644 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24645 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24646 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24647 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24648 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24649 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24650 * math/w_exp2f.c: Use libm_alias_float_other.
24651 * math/w_expf.c: Likewise.
24652 * math/w_log2f.c: Likewise.
24653 * math/w_logf.c: Likewise.
24654 * math/w_powf.c: Likewise.
24655 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24656 [!__exp2f]: Use libm_alias_float_other.
24657 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24658 [!__expf]: Use libm_alias_float_other.
24659 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24660 [!__log2f]: Use libm_alias_float_other.
24661 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24662 [!__logf]: Use libm_alias_float_other.
24663 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24664 [!__powf]: Use libm_alias_float_other.
24665
24666 2017-10-10 Florian Weimer <fweimer@redhat.com>
24667
24668 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24669 function.
24670 (_nss_files_gethostbyname3_r): Call it.
24671
24672 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24673
24674 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24675 error. Remove default definition of declare_mgen_alias.
24676 [!declare_mgen_alias_r]: Likewise.
24677 * sysdeps/generic/math-type-macros-double.h
24678 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24679 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24680 (declare_mgen_alias_r): Likewise.
24681 * sysdeps/generic/math-type-macros-float128.h
24682 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24683 * sysdeps/generic/math-type-macros-ldouble.h
24684 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24685 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24686 macro.
24687 (declare_mgen_alias_r_s): Likewise.
24688 (declare_mgen_alias_r): Likewise.
24689 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24690 (lgamma_r): Define using libm_alias_double_r.
24691 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24692 (lgammaf_r): Define using libm_alias_float_r.
24693 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24694 (lgammal_r): Define using libm_alias_ldouble_r.
24695 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24696 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24697
24698 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24699
24700 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24701 extern declaration.
24702
24703 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24704
24705 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24706
24707 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24708
24709 [BZ #21326]
24710 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24711 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24712 * math/Makefile (test-math-cxx11): New test.
24713 * math/test-math-cxx11.cc: New file.
24714
24715 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24716
24717 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24718
24719 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24720 call to allocate the slave pty file descriptor.
24721
24722 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24723
24724 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24725 [!__fma] (fma): Define using libm_alias_double.
24726 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24727 [!__fma] (fma): Define using libm_alias_double.
24728
24729 * sysdeps/ieee754/float128/float128_private.h: Include
24730 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24731 (libm_alias_ldouble_r): Undefine and redefine.
24732 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24733 <libm-alias-ldouble.h>.
24734 (asinhl): Define using libm_alias_ldouble.
24735 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24736 <libm-alias-ldouble.h>.
24737 (atanl): Define using libm_alias_ldouble.
24738 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24739 <libm-alias-ldouble.h>.
24740 (cbrtl): Define using libm_alias_ldouble.
24741 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24742 <libm-alias-ldouble.h>.
24743 (ceill): Define using libm_alias_ldouble.
24744 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24745 <libm-alias-ldouble.h>.
24746 (copysignl): Define using libm_alias_ldouble.
24747 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24748 <libm-alias-ldouble.h>.
24749 (cosl): Define using libm_alias_ldouble.
24750 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24751 <libm-alias-ldouble.h>.
24752 (erfl): Define using libm_alias_ldouble.
24753 (erfcl): Likewise.
24754 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24755 <libm-alias-ldouble.h>.
24756 (expm1l): Define using libm_alias_ldouble.
24757 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24758 <libm-alias-ldouble.h>.
24759 (fabsl): Define using libm_alias_ldouble.
24760 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24761 <libm-alias-ldouble.h>.
24762 (floorl): Define using libm_alias_ldouble.
24763 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24764 <libm-alias-ldouble.h>.
24765 (fmal): Define using libm_alias_ldouble.
24766 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24767 <libm-alias-ldouble.h>.
24768 (frexpl): Define using libm_alias_ldouble.
24769 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24770 libm_alias_ldouble.
24771 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24772 <libm-alias-ldouble.h>.
24773 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24774 libm_alias_ldouble.
24775 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24776 <libm-alias-ldouble.h>.
24777 (getpayloadl): Define using libm_alias_ldouble.
24778 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24779 <libm-alias-ldouble.h>.
24780 (llrintl): Define using libm_alias_ldouble.
24781 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24782 <libm-alias-ldouble.h>.
24783 (llroundl): Define using libm_alias_ldouble.
24784 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24785 <libm-alias-ldouble.h>.
24786 (logbl): Define using libm_alias_ldouble.
24787 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24788 <libm-alias-ldouble.h>.
24789 (lrintl): Define using libm_alias_ldouble.
24790 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24791 <libm-alias-ldouble.h>.
24792 (lroundl): Define using libm_alias_ldouble.
24793 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24794 <libm-alias-ldouble.h>.
24795 (modfl): Define using libm_alias_ldouble.
24796 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24797 <libm-alias-ldouble.h>.
24798 (nearbyintl): Define using libm_alias_ldouble.
24799 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24800 <libm-alias-ldouble.h>.
24801 (nextafterl): Define using libm_alias_ldouble.
24802 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24803 <libm-alias-ldouble.h>.
24804 (nextupl): Define using libm_alias_ldouble.
24805 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24806 <libm-alias-ldouble.h>.
24807 (remquol): Define using libm_alias_ldouble.
24808 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24809 <libm-alias-ldouble.h>.
24810 (rintl): Define using libm_alias_ldouble.
24811 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24812 <libm-alias-ldouble.h>.
24813 (roundevenl): Define using libm_alias_ldouble.
24814 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24815 <libm-alias-ldouble.h>.
24816 (roundl): Define using libm_alias_ldouble.
24817 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24818 using libm_alias_ldouble.
24819 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24820 <libm-alias-ldouble.h>.
24821 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24822 Define using libm_alias_ldouble.
24823 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24824 <libm-alias-ldouble.h>.
24825 (sincosl): Define using libm_alias_ldouble.
24826 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24827 <libm-alias-ldouble.h>.
24828 (sinl): Define using libm_alias_ldouble.
24829 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24830 <libm-alias-ldouble.h>.
24831 (tanhl): Define using libm_alias_ldouble.
24832 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24833 <libm-alias-ldouble.h>.
24834 (tanl): Define using libm_alias_ldouble.
24835 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24836 <libm-alias-ldouble.h>.
24837 (totalorderl): Define using libm_alias_ldouble.
24838 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24839 <libm-alias-ldouble.h>.
24840 (totalordermagl): Define using libm_alias_ldouble.
24841 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24842 <libm-alias-ldouble.h>.
24843 (truncl): Define using libm_alias_ldouble.
24844 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24845 libm_alias_ldouble.
24846 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24847 libm_alias_ldouble.
24848 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24849 <libm-alias-ldouble.h>.
24850 (weak_alias): Do not undefine and redefine.
24851 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24852 (copysignl): Define with long_double_symbol only if [IS_IN
24853 (libc)].
24854 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24855 <libm-alias-ldouble.h>.
24856 (weak_alias): Do not undefine and redefine.
24857 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24858 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24859 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24860 <libm-alias-ldouble.h>.
24861 (weak_alias): Do not undefine and redefine.
24862 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24863 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24864 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24865 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24866 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24867 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24868 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24869 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24870 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24871 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24872 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24873 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24874 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24875 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24876 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24877 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24878 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24879 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24880 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24881 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24882 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24883 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24884 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24885 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24886 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24887 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24888
24889 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24890
24891 [BZ #22111]
24892 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24893 (tcache_thread_freeres): Set tcache_shutting_down before
24894 freeing the tcache.
24895 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24896 * malloc/tst-malloc-tcache-leak.c: New file.
24897
24898 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24899
24900 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24901 back to powerpc32 file.
24902 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24903 (memrchr): Add __memrchr_power8 to ifunc list.
24904 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24905 extra bytes for unaligned inputs.
24906
24907 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24908
24909 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24910 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24911 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24912 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24913 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24914
24915 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24916
24917 * sysdeps/arm/libm-test-ulps: Update.
24918
24919 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
24920 <libm-alias-ldouble.h>.
24921 (asinhl): Define using libm_alias_ldouble.
24922 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
24923 <libm-alias-ldouble.h>.
24924 (cbrtl): Define using libm_alias_ldouble.
24925 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
24926 <libm-alias-ldouble.h>.
24927 (copysignl): Define using libm_alias_ldouble.
24928 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
24929 <libm-alias-ldouble.h>.
24930 (cosl): Define using libm_alias_ldouble.
24931 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
24932 <libm-alias-ldouble.h>.
24933 (erfl): Define using libm_alias_ldouble.
24934 (erfcl): Likewise.
24935 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
24936 <libm-alias-ldouble.h>.
24937 (fmal): Define using libm_alias_ldouble.
24938 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
24939 <libm-alias-ldouble.h>.
24940 (frexpl): Define using libm_alias_ldouble.
24941 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
24942 libm_alias_ldouble.
24943 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
24944 <libm-alias-ldouble.h>.
24945 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
24946 libm_alias_ldouble.
24947 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
24948 <libm-alias-ldouble.h>.
24949 (getpayloadl): Define using libm_alias_ldouble.
24950 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
24951 <libm-alias-ldouble.h>.
24952 (llrintl): Define using libm_alias_ldouble.
24953 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
24954 <libm-alias-ldouble.h>.
24955 (llroundl): Define using libm_alias_ldouble.
24956 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
24957 <libm-alias-ldouble.h>.
24958 (lrintl): Define using libm_alias_ldouble.
24959 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
24960 <libm-alias-ldouble.h>.
24961 (lroundl): Define using libm_alias_ldouble.
24962 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
24963 <libm-alias-ldouble.h>.
24964 (modfl): Define using libm_alias_ldouble.
24965 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
24966 <libm-alias-ldouble.h>.
24967 (nextupl): Define using libm_alias_ldouble.
24968 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
24969 <libm-alias-ldouble.h>.
24970 (remquol): Define using libm_alias_ldouble.
24971 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
24972 <libm-alias-ldouble.h>.
24973 (roundevenl): Define using libm_alias_ldouble.
24974 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
24975 <libm-alias-ldouble.h>.
24976 (roundl): Define using libm_alias_ldouble.
24977 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
24978 using libm_alias_ldouble.
24979 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
24980 <libm-alias-ldouble.h>.
24981 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
24982 <libm-alias-ldouble.h>.
24983 (setpayloadsigl): Define using libm_alias_ldouble.
24984 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
24985 <libm-alias-ldouble.h>.
24986 (sincosl): Define using libm_alias_ldouble.
24987 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
24988 <libm-alias-ldouble.h>.
24989 (sinl): Define using libm_alias_ldouble.
24990 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
24991 <libm-alias-ldouble.h>.
24992 (tanhl): Define using libm_alias_ldouble.
24993 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
24994 <libm-alias-ldouble.h>.
24995 (tanl): Define using libm_alias_ldouble.
24996 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
24997 <libm-alias-ldouble.h>.
24998 (totalorderl): Define using libm_alias_ldouble.
24999 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25000 <libm-alias-ldouble.h>.
25001 (totalordermagl): Define using libm_alias_ldouble.
25002 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25003 libm_alias_ldouble.
25004 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25005 libm_alias_ldouble.
25006
25007 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25008
25009 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25010 memmove_falkor.
25011 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25012 (__libc_ifunc_impl_list): Likewise.
25013 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25014 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25015
25016 * benchtests/bench-memmove-walk.c: New file.
25017 * benchtests/Makefile (string-benchset): Add it.
25018
25019 * benchtests/bench-memset-walk.c: New file.
25020 * benchtests/Makefile (string-benchset): Add it.
25021
25022 * benchtests/bench-memcpy-walk.c: New file.
25023 * benchtests/Makefile (string-benchset): Add it.
25024
25025 2017-10-05 Florian Weimer <fweimer@redhat.com>
25026
25027 nscd: Eliminate compilation time dependency in the build output.
25028 * nscd/nscd_stat.c (STATDATA_VERSION)
25029 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25030 (STATDATA_VERSION_FULL): New macro definitions.
25031 (compilation): Remove.
25032 (struct statdata): Adjust version member.
25033 (send_stats): Set version from STATDATA_VERSION_FULL.
25034 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25035
25036 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25037
25038 * configure.ac (--enable-add-ons): Remove option.
25039 (machine): Do not mention add-ons in comment.
25040 (LIBC_PRECONFIGURE): Likewise.
25041 (add_ons): Remove variable and sanity checks and logic to locate
25042 add-ons.
25043 (add_ons_automatic): Remove variable.
25044 (configured_add_ons): Likewise.
25045 (add_ons_sfx): Likewise.
25046 (add_ons_pfx): Likewise.
25047 (add_on_subdirs): Likewise.
25048 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25049 consideration of add-ons in Implies handling.
25050 (sysdeps_add_ons): Likewise.
25051 * configure: Regenerated.
25052 * libidn/configure.ac: Remove.
25053 * libidn/configure: Likewise.
25054 * sysdeps/unix/inet/configure.ac: New file.
25055 * sysdeps/unix/inet/configure: New generated file.
25056 * sysdeps/unix/inet/Subdirs: Add libidn.
25057 * Makeconfig (sysdeps-srcdirs): Remove variable.
25058 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25059 ($(common-objpfx)config.status): Do not depend on add-on files.
25060 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25061 comment.
25062 (all-subdirs): Do not include $(add-on-subdirs).
25063 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25064 * config.make.in (add-ons): Remove variable.
25065 (add-on-subdirs): Likewise.
25066 (sysdeps-add-ons): Likewise.
25067 * manual/Makefile (add-chapters): Remove.
25068 ($(objpfx)texis): Do not depend on $(add-chapters).
25069 (nonexamples): Do not handle $(add-chapters).
25070 (examples): Do not handle $(add-ons).
25071 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25072 libc-texinfo.sh.
25073 * manual/install.texi (Installation): Do not mention add-ons.
25074 (--enable-add-ons): Do not document configure option.
25075 * INSTALL: Regenerated.
25076 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25077 * manual/maint.texi (Hierarchy Conventions): Do not mention
25078 add-ons.
25079 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25080 --enable-add-ons.
25081 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25082 add-ons.
25083 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25084 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25085
25086 2017-10-05 Andreas Schwab <schwab@suse.de>
25087
25088 [BZ #15142]
25089 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25090 (_IO_flush_all_lockp): Always lock list_all_lock.
25091 (_IO_flush_all_linebuffered): Likewise.
25092 (_IO_unbuffer_all): Likewise.
25093
25094 2017-10-05 Florian Weimer <fweimer@redhat.com>
25095
25096 [BZ #15436]
25097 Do not flush stdio streams on abort.
25098 * stdlib/abort.c (fflush): Remove macro definition.
25099 (abort): Remove stages related to stdio flushing.
25100
25101 2017-10-05 Florian Weimer <fweimer@redhat.com>
25102
25103 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25104
25105 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25106
25107 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25108
25109 2017-10-05 Florian Weimer <fweimer@redhat.com>
25110
25111 * support/support_format_hostent.c (support_format_hostent): Add
25112 more error information for NETDB_INTERNAL.
25113
25114 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25115
25116 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25117 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25118 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25119 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25120 AC_DEFINE if multi-arch is enabled.
25121 * sysdeps/i386/configure: Regenerated.
25122
25123 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25124
25125 * Makeconfig (+link-static-before-libc): Use
25126 $(DEFAULT-LDFLAGS-$(@F)).
25127 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25128 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25129 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25130
25131 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25132
25133 * elf/Makefile (tests): Add tst-main1.
25134 (modules-names): Add tst-main1mod.
25135 ($(objpfx)tst-main1): New.
25136 (CRT-tst-main1): Likewise.
25137 (LDFLAGS-tst-main1): Likewise.
25138 (LDLIBS-tst-main1): Likewise.
25139 (tst-main1mod.so-no-z-defs): Likewise.
25140 * elf/tst-main1.c: New file.
25141 * elf/tst-main1mod.c: Likewise.
25142
25143 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25144
25145 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25146
25147 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25148
25149 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25150 (fma): Define using libm_alias_double.
25151 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25152 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25153 <math_ldbl_opt.h>.
25154 (fmal): Do not define as compat symbol here.
25155 * sysdeps/alpha/fpu/s_fma.c: New file.
25156
25157 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25158
25159 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25160
25161 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25162
25163 [BZ #22229]
25164 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25165 <math_ldbl_opt.h>
25166 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25167 and libc.
25168 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25169 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25170 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25171 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25172 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25173 Include <math_ldbl_opt.h>
25174 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25175 and libc.
25176 (compat_symbol): Undefine and redefine.
25177 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25178 <math_ldbl_opt.h>
25179 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25180 (compat_symbol): Undefine and redefine.
25181 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25182 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25183 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25184 GLIBC_2_1 for libm.
25185 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25186 GLIBC_2.0 copysignl symbol.
25187 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25188 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25189
25190 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25191
25192 2017-10-04 Florian Weimer <fweimer@redhat.com>
25193
25194 * scripts/check-local-headers.sh: Ignore nspr4 header file
25195 directory in addition to nspr.
25196
25197 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25198
25199 [BZ #17956]
25200 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25201 * configure: Regenerate.
25202 * crypt/Makefile (nss-cpp-flags): New variable.
25203 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25204 (CPPFLAGS-md5-crypt.c): Use it.
25205 * scripts/check-local-headers.sh: Ignore nspr header file
25206 directory.
25207
25208 2017-10-04 Andreas Schwab <schwab@suse.de>
25209
25210 * nis/Makefile (services): Remove compat.
25211 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25212 ($(objpfx)libnss_compat.so): Remove rule.
25213 * nis/Versions (libnss_compat): Remove.
25214 * nss/Makefile (services): Add compat.
25215 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25216 * nss/Versions (libnss_compat): Define.
25217 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25218 Don't include <rpc/types.h>. Replace bool_t by bool.
25219 * nss/nss_compat/compat-initgroups.c: Likewise.
25220 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25221 instead of <rpcsrv/ypclnt.h>.
25222 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25223 yp_get_default_domain.
25224 * nss/nss_compat/compat-pwd.c: Likewise.
25225 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25226 yp_get_default_domain.
25227 * nss/nss_compat/nisdomain.c: New file.
25228 * nss/nss_compat/nisdomain.h: Likewise.
25229
25230 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25231
25232 [BZ #22244]
25233 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25234 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25235
25236 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25237
25238 [BZ #22243]
25239 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25240 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25241
25242 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25243
25244 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25245 "movl main@GOTOFF(%ebx), %eax".
25246
25247 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25248
25249 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25250 allow undefined _DYNAMIC in PIE libc.a.
25251 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25252 Likewse.
25253
25254 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25255
25256 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25257 check _DYNAMIC.
25258
25259 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25260
25261 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25262 check _DYNAMIC.
25263
25264 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25265
25266 * math/test-math-iscanonical.cc (error): Replace bool with int.
25267
25268 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25269
25270 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25271 (modf): Define using libm_alias_double, only if [!__modf].
25272 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25273 <libm-alias-double.h>.
25274 (modf): Define using libm_alias_double, only if [!__modf].
25275 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25276 compat symbol here.
25277 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25278 (weak_alias): Do not undefine and redefine.
25279 (strong_alias): Likewise.
25280 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25281 (weak_alias): Likewise.
25282 (strong_alias): Likewise.
25283
25284 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25285 (logb): Define using libm_alias_double, only if [!__logb].
25286 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25287 <libm-alias-double.h>.
25288 (logb): Define using libm_alias_double, only if [!__logb].
25289 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25290 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25291 (weak_alias): Do not undefine and redefine.
25292 (strong_alias): Likewise.
25293 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25294 (weak_alias): Likewise.
25295 (strong_alias): Likewise.
25296
25297 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25298
25299 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25300 Check SHARED instead PIC.
25301
25302 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25303
25304 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25305 [!__fmaf] (fmaf): Define using libm_alias_float.
25306
25307 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25308 (frexp): Define using libm_alias_double.
25309 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25310 <libm-alias-double.h>.
25311 (frexp): Define using libm_alias_double.
25312 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25313 compat symbol here.
25314
25315 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25316
25317 [BZ #22235]
25318 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25319 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25320 (CFLAGS-test-math-iscanonical.cc): New variable.
25321 * math/test-math-iscanonical.cc: New file.
25322 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25323 Provide a C++ implementation based on function overloading,
25324 rather than using __MATH_TG, which uses C-only builtins.
25325 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25326 Likewise.
25327 * sysdeps/powerpc/powerpc64le/Makefile
25328 (CFLAGS-test-math-iscanonical.cc): New variable.
25329
25330 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25331
25332 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25333 (ceil): Define using libm_alias_double.
25334 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25335 (floor): Define using libm_alias_double.
25336 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25337 <libm-alias-double.h>.
25338 (llround): Define using libm_alias_double.
25339 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25340 <libm-alias-double.h>.
25341 (lround): Define using libm_alias_double.
25342 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25343 <libm-alias-double.h>.
25344 (nearbyint): Define using libm_alias_double.
25345 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25346 <libm-alias-double.h>.
25347 (remquo): Define using libm_alias_double.
25348 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25349 (rint): Define using libm_alias_double.
25350 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25351 (round): Define using libm_alias_double.
25352 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25353 (trunc): Define using libm_alias_double.
25354 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25355 <libm-alias-double.h>.
25356 (ceil): Define using libm_alias_double.
25357 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25358 <libm-alias-double.h>.
25359 (floor): Define using libm_alias_double.
25360 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25361 <libm-alias-double.h>.
25362 (llround): Define using libm_alias_double.
25363 [_LP64] (lround): Likewise.
25364 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25365 <libm-alias-double.h>.
25366 [!_LP64] (lround): Define using libm_alias_double.
25367 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25368 <libm-alias-double.h>.
25369 (nearbyint): Define using libm_alias_double.
25370 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25371 <libm-alias-double.h>.
25372 (remquo): Define using libm_alias_double.
25373 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25374 <libm-alias-double.h>.
25375 (rint): Define using libm_alias_double.
25376 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25377 <libm-alias-double.h>.
25378 (round): Define using libm_alias_double.
25379 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25380 <libm-alias-double.h>.
25381 (trunc): Define using libm_alias_double.
25382 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25383 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25384 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25385 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25386 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25387 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25388 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25389 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25390 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25391
25392 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25393
25394 * math/w_remainder.c: New file.
25395 * math/w_remainderf.c: New file.
25396 * math/w_remainderl.c: New file.
25397
25398 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25399
25400 * elf/rtld.c (BOOTSTRAP_MAP): New.
25401 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25402 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25403 Likewise.
25404 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25405 Likewise.
25406 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25407 Likewise.
25408
25409 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25410
25411 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25412 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25413 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25414 rtld_hidden_data_ver): Define to empty.
25415 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25416 __assert_perror_fail): Likewise.
25417 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25418 (__rewinddir): Likewise.
25419 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25420 (__profile_frequency): Likewise.
25421 * include/setjmp.h (__sigsetjmp): Likewise.
25422 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25423 __libc_sigaction): Likewise.
25424 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25425 not set hidden attribute.
25426 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25427 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25428 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25429 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25430 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25431 __fxstatat64): Likewise.
25432 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25433 (__uname): Likewise.
25434 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25435 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25436 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25437 (NO_RTLD_HIDDEN): Set.
25438 * sysdeps/mach/hurd/configure: Refresh.
25439 * config.h.in: Refresh.
25440
25441 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25442
25443 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25444 (atan): Define using libm_alias_double.
25445 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25446 (tan): Define using libm_alias_double.
25447 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25448 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25449
25450 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25451 define as weak alias of __atan. Do not define any aliases if
25452 [__atan].
25453 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25454 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25455 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25456 as weak alias of __tan. Do not define any aliases if [__tan].
25457 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25458 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25459 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25460 __atan.
25461 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25462 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25463 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25464 and define as weak alias of __atan.
25465 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25466 __atan.
25467 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25468 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25469 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25470 define as weak alias of __tan.
25471
25472 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25473
25474 * math/w_lgamma.c: New file.
25475 * math/w_lgammaf.c: New file.
25476 * math/w_lgammal.c: New file.
25477
25478 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25479
25480 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25481 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25482 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25483 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25484 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25485 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25486 * sysdeps/i386/fpu/w_log2f.c: New file.
25487 * sysdeps/i386/fpu/w_logf.c: New file.
25488 * sysdeps/i386/fpu/w_powf.c: New file.
25489 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25490 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25491 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25492
25493 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25494 H.J. Lu <hongjiu.lu@intel.com>
25495
25496 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25497 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25498 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25499 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25500 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25501 the new expf code.
25502 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25503 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25504 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25505 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25506 * sysdeps/i386/fpu/w_exp2f.c: New file.
25507 * sysdeps/i386/fpu/w_expf.c: New file.
25508 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25509 * sysdeps/x86_64/fpu/w_expf.c: New file.
25510
25511 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25512
25513 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25514 (log2f): Likewise.
25515 (powf): Likewise.
25516 * math/w_log2f.c: New file.
25517 * math/w_logf.c: New file.
25518 * math/w_powf.c: New file.
25519 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25520 * math/w_logf_compat.c (__logf_compat): Likewise.
25521 * math/w_powf_compat.c (__powf_compat): Likewise.
25522 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25523 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25524 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25525 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25526 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25527 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25528 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25529 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25530 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25531 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25532 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25533 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25534 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25535 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25536 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25537 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25538 Likewise.
25539 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25540 Likewise.
25541 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25542 Likewise.
25543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25544 Likewise.
25545 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25546 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25547 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25548 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25549 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25550 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25551 Likewise.
25552 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25553 Likewise.
25554 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25555 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25556 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25557
25558 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25559
25560 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25561 (sysdep_routines): Add memrchr_power8.
25562 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25563 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25564 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25565 New file.
25566 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25567 (memrchr): Add __memrchr_power8 to ifunc list.
25568 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25569
25570 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25571
25572 [BZ #18822]
25573 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25574 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25575 libc_hidden_def.
25576 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25577 (__posix_fallocate64_l64): Likewise.
25578
25579 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25580
25581 [BZ #18822]
25582 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25583 (__sched_setaffinity_new): Add libc_hidden_proto and
25584 libc_hidden_def.
25585
25586 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25587
25588 [BZ #18822]
25589 * include/glob.h (__glob64): Add libc_hidden_proto.
25590 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25591 libc_hidden_def.
25592
25593 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25594
25595 [BZ #18822]
25596 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25597 attribute_hidden.
25598
25599 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25600
25601 [BZ #18822]
25602 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25603
25604 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25605
25606 [BZ #18822]
25607 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25608 libc_hidden_def.
25609
25610 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25611
25612 [BZ #18822]
25613 * csu/version.c (__libc_print_version): Add attribute_hidden.
25614
25615 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25616
25617 [BZ #18822]
25618 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25619
25620 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25621
25622 [BZ #18822]
25623 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25624
25625 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25626
25627 [BZ #18822]
25628 * nscd/nscd_helper.c (__nis_hash): New prototype.
25629
25630 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25631
25632 [BZ #18822]
25633 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25634 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25635 libc_hidden_def.
25636 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25637 * termios/tcgetattr.c (__tcgetattr): Likewise.
25638
25639 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25640
25641 [BZ #18822]
25642 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25643 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25644 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25645 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25646 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25647
25648 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25649
25650 [BZ #18822]
25651 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25652
25653 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25654
25655 [BZ #18822]
25656 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25657 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25658
25659 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25660
25661 [BZ #18822]
25662 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25663
25664 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25665
25666 [BZ #18822]
25667 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25668 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25669
25670 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25671
25672 [BZ #18822]
25673 * include/ifreq.h: New file.
25674 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25675 (__ifreq): Likewise.
25676 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25677 (__ifreq): Likewise.
25678
25679 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25680
25681 [BZ #18822]
25682 * include/idna.h: New file.
25683 * inet/getnameinfo.c: Include <idna.h> instead of
25684 <libidn/idna.h>.
25685 (__idna_to_unicode_lzlz): Removed.
25686 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25687 <libidn/idna.h>.
25688 (__idna_to_ascii_lz): Removed.
25689 (__idna_to_unicode_lzlz): Likewise.
25690
25691 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25692
25693 [BZ #18822]
25694 * include/plural-exp.h: New file.
25695 * intl/plural-exp.c: Include <plural-exp.h> instead of
25696 "plural-exp.h".
25697
25698 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25699
25700 [BZ #18822]
25701 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25702 "getsourcefilter.h".
25703 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25704 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25705 "getsourcefilter.h".
25706 (__get_sol): Removed.
25707
25708 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25709
25710 [BZ #18822]
25711 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25712 to ...
25713 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25714
25715 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25716
25717 [BZ #18822]
25718 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25719 attribute_hidden.
25720
25721 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25722
25723 [BZ #18822]
25724 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25725
25726 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25727
25728 [BZ #18822]
25729 * include/search.h (__tdestroy): Add libc_hidden_proto.
25730 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25731
25732 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25733
25734 [BZ #18822]
25735 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25736
25737 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25738
25739 [BZ #18822]
25740 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25741 attribute_hidden.
25742
25743 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25744
25745 [BZ #18822]
25746 * include/signal.h (__kill): Add libc_hidden_proto.
25747 (__sigblock): Likewise.
25748 (__sigprocmask): Likewise.
25749 (__sigaltstack): Likewise.
25750 * signal/kill.c (__kill): Add libc_hidden_def.
25751 * signal/sigblock.c (__sigblock): Likewise.
25752 * signal/sigprocmask.c (__sigprocmask): Likewise.
25753 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25754 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25755 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25756 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25757 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25758 Likewise.
25759 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25760 Likewise.
25761 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25762 (__sigprocmask): Likewise.
25763 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25764 Likewise.
25765 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25766 (__sigprocmask): Likewise.
25767 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25768 Likewise.
25769
25770 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25771
25772 [BZ #18822]
25773 * include/string.h (__strsep): Add libc_hidden_proto.
25774 * string/strsep.c (__strsep): Add libc_hidden_def.
25775
25776 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25777
25778 [BZ #18822]
25779 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25780 attribute_hidden.
25781 (__spawni): Likewise.
25782
25783 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25784
25785 [BZ #18822]
25786 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25787 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25788 libc_hidden_def.
25789
25790 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25791
25792 [BZ #18822]
25793 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25794
25795 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25796
25797 [BZ #18822]
25798 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25799 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25800 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25801 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25802 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25803 Likewise.
25804 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25805 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25806
25807 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25808
25809 [BZ #18822]
25810 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25811 (__dcigettext): Likewise.
25812
25813 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25814
25815 [BZ #18822]
25816 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25817 libc_hidden_proto.
25818 (__get_nprocs): Likewise.
25819 (__get_phys_pages): Likewise.
25820 (__get_avphys_pages): Likewise.
25821 (__get_child_max): Add attribute_hidden.
25822 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25823 (__get_nprocs): Likewise.
25824 (__get_phys_pages): Likewise.
25825 (__get_avphys_pages): Likewise.
25826 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25827 libc_hidden_def.
25828 (__get_nprocs): Likewise.
25829 (__get_phys_pages): Likewise.
25830 (__get_avphys_pages): Likewise.
25831 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25832 libc_hidden_def.
25833 (__get_nprocs_conf): Likewise.
25834 (__get_phys_pages): Likewise.
25835 (__get_avphys_pages): Likewise.
25836
25837 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25838
25839 [BZ #18822]
25840 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25841 attribute_hidden.
25842 (__netlink_close): Likewise.
25843 (__netlink_free_handle): Likewise.
25844 (__netlink_request): Likewise.
25845
25846 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25847
25848 [BZ #18822]
25849 * include/rpc/rpc.h (__rpc_thread_variables): Add
25850 attribute_hidden.
25851 (__rpc_thread_svc_cleanup): Likewise.
25852 (__rpc_thread_clnt_cleanup): Likewise.
25853 (__rpc_thread_key_cleanup): Likewise.
25854
25855 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25856
25857 [BZ #18822]
25858 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25859 (__writev): Likewise.
25860 * misc/readv.c (__readv): Add libc_hidden_def.
25861 * misc/writev.c (__writev): Likewise.
25862 * sysdeps/posix/readv.c (__readv): Likewise.
25863 * sysdeps/posix/writev.c (__writev): Likewise.
25864 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25865 (__readv): Likewise.
25866 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25867 (__writev): Likewise.
25868
25869 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25870
25871 [BZ #18822]
25872 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25873 (__regcomp): Add libc_hidden_proto.
25874 (__regexec): Likewise.
25875 (__regfree): Likewise.
25876 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25877 (__regfree): Likewise.
25878 * posix/regexec.c (__regexec): Likewise.
25879
25880 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25881
25882 [BZ #18822]
25883 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25884 (__getutent): Likewise.
25885 (__getutid): Likewise.
25886 (__getutline): Likewise.
25887 (__pututline): Likewise.
25888 (__getutent_r): Likewise.
25889 (__getutid_r): Likewise.
25890 (__getutline_r): Likewise.
25891 (__utmpname): Add attribute_hidden.
25892 (__setutent): Likewise.
25893 (__endutent): Likewise.
25894 * login/getutent.c (__getutent): Add libc_hidden_def.
25895 * login/getutent_r.c (__getutent_r): Likewise.
25896 (__pututline): Likewise.
25897 * login/getutid.c (__getutid): Likewise.
25898 * login/getutid_r.c (__getutid_r): Likewise.
25899 * login/getutline.c (__getutline): Likewise.
25900 * login/getutline_r.c (__getutline_r): Likewise.
25901 * login/updwtmp.c (__updwtmp): Likewise.
25902
25903 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25904
25905 [BZ #18822]
25906 * include/dirent.h (__opendir): Always add attribute_hidden.
25907 (__fdopendir): Likewise.
25908 (__closedir): Likewise.
25909 (__readdir): Likewise.
25910 (__readdir64): Add libc_hidden_proto.
25911 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25912 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25913 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25914 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25915 New alias.
25916
25917 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25918
25919 [BZ #18822]
25920 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
25921 * include/netdb.h (__gethostbyaddr_r): Likewise.
25922 (__gethostbyname_r): Likewise.
25923 (__gethostbyname2_r): Likewise.
25924 (__getnetbyaddr_r): Likewise.
25925 (__getnetbyname_r): Likewise.
25926 (__getservbyname_r): Likewise.
25927 (__getservbyport_r): Likewise.
25928 (__getprotobyname_r): Likewise.
25929 (__getprotobynumber_r): Likewise.
25930 (__getnetgrent_r): Likewise.
25931 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
25932 (__getrpcbynumber_r): Likewise.
25933 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
25934
25935 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25936
25937 [BZ #18822]
25938 * include/stdio.h (__fcloseall): Add attribute_hidden.
25939 (__getline): Likewise.
25940 (__path_search): Likewise.
25941 (__gen_tempname): Likewise.
25942 (__libc_message): Likewise.
25943 (__flockfile): Likewise.
25944 (__funlockfile): Likewise.
25945 (__fxprintf): Likewise.
25946 (__fxprintf_nocancel): Likewise.
25947
25948 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25949
25950 [BZ #18822]
25951 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
25952 (__sgetsgent_r): Likewise.
25953
25954 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25955
25956 [BZ #18822]
25957 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
25958 (__statfs64): Likewise.
25959 (__fstatfs64): Likewise.
25960 * include/sys/statvfs.h (__statvfs64): Likewise.
25961 (__fstatvfs64): Likewise.
25962 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
25963 (__statfs_filesize_max): Likewise.
25964 (__statfs_symlinks): Likewise.
25965 (__statfs_chown_restricted): Likewise.
25966
25967 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25968
25969 [BZ #18822]
25970 * include/time.h (__tzstring): Add attribute_hidden.
25971 (__tzfile_read): Likewise.
25972 (__tzfile_compute): Likewise.
25973 (__tzfile_default): Likewise.
25974 (__tzset_parse_tz): Likewise.
25975 (__offtime): Likewise.
25976 (__asctime_r): Likewise.
25977 (__tzset): Likewise.
25978 (__tz_convert): Likewise.
25979 (__getdate_r): Likewise.
25980 (__getclktck): Likewise.
25981
25982 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25983
25984 [BZ #18822]
25985 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
25986 (__nscd_unmap): Likewise.
25987 (__nscd_cache_search): Likewise.
25988 (__nscd_get_nl_timestamp): Likewise.
25989 (__nscd_getpwnam_r): Likewise.
25990 (__nscd_getpwuid_r): Likewise.
25991 (__nscd_getgrnam_r): Likewise.
25992 (__nscd_getgrgid_r): Likewise.
25993 (__nscd_gethostbyname_r): Likewise.
25994 (__nscd_gethostbyname2_r): Likewise.
25995 (__nscd_gethostbyaddr_r): Likewise.
25996 (__nscd_getai): Likewise.
25997 (__nscd_getgrouplist): Likewise.
25998 (__nscd_getservbyname_r): Likewise.
25999 (__nscd_getservbyport_r): Likewise.
26000 (__nscd_innetgr): Likewise.
26001 (__nscd_setnetgrent): Likewise.
26002
26003 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26004
26005 [BZ #18822]
26006 * include/gmp.h: Declare internal functions only if _ISOMAC is
26007 undefined.
26008 (__mpn_extract_double): Add attribute_hidden.
26009 (__mpn_extract_long_double): Likewise.
26010 (__mpn_extract_float128): Likewise.
26011 (__mpn_construct_float): Likewise.
26012 (__mpn_construct_double): Likewise.
26013 (__mpn_construct_long_double): Likewise.
26014 (__mpn_construct_float128): Likewise.
26015 (mpn_add_1): Likewise.
26016 (mpn_addmul_1): Likewise.
26017 (mpn_add_n): Likewise.
26018 (mpn_cmp): Likewise.
26019 (mpn_divrem): Likewise.
26020 (mpn_lshift): Likewise.
26021 (mpn_mul): Likewise.
26022 (mpn_mul_1): Likewise.
26023 (mpn_rshift): Likewise.
26024 (mpn_sub_1): Likewise.
26025 (mpn_submul_1): Likewise.
26026 (mpn_sub_n): Likewise.
26027
26028 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26029
26030 [BZ #18822]
26031 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26032 (__wcscat): Likewise.
26033 (__btowc): Likewise.
26034 (__wcrtomb): Likewise.
26035 (__mbsrtowcs): Likewise.
26036 (__wcsrtombs): Likewise.
26037 (__mbsnrtowcs): Likewise.
26038 (__wcsnrtombs): Likewise.
26039 (__wcsncpy): Likewise.
26040 (__wcpncpy): Likewise.
26041 (__wmemcpy): Likewise.
26042 (__wmempcpy): Likewise.
26043 (__wmemmove): Likewise.
26044 (__wcschrnul): Likewise.
26045 (__vfwscanf): Likewise.
26046 (__vswprintf): Likewise.
26047 (__fwprintf): Likewise.
26048 (__vfwprintf): Likewise.
26049
26050 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26051
26052 [BZ #18822]
26053 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26054 (__getgrgid_r): Likewise.
26055 (__getgrnam_r): Likewise.
26056 * include/pwd.h (__getpwuid_r): Likewise.
26057 (__getpwnam_r): Likewise.
26058 (__fgetpwent_r): Likewise.
26059 * include/shadow.h (__getspnam_r): Likewise.
26060 (__sgetspent_r): Likewise.
26061 (__fgetspent_r): Likewise.
26062
26063 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26064
26065 [BZ #18822]
26066 * include/unistd.h (__access): Add attribute_hidden.
26067 (__lseek64): Likewise.
26068 (__libc_pread64): Likewise.
26069 (__pipe2): Likewise.
26070 (__sleep): Likewise.
26071 (__chdir): Likewise.
26072 (__fchdir): Likewise.
26073 (__getcwd): Likewise.
26074 (__rmdir): Likewise.
26075 (__execvpe): Likewise.
26076 (__execve): Likewise.
26077 (__setsid): Likewise.
26078 (__getuid): Likewise.
26079 (__geteuid): Likewise.
26080 (__getgid): Likewise.
26081 (__getegid): Likewise.
26082 (__getgroups): Likewise.
26083 (__group_member): Likewise.
26084 (__ttyname_r): Likewise.
26085 (__isatty): Likewise.
26086 (__readlink): Likewise.
26087 (__unlink): Likewise.
26088 (__gethostname): Likewise.
26089 (__profil): Likewise.
26090 (__getdtablesize): Likewise.
26091 (__brk): Likewise.
26092 (__ftruncate): Likewise.
26093 (__ftruncate64): Likewise.
26094
26095 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26096
26097 [BZ #18822]
26098 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26099 * argp/argp-fs-xinl.c: Likewise.
26100 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26101 * argp/argp-parse.c: Include <argp.h>.
26102 * argp/argp-xinl.c: Likewise.
26103 * include/argp-fmtstream.h: New file.
26104 * include/argp.h (__argp_error): Add attribute_hidden.
26105 (__argp_failure): Likewise.
26106 (__argp_input): Likewise.
26107 (__argp_state_help): Likewise.
26108
26109 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26110
26111 [BZ #18822]
26112 * include/wchar.h (____wcstof_l_internal): New prototype.
26113 (____wcstod_l_internal): Likewise.
26114 (____wcstold_l_internal): Likewise.
26115 (____wcstol_l_internal): Likewise.
26116 (____wcstoul_l_internal): Likewise.
26117 (____wcstoll_l_internal): Likewise.
26118 (____wcstoull_l_internal): Likewise.
26119 (____wcstof128_l_internal): Likewise.
26120 * sysdeps/ieee754/float128/wcstof128.c
26121 (____wcstof128_l_internal): Removed.
26122 * sysdeps/ieee754/float128/wcstof128_l.c
26123 (____wcstof128_l_internal): Likewise.
26124 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26125 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26126 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26127 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26128 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26129 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26130 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26131 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26132 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26133 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26134
26135 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26136
26137 [BZ #18822]
26138 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26139 instead of <sys/statvfs.h>.
26140 (__internal_statvfs): Removed.
26141 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26142 instead of <sys/statvfs.h>.
26143 (__internal_statvfs64): Removed.
26144 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26145 "internal_statvfs.h" instead of <sys/statvfs.h>.
26146 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26147 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26148 instead of <sys/statvfs.h>.
26149 (__internal_statvfs): Removed.
26150 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26151 instead of <sys/statvfs.h>.
26152 (__internal_statvfs64): Removed.
26153
26154 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26155
26156 [BZ #18822]
26157 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26158 (__gconv_close): Likewise.
26159 (__gconv): Likewise.
26160 (__gconv_find_transform): Likewise.
26161 (__gconv_lookup_cache): Likewise.
26162 (__gconv_compare_alias_cache): Likewise.
26163 (__gconv_load_cache): Likewise.
26164 (__gconv_get_path): Likewise.
26165 (__gconv_close_transform): Likewise.
26166 (__gconv_release_cache): Likewise.
26167 (__gconv_find_shlib): Likewise.
26168 (__gconv_release_shlib): Likewise.
26169 (__gconv_get_builtin_trans): Likewise.
26170 (__gconv_compare_alias): Likewise.
26171 * include/dlfcn.h (_dlerror_run): Likewise.
26172 * include/stdio.h (__fortify_fail_abort): Likewise.
26173 * include/time.h (__tz_compute): Likewise.
26174 (__strptime_internal): Likewise.
26175 * intl/gettextP.h (_nl_find_domain): Likewise.
26176 (_nl_load_domain): Likewise.
26177 (_nl_find_msg): Likewise.
26178 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26179 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26180 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26181 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26182 (__gai_find_request): Likewise.
26183 (__gai_remove_request): Likewise.
26184 (__gai_notify): Likewise.
26185 (__gai_notify_only): Likewise.
26186 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26187 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26188 (_dl_non_dynamic_init): Likewise.
26189 (_dl_aux_init): Likewise.
26190 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26191 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26192 Likewise.
26193 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26194 (__wcsmbs_clone_conv): Likewise.
26195 (__wcsmbs_named_conv): Likewise.
26196
26197 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26198
26199 [BZ #18822]
26200 * include/stdlib.h (__random): Add attribute_hidden.
26201 (__random_r): Likewise.
26202 (__srandom_r): Likewise.
26203 (__initstate_r): Likewise.
26204 (__setstate_r): Likewise.
26205 (__erand48_r): Likewise.
26206 (__nrand48_r): Likewise.
26207 (__jrand48_r): Likewise.
26208 (__srand48_r): Likewise.
26209 (__seed48_r): Likewise.
26210 (__lcong48_r): Likewise.
26211 (__drand48_iterate): Likewise.
26212 (__setenv): Likewise.
26213 (__unsetenv): Likewise.
26214 (__clearenv): Likewise.
26215 (__ptsname_r): Likewise.
26216 (__posix_openpt): Likewise.
26217 (__add_to_environ): Likewise.
26218 (__realpath): Add libc_hidden_proto.
26219 (__ecvt_r): Likewise.
26220 (__fcvt_r): Likewise.
26221 (__qecvt_r): Likewise.
26222 (__qfcvt_r): Likewise.
26223 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26224 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26225
26226 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26227
26228 [BZ #18822]
26229 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26230 * include/time.h (__mktime_internal): Likewise.
26231 * libio/iolibio.h (__fopen_internal): Likewise.
26232
26233 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26234
26235 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26236 pointer in frame.
26237 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26238 Correct offset used to restore PIC register.
26239
26240 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26241
26242 [BZ libc/22165]
26243 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26244 code to load address of __getcontext_ret when generating PIC code.
26245
26246 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26247
26248 * elf/Makefile (tests-static-internal): Add
26249 tst-tls1-static-non-pie.
26250 (LDFLAGS-tst-tls1-static-non-pie): New.
26251 * elf/tst-tls1-static-non-pie.c: New file.
26252
26253 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26254
26255 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26256 (asinh): Define using libm_alias_double.
26257 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26258 (cbrt): Define using libm_alias_double.
26259 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26260 <libm-alias-double.h>.
26261 (copysign): Define using libm_alias_double.
26262 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26263 (erf): Define using libm_alias_double.
26264 (erfc): Likewise.
26265 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26266 (expm1): Define using libm_alias_double.
26267 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26268 (fabs): Define using libm_alias_double.
26269 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26270 libm_alias_double.
26271 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26272 <libm-alias-double.h>.
26273 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26274 libm_alias_double.
26275 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26276 <libm-alias-double.h>.
26277 (getpayload): Define using libm_alias_double.
26278 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26279 <libm-alias-double.h>.
26280 (llrint): Define using libm_alias_double.
26281 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26282 (lrint): Define using libm_alias_double.
26283 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26284 <libm-alias-double.h>.
26285 (nextup): Define using libm_alias_double.
26286 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26287 <libm-alias-double.h>.
26288 (roundeven): Define using libm_alias_double.
26289 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26290 libm_alias_double.
26291 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26292 <libm-alias-double.h>.
26293 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26294 using libm_alias_double.
26295 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26296 (cos): Define using libm_alias_double.
26297 (sin): Likewise.
26298 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26299 <libm-alias-double.h>.
26300 (sincos): Define using libm_alias_double.
26301 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26302 (tanh): Define using libm_alias_double.
26303 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26304 <libm-alias-double.h>.
26305 (totalorder): Define using libm_alias_double.
26306 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26307 <libm-alias-double.h>.
26308 (totalordermag): Define using libm_alias_double.
26309 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26310 libm_alias_double.
26311 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26312 libm_alias_double.
26313 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26314 <libm-alias-double.h>.
26315 (getpayload): Define using libm_alias_double.
26316 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26317 <libm-alias-double.h>.
26318 (roundeven): Define using libm_alias_double.
26319 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26320 <libm-alias-double.h>.
26321 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26322 <libm-alias-double.h>.
26323 (totalorder): Define using libm_alias_double.
26324 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26325 <libm-alias-double.h>.
26326 (totalordermag): Define using libm_alias_double.
26327 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26328 libc compat symbol here.
26329 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26330 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26331 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26332 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26333 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26334 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26335 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26336 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26337 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26338 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26339
26340 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26341
26342 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26343 _dl_relocate_static_pie instead of _dl_start to compute load
26344 address in static PIE. Return 0 if _DYNAMIC is undefined for
26345 static executable.
26346
26347 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26348
26349 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26350 _DYNAMIC is undefined for static executable.
26351
26352 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26353
26354 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26355
26356 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26357
26358 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26359
26360 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26361
26362 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26363 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26364 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26365 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26366 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26367 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26368 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26369 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26370 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26371 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26372 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26373 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26374 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26375 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26376 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26377 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26378 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26379
26380 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26381
26382 * math/bits/cmathcalls.h (cimag): Remove inline.
26383 (creal): Remove inline.
26384 (conj): Remove inline.
26385
26386 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26387
26388 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26389 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26390 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26391 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26392 (issignalingf_inline): Likewise.
26393 (POWF_LOG2_TABLE_BITS): Likewise.
26394 (POWF_LOG2_POLY_ORDER): Likewise.
26395 (POWF_SCALE_BITS): Likewise.
26396 (POWF_SCALE): Likewise.
26397 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26398 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26399 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26400
26401 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26402
26403 * math/Makefile (type-float-routines): Add e_log2f_data.
26404 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26405 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26406 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26407 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26408 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26409 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26410 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26411
26412 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26413
26414 * math/Makefile (type-float-routines): Add e_logf_data.
26415 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26416 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26417 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26418 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26419 * sysdeps/i386/fpu/e_logf_data.c: New file.
26420 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26421 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26422
26423 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26424
26425 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26426 undefined _DYNAMIC in PIE libc.a.
26427 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26428 Likewse.
26429
26430 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26431
26432 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26433 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26434 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26435 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26436 (__signbit): Remove.
26437 (__signbitl): Remove.
26438 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26439 (__signbit): Remove.
26440 (__signbitl): Remove.
26441 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26442 (__signbit): Remove.
26443 (__signbitl): Remove.
26444 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26445 (__signbit): Remove.
26446 (__signbitl): Remove.
26447 * sysdeps/tile/bits/mathinline.h: Delete file.
26448 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26449 (__signbit): Remove.
26450 (__signbitl): Remove.
26451
26452 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26453
26454 * math/math.h: Improve handling of C99 isgreater macros.
26455 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26456 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26457 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26458 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26459 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26460
26461 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26462
26463 * sysdeps/aarch64/libm-test-ulps: Update.
26464
26465 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26466
26467 [BZ #22225]
26468 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26469 math_opt_barrier on argument when doing arithmetic on it.
26470 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26471 Likewise. Use math_force_eval not math_opt_barrier after
26472 arithmetic.
26473 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26474 math_opt_barrier on argument when doing arithmetic on it.
26475 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26476 Likewise.
26477
26478 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26479
26480 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26481 libc_hidden_def.
26482 (__freeifaddrs): Likewise.
26483
26484 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26485
26486 * include/dirent.h (__dirfd): New declaration.
26487 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26488 alias.
26489 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26490 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26491 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26492 * include/unistd.h (__revoke): New declaration.
26493 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26494 alias.
26495 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26496 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26497 revoke.
26498 * include/dirent.h (__seekdir): New declaration.
26499 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26500 redefine as weak alias.
26501 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26502 of seekdir.
26503 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26504 and use libc_hidden_def on them.
26505 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26506 them.
26507 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26508 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26509 instead of getifaddrs and freeifaddrs.
26510
26511 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26512
26513 [BZ #18822]
26514 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26515 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26516 (__dso_handle): Remove declaration.
26517 * dlfcn/tstatexit.c (__dso_handle): Removed.
26518 (main): Don't check __dso_handle.
26519 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26520 (main): Don't check __dso_handle.
26521 * include/dso_handle.h: New file.
26522 * malloc/mtrace.c: Include <dso_handle.h>.
26523 (mtrace): Pass __dso_handle directly.
26524 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26525 (__dso_handle): Remove declaration.
26526 (__pthread_atfork): Pass __dso_handle directly.
26527 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26528 (__dso_handle): Removed.
26529 * posix/wordexp-test.c: Include <dso_handle.h>.
26530 (__dso_handle): Remove declaration.
26531 (__app_register_atfork): Pass __dso_handle directly.
26532 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26533 (__dso_handle): Remove declaration.
26534 (at_quick_exit): Pass __dso_handle directly.
26535 * stdlib/atexit.c: Include <dso_handle.h>.
26536 (__dso_handle): Remove declaration.
26537 (atexit): Pass __dso_handle directly.
26538 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26539 (__dso_handle): Removed.
26540
26541 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26542
26543 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26544 using VDSO.
26545
26546 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26547
26548 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26549 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26550 values to correct default value for given type.
26551
26552 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26553
26554 [BZ #22101]
26555 * elf/Makefile (tests): Add tst-debug1.
26556 ($(objpfx)tst-debug1): New.
26557 ($(objpfx)tst-debug1.out): Likewise.
26558 ($(objpfx)tst-debug1mod1.so): Likewise.
26559 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26560 with p_filesz == 0.
26561 * elf/tst-debug1.c: New file.
26562
26563 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26564
26565 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26566 Define using __ifunc.
26567
26568 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26569
26570 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26571 exp2f() values.
26572
26573 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26574
26575 [BZ #22156]
26576 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26577
26578 2017-09-26 Florian Weimer <fweimer@redhat.com>
26579
26580 * resolv/Makefile (tests-internal): Fix typo in comment.
26581
26582 2017-09-26 Florian Weimer <fweimer@redhat.com>
26583
26584 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26585
26586 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26587
26588 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26589 Use an union instead of a max_align_t array for __space,
26590 so that __space is the same size on all platforms.
26591 * malloc/scratch_buffer_grow_preserve.c
26592 (__libc_scratch_buffer_grow_preserve): Likewise.
26593
26594 [BZ #22183]
26595 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26596 version to 2.
26597 * posix/Makefile (routines): Add glob-lstat-compat and
26598 glob64-lstat-compat.
26599 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26600 * posix/glob-lstat-compat.c: New file.
26601 * posix/glob64-lstat-compat.c: Likewise.
26602 * posix/tst-glob_lstat_compat.c: Likewise.
26603 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26604 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26605 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26606 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26607 Likewise.
26608 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26609 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26610 * posix/glob.c (glob_lstat): New function.
26611 (glob): Rename to __glob and add versioned symbol to 2.27.
26612 (glob_in_dir): Use glob_lstat.
26613 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26614 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26615 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26616 2.27.
26617 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26618 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26619 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26620 gl_lstat on glob call.
26621 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26622 and glob64 symbols.
26623 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26624 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26625 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26626 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26627 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26628 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26629 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26630 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26631 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26632 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26633 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26634 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26635 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26636 Likewise.
26637 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26638 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26639 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26640 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26641 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26642 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26643 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26644 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26645 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26646 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26647 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26648 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26649
26650 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26651
26652 * configure.ac (AS): Require binutils 2.25 or later.
26653 * configure: Regenerated.
26654
26655 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26656
26657 [BZ #22207]
26658 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26659 VM size.
26660
26661 2017-09-25 DJ Delorie <dj@redhat.com>
26662
26663 [BZ #22161]
26664 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26665 resetting timeout.
26666
26667 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26668
26669 * sysdeps/ieee754/dbl-64/sincos32.h
26670 [SINCCOS32_H]: Remove define.
26671 [SINCOS32_H]: Define.
26672
26673 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26674
26675 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26676 (exp2f): Likewise.
26677 * math/w_exp2f.c: New file.
26678 * math/w_expf.c: New file.
26679 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26680 * math/w_expf_compat.c (__expf_compat): Likewise.
26681 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26682 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26683 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26684 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26685 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26686 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26687 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26688 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26689 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26690 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26691 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26692 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26693 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26694 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26695 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26696 Likewise.
26697 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26698 Likewise.
26699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26700 Likewise.
26701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26702 Likewise.
26703 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26704 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26705 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26706 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26707 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26708 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26709 Likewise.
26710 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26711 Likewise.
26712 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26713 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26714 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26715
26716 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26717
26718 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26719 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26720 (roundtoint, converttoint): Likewise.
26721 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26722 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26723 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26724 * sysdeps/ieee754/flt-32/math_config.h: New file.
26725 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26726 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26727 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26728 * sysdeps/i386/fpu/math_errf.c: New file.
26729 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26730 * sysdeps/ia64/fpu/math_errf.c: New file.
26731 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26732 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26733
26734 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26735
26736 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26737 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26738 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26739 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26740 to make sure that these symbols are defined.
26741 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26742 of <limits.h>
26743 (__need_NULL): Do not define.
26744 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26745 alignment.
26746 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26747 CMGROUP_MAX, cmsgcred): Do not define.
26748 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26749 NULL.
26750 * bits/socket.h: Likewise.
26751 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26752 __gettimeofday instead of gettimeofday.
26753 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26754 instead of settimeofday.
26755
26756 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26757
26758 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26759 (asinhf): Define using libm_alias_float.
26760 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26761 (atanf): Define using libm_alias_float.
26762 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26763 (cbrtf): Define using libm_alias_float.
26764 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26765 (ceilf): Define using libm_alias_float.
26766 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26767 <libm-alias-float.h>.
26768 (copysignf): Define using libm_alias_float.
26769 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26770 (cosf): Define using libm_alias_float.
26771 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26772 (erff): Define using libm_alias_float.
26773 (erfcf): Likewise.
26774 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26775 (expm1f): Define using libm_alias_float.
26776 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26777 (fabsf): Define using libm_alias_float.
26778 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26779 (floorf): Define using libm_alias_float.
26780 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26781 (frexpf): Define using libm_alias_float.
26782 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26783 libm_alias_float.
26784 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26785 <libm-alias-float.h>.
26786 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26787 libm_alias_float.
26788 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26789 <libm-alias-float.h>.
26790 (getpayloadf): Define using libm_alias_float.
26791 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26792 <libm-alias-float.h>.
26793 (llrintf): Define using libm_alias_float.
26794 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26795 <libm-alias-float.h>.
26796 (llroundf): Define using libm_alias_float.
26797 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26798 (logbf): Define using libm_alias_float.
26799 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26800 (lrintf): Define using libm_alias_float.
26801 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26802 (lroundf): Define using libm_alias_float.
26803 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26804 (modff): Define using libm_alias_float.
26805 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26806 <libm-alias-float.h>.
26807 (nearbyintf): Define using libm_alias_float.
26808 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26809 <libm-alias-float.h>.
26810 (nextafterf): Define using libm_alias_float.
26811 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26812 <libm-alias-float.h>.
26813 (nextupf): Define using libm_alias_float.
26814 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26815 <libm-alias-float.h>.
26816 (remquof): Define using libm_alias_float.
26817 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26818 (rintf): Define using libm_alias_float.
26819 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26820 <libm-alias-float.h>.
26821 (roundevenf): Define using libm_alias_float.
26822 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26823 (roundf): Define using libm_alias_float.
26824 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26825 using libm_alias_float.
26826 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26827 <libm-alias-float.h>.
26828 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26829 Define using libm_alias_float.
26830 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26831 <libm-alias-float.h>.
26832 (sincosf): Define using libm_alias_float.
26833 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26834 (sinf): Define using libm_alias_float.
26835 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26836 (tanf): Define using libm_alias_float.
26837 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26838 (tanhf): Define using libm_alias_float.
26839 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26840 <libm-alias-float.h>.
26841 (totalorderf): Define using libm_alias_float.
26842 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26843 <libm-alias-float.h>.
26844 (totalordermagf): Define using libm_alias_float.
26845 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26846 (truncf): Define using libm_alias_float.
26847 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26848 libm_alias_float.
26849 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26850 libm_alias_float.
26851
26852 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26853
26854 [BZ #22146]
26855 math/math.h: Let fpclassify use the builtin in C++ mode, even
26856 when optimazing for size.
26857
26858 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26859
26860 * csu/Makefile (generated): Do not add version-info.h.
26861 (before-compile): Likewise.
26862 (all-Banner-files): Remove variable.
26863 ($(objpfx)version-info.h): Remove rule.
26864 * csu/version.c (banner): Do not include "version-info.h".
26865 * libidn/Banner: Remove.
26866 * manual/contrib.texi (Simon Josefsson): New entry.
26867
26868 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26869
26870 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26871 Remove conditionals on LDBL_MANT_DIG.
26872 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26873 (__ieee754_lgammal_r): Likewise.
26874
26875 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26876
26877 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26878 _Float128 and L().
26879 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26880 _Float128 and L(). Replace _Float128 with long double and L(x)
26881 with xL, throughout the file.
26882 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26883 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26884 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26885 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26886
26887 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26888
26889 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26890 sysdeps/ieee754/ldbl-128ibm.
26891 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26892 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26893 of including it. Keep _Float128 and L() intact. These will be
26894 reviewed by a separate patch.
26895 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26896 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26897 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26898 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26899
26900 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26901
26902 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26903 (__finitef128): Define to __redirect___finitef128.
26904 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26905 (__isinff128): Define to __redirect___isinff128.
26906 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26907 (__isnanf128): Define to __redirect___isnanf128.
26908
26909 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26910
26911 * sysdeps/powerpc/powerpc64le/Makefile
26912 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26913 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26914
26915 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26916 Carlos O'Donell <carlos@redhat.com>
26917
26918 [BZ #22180]
26919 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
26920 * stdlib/test-dlclose-exit-race.c: New file.
26921 * stdlib/test-dlclose-exit-race-helper.c: New file.
26922 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
26923
26924 2017-09-21 Joseph Myers <joseph@codesourcery.com>
26925
26926 * crypt/Banner: Remove file.
26927 * nptl/Banner: Likewise.
26928 * resolv/Banner: Likewise.
26929 * soft-fp/Banner: Likewise.
26930 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
26931 ($(objpfx)version.d): Remove dependency on banner.h.
26932 ($(objpfx)version.os): Likewise.
26933 * nptl/version.c (banner): Do not include banner.h.
26934 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
26935 Jelinek and BIND code.
26936
26937 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26938 Carlos O'Donell <carlos@redhat.com>
26939
26940 * support/xdlfcn.h: New file.
26941 * support/xdlfcn.c: New file.
26942 * support/Makefile (libsupport-routines): Add xdlfcn.
26943 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
26944
26945 2017-09-20 Joseph Myers <joseph@codesourcery.com>
26946
26947 [BZ #20142]
26948 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26949 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
26950 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
26951 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
26952 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
26953 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
26954 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
26955 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
26956
26957 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26958 Ricky Zhou <rickyz@google.com>
26959 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26960
26961 [BZ #14333]
26962 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
26963 Remove atomics.
26964 (__new_exitfn): Fail registration when we finished at_exit processing.
26965 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
26966 * stdlib/on_exit.c (__on_exit): Likewise.
26967 * stdlib/exit.c (__exit_funcs_done): New variable.
26968 (__run_exit_handlers): Use __exit_funcs_lock.
26969 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
26970 declarations.
26971 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
26972 (test-cxa_atexit-race, test-on_exit-race): New tests.
26973 * stdlib/test-atexit-race-common.c: New file.
26974 * stdlib/test-atexit-race.c: New file.
26975 * stdlib/test-at_quick_exit-race.c: New file.
26976 * stdlib/test-cxa_atexit-race.c: New file.
26977 * stdlib/test-on_exit-race.c: New file.
26978
26979 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
26980
26981 * benchtests/Makefile: Add exp2f and log2f benchmarks.
26982 * benchtests/exp2f-inputs: Copy of expf-inputs.
26983 * benchtests/log2f-inputs: Copy of logf-inputs.
26984
26985 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26986
26987 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
26988 Explicitly take address of first element of array arguments in
26989 call to INLINE_SYSCALL.
26990
26991 2017-09-19 Andreas Schwab <schwab@suse.de>
26992
26993 [BZ #22134]
26994 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
26995 execveat first.
26996 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
26997 unimplemented.
26998 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
26999 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27000 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27001 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27002 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27003 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27004 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27005 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27006 * posix/Makefile (tests): Add tst-fexecve.
27007 * posix/tst-fexecve.c: New file.
27008
27009 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27010
27011 * benchtests/Makefile: Add logf benchmark.
27012 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27013
27014 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27015
27016 * benchtests/Makefile: Add expf benchmark.
27017 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27018
27019 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27020
27021 * csu/Makefile: Add -funwind-tables to libc-start.c.
27022 * debug/Makefile: Add -funwind-tables to backtrace.c.
27023 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27024 * sysdeps/arm/Makefile: Likewise.
27025 * sysdeps/i386/Makefile: Likewise.
27026 * sysdeps/m68k/Makefile: Likewise.
27027 * sysdeps/mips/Makefile: Likewise.
27028 * sysdeps/nios2/Makefile: Likewise.
27029 * sysdeps/sh/Makefile: Likewise.
27030 * sysdeps/sparc/Makefile: Likewise.
27031
27032 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27033
27034 * benchtests/Makefile (bench-math): Add trunc and truncf.
27035 (CFLAGS-bench-trunc.c): New variable.
27036 (CFLAGS-bench-truncf.c): Likewise.
27037 * benchtests/trunc-inputs: New file.
27038 * benchtests/truncf-inputs: Likewise.
27039
27040 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27041
27042 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27043
27044 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27045
27046 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27047 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27048 redefine.
27049 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27050 (exp10l): Define as weak alias.
27051 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27052 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27053 and redefine.
27054 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27055 (remainderl): Define as weak alias.
27056
27057 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27058 (fmal): Define using libm_alias_ldouble.
27059 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27060 (acoshl): Define using libm_alias_ldouble.
27061 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27062 (acosl): Define using libm_alias_ldouble.
27063 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27064 (asinl): Define using libm_alias_ldouble.
27065 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27066 (atan2l): Define using libm_alias_ldouble.
27067 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27068 (atanhl): Define using libm_alias_ldouble.
27069 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27070 (coshl): Define using libm_alias_ldouble.
27071 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27072 (exp10l): Define using libm_alias_ldouble.
27073 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27074 (exp2l): Define using libm_alias_ldouble.
27075 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27076 (expl): Define using libm_alias_ldouble.
27077 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27078 (fmodl): Define using libm_alias_ldouble.
27079 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27080 (hypotl): Define using libm_alias_ldouble.
27081 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27082 (j0l): Define using libm_alias_ldouble.
27083 (y0l): Likewise.
27084 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27085 (j1l): Define using libm_alias_ldouble.
27086 (y1l): Likewise.
27087 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27088 (jnl): Define using libm_alias_ldouble.
27089 (ynl): Likewise.
27090 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27091 (log10l): Define using libm_alias_ldouble.
27092 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27093 (log2l): Define using libm_alias_ldouble.
27094 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27095 (logl): Define using libm_alias_ldouble.
27096 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27097 (powl): Define using libm_alias_ldouble.
27098 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27099 (remainderl): Define using libm_alias_ldouble.
27100 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27101 (sinhl): Define using libm_alias_ldouble.
27102 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27103 (sqrtl): Define using libm_alias_ldouble.
27104 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27105 (tgammal): Define using libm_alias_ldouble.
27106 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27107 (exp10l): Do not use long_double_symbol here.
27108 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27109 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27110 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27111 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27112 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27113 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27114 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27115 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27116 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27117 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27118 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27119 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27120 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27121 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27122 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27123 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27124 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27125 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27126 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27127 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27128 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27129 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27130
27131 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27132
27133 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27134 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27135
27136 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27137
27138 * io/read.c (read): Add libc_hidden_weak.
27139 * sysdeps/mach/hurd/read.c (read): Likewise.
27140 * io/write.c (write): Likewise.
27141 * sysdeps/mach/hurd/write.c (write): Likewise.
27142 * io/pread64.c (__pread64): Likewise.
27143 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27144 * posix/pread64.c (__pread64): Add libc_hidden_def.
27145
27146 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27147
27148 * benchtests/scripts/compare_strings.py: New option -g.
27149 (draw_graph): Print a message that a graph is being generated.
27150 (process_results): Generate graph only if -g is passed.
27151 (main): Process option -g.
27152
27153 * benchtests/scripts/compare_strings.py (process_results):
27154 Better spacing for output.
27155
27156 * benchtests/scripts/compare_strings.py: Use argparse.
27157 * benchtests/README: Document existence of compare_strings.py.
27158
27159 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27160
27161 * math/s_fma.c: Include <libm-alias-double.h>.
27162 (fma): Define using libm_alias_double.
27163 * math/s_nextafter.c: Include <libm-alias-double.h>.
27164 (nextafter): Define using libm_alias_double.
27165 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27166 (acos): Define using libm_alias_double.
27167 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27168 (aocsh): Define using libm_alias_double.
27169 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27170 (asin): Define using libm_alias_double.
27171 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27172 (atan2): Define using libm_alias_double.
27173 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27174 (atanh): Define using libm_alias_double.
27175 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27176 (cosh): Define using libm_alias_double.
27177 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27178 (exp10): Define using libm_alias_double.
27179 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27180 (exp2): Define using libm_alias_double.
27181 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27182 (exp): Define using libm_alias_double.
27183 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27184 (fmod): Define using libm_alias_double.
27185 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27186 (hypot): Define using libm_alias_double.
27187 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27188 (j0): Define using libm_alias_double.
27189 (y0): Likewise.
27190 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27191 (j1): Define using libm_alias_double.
27192 (y1): Likewise.
27193 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27194 (jn): Define using libm_alias_double.
27195 (yn): Likewise.
27196 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27197 (log10): Define using libm_alias_double.
27198 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27199 (log2): Define using libm_alias_double.
27200 * math/w_log_compat.c: Include <libm-alias-double.h>.
27201 (log): Define using libm_alias_double.
27202 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27203 (pow): Define using libm_alias_double.
27204 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27205 (remainder): Define using libm_alias_double.
27206 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27207 (sinh): Define using libm_alias_double.
27208 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27209 (sqrt): Define using libm_alias_double.
27210 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27211 (tgamma): Define using libm_alias_double.
27212 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27213 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27214 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27215 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27216 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27217 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27218 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27219 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27220 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27221 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27222 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27223 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27224 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27225 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27226 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27227 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27228 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27229 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27230 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27231 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27232 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27233 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27234 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27235 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27236 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27237
27238 * math/e_acoshl.c: Remove.
27239 * math/e_acosl.c: Likewise.
27240 * math/e_asinl.c: Likewise.
27241 * math/e_atan2l.c: Likewise.
27242 * math/e_atanhl.c: Likewise.
27243 * math/e_coshl.c: Likewise.
27244 * math/e_expl.c: Likewise.
27245 * math/e_fmodl.c: Likewise.
27246 * math/e_gammal_r.c: Likewise.
27247 * math/e_hypotl.c: Likewise.
27248 * math/e_j0l.c: Likewise.
27249 * math/e_j1l.c: Likewise.
27250 * math/e_jnl.c: Likewise.
27251 * math/e_lgammal_r.c: Likewise.
27252 * math/e_log10l.c: Likewise.
27253 * math/e_log2l.c: Likewise.
27254 * math/e_logl.c: Likewise.
27255 * math/e_powl.c: Likewise.
27256 * math/e_rem_pio2l.c: Likewise.
27257 * math/e_sinhl.c: Likewise.
27258 * math/e_sqrtf128.c: Likewise.
27259 * math/e_sqrtl.c: Likewise.
27260 * math/k_cosl.c: Likewise.
27261 * math/k_sinl.c: Likewise.
27262 * math/k_tanl.c: Likewise.
27263 * math/s_asinhl.c: Likewise.
27264 * math/s_atanl.c: Likewise.
27265 * math/s_cbrtl.c: Likewise.
27266 * math/s_erfl.c: Likewise.
27267 * math/s_expm1l.c: Likewise.
27268 * math/s_log1pl.c: Likewise.
27269 * math/s_tanhl.c: Likewise.
27270
27271 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27272
27273 [BZ #21745]
27274 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27275 [$(subdir) = math] (sysdep_calls): New variable. Has the
27276 previous contents of sysdep_routines, but re-sorted..
27277 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27278 sysdep_calls.
27279 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27280 defined in sysdep_calls and replace by the respective m_* names.
27281 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27282 (compat_symbol): Undefine to avoid duplicated compat symbols in
27283 libc.
27284
27285 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27286
27287 * math/s_fmaf.c: Include <libm-alias-float.h>.
27288 (fmaf): Define using libm_alias_float.
27289 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27290 (acosf): Define using libm_alias_float.
27291 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27292 (acoshf): Define using libm_alias_float.
27293 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27294 (asinf): Define using libm_alias_float.
27295 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27296 (atan2f): Define using libm_alias_float.
27297 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27298 (atanhf): Define using libm_alias_float.
27299 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27300 (coshf): Define using libm_alias_float.
27301 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27302 (exp10f): Define using libm_alias_float.
27303 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27304 (fmodf): Define using libm_alias_float.
27305 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27306 (hypotf): Define using libm_alias_float.
27307 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27308 (j0f): Define using libm_alias_float.
27309 (y0f): Likewise.
27310 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27311 (j1f): Define using libm_alias_float.
27312 (y1f): Likewise.
27313 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27314 (jnf): Define using libm_alias_float.
27315 (ynf): Likewise.
27316 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27317 (log10f): Define using libm_alias_float.
27318 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27319 (log2f): Define using libm_alias_float.
27320 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27321 (logf): Define using libm_alias_float.
27322 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27323 (powf): Define using libm_alias_float.
27324 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27325 (remainderf): Define using libm_alias_float.
27326 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27327 (sinhf): Define using libm_alias_float.
27328 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27329 (sqrtf): Define using libm_alias_float.
27330 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27331 (tgammaf): Define using libm_alias_float.
27332
27333 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27334
27335 * include/math.h (roundeven): Change hidden_proto call to
27336 __roundeven.
27337 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27338 alias.
27339 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27340 (y0): Rename to __y0 and define as weak alias.
27341 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27342 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27343 alias.
27344 (y0f): Rename to __y0f and define as weak alias.
27345 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27346 alias.
27347 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27348 (y1): Rename to __y1 and define as weak alias.
27349 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27350 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27351 alias.
27352 (y1f): Rename to __y1f and define as weak alias.
27353 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27354 alias.
27355 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27356 (yn): Rename to __yn and define as weak alias.
27357 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27358 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27359 alias.
27360 (ynf): Rename to __ynf and define as weak alias.
27361 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27362 (fromfp): Define as weak alias.
27363 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27364 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27365 (fromfpx): Define as weak alias.
27366 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27367 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27368 __getpayload and define as weak alias.
27369 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27370 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27371 __roundeven and define as weak alias.
27372 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27373 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27374 __setpayload.
27375 (setpayload): Define as weak alias.
27376 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27377 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27378 __setpayloadsig.
27379 (setpayloadsig): Define as weak alias.
27380 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27381 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27382 __totalorder and define as weak alias.
27383 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27384 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27385 to __totalordermag and define as weak alias.
27386 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27387 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27388 (ufromfp): Define as weak alias.
27389 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27390 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27391 __ufromfpx.
27392 (ufromfpx): Define as weak alias.
27393 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27394 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27395 Rename to __getpayload and define as weak alias.
27396 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27397 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27398 Rename to __roundeven and define as weak alias.
27399 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27400 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27401 Rename to __totalorder and define as weak alias.
27402 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27403 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27404 (totalordermag): Rename to __totalordermag and define as weak
27405 alias.
27406 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27407 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27408 macro.
27409 (__roundevenl): Likewise.
27410 (__totalorderl): Likewise.
27411 (__totalordermagl): Likewise
27412 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27413 __fromfpf128.
27414 (fromfpf128): Define as weak alias.
27415 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27416 __fromfpxf128.
27417 (fromfpxf128): Define as weak alias.
27418 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27419 __setpayloadf128.
27420 (setpayloadf128): Define as weak alias.
27421 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27422 __setpayloadsigf128.
27423 (setpayloadsigf128): Define as weak alias.
27424 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27425 __ufromfpf128.
27426 (ufromfpf128): Define as weak alias.
27427 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27428 __ufromfpxf128.
27429 (ufromfpxf128): Define as weak alias.
27430 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27431 (fromfpf): Define as weak alias.
27432 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27433 __fromfpxf.
27434 (fromfpxf): Define as weak alias.
27435 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27436 __getpayloadf and define as weak alias.
27437 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27438 __roundevenf and define as weak alias.
27439 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27440 __setpayloadf.
27441 (setpayloadf): Define as weak alias.
27442 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27443 __setpayloadsigf.
27444 (setpayloadsigf): Define as weak alias.
27445 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27446 __totalorderf and define as weak alias.
27447 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27448 Rename to __totalordermagf and define as weak alias.
27449 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27450 __ufromfpf.
27451 (ufromfpf): Define as weak alias.
27452 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27453 __ufromfpxf.
27454 (ufromfpxf): Define as weak alias.
27455 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27456 __fromfpl.
27457 (fromfpl): Define as weak alias.
27458 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27459 __fromfpxl.
27460 (fromfpxl): Define as weak alias.
27461 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27462 to __getpayloadl and define as weak alias.
27463 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27464 __roundevenl and define as weak alias.
27465 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27466 __setpayloadl.
27467 (setpayloadl): Define as weak alias.
27468 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27469 __setpayloadsigl.
27470 (setpayloadsigl): Define as weak alias.
27471 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27472 to __totalorderl and define as weak alias.
27473 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27474 Rename to __totalordermagl and define as weak alias.
27475 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27476 __ufromfpl.
27477 (ufromfpl): Define as weak alias.
27478 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27479 __ufromfpxl.
27480 (ufromfpxl): Define as weak alias.
27481 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27482 __fromfpl.
27483 (fromfpl): Define as weak alias.
27484 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27485 __fromfpxl.
27486 (fromfpxl): Define as weak alias.
27487 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27488 Rename to __getpayloadl and define as weak alias.
27489 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27490 to __roundevenl and define as weak alias. Call __roundeven
27491 instead of roundeven.
27492 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27493 __setpayloadl.
27494 (setpayloadl): Define as weak alias.
27495 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27496 __setpayloadsigl.
27497 (setpayloadsigl): Define as weak alias.
27498 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27499 Rename to __totalorderl and define as weak alias.
27500 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27501 Rename to __totalordermagl and define as weak alias.
27502 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27503 __ufromfpl.
27504 (ufromfpl): Define as weak alias.
27505 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27506 __ufromfpxl.
27507 (ufromfpxl): Define as weak alias.
27508 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27509 __fromfpl.
27510 (fromfpl): Define as weak alias.
27511 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27512 __fromfpxl.
27513 (fromfpxl): Define as weak alias.
27514 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27515 __getpayloadl and define as weak alias.
27516 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27517 __roundevenl and define as weak alias.
27518 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27519 __setpayloadl.
27520 (setpayloadl): Define as weak alias.
27521 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27522 __setpayloadsigl.
27523 (setpayloadsigl): Define as weak alias.
27524 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27525 __totalorderl and define as weak alias.
27526 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27527 Rename to __totalordermagl and define as weak alias.
27528 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27529 __ufromfpl.
27530 (ufromfpl): Define as weak alias.
27531 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27532 __ufromfpxl.
27533 (ufromfpxl): Define as weak alias.
27534
27535 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27536
27537 * benchtests/bench-string.h (realloc_bufs): New function.
27538 (test_init): Call it.
27539 * benchtests/bench-memset-large.c (do_test): Likewise.
27540 * benchtests/bench-memset.c (do_test): Likewise.
27541
27542 * benchtests/bench-memset-large.c: Print output in JSON
27543 format.
27544 * benchtests/bench-memset.c: Likewise.
27545
27546 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27547
27548 [BZ #21084]
27549 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27550 * iconvdata/Makefile: Add IBM858.
27551 * iconvdata/gconv-modules: Likewise.
27552 * iconvdata/tst-tables.sh: Likewise.
27553 * iconvdata/ibm858.c: New file.
27554 * localedata/charmaps/IBM858: Likewise.
27555
27556 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27557
27558 [BZ #22023]
27559 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27560 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27561
27562 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27563
27564 [BZ #22112]
27565 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27566 and add tel_int_fmt.
27567
27568 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27569
27570 * sysdeps/generic/libm-alias-float128.h: New file.
27571 * sysdeps/generic/math-type-macros-float128.h: Include
27572 <libm-alias-float128.h>.
27573 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27574
27575 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27576
27577 * sysdeps/generic/libm-alias-ldouble.h: New file.
27578 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27579 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27580 * sysdeps/generic/math-type-macros-ldouble.h: Include
27581 <libm-alias-ldouble.h>.
27582 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27583 libm_alias_ldouble.
27584
27585 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27586
27587 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27588 * math/w_exp_compat.c: ... here.
27589 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27590 * math/w_expf_compat.c: ... here.
27591 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27592 * math/w_expl_compat.c: ... here.
27593 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27594 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27595 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27596 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27597
27598 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27599
27600 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27601 redefine.
27602 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27603 macro.
27604 (ldexpl): Only define as compat symbol for libc, not libm.
27605 (scalbnl): Define as compat symbol for libc here.
27606 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27607 define for [IS_IN (libc)].
27608 (__ldexpl_2): Remove alias.
27609 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27610 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27611 name in long_double_symbol call.
27612 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27613 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27614 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27615 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27616 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27617 Remove macro.
27618 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27619 Define as compat symbol.
27620
27621 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27622
27623 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27624 * sysdeps/unix/sysv/linux/alpha/Makefile
27625 [$(subdir) = csu] (sysdep_routines): Remove rule.
27626
27627 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27628
27629 * sysdeps/generic/libm-alias-double.h: New file.
27630 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27631 * sysdeps/generic/math-type-macros-double.h: Include
27632 <libm-alias-double.h>.
27633 [declare_mgen_alias] (declare_mgen_alias): Define to use
27634 libm_alias_double.
27635 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27636 (M_LIBM_NEED_COMPAT): Remove macro.
27637 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27638 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27639 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27640 code.
27641 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27642 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27643 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27644 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27645 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27646 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27647 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27648 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27649 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27650 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27651 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27652 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27653 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27654 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27655 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27656 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27657 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27658 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27659 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27660 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27661 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27662 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27663 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27664 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27665 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27666 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27667 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27668 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27669 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27670 macro.
27671 (declare_mgen_alias): New macro.
27672 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27673 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27674 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27675 (M_LIBM_NEED_COMPAT): Remove macro.
27676 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27677 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27678 <first-versions.h>.
27679 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27680 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27681
27682 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27683
27684 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27685 (declare_mgen_alias_2): Remove.
27686 * sysdeps/generic/math-type-macros-double.h
27687 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27688 Likewise.
27689 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27690 alias.
27691 (ldexp): Define with declare_mgen_alias.
27692 (scalbn): Likewise.
27693
27694 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27695
27696 * grp/initgroups.c: Include config.h.
27697 (DEFAULT_CONFIG): New macro.
27698 (internal_getgrouplist): Use DEFAULT_CONFIG.
27699 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27700 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27701 (DEFAULT_DEFCONFIG): New macro.
27702 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27703 * nss/grp-lookup.c: Include config.h
27704 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27705 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27706 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27707 * manual/nss.texi: Update default values section.
27708
27709 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27710
27711 [BZ #21967]
27712 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27713 New.
27714 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27715 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27716 Handle MathVec_Prefer_No_AVX512.
27717 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27718 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27719 is set.
27720
27721 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27722
27723 * posix/sched_primax.c (__sched_get_priority_max): Add
27724 libc_hidden_def.
27725 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27726 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27727 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27728 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27729 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27730 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27731 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27732 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27733 Add aliases.
27734
27735 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27736
27737 * sysdeps/generic/libm-alias-float.h: New file.
27738 * sysdeps/generic/math-type-macros-float.h: Include
27739 <libm-alias-float.h>.
27740 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27741
27742 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27743
27744 [BZ #22093]
27745 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27746 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27747 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27748 (HWCAP_IMPORTANT): Likewise.
27749 (HWCAP_X86_64): New enum.
27750 (HWCAP_X86_AVX512_1): Updated.
27751 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27752 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27753 (modules-names): Add x86_64/tst-x86_64mod-1.
27754 (LDFLAGS-tst-x86_64mod-1.so): New.
27755 ($(objpfx)tst-x86_64-1): Likewise.
27756 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27757 (tst-x86_64-1-clean): Likewise.
27758 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27759 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27760
27761 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27762
27763 * po/sv.po: Update translations.
27764 * po/fr.po: Likewise.
27765
27766 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27767
27768 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27769 seconds.
27770 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27771 seconds.
27772 * elf/rtld-Rules: Fix $(error) use.
27773
27774 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27775
27776 [BZ #14925]
27777 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27778 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27779 * localedata/locales/bn_BD: “Bengali” was still used in some
27780 comments. Change it to “Bangla”.
27781
27782 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27783
27784 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27785
27786 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27787
27788 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27789 thunderx2t99p1 to list of cpu names.
27790 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27791 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27792
27793 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27794
27795 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27796 Use strcmp instead of tunable_is_name.
27797
27798 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27799
27800 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27801 (F_GET_RW_HINT): New macro.
27802 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27803 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27804 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27805 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27806 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27807 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27808 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27809 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27810 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27811
27812 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27813 (F_ADD_SEALS): New macro.
27814 [__USE_GNU] (F_GET_SEALS): Likewise.
27815 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27816 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27817 [__USE_GNU] (F_SEAL_GROW): Likewise.
27818 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27819
27820 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27821
27822 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27823 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27824 * posix/glob_internal.h (__glob_pattern_type):
27825 * posix/glob.c (glob):
27826 * posix/glob_pattern_p.c (__glob_pattern_p):
27827 Use them.
27828
27829 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27830 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27831 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27832 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27833 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27835 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27836 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27837 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27838 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27839 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27840 * sysdeps/wordsize-64/glob.c: Likewise.
27841 * sysdeps/wordsize-64/glob64.c: Likewise.
27842 * sysdeps/wordsize-64/globfree.c: Likewise.
27843 * sysdeps/wordsize-64/globfree64.c: Likewise.
27844 * sysdeps/unix/sysv/linux/glob.c: New file.
27845 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27846 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27847 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27848 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27849 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27850 adds !GLOB_NO_OLD_VERSION as an extra condition.
27851 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27852 using relative path instead of absolute one.
27853 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27854 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27855 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27856 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27857 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27858 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27859
27860 [BZ #1062]
27861 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27862 (glob): Use the same scratch buffer for both getlogin_r and
27863 getpwnam_r. Don’t require preallocation of the login name. This
27864 simplifies storage allocation, and corrects the handling of
27865 long login names.
27866
27867 [BZ #1062]
27868 * posix/glob.c (glob): Port recent patches to platforms
27869 lacking getpwnam_r.
27870 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27871 returns an error number rather than setting errno.
27872
27873 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27874 instead of GCC extension.
27875 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27876 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27877 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27878
27879 [BZ #866]
27880 [BZ #1062]
27881 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27882 * posix/bug-glob1.c: Remove file.
27883 * posix/tst-glob_symlinks.c: New file.
27884 * posix/glob.c (__lstat64): New macro.
27885 (is_dir): New function.
27886 (glob, glob_in_dir): Match symlinks even if they are dangling.
27887 (link_stat, link_exists_p): Remove. All uses removed.
27888
27889 [BZ #1062]
27890 [BZ #19971]
27891 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27892 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27893 All uses removed.
27894
27895 [BZ #1062]
27896 CVE-2017-15671
27897 * posix/Makefile (routines): Add globfree, globfree64, and
27898 glob_pattern_p.
27899 * posix/flexmember.h: New file.
27900 * posix/glob_internal.h: Likewise.
27901 * posix/glob_pattern_p.c: Likewise.
27902 * posix/globfree.c: Likewise.
27903 * posix/globfree64.c: Likewise.
27904 * sysdeps/gnu/globfree64.c: Likewise.
27905 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27906 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27907 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27908 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27909 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27910 * sysdeps/wordsize-64/globfree.c: Likewise.
27911 * sysdeps/wordsize-64/globfree64.c: Likewise.
27912 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27913 [NDEBUG): Remove comments.
27914 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27915 (dirent_type): New type. Use uint_fast8_t not
27916 uint8_t, as C99 does not require uint8_t.
27917 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
27918 (struct readdir_result): Use dirent_type. Do not define skip_entry
27919 unless it is needed; this saves a byte on platforms lacking d_ino.
27920 (readdir_result_type, readdir_result_skip_entry):
27921 New functions, replacing ...
27922 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
27923 these functions, which were removed. This makes the callers
27924 easier to read. All callers changed.
27925 (D_INO_TO_RESULT): Now empty if there is no d_ino.
27926 (size_add_wrapv, glob_use_alloca): New static functions.
27927 (glob, glob_in_dir): Check for size_t overflow in several places,
27928 and fix some size_t checks that were not quite right.
27929 Remove old code using SHELL since Bash no longer
27930 uses this.
27931 (glob, prefix_array): Separate MS code better.
27932 (glob_in_dir): Remove old Amiga and VMS code.
27933 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
27934 separate files.
27935 (glob_in_dir): Do not rely on undefined behavior in accessing
27936 struct members beyond their bounds. Use a flexible array member
27937 instead
27938 (link_stat): Rename from link_exists2_p and return -1/0 instead of
27939 0/1. Caller changed.
27940 (glob): Fix memory leaks.
27941 * posix/glob64 (globfree64): Move to separate file.
27942 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
27943 (globfree64): Remove hidden alias.
27944 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
27945 oldglob.
27946 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
27947 separate file.
27948 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
27949 define.
27950 Move compat code to separate file.
27951 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
27952 separate file.
27953
27954 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
27955
27956 * resolv/tst-resolv-qtypes.c (domain): Changed to
27957 "const char domain[] =".
27958
27959 2017-09-07 Joseph Myers <joseph@codesourcery.com>
27960
27961 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
27962 version to 3.1.6.
27963
27964 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
27965 (TCP_MD5SIG_EXT): Likewise.
27966 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
27967 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
27968 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
27969
27970 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
27971
27972 2017-09-07 Mike FABIAN <mfabian@redhat.com>
27973
27974 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
27975
27976 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
27977
27978 [BZ #22100]
27979 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
27980
27981 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
27982
27983 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
27984 before assuming that the file is empty. Avoid testing buffer content
27985 when nread == 0.
27986
27987 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27988
27989 [BZ #18858]
27990 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27991 Remove define.
27992 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
27993 Likewise.
27994 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
27995 Likewise.
27996 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
27997 Likewise.
27998 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27999 Likewise.
28000 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28001 Likewise.
28002 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28003 Likewise.
28004
28005 2017-09-06 Florian Weimer <fweimer@redhat.com>
28006
28007 * malloc/dynarray_emplace_enlarge.c
28008 (__libc_dynarray_emplace_enlarge): Add missing else.
28009
28010 2017-09-06 Florian Weimer <fweimer@redhat.com>
28011
28012 [BZ #22096]
28013 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28014 case of failure to obtain the global conf object.
28015
28016 2017-09-06 Florian Weimer <fweimer@redhat.com>
28017
28018 [BZ #22095]
28019 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28020 dynarray allocation failure.
28021
28022 2017-09-06 Florian Weimer <fweimer@redhat.com>
28023
28024 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28025 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28026 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28027 New functions.
28028 (response): Call them. Add 'p', '6' flag processing.
28029 (test_reverse): New function.
28030 (test_get2_any): Call it.
28031 (test_no_inet6): Add 'p' test.
28032 (test_inet6): Likewise.
28033
28034 2017-09-06 Florian Weimer <fweimer@redhat.com>
28035
28036 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28037 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28038 the QNAME.
28039 (test_gai): Adjust query names. Add additional tests.
28040 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28041 test_get2. Adjust query names. Add additional tests.
28042 (test_no_inet6): New function, extracted from threadfunc.
28043 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28044 Add additional tests.
28045
28046 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28047
28048 [BZ #22070]
28049 * localedata/unicode-gen/utf8_gen.py: Set the width for
28050 characters with Prepended_Concatenation_Mark property to 1
28051 * localedata/charmaps/UTF-8: Updated using the improved script.
28052
28053 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28054
28055 [BZ #21750]
28056 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28057 use the range notation for all ranges of neighbouring characters
28058 with the same width.
28059
28060 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28061
28062 * sysdeps/generic/math-type-macros-double.h: Include
28063 <math-svid-compat.h>.
28064 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28065 * sysdeps/generic/math-type-macros-float.h: Include
28066 <math-svid-compat.h>.
28067 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28068 * sysdeps/generic/math-type-macros-ldouble.h: Include
28069 <math-svid-compat.h>.
28070 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28071 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28072 condition.
28073 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28074 * math/w_acosf_compat.c: Likewise.
28075 * math/w_acosh_compat.c: Likewise.
28076 * math/w_acoshf_compat.c: Likewise.
28077 * math/w_acoshl_compat.c: Likewise.
28078 * math/w_acosl_compat.c: Likewise.
28079 * math/w_asin_compat.c: Likewise.
28080 * math/w_asinf_compat.c: Likewise.
28081 * math/w_asinl_compat.c: Likewise.
28082 * math/w_atan2_compat.c: Likewise.
28083 * math/w_atan2f_compat.c: Likewise.
28084 * math/w_atan2l_compat.c: Likewise.
28085 * math/w_atanh_compat.c: Likewise.
28086 * math/w_atanhf_compat.c: Likewise.
28087 * math/w_atanhl_compat.c: Likewise.
28088 * math/w_cosh_compat.c: Likewise.
28089 * math/w_coshf_compat.c: Likewise.
28090 * math/w_coshl_compat.c: Likewise.
28091 * math/w_exp10_compat.c: Likewise.
28092 * math/w_exp10f_compat.c: Likewise.
28093 * math/w_exp10l_compat.c: Likewise.
28094 * math/w_exp2_compat.c: Likewise.
28095 * math/w_exp2f_compat.c: Likewise.
28096 * math/w_exp2l_compat.c: Likewise.
28097 * math/w_fmod_compat.c: Likewise.
28098 * math/w_fmodf_compat.c: Likewise.
28099 * math/w_fmodl_compat.c: Likewise.
28100 * math/w_hypot_compat.c: Likewise.
28101 * math/w_hypotf_compat.c: Likewise.
28102 * math/w_hypotl_compat.c: Likewise.
28103 * math/w_j0_compat.c: Likewise.
28104 * math/w_j0f_compat.c: Likewise.
28105 * math/w_j0l_compat.c: Likewise.
28106 * math/w_j1_compat.c: Likewise.
28107 * math/w_j1f_compat.c: Likewise.
28108 * math/w_j1l_compat.c: Likewise.
28109 * math/w_jn_compat.c: Likewise.
28110 * math/w_jnf_compat.c: Likewise.
28111 * math/w_jnl_compat.c: Likewise.
28112 * math/w_lgamma_r_compat.c: Likewise.
28113 * math/w_lgammaf_r_compat.c: Likewise.
28114 * math/w_lgammal_r_compat.c: Likewise.
28115 * math/w_log10_compat.c: Likewise.
28116 * math/w_log10f_compat.c: Likewise.
28117 * math/w_log10l_compat.c: Likewise.
28118 * math/w_log2_compat.c: Likewise.
28119 * math/w_log2f_compat.c: Likewise.
28120 * math/w_log2l_compat.c: Likewise.
28121 * math/w_log_compat.c: Likewise.
28122 * math/w_logf_compat.c: Likewise.
28123 * math/w_logl_compat.c: Likewise.
28124 * math/w_pow_compat.c: Likewise.
28125 * math/w_powf_compat.c: Likewise.
28126 * math/w_powl_compat.c: Likewise.
28127 * math/w_remainder_compat.c: Likewise.
28128 * math/w_remainderf_compat.c: Likewise.
28129 * math/w_remainderl_compat.c: Likewise.
28130 * math/w_sinh_compat.c: Likewise.
28131 * math/w_sinhf_compat.c: Likewise.
28132 * math/w_sinhl_compat.c: Likewise.
28133 * math/w_sqrt_compat.c: Likewise.
28134 * math/w_sqrtf_compat.c: Likewise.
28135 * math/w_sqrtl_compat.c: Likewise.
28136 * math/w_tgamma_compat.c: Likewise.
28137 * math/w_tgammaf_compat.c: Likewise.
28138 * math/w_tgammal_compat.c: Likewise.
28139 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28140 [LIBM_SVID_COMPAT].
28141 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28142 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28143 [LIBM_SVID_COMPAT].
28144 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28145 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28146 [LIBM_SVID_COMPAT].
28147 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28148 * sysdeps/i386/fpu/w_sqrt.c: New file.
28149 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28150 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28151 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28152 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28153 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28154 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28155 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28156 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28157 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28158 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28159 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28160 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28161 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28162 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28163 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28164 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28165 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28166 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28167 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28168 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28169 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28170 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28171 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28172 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28173 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28174 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28175 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28176 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28177 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28178 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28179 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28180 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28181 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28182 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28183 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28184 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28185 * sysdeps/ia64/fpu/w_log.c: Likewise.
28186 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28187 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28188 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28189 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28190 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28191 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28192 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28193 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28194 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28195 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28196 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28197 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28198 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28199 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28200 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28201 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28202 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28203 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28204 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28205 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28206 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28207 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28208 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28209 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28210 [LIBM_SVID_COMPAT].
28211 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28212 * sysdeps/ieee754/k_standard.c: Likewise.
28213 * sysdeps/ieee754/k_standardf.c: Likewise.
28214 * sysdeps/ieee754/k_standardl.c: Likewise.
28215 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28216 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28217 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28218 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28219 long_double_symbol call on [LIBM_SVID_COMPAT].
28220 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28221 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28222 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28223 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28224 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28225 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28226 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28227 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28228 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28229 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28230 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28231 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28232 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28233 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28234 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28235 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28236 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28237 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28238 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28239 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28240 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28241 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28242
28243 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28244
28245 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28246 * malloc/tst-mallocstate.c: Convert from test-skeleton
28247 to test-driver. Ifdef code using TEST_COMPAT macro.
28248 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28249 * math/test-matherr.c: Likewise.
28250
28251 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28252
28253 [BZ #22086]
28254 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28255 comparing word with byte-swapped constant.
28256
28257 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28258
28259 [BZ #20498]
28260 * locale/iso-639.def: add Miskito.
28261 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28262 * localedata/locales/miq_NI: New file.
28263
28264 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28265
28266 [BZ #18822]
28267 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28268 (__mkdir): Likewise.
28269 * io/chmod.c (__chmod): Add libc_hidden_def.
28270 * io/mkdir.c (__mkdir): Likewise.
28271 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28272 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28273 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28274 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28275
28276 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28277
28278 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28279 version to 4.13.
28280
28281 [BZ #22082]
28282 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28283 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28284
28285 2017-09-04 Florian Weimer <fweimer@redhat.com>
28286
28287 * math/math.h: Issue warning if log is defined.
28288
28289 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28290
28291 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28292 kernel version to 4.13.
28293
28294 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28295
28296 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28297 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28298 parameter.
28299 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28300 just <bits/types.h>.
28301 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28302 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28303 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28304 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28305 * misc/preadv2.c: Include <errno.h>.
28306 * misc/preadv64v2.c: Include <errno.h>.
28307 * misc/pwritev2.c: Include <errno.h>.
28308 * misc/pwritev64v2.c: Include <errno.h>.
28309 * sysdeps/posix/preadv2.c: Include <errno.h>.
28310 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28311 Fix <unistd.h> inclusion.
28312 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28313 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28314 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28315 __strtoul_internal): New functions.
28316 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28317 * sysdeps/posix/system.c: Include <sigsetops.h>.
28318 * sysdeps/mach/hurd/i386/Makefile
28319 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28320 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28321 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28322 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28323 __feraiseexcept_renamed to feraiseexcept instead of
28324 __GI_feraiseexcept.
28325 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28326 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28327 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28328 RWF_NOWAIT): Define to 0 if undefined already.
28329 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28330 boils down to 0.
28331 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28332 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28333
28334 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28335
28336 * manual/math.texi (pow10): Do not document.
28337 (pow10f): Likewise.
28338 (pow10l): Likewise.
28339 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28340 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28341 * math/libm-test-exp10.inc (pow10_test): Remove.
28342 (do_test): Do not call pow10.
28343 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28344 [NO_LONG_DOUBLE] (pow10l): Likewise.
28345 * math/w_exp10f_compat.c (pow10f): Likewise.
28346 * math/w_exp10l_compat.c (pow10l): Likewise.
28347 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28348 (pow10): Make into compat symbol.
28349 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28350 (pow10f): Make into compat symbol.
28351 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28352 (pow10l): Make into compat symbol.
28353 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28354 pow10.
28355 (CFLAGS-nldbl-pow10.c): Remove variable..
28356 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28357 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28358 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28359 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28360 Undefine and redefine.
28361 (pow10l): Make into compat symbol.
28362 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28363 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28364 * sysdeps/arm/libm-test-ulps: Likewise.
28365 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28366 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28367 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28368 * sysdeps/microblaze/libm-test-ulps: Likewise.
28369 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28370 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28371 * sysdeps/nios2/libm-test-ulps: Likewise.
28372 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28373 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28374 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28375 * sysdeps/sh/libm-test-ulps: Likewise.
28376 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28377 * sysdeps/tile/libm-test-ulps: Likewise.
28378 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28379
28380 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28381
28382 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28383
28384 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28385
28386 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28387 "../ChangeLog.old/ChangeLog.8".
28388 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28389 "../ChangeLog.old/ChangeLog.14".
28390
28391 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28392
28393 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28394 Threads Library.
28395
28396 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28397
28398 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28399
28400 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28401
28402 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28403 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28404
28405 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28406
28407 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28408 32 atexit handlers.
28409
28410 2017-09-01 Zack Weinberg <zackw@panix.com>
28411
28412 * math/math.h (HUGE_VAL): Improve commentary.
28413
28414 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28415 Andreas Schwab <schwab@suse.de>
28416
28417 [BZ #21530]
28418 * include/stdio.h (__gen_tempfd): New function.
28419 * stdio-common/Makefile (routines): Add gentempfd.
28420 * stdio-common/gentempfd.c: New file.
28421 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28422 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28423 unnamed file first.
28424
28425 2017-09-01 Florian Weimer <fweimer@redhat.com>
28426
28427 [BZ #21915]
28428 [BZ #21922]
28429 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28430 result to determine success or failure, not the errno value.
28431 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28432 (tst-nss-files-hosts-erange): Link with -ldl.
28433 * nss/tst-nss-files-hosts-erange.c: New file.
28434 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28435 (do_test): Add NO_DATA tests.
28436 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28437 (do_test): Call it.
28438
28439 2017-09-01 Florian Weimer <fweimer@redhat.com>
28440
28441 [BZ #21922]
28442 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28443 coming from gethostbyname2_r.
28444
28445 2017-09-01 Florian Weimer <fweimer@redhat.com>
28446
28447 * support/namespace.h (struct support_chroot_configuration): Add
28448 hosts, host_conf.
28449 (struct support_chroot): Add path_hosts, path_host_conf.
28450 * support/support_chroot.c (write_file): New function.
28451 (support_chroot_create): Call it to process /etc/resolv.conf,
28452 /etc/hosts, /etc/host.conf.
28453 (support_chroot_free): Update.
28454
28455 2017-09-01 Florian Weimer <fweimer@redhat.com>
28456
28457 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28458 status indicates it is set.
28459
28460 2017-09-01 Florian Weimer <fweimer@redhat.com>
28461
28462 [BZ #20532]
28463 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28464 function lookup failures more reliable.
28465
28466 2017-09-01 Florian Weimer <fweimer@redhat.com>
28467
28468 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28469 (getcanonname): Likewise.
28470 (gaih_inet): Likewise.
28471
28472 2017-09-01 Florian Weimer <fweimer@redhat.com>
28473
28474 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28475 (getcanonname): Likewise.
28476 (gaih_inet): Likewise.
28477
28478 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28479 Richard Henderson <rth@twiddle.net>
28480
28481 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28482 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28483 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28484 (IREG_SIZE, OREG_SIZE): New macros.
28485 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28486 (IREG_SIZE, OREG_SIZE): New macros.
28487 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28488 (IREG_SIZE): New macro.
28489 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28490 (IREG_SIZE): New macro.
28491 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28492 New includes.
28493 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28494 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28495 (__CONCATX): Handle exceptions correctly on large values that may
28496 set FE_INVALID.
28497 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28498 Initialize if not already set.
28499 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28500
28501 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28502
28503 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28504 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28505 Likewise.
28506 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28507 Likewise.
28508 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28509 Likewise.
28510 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28511 Likewise.
28512 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28513 Likewise.
28514 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28515 Likewise.
28516 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28517 Likewise.
28518 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28519 (NO_CANCELLATION): Likewise.
28520 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28521 Likewise.
28522 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28523 Likewise.
28524 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28525 Likewise.
28526 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28527 (NO_CANCELLATION): Likewise.
28528 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28529 (NO_CANCELLATION): Likewise.
28530 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28531 Likewise
28532 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28533 Likewise.
28534 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28535 Likewise.
28536 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28537 Likewise.
28538 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28539 hidden prototype.
28540 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28541 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28542
28543 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28544
28545 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28546 in resolver call.
28547
28548 2017-08-31 Florian Weimer <fweimer@redhat.com>
28549
28550 * include/libc-symbols.h (internal_function): Remove.
28551
28552 2017-08-31 Florian Weimer <fweimer@redhat.com>
28553
28554 * stdlib/fmtmsg.c (internal_addseverity): Remove
28555 internal_function.
28556
28557 2017-08-31 Florian Weimer <fweimer@redhat.com>
28558
28559 * stdio-common/printf_fp.c (group_number): Remove
28560 internal_function.
28561 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28562
28563 2017-08-31 Florian Weimer <fweimer@redhat.com>
28564
28565 * posix/fnmatch.c (internal_function): Remove definition.
28566 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28567 * posix/regcomp.c (peek_token, init_word_char)
28568 (duplicate_node_closure, fetch_token, peek_token)
28569 (peek_token_bracket, build_range_exp, build_collating_symbol):
28570 Likewise.
28571 * posix/regex_internal.c (re_string_construct_common)
28572 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28573 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28574 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28575 (re_string_translate_buffer, re_string_reconstruct)
28576 (re_string_peek_byte_case, re_string_fetch_byte_case)
28577 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28578 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28579 (re_node_set_add_intersect, re_node_set_init_union)
28580 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28581 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28582 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28583 (re_acquire_state_context): Likewise.
28584 * posix/regex_internal.h (internal_function): Remove definition.
28585 (re_string_realloc_buffers, build_wcs_buffer)
28586 (build_wcs_upper_buffer, build_upper_buffer)
28587 (re_string_translate_buffer, re_string_context_at)
28588 (re_string_char_size_at, re_string_wchar_at)
28589 (re_string_elem_size_at): Likewise.
28590 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28591 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28592 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28593 (re_search_internal, re_search_2_stub, re_search_stub)
28594 (re_copy_regs, prune_impossible_nodes, check_matching)
28595 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28596 (free_fail_stack_return, sift_states_iter_mb)
28597 (sift_states_backward, build_sifted_states)
28598 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28599 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28600 (check_subexp_limits, sift_states_bkref, merge_state_array)
28601 (find_recover_state, transit_state, merge_state_with_log)
28602 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28603 (transit_state_mb, transit_state_bkref, get_subexp)
28604 (get_subexp_sub, find_subexp_node, check_arrival)
28605 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28606 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28607 (check_node_accept_bytes, find_collation_sequence_value)
28608 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28609 (acquire_init_state_context, check_halt_node_context)
28610 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28611 (sub_epsilon_src_nodes): Likewise.
28612 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28613 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28614 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28615 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28616 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28617 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28618 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28619 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28620 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28621 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28622 (PREADV): Likewise.
28623 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28624 (PREADV): Likewise.
28625 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28626 (PWRITEV): Likewise.
28627 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28628 (PWRITEV): Likewise.
28629 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28630 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28631
28632 2017-08-31 Florian Weimer <fweimer@redhat.com>
28633
28634 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28635 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28636 Remove internal_function.
28637 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28638 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28639 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28640 (__deallocate_stack, __libc_pthread_init)
28641 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28642 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28643 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28644 Likewise.
28645 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28646 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28647 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28648 Likewise.
28649 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28650 (__pthread_mutex_unlock_usercnt): Likewise.
28651
28652 2017-08-31 Florian Weimer <fweimer@redhat.com>
28653
28654 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28655 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28656 (fts_safe_changedir): Remove internal_function.
28657 * io/ftw.c (internal_function): Remove definition.
28658 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28659
28660 2017-08-31 Florian Weimer <fweimer@redhat.com>
28661
28662 * inet/deadline.c (__deadline_current_time)
28663 (__deadline_from_timeval, __deadline_to_ms): Remove
28664 internal_function.
28665 * inet/getnameinfo.c (nrl_domainname): Likewise.
28666 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28667 * inet/inet6_option.c (add_pad): Likewise.
28668 * inet/net-internal.h (__deadline_current_time)
28669 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28670 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28671 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28672 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28673
28674 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28675
28676 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28677 include <bits/nan.h>.
28678 * math/Makefile (headers): Remove bits/nan.h.
28679 * bits/nan.h: Remove.
28680 * sysdeps/ieee754/bits/nan.h: Likewise.
28681 * sysdeps/mips/bits/nan.h: Likewise.
28682
28683 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28684 not include <bits/inf.h>.
28685 * math/Makefile (headers): Remove bits/inf.h.
28686 * bits/inf.h: Remove.
28687 * sysdeps/ieee754/bits/inf.h: Likewise.
28688
28689 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28690 bits/huge_vall.h or bits/huge_val_flt128.h.
28691 (HUGE_VAL): Define directly here.
28692 [__USE_ISOC99] (HUGE_VALF): Likewise.
28693 [__USE_ISOC99] (HUGE_VALL): Likewise.
28694 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28695 (HUGE_VAL_F128): Likewise.
28696 * math/Makefile (headers): Remove bits/huge_val.h,
28697 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28698 * bits/huge_val.h: Remove.
28699 * bits/huge_val_flt128.h: Likewise.
28700 * bits/huge_valf.h: Likewise.
28701 * bits/huge_vall.h: Likewise.
28702 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28703 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28704 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28705 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28706 * sysdeps/sh/bits/huge_val.h: Likewise.
28707 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28708 * sysdeps/x86/bits/huge_vall.h: Likewise.
28709
28710 2017-08-31 Florian Weimer <fweimer@redhat.com>
28711
28712 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28713 internal_function.
28714 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28715 Likewise.
28716 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28717 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28718 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28719 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28720 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28721 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28722 * elf/dl-libc.c (dlerror_run): Likewise.
28723 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28724 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28725 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28726 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28727 Likewise.
28728 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28729 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28730 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28731 * elf/dl-profile.c (_dl_start_profile): Likewise.
28732 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28733 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28734 Likewise.
28735 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28736 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28737 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28738 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28739 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28740 (_dl_allocate_tls_storage): Likewise.
28741 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28742 (_dl_check_all_versions): Likewise.
28743 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28744 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28745 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28746 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28747 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28748 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28749 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28750 internal_function from __dl_start.
28751 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28752 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28753 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28754 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28755 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28756 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28757 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28758 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28759 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28760 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28761 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28762 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28763 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28764 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28765 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28766 Likewise.
28767 (struct rtld_global_ro): Remove internal_function from the
28768 _dl_lookup_symbol_x member.
28769 (_dl_symbol_value): Remove. No longer defined anywhere.
28770 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28771 internal_function.
28772 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28773 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28774 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28775 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28776 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28777 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28778 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28779 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28780 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28781 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28782 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28783 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28784
28785 2017-08-31 Florian Weimer <fweimer@redhat.com>
28786
28787 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28788 Remove internal_function.
28789 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28790 Likewise.
28791 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28792 Likewise.
28793
28794 2017-08-31 Florian Weimer <fweimer@redhat.com>
28795
28796 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28797 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28798 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28799
28800 2017-08-31 Florian Weimer <fweimer@redhat.com>
28801
28802 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28803 (__gai_enqueue_request): Remove internal_function.
28804 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28805 (__gai_remove_request, __gai_notify, __gai_notify_only)
28806 (__gai_sigqueue): Likewise.
28807 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28808 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28809 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28810 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28811 Likewise.
28812
28813 2017-08-31 Florian Weimer <fweimer@redhat.com>
28814
28815 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28816 * include/dirent.h (__opendirat, __getdents, __getdents64)
28817 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28818 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28819 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28820 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28821 Likewise.
28822 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28823
28824 2017-08-31 Florian Weimer <fweimer@redhat.com>
28825
28826 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28827 internal_function.
28828 (GETCWD_RETURN_TYPE): Likewise.
28829
28830 2017-08-31 Florian Weimer <fweimer@redhat.com>
28831
28832 * include/time.h (__tz_compute, __strptime_internal): Remove
28833 internal_function.
28834 * time/strptime_l.c (__strptime_internal): Likewise.
28835 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28836
28837 2017-08-31 Florian Weimer <fweimer@redhat.com>
28838
28839 * iconv/gconv.c (__gconv): Remove internal_function.
28840 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28841 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28842 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28843 (__gconv_release_cache): Likewise.
28844 * iconv/gconv_close.c (__gconv_close): Likewise.
28845 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28846 (read_conf_file, __gconv_get_path): Likewise.
28847 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28848 (__gconv_release_step, gen_steps, increment_counter)
28849 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28850 (__gconv_close_transform, free_modules_db): Likewise.
28851 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28852 Likewise.
28853 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28854 (__gconv_find_transform, __gconv_lookup_cache)
28855 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28856 (__gconv_close_transform, __gconv_release_cache)
28857 (__gconv_loaded_object, __gconv_release_shlib)
28858 (__gconv_compare_alias): Likewise.
28859 * iconv/gconv_open.c (__gconv_open): Likewise.
28860 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28861 * iconv/iconvconfig.c (add_module): Likewise.
28862 * intl/dcigettext.c (plural_lookup, guess_category_value)
28863 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28864 * intl/eval-plural.h (plural_eval): Likewise.
28865 * intl/finddomain.c (_nl_find_domain): Likewise.
28866 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28867 (_nl_load_domain, _nl_find_msg): Likewise.
28868 (internal_function): Remove definition.
28869 * intl/loadinfo.h (internal_function): Likewise.
28870 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28871 internal_function.
28872 * intl/localealias.c (internal_function): Remove definition.
28873 (read_alias_file): Remove internal_function.
28874 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28875 * intl/plural-exp.h (internal_function): Remove definition.
28876 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28877 internal_function.
28878 * intl/plural.c: Regenerate.
28879 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28880 * locale/coll-lookup.c (__collidx_table_lookup)
28881 (__collseq_table_lookup): Likewise.
28882 * locale/coll-lookup.h (__collidx_table_lookup)
28883 (__collseq_table_lookup): Likewise.
28884 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28885 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28886 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28887 (_nl_unload_locale): Likewise.
28888 * locale/localeinfo.h (struct __locale_data): Remove
28889 internal_function from cleanup member.
28890 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28891 (_nl_remove_locale, _nl_load_locale_from_archive)
28892 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28893 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28894 (_nl_cleanup_time): Remove internal_function.
28895 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28896 (_nl_parse_alt_digit): Likewise.
28897 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28898 (_nl_select_era_entry): Likewise.
28899 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28900 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28901 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28902 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28903 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28904
28905 2017-08-31 Florian Weimer <fweimer@redhat.com>
28906
28907 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28908 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28909 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28910 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28911 Likewise.
28912 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28913 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28914 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28915 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28916 Likewise.
28917 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
28918
28919 2017-08-31 Florian Weimer <fweimer@redhat.com>
28920
28921 * misc/getttyent.c (skip, value): Remove internal_function.
28922 * misc/syslog.c (openlog_internal): Likewise.
28923 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
28924
28925 2017-08-31 Florian Weimer <fweimer@redhat.com>
28926
28927 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
28928 (__nss_rewrite_field): Remove internal_function.
28929 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
28930 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
28931 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
28932 * nss/nsswitch.c (nss_parse_file, nss_getline)
28933 (nss_parse_service_list, nss_new_service): Likewise.
28934 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
28935 * nss/valid_field.c (__nss_valid_field): Likewise.
28936 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
28937
28938 2017-08-31 Florian Weimer <fweimer@redhat.com>
28939
28940 * malloc/arena.c (__malloc_fork_lock_parent)
28941 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
28942 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
28943 internal_function from defintions.
28944 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
28945 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
28946 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
28947 internal_function from declarations.
28948 * malloc/malloc.c (internal_function): Do not define.
28949 (mem2mem_check): Remove internal_function from declaration.
28950 (munmap_chunk, mremap_chunk): Remove internal_function.
28951 * malloc/mtrace.c (tr_where): Likewise.
28952
28953 2017-08-31 Florian Weimer <fweimer@redhat.com>
28954
28955 * include/rpc/pmap_clnt.h (__get_socket): Remove
28956 internal_function.
28957 * sunrpc/auth_des.c (synchronize): Likewise.
28958 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
28959 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
28960 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
28961 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
28962 (key_call): Likewise.
28963 * sunrpc/pm_getport.c (__get_socket): Likewise.
28964 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
28965 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
28966 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
28967 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
28968 (invalidate): Likewise.
28969 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
28970 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
28971 (set_input_fragment, get_input_bytes): Likewise.
28972
28973 2017-08-31 Florian Weimer <fweimer@redhat.com>
28974
28975 * malloc/malloc.c (_int_free): Remove locked variable and related
28976 asserts.
28977
28978 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
28979
28980 [BZ #22051]
28981 * Makerules (build-module-helper-objlist): Filter out
28982 $(elf-objpfx)sofini.os.
28983 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
28984 needed.
28985
28986 2017-08-31 Florian Weimer <fweimer@redhat.com>
28987
28988 * libio/fcloseall.c: Assume weak_alias is defined.
28989 * libio/feof.c: Likewise.
28990 * libio/fileno.c: Likewise.
28991 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
28992 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
28993 definitions.
28994 (_IO_file_open): Call __open directly.
28995 (_IO_new_file_sync): Assume ESPIPE is defined.
28996 (_IO_file_seekoff_maybe_mmap): Call __read directly.
28997 (_IO_new_file_write): Call __write directly.
28998 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
28999 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29000 * libio/genops.c: Assume _LIBC is defined.
29001 (save_for_backup): Remove internal_function.
29002 * libio/getc.c: Assume weak_alias is defined.
29003 * libio/getwc.c: Likewise.
29004 * libio/iofclose.c: Assume _LIBC is defined.
29005 * libio/iofdopen.c: Likewise.
29006 (_IO_fcntl): Remove macro definition.
29007 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29008 Call __fcntl directly.
29009 * libio/iofflush.c: Assume weak_alias is defined.
29010 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29011 defined.
29012 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29013 * libio/iofgets.c: Likewise.
29014 * libio/iofopen.c: Assume _LIBC is defined.
29015 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29016 * libio/iofputs.c: Assume weak_alias is defined.
29017 * libio/iofread.c: Likewise.
29018 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29019 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29020 * libio/ioftell.c: Assume weak_alias is defined.
29021 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29022 * libio/iofwide.c: Assume _LIBC is defined.
29023 (_IO_fwide): Drop SHARED conditional because it is implied by
29024 SHLIB_COMPAT.
29025 * libio/iofwrite.c: Assume weak_alias is defined.
29026 * libio/iogetdelim.c: Likewise.
29027 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29028 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29029 (_IO_getwline): Call __wmemcpy directly.
29030 * libio/iopopen.c: Assume _LIBC is defined.
29031 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29032 (_IO_close): Remove macro definitions.
29033 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29034 _exit directly.
29035 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29036 directly.
29037 * libio/ioputs.c: Assume weak_alias is defined.
29038 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29039 * libio/iosetbuffer.c: Assume weak_alias is defined.
29040 * libio/iosetvbuf.c: Likewise.
29041 * libio/ioungetc.c: Likewise.
29042 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29043 libc_hidden_def, libc_hidden_weak, NULL are defined.
29044 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29045 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29046 defined.
29047 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29048 definitions.
29049 (_IO_old_file_init_internal): Drop SHARED conditional because it
29050 is implied by SHLIB_COMPAT.
29051 (_IO_old_file_fopen): Call __open directly.
29052 (_IO_old_file_sync): Assume ESPIPE is defined.
29053 (_IO_old_file_write): Call __write directly.
29054 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29055 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29056 Call __fcntl directly.
29057 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29058 (_IO_old_fgetpos): Assume EIO is defined.
29059 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29060 (_IO_old_fgetpos64): Assume EIO is defined.
29061 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29062 (_IO_old_fsetpos): Assume EIO is defined.
29063 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29064 (_IO_old_fsetpos64): Assume EIO is defined.
29065 * libio/oldiopopen.c: Assume _LIBC is defined.
29066 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29067 (_IO_close): Remove macro definitions.
29068 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29069 directly.
29070 (_IO_old_proc_close): Call __close, __waitpid directly.
29071 * libio/put.c: Assume weak_alias is defined.
29072 * libio/stdfiles.c: Assume _LIBC is defined.
29073 * libio/stdio.c: Likewise.
29074 * libio/wfileops.c: Likewise.
29075 (_IO_wfile_sync): Assume ESPIPE is defined.
29076 * libio/wgenops.c: Assume _LIBC is defined.
29077 (save_for_wbackup): Remove internal_function.
29078
29079 2017-08-31 Florian Weimer <fweimer@redhat.com>
29080
29081 * malloc/malloc.c (top_check): Change return type to void. Remove
29082 internal_function.
29083 * malloc/hooks.c (top_check): Likewise.
29084 (malloc_check, realloc_check, memalign_check): Adjust.
29085
29086 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29087
29088 [BZ #21457]
29089 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29090 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29091 sigcontext and namespace requirements.
29092 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29093 * sysdeps/m68k/sys/ucontext.h: Likewise.
29094 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29095 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29096 <bits/sigcontext.h>.
29097 (__ctx): Define earlier.
29098 (mcontext_t): Define structure contents rather than using struct
29099 sigcontext.
29100 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29101 __glibc_reserved1 instead of __reserved.
29102 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29103 <bits/sigcontext.h>.
29104 (__ctx): Define earlier.
29105 (mcontext_t): Define structure contents rather than using struct
29106 sigcontext.
29107 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29108 mcontext_t instead of struct sigcontext.
29109 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29110 <bits/sigcontext.h>.
29111 (__ctx): Define earlier.
29112 (mcontext_t): Define structure contents rather than using struct
29113 sigcontext.
29114 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29115 <bits/sigcontext.h>.
29116 (__ctx): Define earlier.
29117 (mcontext_t): Define structure contents rather than using struct
29118 sigcontext.
29119 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29120 mcontext_t instead of struct sigcontext.
29121 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29122 mcontext_t instead of struct sigcontext.
29123 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29124 <bits/sigcontext.h>.
29125 (__ctx): New macro.
29126 (struct __ia64_fpreg_mcontext): New type.
29127 (mcontext_t): Define structure contents rather than using struct
29128 sigcontext.
29129 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29130 (uc_sigmask): Define using __ctx.
29131 (uc_stack): Likewise.
29132 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29133 <bits/sigcontext.h>.
29134 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29135 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29136 <bits/sigcontext.h>.
29137 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29138 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29139 <bits/sigcontext.h>.
29140 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29141 <bits/sigcontext.h>.
29142 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29143 <bits/sigcontext.h>.
29144 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29145 <bits/sigcontext.h>.
29146 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29147 <bits/sigcontext.h>.
29148 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29149 <bits/sigcontext.h>.
29150 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29151 <bits/sigcontext.h>.
29152 (__ctx): Define earlier.
29153 (mcontext_t): Define structure contents rather than using struct
29154 sigcontext.
29155 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29156 <bits/sigcontext.h>. Include <bits/types.h>.
29157 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29158 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29159 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29160 (test-xfail-UNIX98/signal.h/conform): Likewise.
29161 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29162 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29163 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29164 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29165 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29166 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29167 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29168 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29169 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29170
29171 2017-08-30 Florian Weimer <fweimer@redhat.com>
29172
29173 * malloc/dynarray_emplace_enlarge.c
29174 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29175 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29176 * malloc/tst-dynarray.c (test_long_overflow): New function.
29177 (do_test): Call it.
29178
29179 2017-08-30 Florian Weimer <fweimer@redhat.com>
29180
29181 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29182 (set_arena_corrupt): Remove definitions.
29183 (mtrim): Do not check for corrupt arena.
29184 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29185 Likewise.
29186
29187 2017-08-30 Florian Weimer <fweimer@redhat.com>
29188
29189 [BZ #21754]
29190 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29191 check_action.
29192 (ptmalloc_init): Do not set or use check_action.
29193 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29194 call to malloc_printerr. Remove return statement.
29195 (free_check): Likewise. Remove arena unlock.
29196 (top_check): Update comment. Adjust call to malloc_printerr.
29197 Remove heap repair code.
29198 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29199 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29200 (sysmalloc): Adjust call to malloc_printerr.
29201 (munmap_chunk, __libc_realloc): Likewise. Remove return
29202 statement.
29203 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29204 Remove errout label and corresponding gotos.
29205 (_int_free): Likewise. Remove arena unlock.
29206 (do_set_mallopt_check): Do not set check_action.
29207 (malloc_printerr): Adjust parameter list. Do not mark arena as
29208 corrupt.
29209 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29210 comment.
29211 * manual/probes.texi (Memory Allocation Probes): Remove
29212 memory_mallopt_check_action.
29213
29214 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29215
29216 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29217 Use pointer to uint64_t instead of long int for sp.
29218
29219 2017-08-30 Florian Weimer <fweimer@redhat.com>
29220
29221 [BZ #21754]
29222 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29223 without printing a backtrace. Do not leak any information in the
29224 error message.
29225 * manual/memory.texi (Heap Consistency Checking): Update.
29226 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29227
29228 2017-08-30 Florian Weimer <fweimer@redhat.com>
29229
29230 Do not scale NPTL tests with available number of CPUs.
29231 * nptl/tst-cond16.c (count): Set to constant value of 8.
29232 * nptl/tst-cond18.c (count): Likewise.
29233
29234 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29235
29236 [BZ #22035]
29237 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29238 Define to take a second argument that is a macro that
29239 concatentates a suffix, not the suffix itself.
29240 (__CONCAT_d): New macro.
29241 (__CONCAT_f): Likewise.
29242 (__CONCAT_l): Likewise.
29243
29244 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29245
29246 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29247 by child.
29248
29249 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29250 Aurelien Jarno <aurelien@aurel32.net>
29251 Maciej W. Rozycki <macro@imgtec.com>
29252
29253 [BZ #21956]
29254 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29255 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29256 `mips16-syscall6' and `mips16-syscall7'.
29257 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29258 (CFLAGS-mips16-syscall7.c): Remove.
29259 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29260 Remove `__mips16_syscall5', `__mips16_syscall6' and
29261 `__mips16_syscall7'.
29262 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29263 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29264 `__mips_syscall_return'.
29265 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29266 (__mips16_syscall1): Likewise.
29267 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29268 (__mips16_syscall2): Likewise.
29269 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29270 (__mips16_syscall3): Likewise.
29271 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29272 (__mips16_syscall4): Likewise.
29273 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29274 Remove.
29275 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29276 Remove.
29277 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29278 Remove.
29279 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29280 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29281 `__mips16_syscall5'. Remove prototype.
29282 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29283 `__mips16_syscall6'. Remove prototype.
29284 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29285 `__mips16_syscall7'. Remove prototype.
29286 (__nomips16, __mips16_syscall_return): Move to...
29287 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29288 (__nomips16, __mips_syscall_return): ... here.
29289 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29290 `__mips16_syscall_return' to `__mips_syscall_return'.
29291 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29292 `internal_syscall##nr'.
29293 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29294 `internal_syscall##nr'.
29295 (FORCE_FRAME_POINTER): Remove.
29296 (__mips_syscall5): New prototype.
29297 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29298 (__mips_syscall6): New prototype.
29299 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29300 (__mips_syscall7): New prototype.
29301 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29302 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29303 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29304 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29305 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29306 (sysdep_routines): Add libc-do-syscall.
29307 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29308 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29309
29310 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29311
29312 [BZ #21672]
29313 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29314 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29315 (advise_stack_range): New function.
29316 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29317 stack non required to advise_stack_range at allocatestack.c
29318
29319 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29320
29321 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29322
29323 2017-08-29 Florian Weimer <fweimer@redhat.com>
29324
29325 [BZ #22026]
29326 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29327 __end_fct. Mangle __end_fct after setting it to NULL.
29328 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29329 (modules-names, modules-names-tests): Add
29330 tst-gconv-init-failure-mod.
29331 (gconv-modules): New target.
29332 (tst-gconv-init-failure-mod.so): Link against libsupport.
29333 (tst-gconv-init-failure): Depend on gconv-modules,
29334 tst-gconv-init-failure-mod.so.
29335 * iconv/tst-gconv-init-failure-mod.c: New file.
29336 * iconv/tst-gconv-init-failure.c: Likewise.
29337 * iconv/test-gconv-modules: Likewise.
29338
29339 2017-08-29 Florian Weimer <fweimer@redhat.com>
29340
29341 [BZ #22025]
29342 * iconv/gconv_db.c (free_derivation): Remove redundant
29343 parentheses.
29344 (gen_steps): Unconditionally mangle __btowc_fct after
29345 initialization.
29346 (increment_counter): Likewise. Do not call init_fct for internal
29347 modules.
29348
29349 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29350
29351 [BZ #22028]
29352 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29353 (_MSUF_): Remove macro.
29354 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29355 Likewise.
29356 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29357 (__REDIRFROM_X): New macro.
29358 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29359 Likewise.
29360 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29361 (__REDIRTO_X): Likewise.
29362 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29363 arguments.
29364 (__MATH_REDIRCALL_2): Likewise.
29365 (__MATH_REDIRCALL_INTERNAL): Likewise.
29366 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29367 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29368 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29369 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29370 * math/test-finite-macros.c: New file.
29371 * math/Makefile (tests): Add test-finite-macros.
29372 (CFLAGS-test-finite-macros.c): New variable.
29373
29374 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29375 Jeff Law <law@redhat.com>
29376
29377 [BZ #22025]
29378 Mangle NULL pointers in iconv/gconv.
29379 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29380 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29381 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29382 is non-NULL before demangling the end_fct. Check for NULL
29383 end_fct after demangling.
29384 (__gconv_release_step): Demangle the end_fct before checking
29385 it for NULL. Remove assert on __shlibc_handle != NULL.
29386 (gen_steps): Don't check btowc_fct for NULL before mangling.
29387 Demangle init_fct before checking for NULL.
29388 (increment_counter): Likewise.
29389 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29390 end_fct for NULL before mangling.
29391 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29392 for NULL.
29393
29394 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29395
29396 [BZ #21971]
29397 * locale/iso-639.def: add Morisyen.
29398
29399 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29400
29401 [BZ #21930]
29402 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29403 (iszero): New C++ implementation that does not use
29404 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29405 signaling nans are enabled, since __builtin_types_compatible_p
29406 is a C-only feature.
29407 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29408 defined, include ieee754_float128.h for access to the union and
29409 member ieee854_float128.ieee.
29410 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29411 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29412 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29413 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29414 options of test-math-zero on powerpc64le.
29415
29416 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29417
29418 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29419 Change double to float.
29420
29421 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29422
29423 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29424 unconditional.
29425 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29426 conditional code; define contents only for [LIBM_SVID_COMPAT].
29427
29428 2017-08-28 Florian Weimer <fweimer@redhat.com>
29429
29430 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29431 (abi-lp64_be-options): Remove.
29432 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29433 (abi-hard-options): Likewise.
29434 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29435 (abi-o32_hard-options, abi-o32_soft_2008-options)
29436 (abi-o32_hard_2008-options, abi-n32_soft-options)
29437 (abi-n32_hard-options, abi-n32_soft_2008-options)
29438 (abi-n32_hard_2008-options, abi-n64_soft-options)
29439 (abi-n64_hard-options, abi-n64_soft_2008-options)
29440 (abi-n64_hard_2008-options): Likewise.
29441 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29442 (abi-64-v1-options, abi-64-v2-options): Likewise.
29443 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29444 (abi-64-options): Likewise.
29445 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29446 (abi-64-options): Likewise.
29447 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29448 (abi-64-options): Likewise.
29449 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29450 (abi-64-options, abi-x32-options): Likewise.
29451
29452 2017-08-28 Florian Weimer <fweimer@redhat.com>
29453
29454 Store supported list of SYS_* system calls in the source tree.
29455 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29456 (bits/syscall.h): Generate from list file.
29457 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29458 [$(subdir) = misc] (tests): Add tst-syscall-list.
29459 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29460 [$(subdir) = misc] (tst-syscall-list-macros.list)
29461 [$(subdir) = misc] (tst-syscall-list-nr.list)
29462 (tst-syscall-list-sys.list): Helper targets for new
29463 tst-syscall-list test.
29464 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29465 tst-syscall-list.sh.
29466 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29467 target. Do not include bits/syscall.d.
29468 [$(subdir) = misc] (generated): Do not update.
29469 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29470 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29471 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29472 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29473
29474 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29475
29476 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29477 (tst-cxa_atexit, tst-on_exit): Likewise.
29478 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29479 tst-cxa_atexit, and tst-on_exit.
29480 * stdlib/tst-atexit-common.c: New file.
29481 * stdlib/tst-atexit.c: New file.
29482 * stdlib/tst-at_quick_exit.c: New file.
29483 * stdlib/tst-cxa_atexit.c: New file.
29484 * stdlib/tst-on_exit.c: New file.
29485
29486 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29487
29488 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29489 * mach/stack_chk_fail_local.c: New file.
29490 * hurd/stack_chk_fail_local.c: New file.
29491 * mach/Machrules ($(interface-library)-routines): Add
29492 stack_chk_fail_local.
29493 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29494 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29495 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29496 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29497 * hurd/Makefile (CFLAGS-hurdstartup.o,
29498 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29499
29500 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29501
29502 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29503 (index_cpu_*, index_arch_*): Removed.
29504
29505 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29506
29507 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29508 Use uint64_t instead of unsigned long.
29509
29510 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29511
29512 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29513 [__HAVE_DISTINCT_FLOAT128].
29514
29515 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29516 of <bits/math-finite.h>.
29517 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29518 inclusion of <bits/math-finite.h>.
29519 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29520 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29521 __NO_LONG_DOUBLE_MATH].
29522 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29523 (__MATH_REDIRCALL_2): Likewise.
29524 (__MATH_REDIRCALL_INTERNAL): Likewise.
29525 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29526 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29527 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29528
29529 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29530 Remove file.
29531 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29532 Likewise.
29533 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29534 Likewise.
29535 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29536 Likewise.
29537 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29538 Likewise.
29539 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29540 Likewise.
29541 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29542 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29543 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29544 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29545 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29546 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29547 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29548 w_sqrtf_compat-ppc32.
29549
29550 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29551
29552 * math/math.h [defined __cplusplus] (issignaling): In the long
29553 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29554 is not defined. Call __issignaling, otherwise.
29555
29556 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29557
29558 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29559 syscall definitions and replace __builtin_expect with __glibc_likely.
29560 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29561 syscall.
29562 (SYSCALL_CANCELLABLE): Removedefinition
29563 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29564 definition.
29565 (PSEUDO_END): Likewise.
29566 [IS_IN (libpthread)] (CENABLE): Likewise.
29567 [IS_IN (libpthread)] (CDISABLE): Likewise.
29568 [IS_IN (libc)] (CENABLE): Likewise.
29569 [IS_IN (libc)] (CENABLE): Likewise.
29570 [IS_IN (librt)] (CDISABLE): Likewise.
29571 [IS_IN (librt)] (CDISABLE): Likewise.
29572 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29573 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29574 definition.
29575 (PSEUDO_END): Likewise.
29576 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29577 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29578 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29579 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29580 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29581 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29582 (CENABLE): Likewise.
29583 (CDISABLE): Likewise.
29584 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29585 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29586 defintion.
29587 (PSEUDO_END): Likewise.
29588 [IS_IN (libpthread)] (CENABLE): Likewise.
29589 [IS_IN (libpthread)] (CDISABLE): Likewise.
29590 [IS_IN (libc)] (CENABLE): Likewise.
29591 [IS_IN (libc)] (CENABLE): Likewise.
29592 [IS_IN (librt)] (CDISABLE): Likewise.
29593 [IS_IN (librt)] (CDISABLE): Likewise.
29594 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29595 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29596 definition.
29597 (PSEUDO_END): Likewise.
29598 [IS_IN (libpthread)] (CENABLE): Likewise.
29599 [IS_IN (libpthread)] (CDISABLE): Likewise.
29600 [IS_IN (libc)] (CENABLE): Likewise.
29601 [IS_IN (libc)] (CENABLE): Likewise.
29602 [IS_IN (librt)] (CDISABLE): Likewise.
29603 [IS_IN (librt)] (CDISABLE): Likewise.
29604 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29605 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29606 definition.
29607 (PSEUDO_END): Likewise.
29608 [IS_IN (libpthread)] (CENABLE): Likewise.
29609 [IS_IN (libpthread)] (CDISABLE): Likewise.
29610 [IS_IN (libc)] (CENABLE): Likewise.
29611 [IS_IN (libc)] (CENABLE): Likewise.
29612 [IS_IN (librt)] (CDISABLE): Likewise.
29613 [IS_IN (librt)] (CDISABLE): Likewise.
29614 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29615 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29616 definition.
29617 (PSEUDO_END): Likewise.
29618 [IS_IN (libpthread)] (CENABLE): Likewise.
29619 [IS_IN (libpthread)] (CDISABLE): Likewise.
29620 [IS_IN (libc)] (CENABLE): Likewise.
29621 [IS_IN (libc)] (CENABLE): Likewise.
29622 [IS_IN (librt)] (CDISABLE): Likewise.
29623 [IS_IN (librt)] (CDISABLE): Likewise.
29624 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29625 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29626 definition.
29627 (PSEUDO_END): Likewise.
29628 [IS_IN (libpthread)] (CENABLE): Likewise.
29629 [IS_IN (libpthread)] (CDISABLE): Likewise.
29630 [IS_IN (libc)] (CENABLE): Likewise.
29631 [IS_IN (libc)] (CENABLE): Likewise.
29632 [IS_IN (librt)] (CDISABLE): Likewise.
29633 [IS_IN (librt)] (CDISABLE): Likewise.
29634 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29635 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29636 definition.
29637 (PSEUDO_END): Likewise.
29638 [IS_IN (libpthread)] (CENABLE): Likewise.
29639 [IS_IN (libpthread)] (CDISABLE): Likewise.
29640 [IS_IN (libc)] (CENABLE): Likewise.
29641 [IS_IN (libc)] (CENABLE): Likewise.
29642 [IS_IN (librt)] (CDISABLE): Likewise.
29643 [IS_IN (librt)] (CDISABLE): Likewise.
29644 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29645 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29646 Remove definition.
29647 (PSEUDO_END): Likewise.
29648 [IS_IN (libpthread)] (CENABLE): Likewise.
29649 [IS_IN (libpthread)] (CDISABLE): Likewise.
29650 [IS_IN (libc)] (CENABLE): Likewise.
29651 [IS_IN (libc)] (CENABLE): Likewise.
29652 [IS_IN (librt)] (CDISABLE): Likewise.
29653 [IS_IN (librt)] (CDISABLE): Likewise.
29654 (SINGLE_THREAD_P): Likewise.
29655 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29656 definition.
29657 (PSEUDO_END): Likewise.
29658 [IS_IN (libpthread)] (CENABLE): Likewise.
29659 [IS_IN (libpthread)] (CDISABLE): Likewise.
29660 [IS_IN (libc)] (CENABLE): Likewise.
29661 [IS_IN (libc)] (CENABLE): Likewise.
29662 [IS_IN (librt)] (CDISABLE): Likewise.
29663 [IS_IN (librt)] (CDISABLE): Likewise.
29664 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29665 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29666 definition.
29667 (PSEUDO_END): Likewise.
29668 [IS_IN (libpthread)] (CENABLE): Likewise.
29669 [IS_IN (libpthread)] (CDISABLE): Likewise.
29670 [IS_IN (libc)] (CENABLE): Likewise.
29671 [IS_IN (libc)] (CENABLE): Likewise.
29672 [IS_IN (librt)] (CDISABLE): Likewise.
29673 [IS_IN (librt)] (CDISABLE): Likewise.
29674 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29675 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29676 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29677 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29678 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29679 definition.
29680 (PSEUDO_END): Likewise.
29681 [IS_IN (libpthread)] (CENABLE): Likewise.
29682 [IS_IN (libpthread)] (CDISABLE): Likewise.
29683 [IS_IN (libc)] (CENABLE): Likewise.
29684 [IS_IN (libc)] (CENABLE): Likewise.
29685 [IS_IN (librt)] (CDISABLE): Likewise.
29686 [IS_IN (librt)] (CDISABLE): Likewise.
29687 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29688 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29689 definition.
29690 (PSEUDO_END): Likewise.
29691 [IS_IN (libpthread)] (CENABLE): Likewise.
29692 [IS_IN (libpthread)] (CDISABLE): Likewise.
29693 [IS_IN (libc)] (CENABLE): Likewise.
29694 [IS_IN (libc)] (CENABLE): Likewise.
29695 [IS_IN (librt)] (CDISABLE): Likewise.
29696 [IS_IN (librt)] (CDISABLE): Likewise.
29697 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29698 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29699 definition.
29700 (PSEUDO_END): Likewise.
29701 [IS_IN (libpthread)] (CENABLE): Likewise.
29702 [IS_IN (libpthread)] (CDISABLE): Likewise.
29703 [IS_IN (libc)] (CENABLE): Likewise.
29704 [IS_IN (libc)] (CENABLE): Likewise.
29705 [IS_IN (librt)] (CDISABLE): Likewise.
29706 [IS_IN (librt)] (CDISABLE): Likewise.
29707 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29708 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29709 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29710 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29711 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29712 definition.
29713 (PSEUDO_END): Likewise.
29714 [IS_IN (libpthread)] (CENABLE): Likewise.
29715 [IS_IN (libpthread)] (CDISABLE): Likewise.
29716 [IS_IN (libc)] (CENABLE): Likewise.
29717 [IS_IN (libc)] (CENABLE): Likewise.
29718 [IS_IN (librt)] (CDISABLE): Likewise.
29719 [IS_IN (librt)] (CDISABLE): Likewise.
29720 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29721 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29722 definition.
29723 (PSEUDO_END): Likewise.
29724 [IS_IN (libpthread)] (CENABLE): Likewise.
29725 [IS_IN (libpthread)] (CDISABLE): Likewise.
29726 [IS_IN (libc)] (CENABLE): Likewise.
29727 [IS_IN (libc)] (CENABLE): Likewise.
29728 [IS_IN (librt)] (CDISABLE): Likewise.
29729 [IS_IN (librt)] (CDISABLE): Likewise.
29730 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29731
29732 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29733
29734 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29735
29736 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29737
29738 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29739
29740 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29741
29742 [BZ #21982]
29743 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29744 middle and outer with size_t instead of int. Repleace %d and
29745 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29746 "MAX (outer, nchars - 64)" to support unsigned outer and
29747 nchars. Also exit loop when outer == 0.
29748
29749 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29750
29751 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29752 * include/signal.h (__sigsuspend_nocancel): Likewise.
29753 * include/time.h (__nanosleep_nocancel): Likewise.
29754 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29755 * login/utmp_file.c: Include non cancellable syscall header.
29756 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29757 prototype.
29758
29759 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29760
29761 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29762 .byte sequences with AVX512F instructions.
29763 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29764 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29765 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29766 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29767 Likewise.
29768 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29769 Likewise.
29770
29771 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29772 Steve Ellcey <sellcey@cavium.com>
29773
29774 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29775 Use PTR_REG macro in cmp instruction.
29776
29777 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29778
29779 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29780 Change the return type of the ifunc resolver to match the return
29781 type of the target function.
29782
29783 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29784
29785 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29786 (preadv64): Likewise.
29787 (pwrite64(: Likewise.
29788 (pwritev64): Likewise.
29789
29790 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29791 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29792 (LOAD_ARGS_0): Likewise.
29793 (LOAD_ARGS_1): Likewise.
29794 (LOAD_ARGS_2): Likewise.
29795 (LOAD_ARGS_3): Likewise.
29796 (LOAD_ARGS_4): Likewise.
29797 (LOAD_ARGS_5): Likewise.
29798 (LOAD_ARGS_6): Likewise.
29799 (LOAD_REGS_0): Likewise.
29800 (LOAD_REGS_1): Likewise.
29801 (LOAD_REGS_2): Likewise.
29802 (LOAD_REGS_3): Likewise.
29803 (LOAD_REGS_4): Likewise.
29804 (LOAD_REGS_5): Likewise.
29805 (LOAD_REGS_6): Likewise.
29806 (ASM_ARGS_0): Likewise.
29807 (ASM_ARGS_1): Likewise.
29808 (ASM_ARGS_2): Likewise.
29809 (ASM_ARGS_3): Likewise.
29810 (ASM_ARGS_4): Likewise.
29811 (ASM_ARGS_5): Likewise.
29812 (ASM_ARGS_6): Likewise.
29813 (LOAD_ARGS_TYPES_1): Likewise.
29814 (LOAD_ARGS_TYPES_2): Likewise.
29815 (LOAD_ARGS_TYPES_3): Likewise.
29816 (LOAD_ARGS_TYPES_4): Likewise.
29817 (LOAD_ARGS_TYPES_5): Likewise.
29818 (LOAD_ARGS_TYPES_6): Likewise.
29819 (LOAD_REGS_TYPES_1): Likewise.
29820 (LOAD_REGS_TYPES_2): Likewise.
29821 (LOAD_REGS_TYPES_3): Likewise.
29822 (LOAD_REGS_TYPES_4): Likewise.
29823 (LOAD_REGS_TYPES_5): Likewise.
29824 (LOAD_REGS_TYPES_6): Likewise.
29825 (TYPEFY): New define.
29826 (ARGIFY): Likewise.
29827 (internal_syscall0): Likewise.
29828 (internal_syscall1): Likewise.
29829 (internal_syscall2): Likewise.
29830 (internal_syscall3): Likewise.
29831 (internal_syscall4): Likewise.
29832 (internal_syscall5): Likewise.
29833 (internal_syscall6): Likewise.
29834 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29835 (INTERNAL_SYSCALL_NCS): Remove define.
29836 (internal_syscall1): Add define.
29837
29838 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29839
29840 * math/w_remainder_compat.c: Remove duplicate inclusion of
29841 math-svid-compat.h.
29842 * math/w_remainderf_compat.c: Likewise.
29843 * math/w_remainderl_compat.c: Likewise.
29844
29845 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29846
29847 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29848
29849 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29850
29851 [BZ #21684]
29852 * math/tgmath.h (__floating_type): Simplify definitions.
29853 (__real_integer_type): New macro.
29854 (__complex_integer_type): Likewise.
29855 (__expr_is_real): Likewise.
29856 (__tgmath_real_type_sub): Update comment to describe handling of
29857 complex types.
29858 (__tgmath_complex_type_sub): New macro.
29859 (__tgmath_complex_type): Likewise.
29860 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29861 (__TGMATH_CF128): Use __expr_is_real.
29862 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29863 __expr_is_real.
29864 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29865 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29866 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29867 integer types.
29868
29869 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29870
29871 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29872 macro.
29873 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29874 alias.
29875 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29876 Likewise.
29877
29878 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29879 nanosleep_not_cancel with __nanosleep_nocancel.
29880 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29881 (__nanosleep_nocancel): New macro.
29882 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29883 function.
29884 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29885 macro.
29886 (__nanosleep_nocancel): New prototype.
29887
29888 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29889 pause_not_cancel with __pause_nocancel.
29890 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29891 (__pause_nocancel): New macro.
29892 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29893 macro.
29894 (__pause_nocancel): New prototype.
29895 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29896
29897 2017-08-22 Martin Sebor <msebor@redhat.com>
29898
29899 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29900 to return a pointer to the same type as the target function.
29901
29902 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29903
29904 [BZ #18822]
29905 [BZ #21986]
29906 * include/printf.h (__printf_fphex): Add attribute_hidden.
29907 (__guess_grouping): New prototype.
29908 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29909 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29910 libc_hidden_proto and libc_hidden_def.
29911 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29912 (__vstrfmon_l): Remove the third argument passed to
29913 __guess_grouping.
29914
29915 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29916
29917 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
29918 definition for issignaling that does not rely on __MATH_TG,
29919 since __MATH_TG uses __builtin_types_compatible_p, which is only
29920 available in C mode.
29921 (CFLAGS-test-math-issignaling.cc): New variable.
29922 * math/Makefile [CXX] (tests): Add test-math-issignaling.
29923 * math/test-math-issignaling.cc: New test for C++ implementation
29924 of type-generic issignaling.
29925 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29926 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
29927 options of test-math-issignaling on powerpc64le.
29928
29929 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29930
29931 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29932 building libc.a.
29933 (hidden_proto): Likewise.
29934 (hidden_tls_proto): Likewise.
29935 (__hidden_proto): Likewise.
29936
29937 2017-08-22 Florian Weimer <fweimer@redhat.com>
29938
29939 math: Statically link tests of internal functionality.
29940 * math/Makefile (tests): Remove atest-exp, atest-sincos,
29941 atest-exp2.
29942 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
29943 (gmp-objs): Remove assignment.
29944 (atest-exp, atest-sincos, atest-exp2): Remove targets.
29945
29946 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29947
29948 [BZ #21987]
29949 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
29950 and copy to ...
29951 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
29952 ... here.
29953 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
29954 ... and here.
29955
29956 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
29957 variable definitions above inclusion of ../Rules.
29958
29959 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29960
29961 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
29962 case calling __builtin_unreachable.
29963
29964 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29965
29966 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
29967 __waitpid_nocancel.
29968 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
29969 (__waitpid_nocancel): New macro.
29970 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
29971 macro.
29972 (__waitpid_nocancel): Replace macro with a function.
29973 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
29974 function.
29975
29976 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
29977 __fcntl_nocancel.
29978 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
29979 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
29980
29981 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
29982 __writev_nocancel_nostatus.
29983 (write_call_graph): Likewise.
29984 (write_bb_counts): Likewise.
29985 * resolv/herror.c (herror): Likewise.
29986 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
29987 macro.
29988 (__writev_nocancel_nostatus): New macro.
29989 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
29990 Remove macro.
29991 (__writev_nocancel_nostatus): New function.
29992
29993 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29994
29995 Revert:
29996 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29997
29998 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29999 building libc.a.
30000 (hidden_proto): Likewise.
30001 (hidden_tls_proto): Likewise.
30002 (__hidden_proto): Likewise.
30003
30004 [BZ #21973]
30005 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30006 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30007 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30008 Likewise.
30009 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30010 Likewise.
30011 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30012 Likewise.
30013 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30014 Likewise.
30015 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30016 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30017 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30018 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30019 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30020 GLIBC_2.0 sqrtl symbol.
30021
30022 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30023 [__USE_MISC] (_LIB_VERSION): Likewise.
30024 [__USE_MISC] (struct exception): Likewise.
30025 [__USE_MISC] (matherr): Likewise.
30026 [__USE_MISC] (DOMAIN): Likewise.
30027 [__USE_MISC] (SING): Likewise.
30028 [__USE_MISC] (OVERFLOW): Likewise.
30029 [__USE_MISC] (UNDERFLOW): Likewise.
30030 [__USE_MISC] (TLOSS): Likewise.
30031 [__USE_MISC] (PLOSS): Likewise.
30032 [__USE_MISC] (HUGE): Likewise.
30033 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30034 * math/math-svid-compat.h: New file.
30035 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30036 and matherrl.
30037 * include/math.h [!_ISOMAC] (__matherr): Remove.
30038 * manual/arith.texi (FP Exceptions): Do not document matherr.
30039 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30040 (tests-internal): New variable.
30041 (install-lib): Do not add libieee.a.
30042 (non-lib.a): Likewise.
30043 (extra-objs): Do not add libieee.a and ieee-math.o.
30044 (CPPFLAGS-s_lib_version.c): Remove variable.
30045 ($(objpfx)libieee.a): Remove rule.
30046 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30047 * math/ieee-math.c: Remove.
30048 * math/libm-test-support.c (matherr): Remove.
30049 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30050 and license notices. Include <math-svid-compat.h> and
30051 <shlib-compat.h>.
30052 (matherr): Undefine as macro. Use compat_symbol_reference.
30053 (_LIB_VERSION): Likewise.
30054 * math/test-matherr-2.c: New file.
30055 * math/test-matherr-3.c: Likewise.
30056 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30057 declaration.
30058 (__kernel_standard_f): Likewise.
30059 (__kernel_standard_l): Likewise.
30060 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30061 <math_private.h>. Include <math-svid-compat.h>.
30062 (_LIB_VERSION): Undefine as macro.
30063 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30064 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30065 [LIBM_SVID_COMPAT], use compat_symbol.
30066 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30067 <math_private.h>. Include <math-svid-compat.h>.
30068 (matherr): Undefine as macro.
30069 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30070 compat_symbol.
30071 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30072 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30073 compat_symbol_reference.
30074 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30075 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30076 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30077 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30078 (MATHERR_D): Remove declaration.
30079 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30080 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30081 [LIBM_BUILD] (pmatherrf): Likewise.
30082 [LIBM_BUILD] (pmatherr): Likewise.
30083 [LIBM_BUILD] (pmatherrl): Likewise.
30084 (DOMAIN): Likewise.
30085 (SING): Likewise.
30086 (OVERFLOW): Likewise.
30087 (UNDERFLOW): Likewise.
30088 (TLOSS): Likewise.
30089 (PLOSS): Likewise.
30090 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30091 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30092 compat_symbol.
30093 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30094 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30095 compat_symbol.
30096 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30097 * math/w_acos_compat.c: Likewise.
30098 * math/w_acosf_compat.c: Likewise.
30099 * math/w_acosh_compat.c: Likewise.
30100 * math/w_acoshf_compat.c: Likewise.
30101 * math/w_acoshl_compat.c: Likewise.
30102 * math/w_acosl_compat.c: Likewise.
30103 * math/w_asin_compat.c: Likewise.
30104 * math/w_asinf_compat.c: Likewise.
30105 * math/w_asinl_compat.c: Likewise.
30106 * math/w_atan2_compat.c: Likewise.
30107 * math/w_atan2f_compat.c: Likewise.
30108 * math/w_atan2l_compat.c: Likewise.
30109 * math/w_atanh_compat.c: Likewise.
30110 * math/w_atanhf_compat.c: Likewise.
30111 * math/w_atanhl_compat.c: Likewise.
30112 * math/w_cosh_compat.c: Likewise.
30113 * math/w_coshf_compat.c: Likewise.
30114 * math/w_coshl_compat.c: Likewise.
30115 * math/w_exp10_compat.c: Likewise.
30116 * math/w_exp10f_compat.c: Likewise.
30117 * math/w_exp10l_compat.c: Likewise.
30118 * math/w_exp2_compat.c: Likewise.
30119 * math/w_exp2f_compat.c: Likewise.
30120 * math/w_exp2l_compat.c: Likewise.
30121 * math/w_fmod_compat.c: Likewise.
30122 * math/w_fmodf_compat.c: Likewise.
30123 * math/w_fmodl_compat.c: Likewise.
30124 * math/w_hypot_compat.c: Likewise.
30125 * math/w_hypotf_compat.c: Likewise.
30126 * math/w_hypotl_compat.c: Likewise.
30127 * math/w_j0_compat.c: Likewise.
30128 * math/w_j0f_compat.c: Likewise.
30129 * math/w_j0l_compat.c: Likewise.
30130 * math/w_j1_compat.c: Likewise.
30131 * math/w_j1f_compat.c: Likewise.
30132 * math/w_j1l_compat.c: Likewise.
30133 * math/w_jn_compat.c: Likewise.
30134 * math/w_jnf_compat.c: Likewise.
30135 * math/w_jnl_compat.c: Likewise.
30136 * math/w_lgamma_main.c: Likewise.
30137 * math/w_lgamma_r_compat.c: Likewise.
30138 * math/w_lgammaf_main.c: Likewise.
30139 * math/w_lgammaf_r_compat.c: Likewise.
30140 * math/w_lgammal_main.c: Likewise.
30141 * math/w_lgammal_r_compat.c: Likewise.
30142 * math/w_log10_compat.c: Likewise.
30143 * math/w_log10f_compat.c: Likewise.
30144 * math/w_log10l_compat.c: Likewise.
30145 * math/w_log2_compat.c: Likewise.
30146 * math/w_log2f_compat.c: Likewise.
30147 * math/w_log2l_compat.c: Likewise.
30148 * math/w_log_compat.c: Likewise.
30149 * math/w_logf_compat.c: Likewise.
30150 * math/w_logl_compat.c: Likewise.
30151 * math/w_pow_compat.c: Likewise.
30152 * math/w_powf_compat.c: Likewise.
30153 * math/w_powl_compat.c: Likewise.
30154 * math/w_remainder_compat.c: Likewise.
30155 * math/w_remainderf_compat.c: Likewise.
30156 * math/w_remainderl_compat.c: Likewise.
30157 * math/w_scalb_compat.c: Likewise.
30158 * math/w_scalbf_compat.c: Likewise.
30159 * math/w_scalbl_compat.c: Likewise.
30160 * math/w_sinh_compat.c: Likewise.
30161 * math/w_sinhf_compat.c: Likewise.
30162 * math/w_sinhl_compat.c: Likewise.
30163 * math/w_sqrt_compat.c: Likewise.
30164 * math/w_sqrtf_compat.c: Likewise.
30165 * math/w_sqrtl_compat.c: Likewise.
30166 * math/w_tgamma_compat.c: Likewise.
30167 * math/w_tgammaf_compat.c: Likewise.
30168 * math/w_tgammal_compat.c: Likewise.
30169 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30170 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30171 * sysdeps/ieee754/k_standard.c: Likewise.
30172 * sysdeps/ieee754/k_standardf.c: Likewise.
30173 * sysdeps/ieee754/k_standardl.c: Likewise.
30174 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30175 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30176 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30177 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30178 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30179 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30180 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30181 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30182 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30183 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30184 Likewise.
30185 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30186 Likewise.
30187 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30188 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30189 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30190 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30191
30192 2017-08-21 Florian Weimer <fweimer@redhat.com>
30193
30194 [BZ #21864]
30195 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30196 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30197 Move before inclusion of ../Rules.
30198
30199 2017-08-21 Florian Weimer <fweimer@redhat.com>
30200
30201 [BZ #21972]
30202 * assert/assert.h (assert): Use static_cast (bool) for C++.
30203 Use the ternary operator in the warning branch for GNU C.
30204 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30205 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30206 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30207 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30208 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30209
30210 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30211
30212 [BZ #18822]
30213 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30214 (__syscall_clock_gettime): Add attribute_hidden.
30215 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30216 (__start_context): Likewise.
30217
30218 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30219
30220 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30221 building libc.a.
30222 (hidden_proto): Likewise.
30223 (hidden_tls_proto): Likewise.
30224 (__hidden_proto): Likewise.
30225
30226 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30227
30228 * include/libc-symbols.h (attribute_hidden): Enable hidden
30229 visibility in libc.a compiled with PIE.
30230
30231 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30232
30233 [BZ #18822]
30234 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30235 Add attribute_hidden.
30236
30237 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30238
30239 [BZ #21864]
30240 * Makerules (all-nonlib): Add $(others-extras).
30241 * catgets/Makefile (others-extras): New.
30242 * elf/Makefile (others-extras): Likewise.
30243 * nss/Makefile (others-extras): Likewise.
30244
30245 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30246
30247 [BZ #18822]
30248 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30249 * elf/dl-open.c: Include <libc-internal.h>.
30250 (__libc_multiple_libcs): Removed.
30251 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30252 <hp-timing.h>.
30253 * include/libc-internal.h (__libc_multiple_libcs): New.
30254 * misc/sbrk.c: Include <libc-internal.h>.
30255 (__libc_multiple_libcs): Removed.
30256
30257 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30258
30259 [BZ #18822]
30260 * grp/initgroups.c (__nss_group_database): Removed.
30261 (__nss_initgroups_database): Likewise.
30262 * nscd/gai.c (__nss_hosts_database): Likewise.
30263 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30264 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30265 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30266 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30267 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30268 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30269 attribute_hidden.
30270 * nss/nsswitch.c (__nss_database_custom): Define only if
30271 USE_NSCD is defined.
30272 (__nss_configure_lookup): Use __nss_database_custom only if
30273 USE_NSCD is defined.
30274 * nss/nsswitch.h (__nss_database_custom): Declare only if
30275 USE_NSCD is defined. Add attribute_hidden.
30276 (__nss_setent): Add attribute_hidden.
30277 (__nss_endent): Likewise.
30278 (__nss_getent_r): Likewise.
30279 (__nss_getent): Likewise.
30280 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30281
30282 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30283
30284 [BZ #18822]
30285 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30286 libc_hidden_proto and libc_hidden_def.
30287
30288 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30289
30290 [BZ #18822]
30291 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30292 Add libc_hidden_proto.
30293 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30294 Add libc_hidden_def.
30295
30296 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30297
30298 [BZ #21974]
30299 * gmon/Makefile (routines): Remove bb_init_func and
30300 bb_exit_func.
30301 (elide-routines.os): Removed.
30302 * gmon/bb_exit_func.c: Likewise.
30303 * gmon/bb_init_func.c: Likewise.
30304 * include/sys/gmon.h (__bb): Likewise.
30305 (__bb_init_func): Likewise.
30306 (__bb_exit_func): Likewise.
30307 * sysdeps/alpha/bb_init_func.S: Likewise.
30308
30309 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30310
30311 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30312 * include/setjmp.h (____longjmp_chk): Here. Add
30313 attribute_hidden.
30314
30315 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30316
30317 [BZ #18822]
30318 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30319 attribute_hidden.
30320 (__strspn_sse2): Likewise.
30321
30322 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30323
30324 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30325 (close_not_cancel_no_status): Likewise.
30326 (__close_nocancel): New macro.
30327 (__close_nocancel_nostatus): Likewise.
30328 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30329 macro.
30330 (close_not_cancel): Likewise.
30331 (close_not_cancel_no_status): Likewise.
30332 (__close_nocancel): New prototype.
30333 (__close_nocancel_nostatus): New function.
30334 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30335 * catgets/open_catalog.c (__open_catalog): Replace
30336 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30337 * gmon/gmon.c (write_gmon): Likewise.
30338 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30339 * intl/loadmsgcat.c (close): Likewise.
30340 * io/ftw.c (open_dir_stream): Likewise.
30341 (ftw_startup): Likewise.
30342 * libio/fileops.c (_IO_file_open): Likewise.
30343 (_IO_file_close_mmap): Likewise.
30344 (_IO_file_close): Likewise.
30345 * libio/iopopen.c (_IO_dup2): Likewise.
30346 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30347 * locale/loadlocale.c (_nl_load_locale): Likewise.
30348 * login/utmp_file.c (pututline_file): Likewise.
30349 (endutent_file): Likewise.
30350 * misc/daemon.c (daemon): Likewise.
30351 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30352 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30353 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30354 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30355 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30356 * nscd/nscd_helper.c (open_socket): Likewise.
30357 (__nscd_open_socket): Likewise.
30358 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30359 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30360 (__nscd_innetgr): Likewise.
30361 * nss/nss_db/db-open.c (internal_setent): Likewise.
30362 * resolv/res-close.c (__res_iclose): Likewise.
30363 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30364 * sysdeps/posix/closedir.c (__closedir): Likewise.
30365 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30366 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30367 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30368 (opendir_tail): Likewise.
30369 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30370 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30371 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30372 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30373 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30374 (gethostid): Likewise.
30375 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30376 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30377 Likewise.
30378 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30379 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30380 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30381 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30382 Likewise.
30383 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30384 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30385 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30386 Likewise.
30387 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30388 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30389 Likewise.
30390 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30391 Likewise.
30392 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30393 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30394 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30395 __close_nocancel.
30396
30397 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30398 (openat_not_cancel_3): Likewise.
30399 (openat64_not_cancel_3): Likewise).
30400 (openat_not_cancel_3): Likewise).
30401 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30402 macro.
30403 (openat_not_cancel_3): Likewise.
30404 (openat64_not_cancel): Likewise.
30405 (openat64_not_cancel_3): Likewise.
30406 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30407 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30408 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30409 __open{64}_nocancel.
30410 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30411 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30412 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30413
30414 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30415
30416 [BZ #18822]
30417 * include/argz.h (__argz_create_sep): New function prototype.
30418 (__argz_append): Likewise.
30419 (__argz_add): Likewise.
30420 (__argz_add_sep): Likewise.
30421 (__argz_delete): Likewise.
30422 (__argz_insert): Likewise.
30423 (__argz_replace): Likewise.
30424 * string/argz.h (__argz_create_sep): Removed.
30425 (__argz_append): Likewise.
30426 (__argz_add): Likewise.
30427 (__argz_add_sep): Likewise.
30428 (__argz_delete): Likewise.
30429 (__argz_insert): Likewise.
30430 (__argz_replace): Likewise.
30431
30432 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30433
30434 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30435 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30436 (GNU_PROPERTY_STACK_SIZE): Likewie.
30437 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30438 (GNU_PROPERTY_LOPROC): Likewise.
30439 (GNU_PROPERTY_HIPROC): Likewise.
30440 (GNU_PROPERTY_LOUSER): Likewise.
30441 (GNU_PROPERTY_HIUSER): Likewise.
30442 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30443 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30444 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30445 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30446 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30447 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30448 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30449 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30450 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30451 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30452 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30453 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30454 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30455 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30456 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30457 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30458 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30459 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30460 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30461 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30462 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30463 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30464 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30465
30466 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30467
30468 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30469 in C++ mode.
30470
30471 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30472
30473 [BZ #21930]
30474 * math/math.h (isinf): Check if in C or C++ mode before using
30475 __builtin_types_compatible_p, since this is a C mode feature.
30476
30477 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30478
30479 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30480 (__write_nocancel): New macro.
30481 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30482 Rewrite as a function prototype.
30483 (write_not_cancel): Remove macro.
30484 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30485 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30486 (write_gmon): Likewise.
30487 * libio/fileops.c (_IO_new_file_write): Likewise.
30488 * login/utmp_file.c (pututline_file): Likewise.
30489 (updwtmp_file): Likewise.
30490 * stdio-common/psiginfo.c (psiginfo): Likewise.
30491 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30492 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30493 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30494 Likewise.
30495 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30496 Likewise.
30497
30498 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30499 (__read_nocancel): New macro.
30500 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30501 __read_nocancel.
30502 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30503 macro.
30504 (__read_nocancel): New prototype.
30505 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30506 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30507 with __read_nocancel.
30508 * intl/loadmsgcat.c (read): Likewise.
30509 * libio/fileops.c (_IO_file_read): Likewise.
30510 * locale/loadlocale.c (_nl_load_locale): Likewise.
30511 * login/utmp_file.c (getutent_r_file): Likewise.
30512 (internal_getut_r): Likewise.
30513 (getutline_r_file): Likewise.
30514 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30515 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30516 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30517 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30518 Likewise.
30519 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30520 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30521 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30522 Likewise.
30523 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30524 Likewise.
30525 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30526 Likewise.
30527 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30528 Likewise.
30529 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30530
30531 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30532
30533 [BZ #21966]
30534 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30535 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30536 usable.
30537
30538 2017-08-17 DJ Delorie <dj@redhat.com>
30539
30540 * bug17079.c: Update to new test harness.
30541 * test-digits-dots.c: Likewise.
30542 * test-netdb.c: Likewise.
30543 * tst-field.c: Likewise.
30544 * tst-nss-getpwent.c: Likewise.
30545 * tst-nss-static.c: Likewise.
30546 * tst-nss-test1.c: Likewise.
30547 * tst-nss-test2.c: Likewise.
30548 * tst-nss-test3.c: Likewise.
30549 * tst-nss-test4.c: Likewise.
30550 * tst-nss-test5.c: Likewise.
30551
30552 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30553
30554 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30555 (open_not_cancel_2): Likewise.
30556 (open_nocancel): New macro.
30557 (open64_nocancel): Likewise.
30558 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30559 (open_not_cancel_2): Likewise.
30560 (__open_nocancel): New prototype.
30561 (__open64_nocancel): Likewise.
30562 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30563 __open_nocancel.
30564 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30565 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30566 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30567 with __open_nocancel.
30568 * csu/check_fds.c (check_one_fd): Likewise.
30569 * gmon/gmon.c (write_gmon): Likewise.
30570 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30571 * intl/loadmsgcat.c (open): Likewise.
30572 * libio/fileops.c (_IO_file_open): Likewise.
30573 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30574 * locale/loadlocale.c (_nl_load_locale): Likewise.
30575 * login/utmp_file.c (setutent_file): Likewise.
30576 * misc/daemon.c (daemon): Likewise.
30577 * nss/nss_db/db-open.c (internal_setent): Likewise.
30578 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30579 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30580 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30581 (__opendir): Likewise.
30582 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30583 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30584 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30585 (gethostid): Likewise.
30586 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30587 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30588 Likewise.
30589 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30590 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30591 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30592 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30593 Likewise.
30594 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30595 Likewise.
30596 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30597 Likewise.
30598 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30599 Likewise.
30600 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30601 Likewise.
30602 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30603 Likewise.
30604 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30605 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30606
30607 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30608
30609 * benchtests/bench-skeleton.c (main): Add support for
30610 latency benchmarking.
30611 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30612
30613 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30614
30615 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30616 the startup object.
30617
30618 2017-08-17 Florian Weimer <fweimer@redhat.com>
30619
30620 * include/sys/socket.h (__opensock): Remove internal_function.
30621 * socket/opensock.c (__opensock): Likewise.
30622 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30623
30624 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30625
30626 [BZ #21944]
30627 * signal/bits/types/__sigval_t.h: New file.
30628 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30629 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30630 and define sigval_t using __sigval_t.
30631 * include/bits/types/__sigval_t.h: New file.
30632 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30633 instead of <bits/types/__sigval_t.h>.
30634 (struct sigevent): Use __sigval_t instead of sigval_t.
30635 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30636 instead of <bits/types/__sigval_t.h>.
30637 (siginfo_t): Use __sigval_t instead of sigval_t.
30638 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30639 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30640 (struct sigevent): Use __sigval_t instead of sigval_t.
30641 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30642 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30643 (siginfo_t): Use __sigval_t instead of sigval_t.
30644 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30645
30646 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30647
30648 * NEWS: Remove "[Add new features here]" for 2.27.
30649
30650 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30651
30652 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30653 libc.so.
30654
30655 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30656
30657 * NEWS: Mention x86-64 FMA optimization.
30658
30659 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30660
30661 [BZ #21912]
30662 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30663 Add e_expf-fma.
30664 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30665 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30666 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30667
30668 2017-08-16 Andreas Schwab <schwab@suse.de>
30669
30670 [BZ #16750]
30671 CVE-2009-5064
30672 * elf/ldd.bash.in: Never run file directly.
30673
30674 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30675
30676 [BZ #21955]
30677 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30678 (L(SP_INF_0)): Likewise.
30679
30680 2017-08-15 Florian Weimer <fweimer@redhat.com>
30681
30682 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30683 run-built-tests.
30684
30685 2017-08-15 Florian Weimer <fweimer@redhat.com>
30686
30687 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30688 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30689 BROKEN_THREAD_SIGNALS code.
30690 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30691 request_list): Remove caller_pid member used for
30692 BROKEN_THREAD_SIGNALS.
30693 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30694 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30695 Remove BROKEN_THREAD_SIGNALS support.
30696 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30697 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30698
30699 2017-08-15 Florian Weimer <fweimer@redhat.com>
30700
30701 * gmon/Makefile (tests): Add tst-gmon.
30702 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30703 Set.
30704 (tests-special): Add tst-gmon-prof.out.
30705 (tst-gmon.out): Depend on clean-tst-gmon-data.
30706 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30707 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30708 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30709 startup object.
30710 * aclocal.m4 (GPROF): Set and substitute.
30711 * config.amke.in (GPROF): Set.
30712 * configure: Regenerate.
30713
30714 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30715
30716 * elf/elf.h A (NT_PPC_TAR): New macro.
30717 (NT_PPC_PPR): Likewise.
30718 (NT_PPC_DSCR): Likewise.
30719 (NT_PPC_EBB): Likewise.
30720 (NT_PPC_PMU): Likewise.
30721 (NT_PPC_TM_CGPR): Likewise.
30722 (NT_PPC_TM_CFPR): Likewise.
30723 (NT_PPC_TM_CVMX): Likewise.
30724 (NT_PPC_TM_CVSX): Likewise.
30725 (NT_PPC_TM_SPR): Likewise.
30726 (NT_PPC_TM_CTAR): Likewise.
30727 (NT_PPC_TM_CPPR): Likewise.
30728 (NT_PPC_TM_CDSCR): Likewise.
30729
30730 2017-08-15 Florian Weimer <fweimer@redhat.com>
30731
30732 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30733 regparm (2) instead of internal_function.
30734 (_MCOUNT_DECL): Adjust.
30735
30736 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30737
30738 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30739 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30740
30741 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30742
30743 * conform/data/sys/wait.h-data (si_value): Do not expect for
30744 XPG42.
30745
30746 2017-08-14 Florian Weimer <fweimer@redhat.com>
30747
30748 [BZ #21962]
30749 NSS: Create stubs for accidentally exported lookup functions.
30750 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30751 Remove declaration.
30752 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30753 (ether_hostton): Call __nss_ethers_lookup2 instead.
30754 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30755 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30756 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30757 (setup): Call __nss_netgroup_lookup2 instead.
30758 * nss/Makefile (routines): Add compat-lookup.
30759 * nss/Versions (GLIBC_2.27): Add symbol version.
30760 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30761 (DB_COMPAT_FCT): Remove.
30762 * nss/compat-lookup.c: New file.
30763 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30764 from databases.def.
30765 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30766 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30767 (netname2user): Call __nss_publickey_lookup2 instead.
30768 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30769 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30770 instead.
30771
30772 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30773 Sergei Trofimovich <slyfox@inbox.ru>
30774
30775 [BZ #21908]
30776 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30777 Rename to MMAP2_PAGE_UNIT.
30778 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30779 __OFF_T_MATCHES_OFF64_T is not defined.
30780 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30781 uint64_t.
30782 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30783 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30784
30785 2017-08-14 Florian Weimer <fweimer@redhat.com>
30786
30787 i386: Do not set internal_function.
30788 * config.h.in (USE_REGPARMS, internal_function): Remove.
30789 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30790 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30791
30792 2017-08-14 Florian Weimer <fweimer@redhat.com>
30793
30794 * elf/dl-init.c (_dl_init): Remove internal_function.
30795 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30796 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30797
30798 2017-08-14 Florian Weimer <fweimer@redhat.com>
30799
30800 * elf/rtld.c (_dl_start): Remove internal_function.
30801 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30802 _dl_start.
30803
30804 2017-08-14 Florian Weimer <fweimer@redhat.com>
30805
30806 * elf/dl-fini.c (_dl_fini): Remove internal_function
30807 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30808
30809 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30810
30811 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30812 (bit_cpu_SHSTK): Likewise.
30813 (index_cpu_IBT): Likewise.
30814 (index_cpu_SHSTK): Likewise.
30815 (reg_IBT): Likewise.
30816 (reg_SHSTK): Likewise.
30817 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30818 Handle index_cpu_IBT and index_cpu_SHSTK.
30819
30820 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30821
30822 [BZ #19982]
30823 * po/fr.po: Fix spelling mistake.
30824
30825 2017-08-13 Florian Weimer <fweimer@redhat.com>
30826
30827 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30828 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30829 (_dl_catch_error, _dl_receive_error): Likewise.
30830 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30831 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30832 (_dl_deallocate_tls): Likewise.
30833 * include/dlfcn.h (_dl_addr): Likewise.
30834 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30835 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30836 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30837 Likewise.
30838
30839 2017-08-13 Florian Weimer <fweimer@redhat.com>
30840
30841 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30842 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30843 internal_function.
30844 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30845
30846 2017-08-13 Florian Weimer <fweimer@redhat.com>
30847
30848 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30849 internal_function.
30850 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30851 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30852 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30853 internal_function from _dl_make_stack_executable_hook member.
30854 (_dl_make_stack_executable): Remove internal_function.
30855 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30856 Likewise.
30857 * sysdeps/unix/sysv/linux/dl-execstack.c
30858 (_dl_make_stack_executable): Likewise.
30859
30860 2017-08-13 Florian Weimer <fweimer@redhat.com>
30861
30862 * sysdeps/unix/sysv/linux/netlinkaccess.h
30863 (__netlink_assert_response): Remove internal_function.
30864 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30865 (__netlink_assert_response): Likewise.
30866
30867 2017-08-13 Florian Weimer <fweimer@redhat.com>
30868
30869 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30870 internal_function.
30871 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30872
30873 2017-08-13 Florian Weimer <fweimer@redhat.com>
30874
30875 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30876 internal_function.
30877 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30878 * inet/netgroup.h (__internal_setnetgrent)
30879 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30880 * inet/getnetgrent_r.c (__internal_setnetgrent)
30881 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30882 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30883 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30884 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30885 * nss/nsswitch.h (db_lookup_function): Likewise.
30886
30887 2017-08-13 Florian Weimer <fweimer@redhat.com>
30888
30889 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30890 Remove internal_function.
30891 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30892 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30893 message argument on the stack.
30894 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30895 Likeweise.
30896
30897 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30898
30899 Adapt test case data to the changes in the thousands
30900 separators.
30901
30902 [BZ #20756]
30903 * localedata/tst-langinfo.sh: Adapt test case data.
30904 * stdlib/tst-strfmon_l.c: Likewise.
30905 * stdlib/tst-strtod4.c: Likewise.
30906 * stdlib/tst-strtod5i.c: Likewise.
30907
30908 2017-08-11 Florian Weimer <fweimer@redhat.com>
30909
30910 [BZ #21242]
30911 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30912 Suppress pedantic warning resulting from statement expression.
30913 (__ASSERT_FUNCTION): Add missing __extension__.
30914
30915 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30916
30917 * benchtests/bench-memmove-large.c: Print output in JSON
30918 format.
30919 * benchtests/bench-memmove.c: Likewise.
30920
30921 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
30922 * benchtests/bench-memchr.c (do_one_test): Likewise.
30923 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
30924 * benchtests/bench-memcpy.c (do_one_test): Likewise.
30925 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
30926 * benchtests/bench-memmove.c (do_one_test): Likewise.
30927 * benchtests/bench-memset-large.c (do_one_test): Likewise.
30928 * benchtests/bench-memset.c (do_one_test): Likewise.
30929 * benchtests/bench-string.h (test_init): Remove memsets.
30930
30931 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30932
30933 * manual/lang.texi
30934 (Computing the Width of an Integer Data Type): Rename section to
30935 "Width of an Integer Type". Remove inaccurate statement regarding
30936 lack of C language facilities for determining width of integer
30937 types, and reorder content to improve flow and context of
30938 discussion.
30939
30940 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30941
30942 * lang.texi (va_copy): Change standard from ISO to C99.
30943 (__va_copy): Add standard and header annotation.
30944 Update description for clarity of origins and current use.
30945
30946 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30947
30948 [BZ #21941]
30949 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
30950 xssqrtqp requires operands to be in Vector Registers
30951 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
30952 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
30953 (__ieee754_sqrtf128): Likewise.
30954
30955 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
30956
30957 * sysdeps/aarch64/memcmp.S (memcmp):
30958 Rewrite of optimized memcmp.
30959
30960 2017-08-10 Florian Weimer <fweimer@redhat.com>
30961
30962 Introduce ld.so exceptions.
30963 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
30964 (_dl_exception_create, _dl_exception_create_format)
30965 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
30966 (_dl_catch_exception): Declare.
30967 (_dl_catch_error): Update comment.
30968 * elf/dl-error-skeleton.c (struct catch): Replace objname,
30969 errstring, malloced members with exception member.
30970 (_dl_out_of_memory): Remove.
30971 (fatal_error): New function, extracted from _dl_signal_error.
30972 (_dl_signal_exception, _dl_signal_cexception): New functions.
30973 (_dl_signal_error): Call _dl_exception_create to allocate an
30974 exception object.
30975 (_dl_catch_exception): New function, based on _dl_catch_error.
30976 (_dl_catch_error): Implement using _dl_catch_exception.
30977 * elf/dl-exception.c: New file.
30978 * elf/Makefile (dl-routines): Add dl-exception.
30979 (elide-routines.os): Likewise.
30980 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
30981 _dl_exception_create_format, _dl_exception_free.
30982 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
30983 _dl_signal_exception.
30984 * elf/dl-lookup.c (make_string): Remove.
30985 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
30986 _dl_signal_cexception, _dl_exception_free.
30987 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
30988 _dl_signal_exception.
30989 * elf/dl-sym.c (do_sym): Likewise.
30990 * elf/dl-version.c (make_string): Remove.
30991 (match_symbol): Use _dl_exception_create_format,
30992 _dl_signal_cexception, _dl_exception_free.
30993 (_dl_check_map_versions): Likewise.
30994 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
30995 _dl_catch_exception.
30996 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
30997 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
30998 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
30999 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31000 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31001 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31002 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31003 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31004 Likewise.
31005 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31006 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31007 (ld.so): Likewise.
31008 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31009 (ld.so): Likewise.
31010 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31011 Likewise.
31012 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31013 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31014 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31015 Likewise.
31016 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31017 Likewise.
31018 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31019
31020 2017-08-10 Florian Weimer <fweimer@redhat.com>
31021
31022 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31023 attribute_hidden, internal_function.
31024 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31025 internal_function.
31026
31027 2017-08-10 Florian Weimer <fweimer@redhat.com>
31028
31029 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31030 function which calls __builtin_unreachable.
31031
31032 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31033
31034 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31035 Indian monetary formatting
31036 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31037 test cases.
31038
31039 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31040
31041 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31042 Fix typo in comment.
31043
31044 [BZ #21928]
31045 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31046 PTRACE_SEIZE_DEVEL): Remove.
31047 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31048 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31049 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31050 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31051 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31052
31053 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31054
31055 * posix/bits/types.h (__qaddr_t): Remove.
31056
31057 [BZ #21457]
31058 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31059 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31060 __glibc_reserved1.
31061 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31062 (ucontext_t): Use __ctx with uc_flags.
31063 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31064 (__ctxt): Likewise.
31065 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31066 __glibc_reserved1.
31067 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31068 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31069 __glibc_reserved1.
31070 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31071 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31072 __glibc_reserved1.
31073 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31074 macro.
31075 (ucontext_t): Use __ctx with uc_flags.
31076 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31077 (ucontext_t): Use __ctx with uc_flags.
31078 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31079 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31080 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31081 (ucontext_t): Use __ctx with uc_flags.
31082 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31083 undefine further down.
31084 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31085 __glibc_reserved1.
31086 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31087 undefine further down.
31088 (ucontext_t): Use __ctx with uc_flags.
31089 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31090 undefine further down.
31091 (ucontext_t): Use __ctx with uc_flags.
31092 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31093 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31094 Rename uc_pad to __glibc_reserved1.
31095 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31096 undefine further down.
31097 (ucontext_t): Use __ctx with uc_flags.
31098 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31099 further down.
31100 (ucontext_t): Use __ctx with uc_flags.
31101 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31102 __ctx with uc_flags.
31103 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31104 (ucontext_t): Use __ctx with uc_flags.
31105 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31106 __ctx with uc_flags.
31107
31108 2017-08-09 Florian Weimer <fweimer@redhat.com>
31109
31110 [BZ #21932]
31111 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31112 before early return.
31113
31114 2017-08-09 Andreas Schwab <schwab@suse.de>
31115
31116 [BZ #21041]
31117 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31118 renamed alias.
31119
31120 [BZ #21041]
31121 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31122 tst-compat-forwarder.
31123 (modules-names): Add tst-compat-forwarder-mod.
31124 ($(objpfx)tst-compat-forwarder): Depend on
31125 $(objpfx)tst-compat-forwarder-mod.so.
31126 * nptl/tst-compat-forwarder.c: New file.
31127 * nptl/tst-compat-forwarder-mod.c: New file.
31128
31129 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31130
31131 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31132 comments.
31133
31134 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31135 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31136 memcpy_falkor.
31137 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31138 Bump.
31139 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31140 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31141 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31142 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31143 Add falkor.
31144 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31145 New macro.
31146
31147 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31148
31149 [BZ #759]
31150 * manual/setjmp.texi (getcontex): Document uc_stack value
31151 compatibility differences.
31152
31153 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31154
31155 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31156 (old_malloc_hook): Likewise.
31157 (old_memalign_hook): Likewise.
31158 (old_realloc_hook): Likewise.
31159 (struct hdr): Likewise.
31160 (flood): Likewise.
31161 (freehook): Likewise.
31162 (mallochook): Likewise.
31163 (memalignhook): Likewise.
31164 (reallochook): Likewise.
31165 (mprobe): Likewise.
31166 * malloc/mtrace.c (mallwatch): Likewise.
31167 (tr_old_free_hook): Likewise.
31168 (tr_old_malloc_hook): Likewise.
31169 (tr_old_realloc_hook): Likewise.
31170 (tr_old_memalign_hook): Likewise.
31171 (tr_where): Likewise.
31172 (lock_and_info): Likewise.
31173 (tr_freehook): Likewise.
31174 (tr_mallochook): Likewise.
31175 (tr_reallochook): Likewise.
31176 (tr_memalignhook): Likewise.
31177 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31178 * misc/mmap.c (__mmap): Likewise.
31179 * misc/mmap64.c (__mmap64): Likewise.
31180 * misc/mprotect.c (__mprotect): Likewise.
31181 * misc/msync.c (msync): Likewise.
31182 * misc/munmap.c (__munmap): Likewise.
31183 * posix/posix_madvise.c (posix_madvise): Likewise.
31184 * socket/send.c (__send): Likewise.
31185 * socket/sendto.c (__sendto): Likewise.
31186 * socket/setsockopt.c (__setsockopt): Likewise.
31187 * string/memcmp.c (__ptr_t): Remove macro.
31188 (MEMCMP): Use void * instead of ptr_t.
31189 * string/memrchr.c (__ptr_t): Remove macro.
31190 (__memrchr): Use void * instead of ptr_t.
31191 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31192 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31193 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31194 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31195 * sysdeps/mach/msync.c (msync): Likewise.
31196 * sysdeps/mach/munmap.c (__munmap): Likewise.
31197 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31198 Likewise.
31199 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31200 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31201 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31202 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31203 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31204 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31205 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31206 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31207 Likewise.
31208 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31209 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31210 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31211 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31212 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31213 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31214 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31215 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31216 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31217 Likewise.
31218 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31219 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31220 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31221 (MEMCMP): Use void * instead of ptr_t.
31222 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31223 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31224
31225 2017-08-08 Florian Weimer <fweimer@redhat.com>
31226
31227 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31228 return statement.
31229
31230 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31231
31232 [BZ #21913]
31233 * csu/libc-tls.c: Include <startup.h> first.
31234 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31235 * elf/dl-tunables.c: Include <startup.h> first.
31236 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31237 * sysdeps/generic/startup.h: New file.
31238 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31239 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31240 (I386_USE_SYSENTER): New. Defined to 0.
31241
31242 2017-08-08 Andreas Schwab <schwab@suse.de>
31243
31244 [BZ #21041]
31245 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31246 * nptl/pt-system.c (system): Likewise.
31247
31248 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31249
31250 [BZ #21780]
31251 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31252 EOPNOTSUPP.
31253 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31254 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31255 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31256 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31257 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31258 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31259 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31260
31261 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31262
31263 [BZ #21899]
31264 * bits/sigaction.h (struct sigaction): Define sa_handler and
31265 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31266 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31267 [__USE_XOPEN_EXTENDED].
31268 (SA_RESTART): Likewise.
31269 (SA_NODEFER): Likewise.
31270 (SA_RESETHAND): Likewise.
31271 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31272 (struct sigaction): Define sa_handler and sa_sigaction using union
31273 also for [__USE_XOPEN_EXTENDED].
31274 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31275 [__USE_XOPEN_EXTENDED].
31276 (SA_RESTART): Likewise.
31277 (SA_NODEFER): Likewise.
31278 (SA_RESETHAND): Likewise.
31279 * sysdeps/unix/sysv/linux/bits/sigaction.h
31280 (struct sigaction): Define sa_handler and sa_sigaction using union
31281 also for [__USE_XOPEN_EXTENDED].
31282 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31283 [__USE_XOPEN_EXTENDED].
31284 (SA_RESTART): Likewise.
31285 (SA_NODEFER): Likewise.
31286 (SA_RESETHAND): Likewise.
31287 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31288 (struct sigaction): Define sa_handler and sa_sigaction using union
31289 also for [__USE_XOPEN_EXTENDED].
31290 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31291 [__USE_XOPEN_EXTENDED].
31292 (SA_RESTART): Likewise.
31293 (SA_NODEFER): Likewise.
31294 (SA_RESETHAND): Likewise.
31295 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31296 (struct sigaction): Define sa_handler and sa_sigaction using union
31297 also for [__USE_XOPEN_EXTENDED].
31298 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31299 [__USE_XOPEN_EXTENDED].
31300 (SA_RESTART): Likewise.
31301 (SA_NODEFER): Likewise.
31302 (SA_RESETHAND): Likewise.
31303 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31304 (struct sigaction): Define sa_handler and sa_sigaction using union
31305 also for [__USE_XOPEN_EXTENDED].
31306 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31307 [__USE_XOPEN_EXTENDED].
31308 (SA_RESTART): Likewise.
31309 (SA_NODEFER): Likewise.
31310 (SA_RESETHAND): Likewise.
31311 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31312 (struct sigaction): Define sa_handler and sa_sigaction using union
31313 also for [__USE_XOPEN_EXTENDED].
31314 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31315 [__USE_XOPEN_EXTENDED].
31316 (SA_RESTART): Likewise.
31317 (SA_NODEFER): Likewise.
31318 (SA_RESETHAND): Likewise.
31319 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31320 (struct sigaction): Define sa_handler and sa_sigaction using union
31321 also for [__USE_XOPEN_EXTENDED].
31322 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31323 [__USE_XOPEN_EXTENDED].
31324 (SA_RESTART): Likewise.
31325 (SA_NODEFER): Likewise. Define directly rather than as alias.
31326 (SA_RESETHAND): Likewise.
31327 (SA_INTERRUPT): Define only for [__USE_MISC].
31328 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31329 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31330 [__USE_MISC].
31331 (SA_STACK): Define only for [__USE_MISC].
31332 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31333 (struct sigaction): Define sa_handler and sa_sigaction using union
31334 also for [__USE_XOPEN_EXTENDED].
31335 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31336 [__USE_XOPEN_EXTENDED].
31337 (SA_RESTART): Likewise.
31338 (SA_NODEFER): Likewise.
31339 (SA_RESETHAND): Likewise.
31340 (SA_NOPTRACE): Define only for [__USE_MISC].
31341
31342 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31343 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31344 (struct catalog_info): Likewise.
31345 * inet/htontest.c (lo): Likewise.
31346 (foo): Likewise.
31347 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31348 * inet/inet_net.c (inet_network): Likewise.
31349 * inet/inet_netof.c (inet_netof): Likewise.
31350 * inet/rcmd.c (__ivaliduser): Likewise.
31351 (iruserok): Likewise.
31352 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31353 * locale/programs/locale-spec.c (locale_special): Likewise.
31354 * nis/nis_findserv.c (struct findserv_req): Likewise.
31355 (__nis_findfastest_with_timeout): Likewise.
31356 * nss/test-netdb.c (test_network): Likewise.
31357 * resolv/inet_neta.c (inet_neta): Likewise.
31358 * resolv/ns_date.c (ns_datetosecs): Likewise.
31359 (SECS_PER_DAY): Likewise.
31360 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31361 Likewise.
31362 * resolv/res_comp.c (__putlong): Likewise.
31363 (__putshort): Likewise.
31364 (_getlong): Likewise.
31365 (_getshort): Likewise.
31366 * resolv/res_debug.c (p_time): Likewise.
31367 (precsize_ntoa): Likewise.
31368 (precsize_aton): Likewise.
31369 (latlon2ul): Likewise.
31370 (loc_aton): Likewise.
31371 (loc_ntoa): Likewise.
31372 * resolv/res_hconf.c (struct netaddr): Likewise.
31373 (_res_hconf_reorder_addrs): Likewise.
31374 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31375 (clnttcp_control): Likewise.
31376 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31377 (clntudp_control): Likewise.
31378 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31379 (clntunix_control): Likewise.
31380 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31381 * sunrpc/rpc/auth.h (union des_block): Likewise.
31382 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31383 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31384 (xdrrec_create): Likewise.
31385 (xdrrec_endofrecord): Likewise.
31386 (flush_out): Likewise.
31387 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31388 (xdrstdio_putlong): Likewise.
31389 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31390 Likewise.
31391
31392 * misc/sys/cdefs.h (__long_double_t): Remove.
31393 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31394 instead of __long_double_t,
31395 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31396
31397 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31398
31399 * benchtests/scripts/compare_strings.py: Avoid display error when
31400 running on a text terminal.
31401
31402 * benchtests/scripts/compare_strings.py (main): Add an
31403 optional -base option.
31404 (process_results): New argument base_func.
31405
31406 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31407 hardcoding memcpy.
31408 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31409 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31410
31411 2017-08-07 Andreas Schwab <schwab@suse.de>
31412
31413 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31414 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31415 * intl/Makefile ($(objpfx)tst-gettext.out)
31416 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31417 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31418 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31419 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31420 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31421 * posix/Makefile ($(objpfx)globtest.out)
31422 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31423 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31424 ($(objpfx)tst-printf.out): Likewise.
31425 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31426 ($(objpfx)tst-setcontext3.out): Likewise.
31427
31428 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31429
31430 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31431 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31432 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31433 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31434 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31435 and mptan-fma.
31436 (CFLAGS-doasin-fma.c): New.
31437 (CFLAGS-dosincos-fma.c): Likewise.
31438 (CFLAGS-e_asin-fma.c): Likewise.
31439 (CFLAGS-e_atan2-fma.c): Likewise.
31440 (CFLAGS-e_exp-fma.c): Likewise.
31441 (CFLAGS-e_log-fma.c): Likewise.
31442 (CFLAGS-e_pow-fma.c): Likewise.
31443 (CFLAGS-halfulp-fma.c): Likewise.
31444 (CFLAGS-mpa-fma.c): Likewise.
31445 (CFLAGS-mpatan-fma.c): Likewise.
31446 (CFLAGS-mpatan2-fma.c): Likewise.
31447 (CFLAGS-mpexp-fma.c): Likewise.
31448 (CFLAGS-mplog-fma.c): Likewise.
31449 (CFLAGS-mpsqrt-fma.c): Likewise.
31450 (CFLAGS-mptan-fma.c): Likewise.
31451 (CFLAGS-s_atan-fma.c): Likewise.
31452 (CFLAGS-sincos32-fma.c): Likewise.
31453 (CFLAGS-slowexp-fma.c): Likewise.
31454 (CFLAGS-slowpow-fma.c): Likewise.
31455 (CFLAGS-s_sin-fma.c): Likewise.
31456 (CFLAGS-s_tan-fma.c): Likewise.
31457 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31458 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31459 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31460 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31461 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31462 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31463 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31464 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31465 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31466 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31467 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31468 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31469 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31470 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31471 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31472 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31473 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31474 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31475 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31476 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31477 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31478 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31479 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31480 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31481 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31482 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31483 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31484 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31485 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31486 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31487 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31488
31489 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31490
31491 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31492 (min_of_type_f): New macro.
31493 (min_of_type_): Likewise.
31494 (min_of_type_l): Likewise.
31495 (min_of_type_f128): Likewise.
31496 (min_of_type): Define using __MATH_TG and taking an expression
31497 argument.
31498 (math_check_force_underflow): Pass expression instead of type to
31499 min_of_type.
31500 (math_check_force_underflow_nonneg): Likewise.
31501
31502 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31503
31504 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31505 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31506 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31507
31508 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31509
31510 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31511 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31512 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31513 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31514 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31515 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31516 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31517 memmove_chk-nonshared and memset_chk-nonshared
31518 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31519 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31520 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31521 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31522 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31523 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31524 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31525 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31526 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31527 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31528 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31529 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31530 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31531 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31532 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31533 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31534 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31535 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31536 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31537 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31538 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31539 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31540 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31541 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31542 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31543 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31544 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31545 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31546 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31547 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31548 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31549 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31550 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31551 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31552 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31553 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31554 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31555 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31556 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31557 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31558 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31559 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31560 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31561 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31562 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31563 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31564 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31565 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31566 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31567 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31568 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31569 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31570 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31571 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31572 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31573 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31574 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31575 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31576 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31577 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31578 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31579 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31580 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31581 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31582 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31583 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31584 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31585 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31586 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31587 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31588 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31589 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31590 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31591 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31592 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31593 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31594 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31595 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31596 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31597 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31598 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31599 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31600 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31601 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31602 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31603 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31604 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31605 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31606 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31607 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31608 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31609 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31610 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31611 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31612 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31613 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31614 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31615 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31616 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31617 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31618 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31619 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31620 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31621 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31622 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31623 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31624 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31625 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31626
31627 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31628
31629 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31630 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31631 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31632 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31633 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31634 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31635 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31636 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31637 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31638 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31639 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31640 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31641 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31642 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31643 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31644 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31645 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31646 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31647 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31648 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31649 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31650 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31651 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31652 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31653 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31654 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31655 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31656 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31657 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31658 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31659 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31660 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31661 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31662 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31663 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31664 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31665 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31666 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31667 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31668 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31669 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31670 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31671 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31672 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31673 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31674 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31675 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31676 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31677 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31678 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31679 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31680 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31681 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31682 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31683 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31684 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31685 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31686 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31687 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31688 ...
31689 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31690 Don't include <sysdep.h> nor <init-arch.h>.
31691 (_ZGVbN2v_cos): Removed.
31692 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31693 ...
31694 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31695 Don't include <sysdep.h> nor <init-arch.h>.
31696 (_ZGVdN4v_cos): Removed.
31697 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31698 ...
31699 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31700 Don't include <sysdep.h> nor <init-arch.h>.
31701 (_ZGVeN8v_cos): Removed.
31702 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31703 ...
31704 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31705 Don't include <sysdep.h> nor <init-arch.h>.
31706 (_ZGVbN2v_exp): Removed.
31707 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31708 ...
31709 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31710 Don't include <sysdep.h> nor <init-arch.h>.
31711 (_ZGVdN4v_exp): Removed.
31712 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31713 ...
31714 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31715 Don't include <sysdep.h> nor <init-arch.h>.
31716 (_ZGVeN8v_exp): Removed.
31717 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31718 ...
31719 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31720 Don't include <sysdep.h> nor <init-arch.h>.
31721 (_ZGVbN2v_log): Removed.
31722 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31723 ...
31724 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31725 Don't include <sysdep.h> nor <init-arch.h>.
31726 (_ZGVdN4v_log): Removed.
31727 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31728 ...
31729 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31730 Don't include <sysdep.h> nor <init-arch.h>.
31731 (_ZGVeN8v_log): Removed.
31732 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31733 ...
31734 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31735 Don't include <sysdep.h> nor <init-arch.h>.
31736 (_ZGVbN2vv_pow): Removed.
31737 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31738 ...
31739 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31740 Don't include <sysdep.h> nor <init-arch.h>.
31741 (_ZGVdN4vv_pow): Removed.
31742 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31743 ...
31744 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31745 Don't include <sysdep.h> nor <init-arch.h>.
31746 (_ZGVeN8vv_pow): Removed.
31747 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31748 ...
31749 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31750 Don't include <sysdep.h> nor <init-arch.h>.
31751 (_ZGVbN2v_sin): Removed.
31752 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31753 ...
31754 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31755 Don't include <sysdep.h> nor <init-arch.h>.
31756 (_ZGVbN4v_sin): Removed.
31757 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31758 ...
31759 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31760 Don't include <sysdep.h> nor <init-arch.h>.
31761 (_ZGVbN8v_sin): Removed.
31762 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31763 ...
31764 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31765 Don't include <sysdep.h> nor <init-arch.h>.
31766 (_ZGVbN2vvv_sincos): Removed.
31767 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31768 ...
31769 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31770 Don't include <sysdep.h> nor <init-arch.h>.
31771 (_ZGVdN4vvv_sincos): Removed.
31772 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31773 ...
31774 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31775 Don't include <sysdep.h> nor <init-arch.h>.
31776 (_ZGVeN8vvv_sincos): Removed.
31777 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31778 ...
31779 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31780 Don't include <sysdep.h> nor <init-arch.h>.
31781 (_ZGVeN16v_cosf): Removed.
31782 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31783 ...
31784 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31785 Don't include <sysdep.h> nor <init-arch.h>.
31786 (_ZGVbN4v_cosf): Removed.
31787 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31788 ...
31789 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31790 Don't include <sysdep.h> nor <init-arch.h>.
31791 (_ZGVdN8v_cosf): Removed.
31792 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31793 ...
31794 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31795 Don't include <sysdep.h> nor <init-arch.h>.
31796 (_ZGVeN16v_expf): Removed.
31797 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31798 ...
31799 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31800 Don't include <sysdep.h> nor <init-arch.h>.
31801 (_ZGVbN4v_expf): Removed.
31802 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31803 ...
31804 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31805 Don't include <sysdep.h> nor <init-arch.h>.
31806 (_ZGVdN8v_expf): Removed.
31807 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31808 ...
31809 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31810 Don't include <sysdep.h> nor <init-arch.h>.
31811 (_ZGVeN16v_logf): Removed.
31812 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31813 ...
31814 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31815 Don't include <sysdep.h> nor <init-arch.h>.
31816 (_ZGVbN4v_logf): Removed.
31817 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31818 ...
31819 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31820 Don't include <sysdep.h> nor <init-arch.h>.
31821 (_ZGVdN8v_logf): Removed.
31822 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31823 ...
31824 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31825 Don't include <sysdep.h> nor <init-arch.h>.
31826 (_ZGVeN16vv_powf): Removed.
31827 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31828 ...
31829 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31830 Don't include <sysdep.h> nor <init-arch.h>.
31831 (_ZGVbN4vv_powf): Removed.
31832 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31833 ...
31834 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31835 Don't include <sysdep.h> nor <init-arch.h>.
31836 (_ZGVdN8vv_powf): Removed.
31837 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31838 ...
31839 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31840 Don't include <sysdep.h> nor <init-arch.h>.
31841 (_ZGVeN16vvv_sincosf): Removed.
31842 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31843 ...
31844 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31845 Don't include <sysdep.h> nor <init-arch.h>.
31846 (_ZGVbN4vvv_sincosf): Removed.
31847 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31848 ...
31849 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31850 Don't include <sysdep.h> nor <init-arch.h>.
31851 (_ZGVdN8vvv_sincosf): Removed.
31852 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31853 ...
31854 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31855 Don't include <sysdep.h> nor <init-arch.h>.
31856 (_ZGVeN16v_sinf): Removed.
31857 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31858 ...
31859 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31860 Don't include <sysdep.h> nor <init-arch.h>.
31861 (_ZGVbN4v_sinf): Removed.
31862 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31863 ...
31864 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31865 Don't include <sysdep.h> nor <init-arch.h>.
31866 (_ZGVdN8v_sinf): Removed.
31867
31868 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31869
31870 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31871 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31872 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31873 s_rint-sse4_1 and s_rintf-sse4_1.
31874 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31875 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31876 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31877 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31878 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31879 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31880 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31881 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31882 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31883 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31884 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31885 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31886 (__ceil): Removed.
31887 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31888 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31889 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31890 (__ceilf): Removed.
31891 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31892 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31893 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31894 (__floor): Removed.
31895 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31896 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31897 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31898 (__floorf): Removed.
31899 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31900 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31901 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31902 (__nearbyint): Removed.
31903 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31904 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31905 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31906 (__nearbyintf): Removed.
31907 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31908 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31909 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31910 (__rint): Removed.
31911 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31912 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31913 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31914 (__rintf): Removed.
31915
31916 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31917
31918 * sysdeps/i386/start.S (_start): Check Check PIC instead of
31919 SHARED. Avoid dynamic relocation against main in static PIE.
31920
31921 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31922
31923 [BZ #21815]
31924 * elf/Makefile (CFLAGS-tst-prelink.c): New.
31925 (LDFLAGS-tst-prelink): Likewise.
31926
31927 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31928
31929 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
31930 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
31931 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
31932 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
31933 (INTERNAL_SYSCALL_NCS): Likewise.
31934 (LOADARGS_1): Likewise.
31935 (LOADARGS_5): Likewise.
31936 (RESTOREARGS_1): Likewise.
31937 (RESTOREARGS_5): Likewise.
31938
31939 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31940
31941 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
31942 (MEMPCPY_SYMBOL): Likewise.
31943 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
31944 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
31945 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
31946 in libc.a.
31947 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31948 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
31949 Likewise.
31950 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
31951 (__hidden_ver1): Don't use in libc.a.
31952 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
31953 (__mempcpy): Don't create a weak alias in libc.a.
31954 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
31955 libc.a.
31956 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
31957 (__hidden_ver1): Don't use in libc.a.
31958
31959 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31960
31961 * config.make.in (have-insert): New.
31962 * configure.ac (libc_cv_insert): New. Set to yes if linker
31963 supports INSERT in linker script.
31964 (AC_SUBST(libc_cv_insert): New.
31965 * configure: Regenerated.
31966 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
31967 if $(have-insert) == yes.
31968
31969 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31970
31971 * elf/Makefile (tests): Add vismain only if
31972 $(have-protected-data) == yes.
31973 (tests-pie): Likewise.
31974
31975 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31976
31977 [BZ #21871]
31978 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
31979 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
31980
31981 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31982
31983 [BZ #21790]
31984 * sysdeps/i386/i586/memset.S
31985 (__memset_zero_constant_len_parameter): Removed.
31986 * sysdeps/i386/i686/memset.S
31987 (__memset_zero_constant_len_parameter): Likewise.
31988 * sysdeps/i386/i686/multiarch/memset_chk.S
31989 (__memset_zero_constant_len_parameter): Likewise.
31990 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
31991 Likewise.
31992
31993 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31994
31995 * stdlib/getentropy.c (getentropy): Change return type to int.
31996
31997 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31998
31999 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32000
32001 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32002
32003 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32004 u_intN_t.
32005 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32006 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32007 Likewise.
32008 (ieee_float_shape_type): Likewise.
32009 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32010 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32011 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32012 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32013 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32014 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32015 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32016 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32017 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32018 Likewise.
32019 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32020 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32021 (__ieee754_yn): Likewise.
32022 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32023 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32024 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32025 Likewise.
32026 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32027 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32028 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32029 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32030 (__erfc): Likewise.
32031 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32032 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32033 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32034 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32035 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32036 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32037 Likewise.
32038 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32039 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32040 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32041 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32042 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32043 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32044 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32045 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32046 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32047 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32048 (__issignaling): Likewise.
32049 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32050 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32051 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32052 Likewise.
32053 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32054 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32055 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32056 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32057 Likewise.
32058 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32059 Likewise.
32060 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32061 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32062 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32063 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32064 (__erfcf): Likewise.
32065 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32066 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32067 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32068 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32069 Likewise.
32070 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32071 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32072 Likewise.
32073 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32074 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32075 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32076 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32077 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32078 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32079 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32080 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32081 Likewise.
32082 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32083 Likewise.
32084 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32085 Likewise.
32086 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32087 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32088 Likewise.
32089 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32090 Likewise.
32091 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32092 (__ieee754_ynl): Likewise.
32093 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32094 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32095 Likewise.
32096 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32097 Likewise.
32098 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32099 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32100 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32101 Likewise.
32102 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32103 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32104 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32105 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32106 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32107 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32108 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32109 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32110 Likewise.
32111 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32112 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32113 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32114 Likewise.
32115 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32116 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32117 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32118 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32119 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32120 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32121 Likewise.
32122 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32123 Likewise.
32124 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32125 Likewise.
32126 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32127 Likewise.
32128 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32129 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32130 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32131 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32132 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32133 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32134 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32135 Likewise.
32136 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32137 Likewise.
32138 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32139 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32140 Likewise.
32141 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32142 (__ieee754_remainderl): Likewise.
32143 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32144 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32145 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32146 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32147 Likewise.
32148 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32149 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32150 Likewise.
32151 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32152 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32153 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32154 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32155 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32156 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32157 Likewise.
32158 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32159 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32160 (__ieee754_y0l): Likewise.
32161 (pzero): Likewise.
32162 (qzero): Likewise.
32163 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32164 (__ieee754_y1l): Likewise.
32165 (pone): Likewise.
32166 (qone): Likewise.
32167 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32168 (__ieee754_ynl): Likewise.
32169 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32170 (__ieee754_lgammal_r): Likewise.
32171 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32172 Likewise.
32173 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32174 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32175 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32176 (__erfcl): Likewise.
32177 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32178 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32179 Likewise.
32180 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32181 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32182 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32183 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32184 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32185 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32186 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32187 Likewise.
32188 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32189 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32190 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32191 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32192 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32193 Likewise.
32194 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32195 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32196 Likewise.
32197 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32198 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32199 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32200 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32201 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32202
32203 2017-08-03 Florian Weimer <fweimer@redhat.com>
32204
32205 [BZ #21885]
32206 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32207 on memory allocation failure.
32208
32209 2017-08-03 Alan Modra <amodra@gmail.com>
32210
32211 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32212 tst-tlsopt-powerpc.c with function name change and no test harness.
32213 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32214 Call tls_get_addr_opt_test.
32215 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32216 (modules-names): Add mod-tlsopt-powerpc.
32217 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32218 (tst-tlsopt-powerpc): Depend on .so.
32219 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32220 define. Expand use in TLS_GD and TLS_LD.
32221
32222 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32223
32224 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32225 function.
32226 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32227
32228 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32229
32230 [BZ #21686]
32231 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32232 comparing size with that of double.
32233 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32234 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32235 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32236 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32237 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32238 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32239 unsigned __int128 types.
32240
32241 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32242
32243 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32244 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32245 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32246 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32247 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32248
32249 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32250
32251 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32252
32253 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32254
32255 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32256 of SHARED.
32257 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32258 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32259 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32260 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32261 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32262 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32263 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32264
32265 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32266
32267 [BZ #21685]
32268 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32269 bit-field expressions passed to sizeof or typeof.
32270 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32271 (__TGMATH_F128): Likewise.
32272 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32273 (__TGMATH_CF128): Likewise.
32274 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32275 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32276 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32277 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32278 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32279 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32280 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32281 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32282 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32283 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32284 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32285 (__TGMATH_UNARY_IMAG): Likewise.
32286 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32287 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32288 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32289 type.
32290 (define_vars_for_type): Handle bit_field type specially.
32291 (Tests.__init__): Declare structure with bit-field element.
32292
32293 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32294
32295 [BZ #21791]
32296 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32297 (MEMCPY_CHK): Define only if SHARED is defined.
32298 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32299 Likewise.
32300 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32301 Likewise.
32302
32303 See ChangeLog.18 for earlier changes.